unistd: Fix portability warnings.
[gnulib.git] / ChangeLog
blobc9b22fb02dc9f99f5bda7b5b28a5e865202475e1
1 2020-12-31  Bruno Haible  <bruno@clisp.org>
3         unistd: Fix portability warnings.
4         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
6 2020-12-31  Bruno Haible  <bruno@clisp.org>
8         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
9         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
10         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
11         * lib/utime.c: Include <errno.h>.
13 2020-12-30  Karl Berry  <karl@freefriends.org>
15         config: srclistvars doc.
16         * config/srclistvars.sh: doc a couple of unusual source repo urls.
18 2020-12-30  Bruno Haible  <bruno@clisp.org>
20         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
21         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
22         with no errno.
23         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
24         EINVAL.
26 2020-12-29  Jim Meyering  <meyering@fb.com>
28         regex-tests: tweak to avoid a clang-10 warning
29         * tests/test-regex.c: Compare with explicit zero, rather than
30         as boolean to avoid this from clang-10:
31         test-regex.c:315:9: error: converting the result of '<<' to a \
32           boolean always evaluates to true \
33           [-Werror,-Wtautological-constant-compare]
34         if (! REG_STARTEND)
36         hash: add casts-to-float to avoid clang-10 warnings
37         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
38         to avoid this warning from clang-10 (for use in grep):
39           hash.c:501:11: error: implicit conversion from 'unsigned long' \
40             to 'float' changes value from 18446744073709551615 to \
41             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
42           if (SIZE_MAX <= new_candidate)
43         (hash_insert_if_absent): Likewise.
45 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47         canonicalize: fix size overflow treatment
48         This also has some minor cleanups.
49         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
50         stddef.h, since the code no longer refers directly to ptrdiff_t.
51         * lib/canonicalize-lgpl.c (realpath_stk):
52         * lib/canonicalize.c (canonicalize_filename_mode_stk):
53         Treat size overflow like other out-of-memory.
54         * lib/canonicalize.c: No need to include stdlib.h, since
55         the code no longer refers to stdlib.h functions (other
56         than those that canonicalize.h must declare).
57         * lib/canonicalize.c (canonicalize_filename_mode_stk):
58         Do not bother terminating the string result on error.
60 2020-12-29  Bruno Haible  <bruno@clisp.org>
62         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
63         * lib/gl_list.hh: Include <stdlib.h>.
64         * lib/gl_map.hh: Likewise.
65         * lib/gl_omap.hh: Likewise.
66         * lib/gl_set.hh: Likewise.
67         * lib/gl_oset.hh: Likewise.
69 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71         canonicalize: fix ptrdiff_t overflow bug
72         Problem reported by Adhemerval Zanella in:
73         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
74         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
75         Include intprops.h.
76         (NARROW_ADDRESSES): New constant.
77         * lib/canonicalize-lgpl.c (realpath_stk):m
78         * lib/canonicalize.c (canonicalize_filename_mode_stk):
79         Work even if strlen (END) does not fit in idx_t, or if adding
80         N to it overflows.
81         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
82         Add intprops.
84 2020-12-28  Bruno Haible  <bruno@clisp.org>
86         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
87         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
88         acl_is_expected_elfclass, use 'expr', not 'test'.
90 2020-12-28  Bruno Haible  <bruno@clisp.org>
92         ptsname_r: Fix a compiler warning on Solaris.
93         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
95 2020-12-28  Bruno Haible  <bruno@clisp.org>
97         gnulib-tool: Fix logic whether to add a dummy.c.
98         * gnulib-tool (func_remove_if_blocks): New function.
99         (func_modules_add_dummy): Use it to eliminate all conditional statements
100         from the automake snippet.
102 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104         faccessat: revert recent EOVERFLOW change
105         I misunderstood the glibc source code.  Deduced from
106         Adhemerval Zanella’s proposed glibc patch in:
107         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
108         * doc/posix-functions/faccessat.texi: It is not a problem.
109         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
110         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
111         * lib/faccessat.c: Revert to simpler version now that
112         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
113         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
114         Remove.  All uses removed.
115         * modules/canonicalize, modules/canonicalize-lgpl (Files):
116         Remove m4/faccessat.m4.
118         canonicalize-lgpl: accommodate picky cpp
119         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
120         case preprocessor is picky.  Reported by Adhemerval Zanella in:
121         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
123         canonicalize: simplify via scratch_buffer_dupfree
124         * config/srclist.txt: Adjust accordingly.
125         * lib/canonicalize-lgpl.c (realpath_stk):
126         * lib/canonicalize.c (canonicalize_filename_mode_stk):
127         Simplify by using scratch_buffer_dupfree.
128         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
129         * lib/malloc/scratch_buffer_dupfree.c: New file.
130         * modules/scratch_buffer (Files, Depends-on):
131         Add malloc/scratch_buffer_dupfree.c.
133 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
135         regex: remove glibc21.m4
136         It doesn’t seem to be needed any more; at least, I couldn’t
137         reproduce the circa-2013 problem.  Perhaps the recent
138         --conditional-dependencies fixes have removed the need for it.
139         * m4/glibc21.m4: Remove.  All uses removed.
141 2020-12-26  Bruno Haible  <bruno@clisp.org>
143         gnulib-tool: Make --conditional-dependencies work with --with-tests.
144         Reported by Paul Eggert in
145         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
146         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
147         dependencies like func_emit_lib_Makefile_am.
149 2020-12-26  Bruno Haible  <bruno@clisp.org>
151         execvpe: Make dependency to stdbool explicit.
152         * lib/execvpe.c: Include <stdbool.h>.
153         * modules/execvpe (Depends-on): Add stdbool.
155         execlp: Add tests.
156         * tests/test-execlp-main.c: New file.
157         * tests/test-execlp.sh: New file.
158         * modules/execlp-tests: New file.
160         execlp: New module.
161         * lib/execlp.c: New file.
162         * m4/execlp.m4: New file.
163         * modules/execlp: New file.
164         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
165         new module.
167         execle: Add tests.
168         * tests/test-execle-main.c: New file.
169         * tests/test-execle.sh: New file.
170         * modules/execle-tests: New file.
172         execle: New module.
173         * lib/execle.c: New file.
174         * m4/execle.m4: New file.
175         * modules/execle: New file.
176         * doc/posix-functions/execle.texi: Mention more Windows problems and the
177         new module.
179         execl: Add tests.
180         * tests/test-execl-main.c: New file.
181         * tests/test-execl.sh: New file.
182         * modules/execl-tests: New file.
184         execl: New module.
185         * lib/execl.c: New file.
186         * m4/execl.m4: New file.
187         * modules/execl: New file.
188         * doc/posix-functions/execl.texi: Mention more Windows problems and the
189         new module.
191         execv: Add tests.
192         * tests/test-execv-main.c: New file.
193         * tests/test-execv.sh: New file.
194         * modules/execv-tests: New file.
196         execv: New module.
197         * lib/execv.c: New file.
198         * m4/execv.m4: New file.
199         * modules/execv: New file.
200         * doc/posix-functions/execv.texi: Mention more Windows problems and the
201         new module.
203         execvp: Add tests.
204         * tests/test-execvp-main.c: New file.
205         * tests/test-execvp.sh: New file.
206         * modules/execvp-tests: New file.
208         execvp: New module.
209         * lib/execvp.c: New file.
210         * m4/execvp.m4: New file.
211         * modules/execvp: New file.
212         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
213         new module.
215         execvpe: Add tests.
216         * tests/test-execvpe-main.c: New file.
217         * tests/test-execvpe.sh: New file.
218         * modules/execvpe-tests: New file.
220         execvpe: New module.
221         * lib/execvpe.c: New file.
222         * m4/execvpe.m4: New file.
223         * modules/execvpe: New file.
224         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
225         new module.
227         execve: Add tests.
228         * tests/test-exec-child.c: New file.
229         * tests/test-execve-main.c: New file.
230         * tests/test-execve.sh: New file.
231         * modules/execve-tests: New file.
233         execve: New module.
234         * lib/execve.c: New file.
235         * m4/execve.m4: New file.
236         * modules/execve: New file.
237         * doc/posix-functions/execve.texi: Mention more Windows problems and the
238         new module.
240         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
241         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
242         execvpe): Add declarations for the new modules.
243         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
244         execv, execve, execvp, execvpe are declared.
245         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
246         REPLACE_EXEC*.
247         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
248         REPLACE_EXEC*.
249         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
250         execlp, execv, execve, execvp, execvpe.
252 2020-12-26  Bruno Haible  <bruno@clisp.org>
254         stack: Fix typo in comments.
255         * lib/stack.h: Fix typo in comments.
257 2020-12-26  Bruno Haible  <bruno@clisp.org>
259         bitset: Fix conflict with 'free-posix' module.
260         * lib/bitset/base.h: Include <stdlib.h>.
262 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
264         idx: change idx.h comment to LGPLv2.1+
265         * lib/idx.h: Change license notice to match what should be in glibc.
266         gnulib-tool will change it as appropriate anyway, so this is just
267         to simplify syncing with glibc.
269 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
271         MODULES.html.sh: Update after 2020-12-19 change.
272         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
274 2020-12-25  Bruno Haible  <bruno@clisp.org>
276         Make it possible to turn off the mkdir override on Windows.
277         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
278         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
280         GNULIB_MDA_MKDIR.
281         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
282         GNULIB_MDA_MKDIR.
283         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
284         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
286         Make it possible to turn off each of the Windows oldnames workarounds.
287         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
288         oldnames workarounds through a GNULIB_MDA_<func> symbol.
289         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
290         * lib/search.in.h (lfind, lsearch): Likewise.
291         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
292         Likewise.
293         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
294         * lib/string.in.h (memccpy, strdup): Likewise.
295         * lib/sys_stat.in.h (chmod, umask): Likewise.
296         * lib/time.in.h (tzset): Likewise.
297         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
298         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
299         read, rmdir, swab, unlink, write): Likewise.
300         * lib/utime.in.h (utime): Likewise.
301         * lib/wchar.in.h (wcsdup): Likewise.
302         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
303         GNULIB_MDA_<func> symbols.
304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
305         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
312         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
313         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
314         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
315         symbols.
316         * modules/math (Makefile.am): Likewise.
317         * modules/search (Makefile.am): Likewise.
318         * modules/stdio (Makefile.am): Likewise.
319         * modules/stdlib (Makefile.am): Likewise.
320         * modules/string (Makefile.am): Likewise.
321         * modules/sys_stat (Makefile.am): Likewise.
322         * modules/time (Makefile.am): Likewise.
323         * modules/unistd (Makefile.am): Likewise.
324         * modules/utime-h (Makefile.am): Likewise.
325         * modules/wchar (Makefile.am): Likewise.
327 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
329         canonicalize, canonicalize-lgpl: remove lint
330         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
331         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
332         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
333         Sort shared include directives, for consistency.
334         (IF_LINT): New macro.
335         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
336         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
337         New macros.
338         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
339         * lib/canonicalize.c (canonicalize_filename_mode_stk):
340         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
342 2020-12-24  Bruno Haible  <bruno@clisp.org>
344         spawn-pipe: Use posix_spawn by default on native Windows.
345         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
346         (create_pipe): Use it to decide among the two possible implementations.
347         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
349 2020-12-24  Bruno Haible  <bruno@clisp.org>
351         unistd-safer: Implement pipe_safer on native Windows.
352         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
353         * modules/unistd-safer (Depends-on): Add pipe-posix.
355 2020-12-24  Bruno Haible  <bruno@clisp.org>
357         execute: Use posix_spawn by default on native Windows.
358         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
359         (execute): Use it to decide among the two possible implementations.
361 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
363         canonicalize-lgpl: merge proposed libc changes
364         This merges the changes proposed for glibc in:
365         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
366         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
367         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
368         unconditionally.
369         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
370         (ISSLASH) [_LIBC]: Remove.
372 2020-12-24  Bruno Haible  <bruno@clisp.org>
374         posix_spawn-internal: Implement for native Windows.
375         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
376         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
377         do_dup2, do_close): New functions.
378         (__spawni): Implement on native Windows.
379         * modules/posix_spawn-internal (Depends-on): Add filename,
380         concat-filename, findprog-in, malloca, windows-spawn.
381         * doc/posix-functions/posix_spawn.texi: Update.
382         * doc/posix-functions/posix_spawnp.texi: Likewise.
384 2020-12-24  Bruno Haible  <bruno@clisp.org>
386         windows-spawn: Export another auxiliary function.
387         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
388         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
389         extracted from spawnpvech.
390         (spawnpvech): Use it.
392 2020-12-24  Bruno Haible  <bruno@clisp.org>
394         windows-spawn: Export some more auxiliary functions.
395         * lib/windows-spawn.h: Include <stdbool.h>.
396         (struct inheritable_handles): New type.
397         (init_inheritable_handles, compose_handles_block,
398         free_inheritable_handles): New declarations.
399         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
400         New functions, based on spawnvech.
401         (free_inheritable_handles): New function.
402         (spawnpvech): Use them.
404 2020-12-24  Bruno Haible  <bruno@clisp.org>
406         windows-spawn: Export another auxiliary function.
407         * lib/windows-spawn.h (compose_envblock): New declaration.
408         * lib/windows-spawn.c (compose_envblock): New function, extracted from
409         spawnpvech.
410         (spawnpvech): Use it.
412 2020-12-24  Bruno Haible  <bruno@clisp.org>
414         windows-spawn: Export an auxiliary function.
415         * lib/windows-spawn.h (compose_command): New declaration.
416         * lib/windows-spawn.c (compose_command): New function, extracted from
417         spawnpvech.
418         (spawnpvech): Use it.
420 2020-12-24  Bruno Haible  <bruno@clisp.org>
422         posix_spawn* tests: Add support for native Windows.
423         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
424         like Cygwin.
425         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
426         SIGHUP and SIGPIPE. On native Windows, don't call
427         posix_spawnattr_setsigmask.
428         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
429         * tests/test-posix_spawn-fchdir.c (main): Likewise.
430         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
431         output from Cygwin's 'pwd' program.
432         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
433         executable-shell-script part of the test.
434         * tests/test-posix_spawnp-script.c (main): Likewise.
435         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
436         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
437         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
438         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
439         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
440         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
441         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
442         test the POSIX_SPAWN_PORTED conditional.
443         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
444         Define the POSIX_SPAWN_PORTED conditional here.
446 2020-12-24  Bruno Haible  <bruno@clisp.org>
448         sh-filename: Add support for native Windows.
449         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
451 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
453         careadlinkat: improve warning line number
454         This propagates an idea first used in canonicalize-lgpl.
455         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
456         New macro.
457         (careadlinkat): Use it.
459         linkat: use eloop-threshold
460         * lib/linkat.c: Include eloop-threshold.h.
461         Do not include sys/param.h.
462         (MAXSYMLINKS): Remove.
463         (link_follow, linkat_follow): Use __eloop_threshold instead
464         of MAXSYMLINKS.
465         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
466         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
468         canonicalize-lgpl: use eloop-threshold
469         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
470         (MAXSYMLINKS, __eloop_threshold): Remove.
471         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
473         eloop-threshold: new module
474         * config/srclist.txt: Add a comment about it.
475         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
477         canonicalize: prefer faccessat to stat
478         A proper faccessat doesn't have the EOVERFLOW problem, and can be
479         more efficient as it needn't gather data from the filesystem to
480         fill in struct stat.  So use stat only if faccessat is absent,
481         or when checking for symlink loops in canonicalize.c.
482         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
483         Include fcntl.h, for AT_EACCESS.
484         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
485         (file_accessible): New function, based on faccessat but with
486         a fallback to stat and with an EOVERFLOW workaround.
487         (dir_check): Use it.
488         (dir_suffix): New static constant.
489         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
490         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
491         (__faccessat) [!_LIBC]: Define.
492         (realpath_stk): Use dir_suffix now.
493         * lib/canonicalize.c (canonicalize_filename_mode_stk):
494         If logical, don't check each component's existence; just check
495         at the end, as that's enough.
496         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
497         (gl_CANONICALIZE_LGPL_SEPARATE):
498         Require gl_FUNC_FACCESSAT_EOVERFLOW,
499         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
500         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
501         as the code does not use HAVE_READLINK.
502         * modules/canonicalize, modules/canonicalize-lgpl (Files):
503         Add m4/faccessat.m4, m4/lstat.m4.
504         (Depends-on): Add fcntl-lh.
506         faccessat: work around F_OK EOVERFLOW bug
507         * doc/posix-functions/faccessat.texi: Mention the problem.
508         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
509         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
510         for F_OK and EOVERFLOW, which means we can return 0.
511         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
512         (gl_FUNC_FACCESSAT): Use it.
514         stat failing with EOVERFLOW implies existence
515         * lib/euidaccess.c (euidaccess):
516         * lib/file-has-acl.c (file_has_acl):
517         * lib/link.c (link, rpl_link):
518         * lib/mkdir.c (rpl_mkdir):
519         * lib/mkfifo.c (rpl_mkfifo):
520         * lib/mknod.c (rpl_mknod):
521         * lib/ptsname_r.c (__ptsname_r):
522         * lib/symlink.c (rpl_symlink):
523         * lib/symlinkat.c (rpl_symlinkat):
524         * lib/unlink.c (rpl_unlink):
525         * lib/unlinkat.c (rpl_unlinkat):
526         * lib/utime.c (utime):
527         If stat fails with EOVERFLOW the file exists, so treat it that way
528         in file-existence tests that do not need struct stat values.
530         canonicalize-lgpl: remove freea macro
531         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
533         canonicalize, canonicalize-lgpl: fix symlink bug
534         Problem reported by Adhemerval Zanella in:
535         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
536         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
537         (suffix_requires_dir_check, dir_check): New functions.
538         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
539         closer to the related GCC diagnostics.
540         * lib/canonicalize-lgpl.c (realpath_stk):
541         * lib/canonicalize.c (canonicalize_file_mode_stk):
542         Use them to fix a bug with .../symlink-to-regular-file/ etc.
543         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
544         (realpath_stk): New function,
545         with the contents of the old __realpath and a new scratch buffer arg.
546         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
547         (__realpath): Use it.
548         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
549         Add test cases for the bugs.
551 2020-12-24  Bruno Haible  <bruno@clisp.org>
553         execute: Treat signalled processes like wait-process does.
554         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
555         (execute): Recognize the case where the exit code indicates a signalled
556         child process.
557         * tests/test-execute-main.c (main): Update expected test result.
558         * modules/execute (Depends-on): Add sys_wait.
560 2020-12-24  Bruno Haible  <bruno@clisp.org>
562         windows-spawn: Improve errno upon failure on native Windows.
563         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
564         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
565         * tests/executable-script.sh: New file.
566         * tests/test-posix_spawn-script.c (main): Also try executing
567         executable-script.sh.
568         * tests/test-posix_spawnp-script.c (main): Likewise.
569         * tests/test-execute-script.c (main): Likewise.
570         * tests/test-spawn-pipe-script.c (main): Likewise.
571         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
572         * modules/posix_spawnp-tests (Files): Likewise.
573         * modules/execute-tests (Files): Likewise.
574         * modules/spawn-pipe-tests (Files): Likewise.
576 2020-12-24  Bruno Haible  <bruno@clisp.org>
578         findprog-in: Improve errno upon failure on native Windows.
579         * lib/findprog-in.c (find_in_given_path): If the file basename has no
580         dot and the search with a suffix returned no result, do also a search
581         without a suffix, and set errno = ENOEXEC if we find a file in this way.
582         * tests/test-spawn-pipe-script.c (main): Update expected errno.
584 2020-12-23  Bruno Haible  <bruno@clisp.org>
586         posix_spawn, posix_spawnp: Fix execution of scripts.
587         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
588         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
589         or posix_spawnp allows unsecure execution of scripts.
590         * doc/posix-functions/posix_spawn.texi: Document the script execution
591         problem.
592         * doc/posix-functions/posix_spawnp.texi: Likewise.
594 2020-12-23  Bruno Haible  <bruno@clisp.org>
596         Add unit tests regarding execution of scripts.
597         * tests/executable-script: New file.
598         * tests/executable-shell-script: New file.
599         * tests/test-posix_spawn-script.c: New file.
600         * tests/test-posix_spawnp-script.c: New file.
601         * tests/test-execute-script.c: New file.
602         * tests/test-spawn-pipe-script.c: New file.
603         * modules/posix_spawn-tests (Files): Add
604         tests/test-posix_spawn-script.c, tests/executable-script,
605         tests/executable-shell-script.
606         (Makefile.am): Compile and run test-posix_spawn-script.
607         * modules/posix_spawnp-tests (Files): Add
608         tests/test-posix_spawnp-script.c, tests/executable-script,
609         tests/executable-shell-script.
610         (Makefile.am): Compile and run test-posix_spawnp-script.
611         * modules/execute-tests (Files): Add tests/test-execute-script.c,
612         tests/executable-script, tests/executable-shell-script.
613         (Makefile.am): Compile and run test-execute-script.
614         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
615         tests/executable-script, tests/executable-shell-script.
616         (Makefile.am): Compile and run test-spawn-pipe-script.
618 2020-12-23  Bruno Haible  <bruno@clisp.org>
620         Don't execute scripts without '#!' marker through /bin/sh.
621         This reflects the change done in glibc through
622         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
623         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
624         * lib/spawni.c (internal_function): Remove macro.
625         (script_execute): Remove function.
626         (__spawni): Don't invoke script_execute.
627         * lib/execute.c (execute): Disable the ENOEXEC handling.
628         * lib/spawn-pipe.c (create_pipe): Likewise.
629         * NEWS: Mention the change.
631 2020-12-23  Bruno Haible  <bruno@clisp.org>
633         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
634         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
635         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
636         * lib/spawni.c (__spawni): Update function parameters.
638 2020-12-23  Bruno Haible  <bruno@clisp.org>
640         posix_spawn tests: Add two more tests.
641         * tests/test-posix_spawn-inherit0.c: New file, based on
642         tests/test-posix_spawn-open2.c.
643         * tests/test-posix_spawn-inherit1.c: New file, based on
644         tests/test-posix_spawn-open2.c.
645         * modules/posix_spawn-tests (Files): Add them.
646         (Depends-on): Add fflush.
647         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
648         test-posix_spawn-inherit1.
650 2020-12-23  Bruno Haible  <bruno@clisp.org>
652         posix_spawn tests: Add another test.
653         * tests/test-posix_spawn-open2.c: New file, based on
654         tests/test-posix_spawn-open1.c.
655         * modules/posix_spawn-tests (Files): Add it.
656         (Makefile.am): Compile and run test-posix_spawn-open1.
658 2020-12-20  Bruno Haible  <bruno@clisp.org>
660         Remove support for broken <wchar.h> in AIX 3.
661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
663 2020-12-20  Bruno Haible  <bruno@clisp.org>
665         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
666         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
667         * lib/mbchar.h: Likewise.
668         * lib/mbiter.h: Likewise.
669         * lib/mbuiter.h: Likewise.
670         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
671         * lib/mbfile.h: Don't include <time.h>.
672         * lib/mbswidth.h: Update comment.
673         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
674         <wchar.h>.
675         * lib/wctype.in.h: Likewise.
676         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
677         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
678         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
679         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
680         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
681         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
682         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
683         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
684         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
685         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
686         AC_FUNC_MBRTOWC): Likewise.
687         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
688         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
689         Likewise.
690         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
691         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
692         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
694         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
696         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
697         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
698         Likewise.
699         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
700         gl_WCSRTOMBS_NULL): Likewise.
701         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
702         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
703         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
705         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
706         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
707         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
708         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
709         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
710         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
712 2020-12-20  Bruno Haible  <bruno@clisp.org>
714         isnanf: Fix autoconf test.
715         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
717 2020-12-20  Bruno Haible  <bruno@clisp.org>
719         Remove some of the support for obsolete IRIX 4 and 5.
720         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
721         libsun.
722         * tests/init.sh (setup_): Don't talk about IRIX 5.
724 2020-12-20  Bruno Haible  <bruno@clisp.org>
726         filemode: Remove Cray support.
727         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
728         (filemodestring): Don't produce an 'M' type.
729         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
730         * m4/st_dm_mode.m4: Remove file.
731         * modules/filemode (Files): Remove it.
733 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
735         free-posix: assume glibc 2.33 fixes this.
736         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
737         Use compile-time test rather than guessing for cross-builds.
739 2020-12-20  Bruno Haible  <bruno@clisp.org>
741         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
742         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
743         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
744         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
746 2020-12-20  Bruno Haible  <bruno@clisp.org>
748         float: Fix compilation error when gnulib's float.h exists twice.
749         Reported by Santiago Vila <sanvila@unex.es>.
750         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
752 2020-12-19  Bruno Haible  <bruno@clisp.org>
754         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
755         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
756         Don't trust _POSIX_VERSION for this test.
758 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
760         free-posix: port to GNU/Linux
761         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
762         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
763         other GNU/Linux hosts.
765 2020-12-19  Bruno Haible  <bruno@clisp.org>
767         free-posix: Add tests.
768         * tests/test-free.c: New file.
769         * tests/macros.h (ASSERT_NO_STDIO,
770         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
771         WRITE_TO_STDERR): New macros.
772         * modules/free-posix-tests: New file.
774 2020-12-18  Bruno Haible  <bruno@clisp.org>
776         free-posix: Add C++ declaration test.
777         * tests/test-stdlib-c++.cc (free): New declaration.
779 2020-12-18  Bruno Haible  <bruno@clisp.org>
781         free-posix: New module, renamed from 'free'.
782         * modules/free-posix: Renamed from modules/free.
783         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
785         not GNULIB_FREE.
786         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
787         GNULIB_FREE.
788         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
789         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
790         what it does.
791         * NEWS: Mention that module 'free' no longer exists.
792         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
793         * modules/canonicalize-lgpl (Depends-on): Likewise.
795 2020-12-18  Bruno Haible  <bruno@clisp.org>
797         free: Remove support for obsolete platforms.
798         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
799         CANNOT_FREE_NULL.
800         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
801         * modules/free (Description): Update.
802         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
804 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
806         intprops: port to ICC 2021.1 Beta 20201112
807         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
808         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
809         Add a clause for other compilers that claim to support
810         __builtin_mul_overflow_p, since we might as well find out about
811         slackers other than Clang and ICC.
812         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
813         like older GCCs even when it claims to be a newer one.
815 2020-12-18  Bruno Haible  <bruno@clisp.org>
817         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
818         Reported by Stefan Liebler <stli@linux.ibm.com> in
819         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
820         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
821         GCC 5.x and 6.x.
822         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
823         GCC 5.x and 6.x.
825 2020-12-17  Bruno Haible  <bruno@clisp.org>
827         free: Fix warning.
828         Reported by Pádraig Brady <P@draigBrady.com> in
829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
830         * lib/stdlib.in.h (free): New declaration.
831         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
832         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
833         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
834         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
835         'free' as a macro here.
836         * modules/free (Depends-on): Add stdlib.
837         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
839 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
841         canonicalize-lgpl: fix AIX test failures
842         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
843         Problem reported by Bruno Haible in:
844         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
845         * lib/canonicalize-lgpl.c: Include sys/stat.h.
846         (__realpath): When testing a file name ending in '/', use stat
847         rather than readlink, so that it does the right thing on AIX.
848         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
850         canonicalize: omit second readlink when not needed
851         * lib/canonicalize.c (canonicalize_filename_mode_stk):
852         Omit second readlink when (can_exist != CAN_MISSING
853         && startlen != 0 && !logical).  Simplify.
855         canonicalize: remove arbitrary 8192-byte limit
856         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
857         like GNU Hurd that do not define the PATH_MAX macro, and similarly
858         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
859         using scratch buffers.  Lessen the number of differences between
860         the two source files, to simplify this and future maintenance.
861         * lib/canonicalize-lgpl.c (__realpath):
862         * lib/canonicalize.c (canonicalize_filename_mode_stk):
863         Use scratch buffers instead of malloc and malloca.  This avoids
864         the need for alloca, and avoids the need for malloc in most cases.
865         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
866         easier to compare, e.g., by sorting include files and by switching
867         to the GNU convention of calling file names "file names", not
868         "path names".  Include stdbool.h, scratch_buffer.h.
869         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
870         (malloca) [_LIBC]: Remove.
871         [!_LIBC]: Do not include malloca.h.
872         (get_path_max): New function, so that pathconf is called only in
873         the rare and dubious case when when RESOLVED is not null and
874         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
875         file name, as we care about the longest file name starting from
876         "/" (not from the input file name), and POSIX does not specify
877         what pathconf does on a non-directory file anyway.  If PATH_MAX is
878         not defined, do not worry about overriding a path_max of 0, and do
879         not let path_max exceed IDX_MAX.
880         (__realpath): Remove an assumption that file name components
881         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
882         the Hurd, presumably).
883         When allocating the result, allocate it to just the right size;
884         this costs nothing when the result is smaller than 1023 bytes,
885         and for larger results it's probably worth the CPU to call realloc,
886         as canonicalize.c already does.
887         * lib/canonicalize.c: Include attribute.h.
888         Do not include pathmax.h or xgetcwd.h.
889         (PATH_MAX): Do not define, so file names longer than 8192 bytes
890         work on platforms with no fixed limit.
891         (canonicalize_filename_mode_stk): New function, with
892         the content of the old canonicalize_filename_mode.
893         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
894         since the scratch buffers now do memory management for us.
895         Use rawmemchr instead of adding strlen.
896         Use mempcpy instead of mempcpy + size.
897         Assume free preserves errno.
898         (canonicalize_filename_mode): Use it.
899         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
900         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
901         scratch_buffer, stdbool, xalloc-die.
902         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
903         malloca, realloc-posix.  Add scratch_buffer, stdbool.
905         canonicalize-lgpl: simplify merge to glibc
906         This patch lessens the differences between git glibc
907         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
908         The (perhaps wishful) goal is to make them identical.
909         * lib/canonicalize-lgpl.c [!_LIBC]:
910         Include <libc-config.h>, not config.h.
911         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
912         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
913         Do not include alloca.h, since we use malloca now.
914         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
915         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
916         freea so that the mainline code can be kept #ifdef free.
917         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
918         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
919         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
920         __eloop_threshold.  All uses of their definiens changed.
921         (SIZE_MAX): Remove; no longer needed.
922         (alloc_failed): Remove, and remove all instances.
923         No need for alloc_failed now that free preserves errno.
924         (__realpath): Default path_max to 1024 instead of 8192, as that’s
925         the glibc tradition and is safer when the 2nd argument is null.
926         Use __rawmemchr instead of strchr.
927         Use __mempcpy where appropriate.
928         Simplify test for overflow so that it does not need SIZE_MAX.
929         Do not preserve errno around free or freea calls; no longer needed.
930         Mark __realpath with libc_hidden_def.
931         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
932         malloc-posix, mempcpy, realloc-posix, rawmemchr.
933         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
935         free: preserve errno
936         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
937         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
938         platforms that do not preserve errno.
939         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
940         Also, define CANNOT_FREE_NULL if free cannot free NULL.
941         * modules/free (configure.ac): Also replace 'free' if
942         it does not preserve errno.
944         idx: simplify IDX_MAX, remove IDX_WIDTH
945         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
946         to UNSIGNED_IDX_T.
947         (IDX_WIDTH): Remove, since it’s not used and its value
948         arguably should be PTRDIFF_WIDTH anyway.
950 2020-12-16  Bruno Haible  <bruno@clisp.org>
952         posix_spawn_file_actions_addfchdir-tests: Rename test.
953         * tests/test-posix_spawn-fchdir.c: Renamed from
954         tests/test-posix_spawn5.c.
955         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
956         Update.
958         posix_spawn_file_actions_addchdir-tests: Rename test.
959         * tests/test-posix_spawn-chdir.c: Renamed from
960         tests/test-posix_spawn4.c.
961         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
962         Update.
964         posix_spawn-tests: Rename test.
965         * tests/test-posix_spawn-open1.c: Renamed from
966         tests/test-posix_spawn3.c.
967         * modules/posix_spawn-tests (Files, Makefile.am): Update.
969         posix_spawnp-tests: Rename test.
970         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
971         tests/test-posix_spawn2.c.
972         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
973         tests/test-posix_spawn2.in.sh.
974         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
976         posix_spawnp-tests: Rename test.
977         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
978         tests/test-posix_spawn1.c.
979         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
980         tests/test-posix_spawn1.in.sh.
981         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
983 2020-12-14  Bruno Haible  <bruno@clisp.org>
985         findprog-in: Allow overriding the current directory.
986         * lib/findprog.h (find_in_given_path): Add directory argument.
987         * lib/findprog-in.c (find_in_given_path): Likewise.
988         * lib/execute.c (execute): Update caller.
989         * lib/spawn-pipe.c (create_pipe): Likewise.
990         * lib/windows-spawn.c (spawnpvech): Likewise.
991         * NEWS: Mention the change.
993 2020-12-14  Bruno Haible  <bruno@clisp.org>
995         posix_spawn-internal: Make better use of 'const'.
996         * lib/spawn_int.h (__spawni): Does not need write access to the elements
997         of argv and envp.
998         * lib/spawni.c (__spawni, script_execute): Likewise.
999         * lib/spawn.c (posix_spawn): Update caller.
1000         * lib/spawnp.c (posix_spawnp): Likewise.
1002 2020-12-14  Bruno Haible  <bruno@clisp.org>
1004         spawn: Make it compile on native Windows.
1005         * modules/spawn (Depends-on): Add signal-h.
1007 2020-12-14  Bruno Haible  <bruno@clisp.org>
1009         windows-spawn: Avoid shadowing a variable.
1010         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1012 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1014         string: port memchr macro to AIX 7.2 XLC
1015         Its <string.h> defines a memchr macro to help inlining.
1016         * lib/string.in.h (memchr): #undef before #defining.
1018         canonicalize: fix AIX test failures
1019         Problem reported by Bruno Haible in:
1020         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1021         * lib/canonicalize.c (canonicalize_filename_mode):
1022         When testing a file name ending in '/', use stat rather than
1023         readlink, so that it does the right thing on AIX.
1024         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1025         recent changes in the Gnulib readlink module.
1027         Assume readlink/readlinkat ERANGE fix
1028         * lib/areadlink-with-size.c (areadlink_with_size):
1029         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1030         * lib/careadlinkat.c (readlink_stk):
1031         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1032         since the Gnulib readlink and readlinkat modules now fix that.
1034         getcwd: port to AIX
1035         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1036         in case our sys/stat.h #defined a function macro with the same name.
1038         readlink, readlinkat: add ERANGE portability
1039         Fix some portability issues with Gnulib's readlink and readlinkat,
1040         notably mostly working around the ERANGE problem in AIX and HP-UX.
1041         * doc/posix-functions/readlink.texi:
1042         * doc/posix-functions/readlinkat.texi:
1043         ERANGE problem is mostly fixed now.  Mention AIX problem with
1044         trailing / and EINVAL.  Lessen differences between these two files.
1045         * lib/readlink.c (rpl_readlink):
1046         * lib/readlinkat.c (rpl_readlinkat):
1047         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1048         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1049         Lessen spurious differences between the readlink and readlinkat code.
1050         * lib/readlinkat.c (rpl_readlinkat):
1051         Fix bug where stat was used where fstatat was intended.
1052         * m4/readlink.m4 (gl_FUNC_READLINK):
1053         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1054         to identify readlink problems more precisely.  All uses changed.
1055         Guess no on AIX or HP-UX for this variable.
1056         Add check for whether readlink truncates results,
1057         and define new macro READLINK_TRUCATE_BUG accordingly.
1058         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1059         Also check gl_cv_func_readlink_trailing_slash when deciding
1060         whether to replace readlinkat.
1061         * modules/readlinkat (Depends-on): Most dependencies are also
1062         needed if replacing readlinkat.  fstatat is different, as it
1063         is needed only if replacing an existing readlinkat.
1065 2020-12-13  Bruno Haible  <bruno@clisp.org>
1067         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1068         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1069         the stdin_handle and/or stdout_handle.
1071 2020-12-12  Bruno Haible  <bruno@clisp.org>
1073         Fix gnulib-tool error when some modules occur in tests/.
1074         * doc/gnulib.texi (Specification): Update statistics.
1075         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1076         (Using AC_LIBOBJ): New section.
1077         * check-AC_LIBOBJ: New file.
1078         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1079         * modules/fopen-gnu (Files): Add lib/fopen.c.
1080         * modules/memmem (Files): Add lib/memmem.c.
1081         * modules/renameat (Files): Add lib/at-func2.c.
1082         * modules/strcasestr (Files): Add lib/strcasestr.c.
1083         * modules/strstr (Files): Add lib/strstr.c.
1085 2020-12-11  Bruno Haible  <bruno@clisp.org>
1087         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1088         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1089         elements of argv.
1090         * lib/sh-quote.c (shell_quote_argv): Likewise.
1091         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1092         the return type.
1093         * lib/windows-spawn.c (prepare_spawn): Likewise.
1094         * lib/os2-spawn.h (prepare_spawn): Likewise.
1095         * lib/os2-spawn.c (prepare_spawn): Likewise.
1096         * lib/execute.h (execute): Does not need write access to the elements of
1097         prog_argv.
1098         * lib/execute.c (execute): Likewise.
1099         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1100         Likewise.
1101         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1102         create_pipe_out): Likewise.
1103         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1104         Likewise.
1105         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1106         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1107         * lib/javaexec.h (execute_fn): Does not need write access to the
1108         elements of prog_argv.
1109         * lib/javaexec.c (execute_java_class): Update variable types and remove
1110         casts to 'char *'.
1111         * lib/csharpexec.h (execute_fn): Does not need write access to the
1112         elements of prog_argv.
1113         * lib/csharpexec.c (execute_csharp_using_mono,
1114         execute_csharp_using_sscli): Update variable types and remove casts to
1115         'char *'.
1116         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1117         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1118         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1119         is_jikes_present): Update variable types and remove casts to 'char *'.
1120         * lib/javaversion.c (execute_and_read_line): Does not need write access
1121         to the elements of prog_argv.
1122         * lib/csharpcomp.c (compile_csharp_using_mono,
1123         compile_csharp_using_sscli): Update variable types and remove casts to
1124         'char *'.
1125         * tests/test-sh-quote.c (main): Update variable types and remove casts
1126         to 'char *'.
1127         * tests/test-execute-main.c (main): Update variable types and remove
1128         casts to 'char *'.
1129         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1130         remove casts to 'char *'.
1131         * NEWS: Mention the changes.
1133 2020-12-11  Bruno Haible  <bruno@clisp.org>
1135         execute-tests: Fix compilation error with MSVC.
1136         * tests/test-execute-child.c (is_device): With _fstat, use
1137         'struct _stat', not 'struct stat'.
1139 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1141         vararrays: just use 2.70
1142         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1143         and later, since Autoconf 2.70 matches Gnulib now.
1145         sys_types: just use 2.70
1146         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1147         Reindent to match Autoconf sources.
1148         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1150         stdint: port to Autoconf 2.70
1151         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1152         instead of assuming that AC_INCLUDES_DEFAULT does it.
1153         The old code relied on AC_INCLUDES_DEFAULT being called
1154         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1155         but this does not occur in Autoconf 2.70.
1157         pid_t.m4: just use 2.70
1158         * m4/pid_t.m4 (AC_TYPE_PID_T):
1159         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1161         largefile: just use 2.70
1162         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1163         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1165         AC_C_RESTRICT: update from Autoconf
1166         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1167         as a prerequisite, not 2.69c, since 2.70 is now out.
1168         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1169         Try __restrict__ before __restrict.
1171         extensions: update from Autoconf
1172         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1173         Provide a default implementation for Autoconf 2.69 or earlier.
1174         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1175         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1177         alloca: update from Autoconf
1178         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1179         Trivial update to match Autoconf 2.70.
1181 2020-12-11  Bruno Haible  <bruno@clisp.org>
1183         memchr: Work around memory overrun bug on AIX 7.2.
1184         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1185         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1187 2020-12-11  Bruno Haible  <bruno@clisp.org>
1189         execute-tests: Fix compilation error on AIX in 32-bit mode.
1190         * tests/test-execute-child.c: In order to get the original definition of
1191         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1192         include the system's <sys/stat.h> and use it before including other
1193         header files.
1195 2020-12-10  Bruno Haible  <bruno@clisp.org>
1197         windows-spawn: Relicense under LGPLv2+.
1198         * modules/windows-spawn (License): Change to LGPLv2+.
1200 2020-12-10  Bruno Haible  <bruno@clisp.org>
1202         execute, spawn-pipe: Fix memory leak on native Windows.
1203         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1204         * lib/windows-spawn.c: Don't include xalloc.h.
1205         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1206         prepare_spawn.
1207         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1208         elements of *new_argv together.
1209         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1210         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1211         * lib/os2-spawn.c: Don't include xalloc.h.
1212         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1213         elements of *new_argv together.
1214         * lib/execute.c: Include xalloc.h.
1215         (execute): Check return value of prepare_spawn. Free the memory
1216         allocated by prepare_spawn.
1217         * modules/execute (Depends-on): Add xalloc-die.
1218         * lib/spawn-pipe.c: Include xalloc.h.
1219         (create_pipe): Check return value of prepare_spawn. Free the memory
1220         allocated by prepare_spawn.
1221         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1223 2020-12-10  Bruno Haible  <bruno@clisp.org>
1225         findprog-in: Relicense under LGPLv2+.
1226         Paul Smith's approval is in
1227         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1228         * modules/findprog-in (License): Change to LGPLv2+.
1230 2020-12-10  Bruno Haible  <bruno@clisp.org>
1232         findprog-in: Don't exit upon out-of-memory.
1233         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1234         code.
1235         * lib/findprog-in.c: Don't include xalloc.h.
1236         (find_in_given_path): Call concatenated_filename, not
1237         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1238         return NULL with errno set.
1239         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1240         concat-filename, strdup-posix, malloc-posix.
1242 2020-12-09  Bruno Haible  <bruno@clisp.org>
1244         fmaf: Work around a bug on FreeBSD 12.2/arm.
1245         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1246         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1248 2020-12-09  Bruno Haible  <bruno@clisp.org>
1250         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1251         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1252         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1253         * lib/glthread/threadlib.c: Include <errno.h>.
1254         (glthread_in_use): For FreeBSD, provide an alternative implementation
1255         that uses pthread_key_create.
1257 2020-12-09  Bruno Haible  <bruno@clisp.org>
1259         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1260         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1261         not 'isnan'.
1263 2020-12-08  Bruno Haible  <bruno@clisp.org>
1265         std-gnu11: Make compatible with Autoconf 2.70.
1266         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1267         use.
1269 2020-12-08  Bruno Haible  <bruno@clisp.org>
1271         argp: Avoid undefined behaviour when invoking qsort().
1272         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1273         Reported by Jeffrey Walton <noloader@gmail.com> in
1274         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1275         * lib/argp-help.c (group_cmp): Remove third argument.
1276         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1277         upon hol_cluster_cmp.
1278         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1279         (hol_entry_cmp): Rewritten to implement a total order.
1281 2020-12-08  Bruno Haible  <bruno@clisp.org>
1283         argp: Improve comments.
1284         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1285         null pointer.
1286         (struct hol_entry): Fix comment regarding sort order of group.
1287         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1288         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1289         (hol_cluster_is_child, argp_hol): Move functions.
1290         (HOL_ENTRY_PTRCMP): Remove unused macro.
1292 2020-12-08  Bruno Haible  <bruno@clisp.org>
1294         argp: Don't pass invalid arguments to isspace() and isalnum().
1295         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1296         before passing it to isspace() or isalnum().
1298 2020-12-08  Bruno Haible  <bruno@clisp.org>
1300         argp: Don't rely on undefined behaviour of _tolower().
1301         Patch by Eric Blake
1302         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1303         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1304         not upper-case.  Pass correct range to tolower.
1306 2020-12-07  Bruno Haible  <bruno@clisp.org>
1308         unicodeio: Fix wrong result on FreeBSD.
1309         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1310         characters on all platforms.
1312 2020-12-07  Bruno Haible  <bruno@clisp.org>
1314         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1315         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1316         FreeBSD systems.
1318 2020-12-07  Bruno Haible  <bruno@clisp.org>
1320         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1321         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1322         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1323         trivially of sbrk is not available.
1324         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1325         exist in FreeBSD 12.2/arm64.
1326         * doc/glibc-functions/brk.texi: Likewise.
1328 2020-12-07  Bruno Haible  <bruno@clisp.org>
1330         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1331         Suggested by Zack Weinberg in
1332         <https://savannah.gnu.org/support/?110294>.
1333         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1334         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1336 2020-12-07  Bruno Haible  <bruno@clisp.org>
1338         Tweak the Windows oldnames workaround.
1339         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1341         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1342         always.
1343         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1344         * lib/stdlib.in.h (putenv): Likewise.
1346 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1348         doc: fix flat address space discussion
1349         * doc/gnulib-readme.texi (Other portability assumptions):
1350         Move the all-bits-zero assumption outside the flat address space
1351         section, since the two issues are independent.
1353         doc: document -static-libubsan more
1354         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1355         -static-libubsan a bit more.  Mostly cons.
1357 2020-12-06  Bruno Haible  <bruno@clisp.org>
1359         doc: Add more details regarding the undefined behaviour sanitizer.
1360         * doc/gnulib-readme.texi (High Quality): Describe
1361         -fsanitize-undefined-trap-on-error better.
1363 2020-12-06  Bruno Haible  <bruno@clisp.org>
1365         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1366         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1367         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1368         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1369         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1370         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1371         a preprocessor #define.
1372         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1373         * lib/search.in.h (lfind, lsearch): Likewise.
1374         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1375         Likewise.
1376         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1377         * lib/string.in.h (memccpy, strdup): Likewise.
1378         * lib/sys_stat.in.h (chmod, umask): Likewise.
1379         * lib/time.in.h (tzset): Likewise.
1380         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1381         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1382         read, rmdir, swab, unlink, write): Likewise.
1383         * lib/utime.in.h (utime): Likewise.
1384         * lib/wchar.in.h (wcsdup): Likewise.
1385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1386         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1387         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1389         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1390         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1391         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1392         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1394         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1395         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1396         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1397         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1398         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1400 2020-12-06  Bruno Haible  <bruno@clisp.org>
1402         doc: Mention some missing function declarations.
1403         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1404         AIX.
1405         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1406         FreeBSD.
1407         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1408         Cygwin.
1409         * doc/pastposix-functions/fcvt.texi: Likewise.
1410         * doc/pastposix-functions/gcvt.texi: Likewise.
1412 2020-12-06  Bruno Haible  <bruno@clisp.org>
1414         doc: Tweak example.
1415         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1416         'print'.
1418 2020-12-06  Bruno Haible  <bruno@clisp.org>
1420         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1421         * tests/test-filenamecat.c: Include idx.h.
1422         (main): Mark prefixlen as nonnegative.
1423         * modules/filenamecat-tests (Depends-on): Add idx.
1425 2020-12-06  Bruno Haible  <bruno@clisp.org>
1427         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1428         * lib/time_rz.c: Include idx.h.
1429         (save_abbr): Mark zone_size as nonnegative.
1430         * modules/time_rz (Depends-on): Add idx.
1432 2020-12-06  Bruno Haible  <bruno@clisp.org>
1434         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1435         * lib/parse-datetime.y: Include idx.h.
1436         (textint): Mark digits as nonnegative.
1437         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1438         dsts_seen, times_seen, zones_seen as nonnegative.
1439         (lookup_word): Mark wordlen as nonnegative.
1440         (yylex): Mark count as nonnegative.
1441         (parse_datetime2): Mark tzsize as nonnegative.
1442         * modules/parse-datetime (Depends-on): Add idx.
1444 2020-12-06  Bruno Haible  <bruno@clisp.org>
1446         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1447         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1448         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1449         nonnegative.
1450         * modules/fnmatch (Depends-on): Add idx.
1452 2020-12-06  Bruno Haible  <bruno@clisp.org>
1454         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1455         * lib/c-stack.c: Include idx.h.
1456         (die): Mark buflen as nonnegative.
1457         * modules/c-stack (Depends-on): Add idx.
1459 2020-12-06  Bruno Haible  <bruno@clisp.org>
1461         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1462         * lib/backupfile.c: Include idx.h.
1463         (numbered_backup): Mark base_offset as nonnegative.
1464         (backupfile_internal): Likewise.
1465         * modules/backup-rename (Depends-on): Add idx.
1466         * modules/backupfile (Depends-on): Likewise.
1468 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1470         doc: fix curved quotes issue
1471         * doc/gnulib.texi: Set txicodequoteundirected and
1472         txicodequotebacktick so that ` and ' in examples do not generate
1473         curved single quotes that do the wrong thing when cut and pasted.
1475         doc: mention static and dynamic checking
1476         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1477         for static and dynamic checking.
1479         intprops: Add INT_ADD_OK etc.
1480         * doc/intprops.texi (Checking Integer Overflow): New section.
1481         * lib/intprops.h: From a suggestion by Bruno Haible in:
1482         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1483         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1485         doc: move exotic platfroms to Target Platforms
1486         * doc/gnulib-intro.texi (Supported Platforms)
1487         (Formerly Supported Platforms, Unsupported Platforms):
1488         New subsections, split off from Target Platforms.
1489         (Unsupported Platforms): Move the exotic-platform stuff here ...
1490         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1491         section.
1493         doc: mention intptr_t etc. and IBM i
1494         * doc/gnulib-readme.texi (Other portability assumptions):
1495         Mention intptr_t and uintptr_t, and that arithmetic on them
1496         works in the usual way.
1497         (Exotic platforms): New section, containing material from
1498         the old 'Integer Portability' section.  Also mention IBM i.
1499         * doc/intprops.texi (Wraparound Arithmetic):
1500         Say that the macros work on unsigned integers too.
1501         (Integer Portability): Remove.
1503 2020-12-04  Bruno Haible  <bruno@clisp.org>
1505         utime: Fix a test failure on macOS 10.13.
1506         Reported by Martin Storsjö <martin@martin.st> in
1507         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1508         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1509         slashes on files.
1510         * lib/utime.c (utime): Add alternative implementation for Unix
1511         platforms.
1512         * modules/utime (Depends-on): Add stat.
1513         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1514         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1515         trailing-slash bug.
1516         * doc/posix-functions/open.texi: Likewise.
1517         * doc/posix-functions/stat.texi: Likewise.
1518         * doc/posix-functions/symlink.texi: Likewise.
1520 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1522         intprops: update doc and mention Unisys
1523         * doc/gnulib-readme.texi (Other portability assumptions):
1524         Also mention ptrdiff_t when talking about widths and overflow.
1525         * doc/intprops.texi (Integer Properties): Summarize new section.
1526         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1527         evaluates its argument.
1528         (Integer Bounds): Fix typo.
1529         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1530         Document that the _WRAPV macros now support pointers to unsigned
1531         integers.
1532         (Integer Range Overflow): Update SEI CERT citation.
1533         (Integer Portability): New subsection, which mentions
1534         the oddball Unisys platforms as non-Gnulib targets.
1536 2020-12-03  Bruno Haible  <bruno@clisp.org>
1538         idx: Clarify that idx_t always behaves like a signed type.
1539         Suggested by Paul Eggert in
1540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1541         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1542         Don't test UNSIGNED_IDX_T.
1544 2020-12-03  Bruno Haible  <bruno@clisp.org>
1546         idx: New module.
1547         * lib/idx.h: New file.
1548         * modules/idx: New file.
1549         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1550         ptrdiff_t.
1551         * lib/canonicalize.c: Likewise.
1552         * modules/canonicalize-lgpl (Depends-on): Add idx.
1553         * modules/canonicalize (Depends-on): Likewise.
1555 2020-12-03  Bruno Haible  <bruno@clisp.org>
1557         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1558         Reported by Martin Storsjö <martin@martin.st> in
1559         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1560         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1561         (main): Return a different exit code at each point. Allow 100 KB extra
1562         memory consumption.
1563         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1564         doesn't work" diagnostic.
1566 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1568         canonicalize: refactor can_mode flag
1569         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1570         (multiple_bits_set): ... this new static function.  Uses changed.
1571         (canonicalize_filename_mode): Refactor for clarity to avoid
1572         modifying the CAN_MODE argument.
1574         canonicalize: prefer signed integer types
1575         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1576         (seen_triple, canonicalize_filename_mode): Prefer signed to
1577         unsigned types where either will do, as they avoid some glitches
1578         in comparisons and can trap on overflow when debugging.
1580         canonicalize: fix most of another EOVERFLOW issue
1581         * lib/canonicalize.c (canonicalize_filename_mode):
1582         Do not call stat if fewer than 20 symlinks have been traversed.
1583         This avoids EOVERFLOW failure in the common case where there
1584         are not that many symlinks, while continuing to catch loops
1585         (or fail due to EOVERFLOW) in the unusual case when there
1586         are many symlinks to traverse.
1588         canonicalize: do not assume symlinks have st_ino
1589         * lib/canonicalize.c (canonicalize_filename_mode):
1590         When checking for loops, use st_dev and st_ino from the parent
1591         directory not from the symlink, as pre-2017 POSIX says these
1592         members are not reliable for symlinks.  Couple this with START
1593         (the remaining file name to be resolved), not NAME (the whole file
1594         name with START as its suffix).
1595         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1597         canonicalize: fix EOVERFLOW bug
1598         * lib/canonicalize.c (canonicalize_filename_mode):
1599         When testing whether a directory entry is a symbolic link, or a
1600         directory or other, do not use lstat or stat or
1601         areadlink_with_size.  Just use areadlink, as this suffices and it
1602         avoids the EOVERFLOW problem that lstat and stat have.
1603         * modules/canonicalize (Depends-on): Depend on areadlink instead
1604         of areadlink-with-size and stat.
1606         canonicalize-lgpl: fix EOVERFLOW bug
1607         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1608         (__realpath): Do not use lstat.  Just use readlink, as this
1609         suffices and it avoids the EOVERFLOW problem that lstat has.
1610         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1612 2020-12-02  Bruno Haible  <bruno@clisp.org>
1614         strsignal-tests: Fix test failure on macOS 10.13.
1615         Reported by Martin Storsjö <martin@martin.st> in
1616         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1617         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1618         to be longer than the expected result.
1620 2020-12-02  Bruno Haible  <bruno@clisp.org>
1622         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1623         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1624         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1626 2020-12-02  Bruno Haible  <bruno@clisp.org>
1628         spawn-pipe: Allow caller to specify directory for the subprocess.
1629         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1630         Add directory argument.
1631         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1632         (create_pipe): Add directory argument. If specified, resolve the program
1633         file name and make it absolute, first. Pass the directory to spawnpvech
1634         and posix_spawn_file_actions_addchdir.
1635         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1636         argument.
1637         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1638         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1639         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1640         * NEWS: Mention the change.
1641         * lib/csharpcomp.c (compile_csharp_using_mono,
1642         compile_csharp_using_sscli): Update.
1643         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1644         is_gcj_43): Update.
1645         * lib/javaversion.c (execute_and_read_line): Update.
1646         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1647         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1649 2020-12-02  Bruno Haible  <bruno@clisp.org>
1651         execute: Allow caller to specify directory for the subprocess.
1652         * lib/execute.h (execute): Add directory argument.
1653         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1654         (execute): Add directory argument. If specified, resolve the program
1655         file name and make it absolute, first. Pass the directory to spawnpvech
1656         and posix_spawn_file_actions_addchdir.
1657         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1658         posix_spawn, posix_spawn_file_actions_addchdir.
1659         * tests/test-execute-main.c: Add test for passing a directory.
1660         * tests/test-execute-child.c: Likewise.
1661         * tests/test-execute.sh: Update.
1662         * modules/execute-tests (Depends-on): Add mkdir.
1663         * NEWS: Mention the change.
1664         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1665         * lib/csharpexec.c (execute_csharp_using_mono,
1666         execute_csharp_using_sscli): Update.
1667         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1668         compile_using_javac, compile_using_jikes, is_javac_present,
1669         is_jikes_present): Update.
1670         * lib/javaexec.c (execute_java_class): Update.
1672 2020-12-01  Bruno Haible  <bruno@clisp.org>
1674         vma-iter: Add support for macOS11/arm64.
1675         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1676         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1677         and by Martin Storsjö <martin@martin.st> in
1678         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1679         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1681 2020-12-01  Bruno Haible  <bruno@clisp.org>
1683         spawn-pipe: Fix handling of OS/2 kLIBC.
1684         Reported by KO Myung-Hun <komh78@gmail.com> in
1685         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1686         * modules/spawn-pipe (configure.ac): Use the common idiom for
1687         recognizing the OS/2 operating system.
1689 2020-11-30  Bruno Haible  <bruno@clisp.org>
1691         execute: Fix uninitialized use of errno.
1692         * lib/execute.c (execute): Preserve errno across several system calls.
1694 2020-11-30  Bruno Haible  <bruno@clisp.org>
1696         access tests: Fix test failure on native Windows.
1697         * tests/test-access.c (main): Change permissions of f2 file before
1698         attempting to remove it.
1700 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1702         faccessat: link with $(LIB_EACCESS)
1703         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1704         module depends on euidaccess.
1706 2020-11-30  Bruno Haible  <bruno@clisp.org>
1708         execute, spawn-pipe: Make multithread-safe on native Windows.
1709         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1710         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1711         (spawnpvech): New declaration.
1712         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1713         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1714         (_): Remove macro.
1715         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1716         undup_safer_noinherit): Remove functions.
1717         (spawnpvech): New function.
1718         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1719         cloexec, dup2, error, gettext-h.
1720         * lib/execute.c: Include msvc-nothrow.h.
1721         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1722         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1723         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1724         instead of _spawnvpe.
1725         * modules/execute (Depends-on): Add msvc-nothrow.
1726         * modules/spawn-pipe (Depends-on): Likewise.
1728 2020-11-30  Bruno Haible  <bruno@clisp.org>
1730         execute, spawn-pipe: Improve documentation.
1731         * lib/execute.h: Describe progname, prog_path, prog_argv.
1732         * lib/spawn-pipe.h: Likewise.
1734 2020-11-30  Bruno Haible  <bruno@clisp.org>
1736         execute tests: Add more tests.
1737         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1738         inherited file descriptors >= 3.
1739         * tests/test-execute-child.c: Likewise.
1740         * tests/test-execute.sh: Update.
1742 2020-11-30  Bruno Haible  <bruno@clisp.org>
1744         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1745         Reported by comex <comexk@gmail.com> in
1746         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1747         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1748         don't expect an ELF header.
1750 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1752         bitset: use integer_length in table implementation
1753         * lib/bitset/table.c (tbitset_list_reverse): Use
1754         BITSET_FOR_EACH_BIT_REVERSE.
1756 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1758         bitset: use integer_length in list implementation
1759         * lib/bitset/list.c (lbitset_list_reverse): Use
1760         BITSET_FOR_EACH_BIT_REVERSE.
1762 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1764         bitset: use integer_length in vector implementation
1765         * lib/bitset/array.c (vbitset_list_reverse): Use
1766         BITSET_FOR_EACH_BIT_REVERSE.
1768 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1770         bitset: use integer_length in array implementation
1771         * modules/bitset (Depends-on): Add integer_length_l.
1772         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1773         * lib/bitset/array.c (abitset_list_reverse): Use it.
1775 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1777         bitset: style: use consistent names
1778         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1779         and 'boffset' as 'bitoff', for consistency with the other
1780         implementations.
1781         * bitset/table.c (tbitset_list_reverse): Likewise.
1783 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1785         bitset: style: sort header
1786         * lib/bitset/base.h (bitset_ffs): Rename as...
1787         (bitset_ffs_): this.
1788         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1790 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1792         bitset: tests: check BITSET_FOR_EACH_REVERSE
1793         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1794         Check BITSET_FOR_EACH_REVERSE.
1796 2020-11-29  Bruno Haible  <bruno@clisp.org>
1798         spawn-pipe tests: Fix test failure with MSVC.
1799         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1800         (gl_msvc_invalid_parameter_handler): New function.
1801         (main): Set a global invalid-parameter handler.
1802         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1804 2020-11-29  Bruno Haible  <bruno@clisp.org>
1806         execute: Add tests.
1807         * tests/test-execute.sh: New file.
1808         * tests/test-execute-main.c: New file.
1809         * tests/test-execute-child.c: New file.
1810         * modules/execute-tests: New file.
1812 2020-11-29  Bruno Haible  <bruno@clisp.org>
1814         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1815         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1816         works.
1817         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1818         fallback implementation as on Haiku.
1819         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1820         effective.
1821         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1823 2020-11-29  Bruno Haible  <bruno@clisp.org>
1825         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1826         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1827         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1828         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1829         * lib/windows-spawn.c: Remove modifications for kLIBC.
1830         * modules/spawn-pipe (Files): Add the new files.
1831         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1833 2020-11-28  Bruno Haible  <bruno@clisp.org>
1835         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1836         Reported by Paul Eggert in
1837         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1838         * m4/sparcv8+.m4: New file.
1839         * modules/sparcv8+: New file.
1840         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1842 2020-11-28  Bruno Haible  <bruno@clisp.org>
1844         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1845         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1847 2020-11-28  Bruno Haible  <bruno@clisp.org>
1849         windows-spawn: New module.
1850         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1851         implementations.
1852         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1853         * modules/windows-spawn: New file.
1854         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1855         * lib/spawn-pipe.c: Likewise.
1856         * modules/execute (Files): Remove lib/w32spawn.h.
1857         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1858         xalloc.
1859         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1860         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1861         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1862         xalloc.
1863         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1865 2020-11-27  Bruno Haible  <bruno@clisp.org>
1867         ssfmalloc tests: Port to macOS 11.
1868         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1870 2020-11-26  Bruno Haible  <bruno@clisp.org>
1872         Fix dependencies of modules that use '_exit' on native Windows.
1873         Reported by Jim Meyering in
1874         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1875         * modules/_Exit (Depends-on): Add unistd.
1876         * modules/closein (Depends-on): Likewise.
1877         * modules/closeout (Depends-on): Likewise.
1878         * modules/forkpty (Depends-on): Likewise.
1879         * modules/posix_spawn-internal (Depends-on): Likewise.
1880         * modules/savewd (Depends-on): Likewise.
1881         * modules/stat-time-tests (Depends-on): Likewise.
1883 2020-11-26  Bruno Haible  <bruno@clisp.org>
1885         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1886         * modules/raise-tests (Depends-on): Add unistd.
1887         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1889 2020-11-25  Jim Meyering  <meyering@fb.com>
1891         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1892         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1893         non-NULL, since we don't bother handing strdup failure.
1895         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1896         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1897         * tests/test-raise.c: Include unistd.h.
1898         (handler): Use _exit, not exit.
1900 2020-11-23  Bruno Haible  <bruno@clisp.org>
1902         Use the correct printf format attribute for mingw.
1903         Reported by Reuben Thomas <rrt@sc3d.org> in
1904         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1906         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1907         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1909         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1910         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1911         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1912         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1913         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1914         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1916         * modules/vasnprintf (Depends-on): Add stdio.
1917         * lib/vasnprintf.h: Include <stdio.h>.
1918         (asnprintf, vasnprintf): Use the standard printf format attribute.
1920         * modules/xvasprintf (Depends-on): Add stdio.
1921         * lib/xvasprintf.h: Include <stdio.h>.
1922         (xasprintf, xvasprintf): Use the standard printf format attribute.
1924         * modules/xprintf (Depends-on): List stdio first.
1925         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1926         depends on GNULIB_VPRINTF_POSIX.
1927         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1928         GNULIB_VFPRINTF_POSIX.
1930         * modules/c-vasnprintf (Depends-on): Add stdio.
1931         * lib/c-vasnprintf.h: Include <stdio.h>.
1932         (c_vasnprintf): Use the standard printf format attribute.
1934         * modules/c-vasprintf (Depends-on): Add stdio.
1935         * lib/c-vasprintf.h: Include <stdio.h>.
1936         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1938         * modules/c-vsnprintf (Depends-on): Add stdio.
1939         * lib/c-vsnprintf.h: Include <stdio.h>.
1940         (c_vsnprintf): Use the standard printf format attribute.
1942         * modules/c-snprintf (Depends-on): Add stdio.
1943         * lib/c-snprintf.h: Include <stdio.h>.
1944         (c_snprintf): Use the standard printf format attribute.
1946         * modules/c-xvasprintf (Depends-on): Add stdio.
1947         * lib/c-xvasprintf.h: Include <stdio.h>.
1948         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1950         * modules/error (Depends-on): Depend on stdio always.
1951         * lib/error.h: Include <stdio.h>.
1952         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1953         (error, error_at_line): Use a printf format attribute that depends on
1954         GNULIB_VFPRINTF_POSIX.
1955         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1956         _GL_ATTRIBUTE_FORMAT_PRINTF.
1958         * modules/verror (Depends-on): Add stdio.
1959         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1960         (verror, verror_at_line): Use the standard printf format attribute.
1961         * lib/verror.c: Include "error.h".
1963         * modules/argp (Depends-on): Add stdio.
1964         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1965         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1967         * modules/libtextstyle-optional (Depends-on): Add stdio.
1968         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1969         printf format attribute.
1971         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1972         format attribute.
1974 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1976         selinux-at, selinux-h: use const correct declarations
1977         * lib/se-selinux.in.h: Use const for "set" functions,
1978         to match current selinux, and support cleaner user code.
1979         * lib/selinux-at.c: Likewise.
1980         * lib/selinux-at.h: Likewise.
1982 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1984         canonicalize-lgpl: fix memory leak
1985         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1986         which could have occurred if BUF was so large that malloc was
1987         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1988         this eliminates the need to free BUF separately.
1990 2020-11-22  Bruno Haible  <bruno@clisp.org>
1992         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1993         * modules/xvasprintf (Depends-on): Add xalloc.
1994         * modules/pipe-filter-gi (Depends-on): Likewise.
1995         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1996         * modules/spawn-pipe (Depends-on): Likewise.
1998 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2000         bootstrap: add option hooks
2001         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2002         (bootstrap_option_hook): Likewise.
2003         (usage): Call bootstrap_print_option_usage_hook.
2005 2020-11-22  Bruno Haible  <bruno@clisp.org>
2007         argp: Don't break getprogname on non-glibc systems.
2008         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2009         program_invocation_name and program_invocation_short_name.
2011 2020-11-22  Bruno Haible  <bruno@clisp.org>
2013         doc: Document <link.h>.
2014         * doc/glibc-headers/link.texi: New file.
2015         * doc/gnulib.texi: Include it.
2017 2020-11-22  Bruno Haible  <bruno@clisp.org>
2019         doc: Add references to the LSB.
2020         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2021         * doc/posix-functions/*.texi: Likewise.
2023 2020-11-22  Bruno Haible  <bruno@clisp.org>
2025         doc: Fix a makeinfo warning (regression 2020-11-03).
2026         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2028 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2030         parse-datetime: fix printf format typo
2031         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2032         previous patch to this file.  Problem reported by Chris Elvidge in
2033         <https://bugs.gnu.org/44763#32>.
2035         setlocale-null-tests: work around GCC bug 44511
2036         * tests/test-setlocale_null-mt-all.c:
2037         * tests/test-setlocale_null-mt-one.c:
2038         Ignore -Wreturn-type, to work around GCC bug 44511.
2040         nl_langinfo-tests: work around GCC bug 44511
2041         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2042         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2043         Problem reported for GNU grep by Andreas Schwab
2044         <https://bugs.gnu.org/44535>.
2046         selinux-h: add stubs for selabel_open etc.
2047         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2048         because matchpathcon is deprecated in favor of selabel_open etc.,
2049         so this patch adds stubs for these functions.
2050         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2051         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2052         as it is needed for selabel_open and selinux/selinux.h declares
2053         this type here.
2054         * modules/selinux-h (Files): Add the new files.
2055         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2056         (lib_SOURCES): Add se-label.in.h, se-label.c.
2057         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2058         (selinux/label.h): New rule, mimicking selinux/context.h.
2059         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2060         (Include): Add selinux/label.h.
2062 2020-11-21  Bruno Haible  <bruno@clisp.org>
2064         Update after 'test-driver' in Automake changed.
2065         * build-aux/test-driver.diff: Rebase.
2067 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2069         read-file: remove dead assignment
2070         * lib/read-file.c (fread_file): Remove dead assignment when
2071         RF_SENSITIVE is set, flagged by clang-analyzer.
2073 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2075         bitset: tests: exercise the stats too
2077         * tests/test-bitset.c: Display the stats at the end of the test.
2078         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2079         last bin, display "256-..." rather that "256-511", since the last bin
2080         does count item greater than or equal to 256.
2082 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2084         bitset: tests: try harder to break it
2085         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2086         BITSET_LIST_SIZE.
2087         (main): Likewise.
2088         While at it, also exercise super small bitsets.
2090 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2092         bitset: use ffs where possible in the vector implementation
2093         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2095 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2097         bitset: use ffs where possible in the table implementation
2098         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2100 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2102         bitset: check empty and full bitsets
2103         * tests/test-bitset.c (check_zero, check_ones): New.
2104         (check_attributes): Use them.
2106 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2108         bitset: be sure to always return a value
2109         * lib/bitset/array.c (abitset_small_list): Always update *next and
2110         return a value.
2112 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2114         vcs-to-changelog: Expect spaces in file names
2115         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2117         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2118         tabs to spaces.
2119         (list_changes): Use tabs to identify file names.
2121 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2123         bitset: strengthen tests
2124         * tests/test-bitset.c (compare): Also check count.
2125         Deal only with random values, move the one-bit tests to...
2126         (check_one_bit): this new function.
2127         (check_attributes): Call it.
2129 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2131         bitset: fix iteration over table bitsets
2132         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2134 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2136         bitset: rename internal details for consistency
2137         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2139 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2141         bitset: test: run deterministic tests on several bitset sizes
2142         * tests/test-bitset.c (check_attributes): Run it with small and large
2143         sizes.
2145 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2147         bitset: use ffs where possible in the list implementation
2148         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2150 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2152         bitset: use ffs where possible in array implementation
2153         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2155 2020-11-17  Bruno Haible  <bruno@clisp.org>
2157         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2158         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2159         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2160         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2161         C++ mode.
2163 2020-11-17  Bruno Haible  <bruno@clisp.org>
2165         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2166         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2167         is always declared.
2168         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2169         declared.
2171 2020-11-17  Bruno Haible  <bruno@clisp.org>
2173         Fix link errors on AIX.
2174         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2175         * modules/getumask (Link): Link with $(LIBTHREAD).
2176         * modules/getumask-tests (Makefile.am): Link test-getumask with
2177         $(LIBTHREAD).
2178         * modules/supersede (Link): Link with $(LIBTHREAD).
2179         * modules/supersede-tests (Makefile.am): Link test-supersede with
2180         $(LIBTHREAD).
2181         * modules/fatal-signal (Link): New section.
2182         * modules/execute (Link): New section.
2183         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2184         * modules/javaexec (Link): Link with $(LIBTHREAD).
2185         * modules/spawn-pipe (Link): New section.
2186         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2187         $(LIBTHREAD).
2188         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2189         * modules/javacomp (Link): Link with $(LIBTHREAD).
2190         * modules/javaversion (Link): Link with $(LIBTHREAD).
2191         * modules/pipe-filter-gi (Link): New section.
2192         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2193         test-pipe-filter-gi2-main with $(LIBTHREAD).
2194         * modules/pipe-filter-ii (Link): New section.
2195         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2196         test-pipe-filter-ii2-main with $(LIBTHREAD).
2197         * modules/term-style-control (Link): New section.
2198         * modules/term-style-control-tests (Makefile.am): Link
2199         test-term-style-control-hello, test-term-style-control-yes with
2200         $(LIBTHREAD).
2201         * modules/wait-process (Link): New section.
2202         * modules/nonblocking-pipe-tests (Makefile.am): Link
2203         test-nonblocking-pipe-main with $(LIBTHREAD).
2204         * modules/nonblocking-socket-tests (Makefile.am): Link
2205         test-nonblocking-socket-main with $(LIBTHREAD).
2207 2020-11-16  Bruno Haible  <bruno@clisp.org>
2209         Fix link errors on platforms with libunistring.
2210         * modules/c32isalnum (Link): New section.
2211         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2212         $(LIBUNISTRING).
2213         * modules/c32isalpha (Link): New section.
2214         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2215         $(LIBUNISTRING).
2216         * modules/c32isblank (Link): New section.
2217         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2218         $(LIBUNISTRING).
2219         * modules/c32iscntrl (Link): New section.
2220         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2221         $(LIBUNISTRING).
2222         * modules/c32isdigit (Link): New section.
2223         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2224         $(LIBUNISTRING).
2225         * modules/c32isgraph (Link): New section.
2226         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2227         $(LIBUNISTRING).
2228         * modules/c32islower (Link): New section.
2229         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2230         $(LIBUNISTRING).
2231         * modules/c32isprint (Link): New section.
2232         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2233         $(LIBUNISTRING).
2234         * modules/c32ispunct (Link): New section.
2235         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2236         $(LIBUNISTRING).
2237         * modules/c32isspace (Link): New section.
2238         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2239         $(LIBUNISTRING).
2240         * modules/c32isupper (Link): New section.
2241         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2242         $(LIBUNISTRING).
2243         * modules/c32isxdigit (Link): New section.
2244         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2245         $(LIBUNISTRING).
2246         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2247         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2248         $(LIBUNISTRING).
2250 2020-11-16  Bruno Haible  <bruno@clisp.org>
2252         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2253         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2254         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2255         * modules/getumask-tests (Makefile.am): Link test-getumask with
2256         $(LIBINTL).
2257         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2258         * modules/supersede-tests (Makefile.am): Link test-supersede with
2259         $(LIBINTL).
2260         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2261         $(LIBINTL).
2263 2020-11-16  Bruno Haible  <bruno@clisp.org>
2265         getumask: Document link dependencies.
2266         * modules/getumask (Link): New section.
2268 2020-11-16  Bruno Haible  <bruno@clisp.org>
2270         Update link dependencies in modules after 2020-09-09 change.
2271         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2272         * modules/mkdtemp (Link): Likewise.
2273         * modules/mkostemp (Link): Likewise.
2274         * modules/mkostemps (Link): Likewise.
2275         * modules/mkstemp (Link): Likewise.
2276         * modules/mkstemps (Link): Likewise.
2277         * modules/supersede (Link): Likewise.
2278         * modules/tmpfile (Link): Likewise.
2279         * modules/tmpfile-safer (Link): Likewise.
2281 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2283         getumask-tests: port to Solaris 10 etc.
2284         Problem reported by Tom Christensen in:
2285         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2286         * modules/getumask-tests (test_getumask_LDADD):
2287         Add $(LIB_CLOCK_GETTIME).
2289 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2291         bitset: use ffsl to accelerate iterations over set bits
2292         Suggested by Bruno Haible.
2293         * modules/bitset: Depend upon ffsl.
2294         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2295         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2297 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2299         bitset: more tests
2300         * tests/test-bitset.c (compare): Make it clear that the random values
2301         should not be modified.
2302         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2304 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2306         bitset: fix the copy from lbitset to other types
2307         * lib/bitset/list.c (lbitset_copy): Rename as...
2308         (lbitset_copy_): this.
2309         (lbitset_copy): New.
2310         Dispatch to heterogeneous/homogeneous copy.
2312 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2314         bitset: making debug traces more useful
2315         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2317         bitset: comment changes
2318         * lib/bitset.c: Move some documenting comments to...
2319         * lib/bitset.h: here.
2320         * lib/bitset/array.c: Fix some comments.
2322 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2324         careadlinkat: warn better about GCC bug 93644
2325         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2326         not in effect, use "#warning" to let builders know more clearly
2327         about GCC bug 93644, because the bug triggers even if no -W option
2328         is given to GCC.
2330 2020-11-13  Jim Meyering  <meyering@fb.com>
2332         hard-locale-tests: avoid a -Wstrict-prototypes warning
2333         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2334         changing "main ()" to "main (void)". This was the only case that
2335         triggered a warning when building grep with --enable-gcc-warnings.
2337 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2339         time_rz: simplify CVE-2017-7476 fix
2340         * lib/time_rz.c: Do not include limits.h; I think it was included
2341         under the mistaken impression that limits.h defines SIZE_MAX.
2342         (SIZE_MAX): Remove.
2343         (save_abbr): Put string length into a ptrdiff_t variable,
2344         so that the size comparison works naturally.  This
2345         fixes CVE-2017-7476 in a cleaner way.
2347         parse-datetime: streamline overflow checking
2348         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2349         did not work for unsigned destinations, and since time_t might
2350         be unsigned that meant it did not work for time_t destinations.
2351         This limitation of INT_ADD_WRAPV has been fixed, so we can
2352         now streamline parse-datetime.y a bit.
2353         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2354         has not been used for a while.
2355         (yylex, parse_datetime2): Assume C99 declarations after statements.
2356         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2357         to TYPE_MINIMUM.
2358         (parse_datetime2): No need for time_overflow now that
2359         INT_ADD_WRAPV works for unsigned results.
2361         parse-datetime-tests: port to Alpine Linux 3.12.1
2362         * tests/test-parse-datetime.c: Include errno.h for errno,
2363         and unistd.h for _SC_TZNAME_MAX and sysconf.
2364         (main): In the outlandishly-long time zone abbreviation test,
2365         do not exceed TZNAME_MAX as this has undefined behavior,
2366         and on Alpine Linux 3.12.1 it makes the test fail.
2368 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2370         mgetgroups: avoid warning with clang
2371         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2372         so disable -Wpointer-sign for all clang versions.
2374 2020-11-07  Bruno Haible  <bruno@clisp.org>
2376         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2377         Reported by Simon Josefsson in
2378         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2379         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2380         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2381         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2383 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2385         tests: pacify Sun C 5.9
2386         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2387         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2388         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2389         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2390         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2391         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2392         Remove unreachable ‘return NULL;’s.
2394         tests: port better to XLC 12.01
2395         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2396         even in code that is not executed, as IBM XLC 12.01 complains "The
2397         subscript -1 is less than zero."
2398         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2399         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2400         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2401         arguments than are required by the macro definition."
2403 2020-11-03  Bruno Haible  <bruno@clisp.org>
2405         aligned-malloc: Use fixes from the new modules.
2406         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2407         aligned_alloc, memalign.
2408         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2410 2020-11-03  Bruno Haible  <bruno@clisp.org>
2412         aligned_alloc: Add tests.
2413         * tests/test-aligned_alloc.c: New file.
2414         * modules/aligned_alloc-tests: New file.
2416         aligned_alloc: New module.
2417         * lib/stdlib.in.h (aligned_alloc): New declaration.
2418         * lib/aligned_alloc.c: New file.
2419         * m4/aligned_alloc.m4: New file.
2420         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2421         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2422         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2423         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2424         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2425         * modules/aligned_alloc: New file.
2426         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2427         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2428         AIX bug.
2430 2020-11-03  Bruno Haible  <bruno@clisp.org>
2432         posix_memalign: Add tests.
2433         * tests/test-posix_memalign.c: New file.
2434         * modules/posix_memalign-tests: New file.
2436         posix_memalign: New module.
2437         * lib/stdlib.in.h (posix_memalign): New declaration.
2438         * lib/posix_memalign.c: New file.
2439         * m4/posix_memalign.m4: New file.
2440         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2441         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2442         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2443         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2444         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2445         * modules/posix_memalign: New file.
2446         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2447         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2448         the OpenBSD bug.
2450 2020-11-03  Bruno Haible  <bruno@clisp.org>
2452         memalign: Add tests.
2453         * tests/test-memalign.c: New file.
2454         * modules/memalign-tests: New file.
2456         memalign: New module.
2457         * modules/memalign: New file.
2458         * doc/glibc-functions/memalign.texi: Mention the new module.
2460 2020-11-03  Bruno Haible  <bruno@clisp.org>
2462         verify tests: Fix crash with GCC (regression 2020-11-02).
2463         * tests/test-verify.c (main): Fix initializer of s.
2465 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2467         mountlist: recognize more file system types as remote
2469         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2470         "remote" file systems from stat.c in coreutils.
2472 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2474         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2475         * tests/test-verify.c (main): Initialize state variable.
2476         Reported by Bruno Haible for GCC 5.4.0.
2478 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2480         dfa.h: support inclusion from C++
2481         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2482         C++ code.  The latter was suggested by Arnold Robbins.
2484 2020-11-01  Bruno Haible  <bruno@clisp.org>
2486         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2487         * tests/test-ssfmalloc.c: Include <limits.h>.
2488         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2490 2020-11-01  Bruno Haible  <bruno@clisp.org>
2492         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2493         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2495 2020-11-01  Jim Meyering  <meyering@fb.com>
2497         dfa-tests: test for today's invalid-merge fix
2498         * tests/test-dfa-invalid-merge.sh: New file.
2499         * modules/dfa-tests (Files): Add it.
2500         (TESTS): Add it.
2502 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2504         dfa: retain sequences of similar nodes in optimization
2505         DFA was merging similar nodes when it should not.  For example,
2506         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2507         is not merged.  Problem reported by Gonzalo Padrino in
2508         https://bugs.gnu.org/44351
2509         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2510         optimization.
2512 2020-11-01  Jim Meyering  <meyering@fb.com>
2514         test-dfa-match-aux.c: accept EREs, not BREs
2515         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2516         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2518 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2520         verify tests: avoid -Wmissing-declarations warnings
2521         * tests/test-verify.c (test_assume_expressions): Add declaration.
2522         (test_assume_optimization): Likewise.
2523         (test_assume_noreturn): Likewise.
2524         (main): Move down after all other definitions.  While at it, also
2525         call test_assume_expressions and test_assume_optimization as a
2526         runtime check.
2528 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2530         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2531         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2532         Perhaps these macros should be removed, as they’re not in either
2533         POSIX or GNU.  They could be moved to stat-macros.h, which would
2534         be cleaner in some sense.
2536 2020-10-25  Bruno Haible  <bruno@clisp.org>
2538         ssfmalloc tests: Small tweaks.
2539         * tests/test-ssfmalloc.c: Add comments.
2540         (alloc_pages): Don't require PROT_EXEC bits.
2541         (block_sizes): Add more small sizes, for better coverage of
2542         ssfmalloc-bitmap.h.
2544         ssfmalloc tests: Portability to Minix.
2545         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2546         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2547         * m4/mmap-anon.m4: Update comment.
2549         ssfmalloc: Portability to AIX.
2550         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2551         (Link): New section.
2552         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2553         $(LIBTHREAD).
2555         ssfmalloc: Portability to Cygwin.
2556         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2557         (pg_offset_t): Define depending on PAGESIZE_MAX.
2558         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2559         (PAGESIZE_MAX): New macro.
2561         ssfmalloc: Fix buffer overrun in bitmap search.
2562         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2563         word *words_end.
2565 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2567         doc: mention ‘restrict’ and C++
2568         * doc/gnulib-readme.texi (C99 features assumed): Document
2569         that ‘restrict’ should be avoided in C++ code.
2571 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2573         selinux-at, selinux-h: port to SELinux 3.1
2574         The new release finally deprecated the typedef 'security_context_t',
2575         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2576         Use the simpler 'char *' instead.
2577         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2578         (lgetfilecon): Likewise.
2579         (fgetfilecon): Likewise.
2580         (map_to_failure): Likewise.
2581         (rpl_getfilecon): Likewise.
2582         (rpl_lgetfilecon): Likewise.
2583         (rpl_fgetfilecon): Likewise.
2584         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2585         (getcon): Adjust type of context parameter.
2586         (freecon): Likewise.
2587         (getfscreatecon): Likewise.
2588         (setfscreatecon): Likewise.
2589         (matchpathcon): Likewise.
2590         (getfilecon): Likewise.
2591         (lgetfilecon): Likewise.
2592         (fgetfilecon): Likewise.
2593         (setfilecon): Likewise.
2594         (lsetfilecon): Likewise.
2595         (fsetfilecon): Likewise.
2596         (security_check_context): Likewise.
2597         (security_check_context_raw): Likewise.
2598         (setexeccon): Likewise.
2599         (security_compute_create): Likewise.
2600         * lib/selinux-at.c (getfileconat): Likewise.
2601         (lgetfileconat): Likewise.
2602         (setfileconat): Likewise.
2603         (lsetfileconat): Likewise.
2604         * lib/selinux-at.h: Likewise.
2606 2020-10-19  Bruno Haible  <bruno@clisp.org>
2608         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2609         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2610         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2611         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2612         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2613         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2614         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2616 2020-10-18  Bruno Haible  <bruno@clisp.org>
2618         ssfmalloc: Add tests.
2619         * tests/test-ssfmalloc.c: New file.
2620         * modules/ssfmalloc-tests: New file.
2622         ssfmalloc: New module.
2623         * lib/ssfmalloc.h: New file.
2624         * lib/ssfmalloc-bitmap.h: New file.
2625         * modules/ssfmalloc: New file.
2627 2020-10-18  Bruno Haible  <bruno@clisp.org>
2629         wchar: Fix configure test result on some versions of AIX.
2630         Reported by Clément Chigot <clement.chigot@atos.net> in
2631         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2632         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2633         systems.
2635 2020-10-18  Bruno Haible  <bruno@clisp.org>
2637         time: Fix warning about asctime when asctime is not used.
2638         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2639         invocation.
2641 2020-10-18  Bruno Haible  <bruno@clisp.org>
2643         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2644         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2645         '_GL_ATTRIBUTE_CONST'.
2646         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2647         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2648         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2649         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2650         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2651         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2652         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2654 2020-10-18  Bruno Haible  <bruno@clisp.org>
2656         obstack: Fix a clang warning.
2657         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2659 2020-10-16  Bruno Haible  <bruno@clisp.org>
2661         hash: Rename hash_delete to hash_remove.
2662         * lib/hash.h (hash_remove): Renamed from hash_delete.
2663         (hash_delete): New declaration.
2664         * lib/hash.c (hash_remove): Renamed from hash_delete.
2665         (hash_delete): New function.
2666         * tests/test-hash.c (main): Update.
2667         * lib/fts-cycle.c (leave_dir): Likewise.
2668         * NEWS: Mention the change.
2670 2020-10-16  Bruno Haible  <bruno@clisp.org>
2672         hash, xhash: Make usable from C++.
2673         * lib/hash.h: Add extern "C".
2675 2020-10-16  Bruno Haible  <bruno@clisp.org>
2677         hash, xhash: Move comments to the .h file.
2678         * lib/hash.c: Move comments meant for the user from here...
2679         * lib/xhash.c: ... and here...
2680         * lib/hash.h: ... to here.
2682 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2684         Don't declare an intention to modify the return value of strerror.
2685         * tests/test-perror2.c (main): Assign the return value of strerror to a
2686         'const char *' variable.
2688 2020-10-11  Bruno Haible  <bruno@clisp.org>
2690         *printf: Avoid "expanded before it was required" warning.
2691         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2692         AC_DEFUN_ONCE.
2694 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2696         getprogname: Add support for OpenServer 6 and UnixWare 7.
2697         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2698         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2700 2020-10-11  Bruno Haible  <bruno@clisp.org>
2702         tests: Avoid a name clash on UnixWare.
2703         Reported by Tim Rice <tim@multitalents.net> in
2704         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2705         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2707 2020-10-11  Bruno Haible  <bruno@clisp.org>
2709         stdioext: Update comments regarding UnixWare.
2710         Reported by Tim Rice <tim@multitalents.net> in
2711         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2712         * lib/fbufmode.c: Update comments.
2713         * lib/fflush.c: Likewise.
2714         * lib/fpending.c: Likewise.
2715         * lib/fpurge.c: Likewise.
2716         * lib/freadable.h: Likewise.
2717         * lib/freadable.c: Likewise.
2718         * lib/freadahead.c: Likewise.
2719         * lib/freading.h: Likewise.
2720         * lib/freading.c: Likewise.
2721         * lib/freadptr.c: Likewise.
2722         * lib/freadseek.c: Likewise.
2723         * lib/fseeko.c: Likewise.
2724         * lib/fseterr.c: Likewise.
2725         * lib/fwritable.h: Likewise.
2726         * lib/fwritable.c: Likewise.
2727         * lib/fwriting.h: Likewise.
2728         * lib/fwriting.c: Likewise.
2730 2020-10-11  Bruno Haible  <bruno@clisp.org>
2732         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2733         Reported by Tim Rice <tim@multitalents.net> in
2734         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2735         Uses the info from
2736         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2737         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2739 2020-10-11  Bruno Haible  <bruno@clisp.org>
2741         stdioext: Avoid compilation errors on UnixWare 7.
2742         Reported by Tim Rice <tim@multitalents.net> in
2743         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2744         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2745         * lib/fpurge.c: Likewise.
2746         * lib/freadable.h: Likewise.
2747         * lib/freading.h: Likewise.
2748         * lib/fwritable.h: Likewise.
2749         * lib/fwriting.h: Likewise.
2750         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2752         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2753         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2754         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2755         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2757 2020-10-11  Bruno Haible  <bruno@clisp.org>
2759         stdioext: Update comments regarding Cygwin.
2760         * lib/fpending.c: Update comments.
2761         * lib/fpurge.c: Likewise.
2762         * lib/freadable.h: Likewise.
2763         * lib/freadable.c: Likewise.
2764         * lib/freading.h: Likewise.
2765         * lib/freading.c: Likewise.
2766         * lib/fwritable.h: Likewise.
2767         * lib/fwritable.c: Likewise.
2768         * lib/fwriting.h: Likewise.
2769         * lib/fwriting.c: Likewise.
2771 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2773         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2774         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2775         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2777 2020-10-10  Bruno Haible  <bruno@clisp.org>
2779         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2780         Reported by Marc Nieper-Wißkirchen in
2781         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2782         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2783         gl_linked_iterator_from_to): Mark as 'pure'.
2784         (gl_linked_iterator_free): Mark as 'const'.
2785         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2786         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2787         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2788         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2789         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2790         (gl_tree_iterator_free): Mark as 'const'.
2791         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2792         'pure'.
2793         (gl_tree_iterator_free): Mark as 'const'.
2794         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2795         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2796         (gl_tree_iterator_free): Mark as 'const'.
2797         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2798         compare_position_threshold): Mark as 'pure'.
2799         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2800         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2801         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2802         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2803         'pure'.
2804         (gl_array_iterator_free): Mark as 'const'.
2805         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2806         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2807         (gl_array_iterator_free): Mark as 'const'.
2808         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2809         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2810         gl_array_iterator_atleast): Mark as 'pure'.
2811         (gl_array_iterator_free): Mark as 'const'.
2812         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2813         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2814         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2815         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2816         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2817         gl_carray_sortedlist_search): Mark as 'pure'.
2818         (gl_carray_iterator_free): Mark as 'const'.
2820 2020-10-10  Bruno Haible  <bruno@clisp.org>
2822         rbtree-list: Avoid possible compiler warnings.
2823         This mirrors the change of avltree-list on 2014-09-16.
2824         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2825         declaration. Add cast to void for ignored value of check_invariants.
2827 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2829         stack: New module.
2830         * MODULES.html.sh: Add entry for the stack module.
2831         * modules/stack: New file.
2832         * modules/stack-tests: New file.
2833         * lib/stack.h: New file.
2834         * tests/test-stack.c: New file.
2836 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2838         attribute: improve const, pure doc
2839         Problem reported by Marc Nieper-Wißkirchen in:
2840         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2841         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2842         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2844 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2846         thread: pacify GCC on Solaris 10
2847         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2848         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2849         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2850         where pthread_t is unsigned int.
2852 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2854         c-stack: avoid AS_IF
2855         Problem reported by Bruno Haible in:
2856         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2857         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2859         c-stack: pacify GCC 9.3.1 when using libsigsegv
2860         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2862 2020-10-04  Bruno Haible  <bruno@clisp.org>
2864         localename: Fix a couple of "unused parameter" warnings.
2865         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2866         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2867         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2868         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2869         parameter list.
2871 2020-10-04  Bruno Haible  <bruno@clisp.org>
2873         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2874         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2875         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2877         HAVE_SNPRINTF_TRUNCATION_C99.
2878         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2879         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2881 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2883         c-stack: streamline Solaris configuration
2884         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2885         the code is used only if a test for sigaltstack worked
2886         in some other way.
2887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2888         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2889         heuristic does not work).
2890         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2891         we no longer require the libsigsegv module.
2892         (Depends-on): Depend on havelib, not libsigsegv.
2894         c-stack: stop using SIGSTKSZ
2895         It’s been proposed to stop making SIGSTKSZ an integer constant:
2896         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2897         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2898         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2899         * lib/c-stack.c (SIGSTKSZ): Remove.
2900         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2901         All uses changed.
2903         c-stack: fix libsigsegv typo
2904         Problem reported by Bruno Haible in:
2905         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2906         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2907         to be used only on Solaris (exactly where it is not needed!).
2909 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2911         MODULES.html.sh: Fix typo.
2912         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2914 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2916         version-etc: pacify Oracle Studio 12.6
2917         Without this patch, it complains: "version-etc.h", line 64:
2918         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2919         pedantic mode.
2920         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2922 2020-09-27  Bruno Haible  <bruno@clisp.org>
2924         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2925         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2926         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2927         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2928         ourselves; don't use AC_DECL_SYS_SIGLIST.
2930 2020-09-27  Bruno Haible  <bruno@clisp.org>
2932         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2933         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2934         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2935         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2936         instead of _AC_COMPUTE_INT.
2938 2020-09-27  Bruno Haible  <bruno@clisp.org>
2940         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2941         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2942         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2943         Based on a patch by Paul Eggert.
2944         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2945         test STDC_HEADERS. Assume <stdlib.h> exists.
2946         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2948 2020-09-27  Bruno Haible  <bruno@clisp.org>
2950         Enable testing of prereleases of Autoconf 2.70.
2951         Suggested by Paul Eggert in
2952         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2953         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2954         >= 2.70.
2955         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2956         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2957         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2959 2020-09-27  Bruno Haible  <bruno@clisp.org>
2961         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2962         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2963         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2964         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2965         AC_PROG_CC, depending on the Autoconf version.
2967 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2969         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2970         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2971         of AC_HELP_STRING.
2972         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2974 2020-09-27  Bruno Haible  <bruno@clisp.org>
2976         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2977         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2978         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2979         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2981 2020-09-27  Bruno Haible  <bruno@clisp.org>
2983         extensions: Simplify last commit.
2984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2985         AC_GNU_SOURCE ever.
2987 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2989         extensions: require AC_GNU_SOURCE only for <=2.63
2990         Problem reported by Gavin Smith in:
2991         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2993         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2994         shouldn’t be needed after that, and Autoconf 2.70 complains about
2995         it being obsolete.
2997 2020-09-26  Bruno Haible  <bruno@clisp.org>
2999         regex-tests: Make test more robust.
3000         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3001         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3003 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3005         regex-tests: fix possible Turkish false-alarm
3006         * modules/regex-tests (Depends-on): Add wctype-h.
3007         * tests/test-regex.c: Include wctype.h.
3008         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3009         as the Turkish regex test assumes this.
3011         regex-tests: fix test and add debug output
3012         Perhaps this will fix the recent grep test failure reported at:
3013         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3014         At least, the debug output should help narrow down the failure.
3015         * tests/test-regex.c: Include stdarg.h, stdio.h.
3016         (exit_status): New var.
3017         (report_error): New function.
3018         (main): Use it to report failures to stdout instead of merely
3019         exiting with some nonzero status.  The status info alone isn’t
3020         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3021         regex before calling re_compile_pattern, fixing a portability bug.
3023         regex: no longer match glibc
3024         * config/srclist.txt: Comment out regex_internal.c for now.
3026 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3028         regex: fix ignore-case Turkish bug
3029         * lib/regex_internal.c (build_wcs_upper_buffer):
3030         Do not assume that converting single-byte character to upper
3031         yields a single-byte character.  This is not true for Turkish,
3032         where towupper (L'i') yields L'İ', which is not single-byte.
3033         * tests/test-regex.c (main): Test for this bug.
3035         regex: port to weird isascii platforms
3036         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3038 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3040         dfa: make dfasupported a global function
3041         * lib/dfa.c (dfasupported): Rename, and make it global.
3042         Update caller.
3043         * lib/dfa.h (dfasupported): Add prototype.
3045 2020-09-20  Bruno Haible  <bruno@clisp.org>
3047         canonicalize: Add support for UNC file names on native Windows.
3048         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3049         <https://savannah.gnu.org/bugs/?59079>.
3050         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3051         extend the prefix to include the server.
3053 2020-09-20  Bruno Haible  <bruno@clisp.org>
3055         supersede: Fix test failures on native Windows.
3056         * lib/supersede.c (open_supersede): Handle non-regular files on native
3057         Windows like on Solaris.
3058         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3060 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3062         test-stdalign: test Oracle Studio better
3063         * doc/posix-headers/stdalign.texi (stdalign.h):
3064         * tests/test-stdalign.c (main):
3065         Sun Studio Bug #2125432 seems to be fixed.
3067         c-stack: output diagnostic in single 'write'
3068         * lib/c-stack.c (die): In the typical case, use just one 'write'
3069         syscall to output the diagnostic, as this lessens interleaving.
3070         (die, c_stack_action): Assume C99.
3071         * modules/c-stack (Depends-on): Add c99, mempcpy.
3073         c-stack: improve checking if !libsigsegv
3074         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3075         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3076         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3077         I found these problems while looking into this bug report:
3078         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3079         * lib/c-stack.c: Include c-stack.h first, to test interface.
3080         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3081         max_align_t, intprops.h for INT_ADD_WRAPV.
3082         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3083         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3084         for libsigsegv 2.8 and earlier since the bug should be fixed
3085         after that.
3086         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3087         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3088         Assume sprintf returns byte count; this assumption is safe now.
3089         (page_size): New static volatile variable, since sysconf isn’t
3090         documented to be async-signal-safe on Solaris.  This variable is
3091         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3092         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3093         SIGINFO_WORKS).
3094         (segv_handler): Use it if present.  Never report null pointer
3095         dereference as a stack overflow.  Check for (unlikely) unsigned
3096         and/or pointer overflow.
3097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3098         Rename cache variables to gl_cv_sys_stack_overflow_works
3099         and gl_cv_sys_xsi_stack_overflow_heuristic.
3100         All uses changed.
3101         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3102         c-stack no longer uses STACK_DIRECTION.
3103         Do not check for unistd.h, since we depend on unistd.
3104         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3105         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3106         stdbool, stddef.
3108 2020-09-20  Bruno Haible  <bruno@clisp.org>
3110         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3111         * m4/musl.m4: Revert 2020-09-19 patch.
3112         * m4/setlocale_null.m4: Likewise.
3113         * modules/setlocale-null: Likewise.
3115 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3116             Bruno Haible  <bruno@clisp.org>
3118         relocatable-prog: Fix for multiple relocatable library directories.
3119         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3120         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3121         being attached to a single one.
3123 2020-09-19  Jim Meyering  <meyering@fb.com>
3125         test-verify.c: avoid -Wshadow warnings
3126         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3127         (enum): Capitalize member names. Adjust uses.
3129 2020-09-19  Bruno Haible  <bruno@clisp.org>
3131         havelib: Avoid linking with libc.a on GNU systems.
3132         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3133         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3134         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3135         dependency_libs value of a .la file, ignore '-lc' options on GNU
3136         systems.
3138 2020-09-19  Bruno Haible  <bruno@clisp.org>
3140         Fix recognition of musl libc on Alpine Linux 3.10.
3141         Reported by Jeffrey Walton <noloader@gmail.com> in
3142         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3143         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3144         (gl_MUSL_LIBC): Require it.
3145         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3146         * modules/setlocale-null (Files): Add m4/musl.m4.
3148 2020-09-19  Bruno Haible  <bruno@clisp.org>
3150         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3151         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3152         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3153         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3154         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3155         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3156         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3157         or <threads.h>.
3158         (ITEMS, MAX_RESULT_LEN): New macros.
3159         (nl_langinfo_unlocked): New function.
3160         (gl_get_nl_langinfo_lock): New declaration.
3161         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3162         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3164         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3165         REPLACE_NL_LANGINFO.
3166         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3167         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3168         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3169         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3170         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3172 2020-09-18  Bruno Haible  <bruno@clisp.org>
3174         fsusage, getaddrinfo: Produce more regular configure output.
3175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3176         corresponding AC_MSG_RESULT.
3177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3179 2020-09-18  Bruno Haible  <bruno@clisp.org>
3181         Add back gl_SILENT.
3182         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3184 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3186         c-stack-tests: fix -fsanitize=undefined false alarm
3187         * tests/test-c-stack2.sh: Skip the test-harness self-test
3188         if ‘gcc -fsanitize=undefined’ is in use.
3190 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3192         signalblocking: simplify and remove gl_SILENT
3193         gl_SILENT was problematic because if a trap was sprung, stderr
3194         generated during the trap was lost.  Avoid the problem by
3195         removing the need for gl_SILENT.
3196         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3197         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3198         Simplify, avoiding the need for gl_SILENT while preserving the
3199         ability of the user to override the value of the cache variable,
3200         now ac_cv_func_sigprocmask.
3202 2020-09-17  Bruno Haible  <bruno@clisp.org>
3204         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3205         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3206         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3207         AS_MESSAGE_FD.
3209 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3211         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3212         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3213         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3214         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3215         Define to 0.
3216         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3217         Do not use __builtin_mul_overflow_p.
3219         libc-config: port __THROW to Ubuntu 4
3220         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3221         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3222         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3223         The GCC 3.3.4 documentation says the attribute should work, but
3224         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3225         little point or desire to research this circa-2004 platform further,
3226         so just avoid the attribute there.
3228 2020-09-17  Jim Meyering  <meyering@fb.com>
3230         test-dfa-match.sh: port timeout work-around to newer Busybox
3231         * tests/test-dfa-match.sh: Update timeout -t portability test to
3232         accommodate Busybox 1.30.0 and newer.
3234 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3236         fnmatch: adjust to match glibc fix
3237         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3238         This does not affect Gnulib; it merely keeps Gnulib and glibc
3239         closer together, to help with any eventual merge, by incorporating
3240         a recent glibc patch.  The patch and the following commentary is
3241         by Andreas Schwab.
3242         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3243         contains the index into the extra array, whereas wextra points
3244         into the extra array at this index, containing the length of the
3245         following collating sequence in the wide character representation.
3247 2020-09-16  Bruno Haible  <bruno@clisp.org>
3249         stat, fstat: Fix compilation error with old mingw headers.
3250         Reported by Eli Zaretskii <eliz@gnu.org> in
3251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3252         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3253         define it.
3255 2020-09-16  Bruno Haible  <bruno@clisp.org>
3257         stat, fstat: Fix when compiling for versions older than Windows Vista.
3258         Reported by Eli Zaretskii <eliz@gnu.org> in
3259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3260         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3261         that was originally set before we redefined it.
3262         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3263         (gl_PREREQ_STAT): Require it.
3264         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3266 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3268         dfa: remove dfa-heap-overrun workaround
3269         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3270         both sets map[*] and does other things.  This reverts
3271         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3272         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3273         fixed the underlying problem.
3275 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3277         dfa: avoid use of uninitialized constraint
3278         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3279         to zero here.
3280         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3281         use of an uninitialized constraint by later code when ! (flags[i]
3282         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3283         the constraint.  Problem found by running 'valgrind src/grep -E
3284         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3286         dfa: assume C99 in reorder_tokens
3287         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3289         dfa: fix dfa-heap-overrun failure
3290         * lib/dfa.c (reorder_tokens): When setting
3291         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3292         that (i < d->follows[i].elems[j].index), use two loops, one to set
3293         the map array and the other to use it.  The incorrect assumption
3294         caused some elements to be missed, and this in turn caused grep's
3295         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3296         with GCC.  I found this bug while investigating
3297         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3298         and I think the bug also occurs on GNU/Linux but with more-subtle
3299         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3300         recent changes make the bug more likely.
3302 2020-09-13  Bruno Haible  <bruno@clisp.org>
3304         parse-datetime: Make the build rule work with parallel 'make'.
3305         Reported by Daiki Ueno <ueno@gnu.org> in
3306         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3307         * modules/parse-datetime (Makefile.am): Use a phony target and the
3308         general idiom for rules that produce multiple files.
3310 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3312         getpass: Check for nonnull prompt argument while avoiding warnings.
3313         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3314         (getpass) [!_WIN32]: Print prompt only if nonnull.
3316 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3318         dfa: epsilon-closure tweaks (Bug#40634)
3319         Rename BACKWORD to BACKWARD consistently.
3320         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3321         (addtok_mb): Redo slightly to make it act more like a state machine.
3322         Check depth only when it increases.
3323         (epsclosure): Let the switch test the tokens.
3324         (dfaanalyze): Cache tindex.  Simplify position loops.
3325         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3326         only if it is not null, since we're testing that anyway.
3327         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3329 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3331         dfa: use backward set in removal of epsilon closure
3332         When removing in epsilon closure, the code searched all nodes
3333         sequentially, and this was slow for some cases.  Build a backward
3334         set before search, and only check previous position with the set.
3335         Problem reported in <https://bugs.gnu.org/40634>.
3336         * lib/dfa.c (struct dfa): New member 'epsilon'.
3337         (addtok_mb): Check whether a pattern has epsilon node or not.
3338         (epsclosure): New arg BACKWORD; caller changed.  When removing
3339         epsilon node and reconnecting, check only previous positions.
3340         Treat BEG as if it were character.
3341         (dfaanalyze): Build backward set.
3343 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3345         canonicalize: fix pointer indexing bugs
3346         Problem reported by Florian Weimer in:
3347         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3348         * lib/canonicalize-lgpl.c (__realpath):
3349         * lib/canonicalize.c (canonicalize_filename_mode):
3350         Do not generate a pointer past the end of the array.
3351         * lib/canonicalize.c (canonicalize_filename_mode):
3352         Do not use a pointer after passing it to realloc.
3354 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3356         tempname: help merge with glibc
3357         Inspired by draft patches by Adhemerval Zanella in:
3358         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3359         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3360         * lib/tempname.c: Include stdalign.h, time.h.
3361         If _LIBC, do not include random-bits.h.
3362         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3363         (RANDOM_BITS): Remove, replacing with ...
3364         (random_bits): ... this new static function.  All uses changed.
3365         Add entropy each time if getrandom is not supported.
3366         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3367         Assume 64-bit support a la C99.
3368         (try_tempname_len): Take advantage of ASLR when initializing
3369         random value.
3370         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3372         getcwd: merge recent glibc changes
3373         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3374         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3376 2020-09-06  Bruno Haible  <bruno@clisp.org>
3378         attribute: Clarify which file to include.
3379         * modules/attribute (Include): Add "attribute.h".
3381 2020-09-06  Bruno Haible  <bruno@clisp.org>
3383         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3384         * lib/pipe-filter-ii.c: Include <process.h>.
3385         * lib/pipe-filter-gi.c: Likewise.
3387 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3389         verify: avoid __builtin_assume
3390         Our latest attempt to use Clang’s __builtin_assume caused a crash
3391         in GNU Emacs that we spent quite some time tracking down as being
3392         caused by the switch to __builtin_assume.  It’s not known whether
3393         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3394         For now, play it safe and avoid __builtin_assume.
3395         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3396         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3398 2020-09-05  Bruno Haible  <bruno@clisp.org>
3400         Fix several "warning: no previous prototype for function".
3401         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3402         in front of the declaration of the lookup function in
3403         unicase/locale-languages.h.
3404         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3405         unictype/bidi_byname.h.
3406         * modules/unictype/category-byname (Makefile.am): Likewise in
3407         unictype/categ_byname.h.
3408         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3409         unictype/combiningclass_byname.h.
3410         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3411         unictype/joininggroup_byname.h.
3412         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3413         unictype/joiningtype_byname.h.
3414         * modules/unictype/property-byname (Makefile.am): Likewise in
3415         unictype/pr_byname.h.
3416         * modules/unictype/scripts (Makefile.am): Likewise in
3417         unictype/scripts_byname.h.
3418         * modules/uninorm/composition (Makefile.am): Likewise in
3419         uninorm/composition-table.h.
3421 2020-09-05  Bruno Haible  <bruno@clisp.org>
3423         select: Fix "warning: no previous prototype for function".
3424         * lib/select.c: Include <sys/select.h>.
3426 2020-09-05  Bruno Haible  <bruno@clisp.org>
3428         Use module 'c99' when needed for variadic macros with '...' syntax.
3429         * modules/crypto/sm3 (Depends-on): Add c99.
3431 2020-09-05  Bruno Haible  <bruno@clisp.org>
3433         Use module 'c99' when needed for subobject initializer syntax.
3434         * modules/tempname (Depends-on): Add c99.
3435         * modules/nstrftime-tests (Depends-on): Likewise.
3437 2020-09-05  Bruno Haible  <bruno@clisp.org>
3439         Use module 'c99' when needed for declaration-after-statement syntax.
3440         * modules/backup-rename (Depends-on): Add c99.
3441         * modules/backupfile (Depends-on): Likewise.
3442         * modules/bitset-tests (Depends-on): Likewise.
3443         * modules/bitsetv (Depends-on): Likewise.
3444         * modules/c-strtod (Depends-on): Likewise.
3445         * modules/c-strtold (Depends-on): Likewise.
3446         * modules/clean-temp (Depends-on): Likewise.
3447         * modules/copy-file (Depends-on): Likewise.
3448         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3449         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3450         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3451         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3452         * modules/crypto/md5-buffer (Depends-on): Likewise.
3453         * modules/crypto/md5-tests (Depends-on): Likewise.
3454         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3455         * modules/crypto/sha1-tests (Depends-on): Likewise.
3456         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3457         * modules/crypto/sha256-tests (Depends-on): Likewise.
3458         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3459         * modules/crypto/sha512-tests (Depends-on): Likewise.
3460         * modules/diffseq (Depends-on): Likewise.
3461         * modules/fatal-signal (Depends-on): Likewise.
3462         * modules/fchmodat (Depends-on): Likewise.
3463         * modules/fstrcmp (Depends-on): Likewise.
3464         * modules/fsusage (Depends-on): Likewise.
3465         * modules/fts (Depends-on): Likewise.
3466         * modules/fts-tests (Depends-on): Likewise.
3467         * modules/getumask (Depends-on): Likewise.
3468         * modules/git-merge-changelog (Depends-on): Likewise.
3469         * modules/hash-map (Depends-on): Likewise.
3470         * modules/hash-set (Depends-on): Likewise.
3471         * modules/lchmod (Depends-on): Likewise.
3472         * modules/libgmp-tests (Depends-on): Likewise.
3473         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3474         * modules/linkedhash-map (Depends-on): Likewise.
3475         * modules/linkedhash-set (Depends-on): Likewise.
3476         * modules/long-options (Depends-on): Likewise.
3477         * modules/mbrtoc32 (Depends-on): Likewise.
3478         * modules/memchr2-tests (Depends-on): Likewise.
3479         * modules/memmem-tests (Depends-on): Likewise.
3480         * modules/memrchr-tests (Depends-on): Likewise.
3481         * modules/mktime-internal (Depends-on): Likewise.
3482         * modules/nstrftime (Depends-on): Likewise.
3483         * modules/opendirat (Depends-on): Likewise.
3484         * modules/parse-datetime (Depends-on): Likewise.
3485         * modules/quotearg-simple-tests (Depends-on): Likewise.
3486         * modules/same (Depends-on): Likewise.
3487         * modules/supersede (Depends-on): Likewise.
3488         * modules/supersede-tests (Depends-on): Likewise.
3489         * modules/time_rz (Depends-on): Likewise.
3490         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3491         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3492         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3493         * modules/xalloc (Depends-on): Likewise.
3494         * modules/xnanosleep (Depends-on): Likewise.
3496 2020-09-05  Bruno Haible  <bruno@clisp.org>
3498         Fix "warning: array initialized from parenthesized string constant".
3499         * tests/test-memmem.c (main): Remove parentheses around string constant.
3500         * tests/test-c-strcasestr.c (main): Likewise.
3501         * tests/test-strcasestr.c (main): Likewise.
3503 2020-09-05  Bruno Haible  <bruno@clisp.org>
3505         argmatch tests: Fix ISO C compliance warning.
3506         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3507         invocation.
3509 2020-09-05  Bruno Haible  <bruno@clisp.org>
3511         uniname/uniname: Fix -Wshadow warning.
3512         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3513         * modules/uniname/uniname (Depends-on): Add c99.
3515 2020-09-05  Bruno Haible  <bruno@clisp.org>
3517         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3518         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3519         argument to size_t.
3520         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3521         n to size_t.
3523 2020-09-05  Bruno Haible  <bruno@clisp.org>
3525         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3526         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3527         u32_uctomb): Change type of last argument to ptrdiff_t.
3528         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3529         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3530         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3531         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3532         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3534 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3536         manywarnings: remove -Wchkp and -Wabi from C++ too
3537         Suggested by Reuben Thomas in:
3538         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3539         At some point somebody should merge the many other manywarnings-c.m4
3540         changes into manywarnings-c++.m4 too, e.g.,
3541         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3542         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3543         Remove -Wchkp, -Wabi.
3545 2020-08-30  Bruno Haible  <bruno@clisp.org>
3547         strerrorname_np: Add tests.
3548         * tests/test-strerrorname_np.c: New file.
3549         * modules/strerrorname_np-tests: New file.
3551         strerrorname_np: New module.
3552         * lib/string.in.h (strerrorname_np): New declaration.
3553         * lib/strerrorname_np.c: New file.
3554         * m4/strerrorname_np.m4: New file.
3555         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3556         is declared.
3557         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3558         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3559         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3560         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3561         * modules/strerrorname_np: New file.
3562         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3563         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3564         the glibc 2.32 bug.
3566 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3568         perror, strerror_r: remove unportable tests
3569         Problem reported by Florian Weimer in:
3570         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3571         * tests/test-perror2.c (main):
3572         * tests/test-strerror_r.c (main): Omit unportable tests.
3574 2020-08-26  Bruno Haible  <bruno@clisp.org>
3576         stdint, wchar, wctype-h: Change configure message.
3577         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3578         enough..." instead of "checking whether wint_t is too small...".
3580 2020-08-26  Bruno Haible  <bruno@clisp.org>
3582         time_rz: Change configure message.
3583         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3584         near extrema..." instead of "checking whether localtime loops forever
3585         near extrema...".
3587 2020-08-26  Bruno Haible  <bruno@clisp.org>
3589         stdint: Change configure message.
3590         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3591         without ISO C predefines..." instead of "checking whether stdint.h
3592         predates C++11...".
3594 2020-08-26  Bruno Haible  <bruno@clisp.org>
3596         socketlib: Change configure message.
3597         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3598         instead of "checking if we need to call WSAStartup in winsock2.h and
3599         -lws2_32...".
3601 2020-08-26  Bruno Haible  <bruno@clisp.org>
3603         include_next: Change configure message.
3604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3605         code line length is unlimited..." instead of "checking whether system
3606         header files limit the line length...".
3608 2020-08-26  Bruno Haible  <bruno@clisp.org>
3610         getcwd: Change configure message.
3611         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3612         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3613         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3615 2020-08-26  Bruno Haible  <bruno@clisp.org>
3617         chdir-long: Change configure message.
3618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3619         system supports file names of any length..." instead of "checking
3620         whether this system has an arbitrary file name length limit...".
3621         Set gl_cv_have_unlimited_file_name_length instead of
3622         gl_cv_have_arbitrary_file_name_length_limit.
3623         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3625 2020-08-26  Bruno Haible  <bruno@clisp.org>
3627         ceill: Change configure message.
3628         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3629         instead of "checking whether ceill() breaks with small values...".
3631 2020-08-26  Bruno Haible  <bruno@clisp.org>
3633         iconv: Change configure message.
3634         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3635         with its POSIX signature..." instead of "checking for iconv
3636         declaration...". Remove K&R C support.
3638 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3640         getcwd: help the merge back into glibc
3641         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3642         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3643         The idea is to make it easier for Gnulib lib/getcwd.c to match
3644         glibc io/getcwd-generic.c.
3645         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3646         Include not-cancel.h.
3647         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3648         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3649         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3650         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3651         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3652         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3653         (__getcwd_generic): Rename from __getcwd.
3654         Use the abovementioned macros for consistency with glibc.
3655         (weak_alias): Remove.
3657 2020-08-25  Bruno Haible  <bruno@clisp.org>
3659         verify: Avoid warnings when assume(0) is used.
3660         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3661         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3662         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3663         the constant 0.
3664         * tests/test-verify.c (f): New function.
3665         (state): New type.
3666         (test_assume_expressions, test_assume_optimization,
3667         test_assume_noreturn): New functions.
3669 2020-08-25  Bruno Haible  <bruno@clisp.org>
3671         fstrcmp: Clarification regarding NOTE_ORDERED.
3672         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3674 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3676         diffseq: new option NOTE_ORDERED
3677         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3678         * NEWS: Mention this.
3679         * lib/diffseq.h (NOTE_ORDERED): New macro.
3680         (IF_LINT2): Remove; no longer needed.
3681         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3682         subproblem and iterate to do the larger.
3684 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3686         sys_types: let Autoconf 2.70 do pid_t
3687         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3688         only for Autoconf versions 2.69 and earlier, since 2.70
3689         will be fixed.
3691 2020-08-23  Bruno Haible  <bruno@clisp.org>
3693         tests: Don't assume that pid_t fits in an 'int'.
3694         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3695         of 'int'.
3696         * tests/test-nonblocking-socket-main.c (main): Likewise.
3698         sys_types: Fix definition of pid_t on 64-bit MSVC.
3699         * m4/pid_t.m4: New file.
3700         * modules/sys_types (Files): Add it.
3701         * modules/dirent (Files): Likewise.
3702         * modules/fcntl-h (Files): Likewise.
3703         * modules/sched (Files): Likewise.
3704         * modules/signal-h (Files): Likewise.
3705         * modules/spawn (Files): Likewise.
3706         * modules/sys_stat (Files): Likewise.
3707         * modules/sys_wait (Files): Likewise.
3708         * modules/termios (Files): Likewise.
3709         * modules/unistd (Files): Likewise.
3711 2020-08-23  Bruno Haible  <bruno@clisp.org>
3713         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3714         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3715         program.
3717 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3719         intprops: be consistent about +X vs X+0
3720         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3722         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3723         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3724         is a bit-field, on older GCC or non-GCC compilers where we do
3725         things ourselves instead of using __builtin_mul_overflow.
3726         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3727         to applying sizeof to a bit-field.
3728         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3729         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3731 2020-08-23  Bruno Haible  <bruno@clisp.org>
3733         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3734         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3735         via Thomas Klausner <tk@giga.or.at> in
3736         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3737         * lib/supersede.c (open_supersede): When opening an existing non-regular
3738         file on Solaris, use O_CREAT although it should not be necessary.
3740 2020-08-23  Bruno Haible  <bruno@clisp.org>
3742         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3743         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3744         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3745         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3746         variable.
3748 2020-08-23  Bruno Haible  <bruno@clisp.org>
3750         libc-config: Improve comments.
3751         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3752         cannot use clang's __diagnose_if__ here.
3754 2020-08-22  Bruno Haible  <bruno@clisp.org>
3756         verify: Do use __builtin_assume on clang.
3757         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3758         variable in a statement expression.
3760 2020-08-22  Bruno Haible  <bruno@clisp.org>
3762         sig2str: Add more signals.
3763         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3765 2020-08-22  Bruno Haible  <bruno@clisp.org>
3767         doc: Update for OpenBSD 6.0, 6.7.
3768         * doc/*/*.texi: Update.
3769         * m4/printf.m4: Update comments and cross-compilation guesses.
3770         * m4/ceill.m4: Update comments.
3771         * m4/getcwd-abort-bug.m4: Likewise.
3772         * m4/ilogb.m4: Likewise.
3773         * m4/ilogbf.m4: Likewise.
3774         * m4/langinfo_h.m4: Likewise.
3775         * m4/modf.m4: Likewise.
3776         * m4/modff.m4: Likewise.
3778 2020-08-22  Bruno Haible  <bruno@clisp.org>
3780         doc: Mention sig2str module.
3781         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3783 2020-08-21  Bruno Haible  <bruno@clisp.org>
3785         sigdescr_np: Add tests.
3786         * tests/test-sigdescr_np.c: New file.
3787         * modules/sigdescr_np-tests: New file.
3789         sigdescr_np: New module.
3790         * lib/string.in.h (sigdescr_np): New declaration.
3791         * lib/sigdescr_np.c: New file.
3792         * m4/sigdescr_np.m4: New file.
3793         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3794         declared.
3795         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3796         HAVE_SIGDESCR_NP.
3797         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3798         HAVE_SIGDESCR_NP.
3799         * modules/sigdescr_np: New file.
3800         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3801         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3803 2020-08-20  Bruno Haible  <bruno@clisp.org>
3805         sigabbrev_np: Add tests.
3806         * tests/test-sigabbrev_np.c: New file.
3807         * modules/sigabbrev_np-tests: New file.
3809         sigabbrev_np: New module.
3810         * lib/string.in.h (sigabbrev_np): New declaration.
3811         * lib/sigabbrev_np.c: New file.
3812         * m4/sigabbrev_np.m4: New file.
3813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3814         declared.
3815         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3816         HAVE_SIGABBREV_NP.
3817         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3818         HAVE_SIGABBREV_NP.
3819         * modules/sigabbrev_np: New file.
3820         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3821         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3823 2020-08-20  Bruno Haible  <bruno@clisp.org>
3825         stdalign tests: Skip test with AIX xlclang.
3826         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3828 2020-08-20  Bruno Haible  <bruno@clisp.org>
3830         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3831         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3832         workaround as for GCC versions < 4.9.
3834 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3836         Sync up ProjectQuirks comments and documentation
3837         Transform the ProjectQuirks comments into a docstring so that it can
3838         be accessed from python as ProjectQuirks.__doc__ and harmonize
3839         descriptions with the documentation.
3840         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3841         Transform comments into a docstring.
3842         * doc/vcs-to-changelog.texi: Sync up description with comments.
3844         Split ProjectQuirks out into its own file
3845         ProjectQuirks is used by external quirks files and importing it from
3846         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3847         is cleaner to put it in its own file anyway.
3848         * build-aux/vcstocl/projectquirks.py: A new file...
3849         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3850         we move ProjectQuirks and import the file.
3852 2020-08-19  Bruno Haible  <bruno@clisp.org>
3854         uchar: Fix compilation errors in C++ mode on macOS.
3855         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3856         system header file before attempting to use 'char16_t' and 'char32_t'.
3858 2020-08-19  Bruno Haible  <bruno@clisp.org>
3860         ansi-c++-opt: Work around an autoconf macro reordering problem.
3861         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3862         section.
3864 2020-08-19  Bruno Haible  <bruno@clisp.org>
3866         math C++ tests: Fix compilation error in with GCC 10.
3867         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3868         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3869         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3871 2020-08-19  Bruno Haible  <bruno@clisp.org>
3873         uchar: Fix compilation errors in C++ mode on OpenBSD.
3874         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3875         CXX_HAS_UCHAR_TYPES is 1.
3876         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3877         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3878         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3880 2020-08-19  Bruno Haible  <bruno@clisp.org>
3882         Fix compilation errors in C++ mode on OpenBSD.
3883         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3884         OpenBSD with clang, use the approach without C preprocessor macro.
3886 2020-08-18  Bruno Haible  <bruno@clisp.org>
3888         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3889         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3890         AC_LANG_POP.
3892 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3894         verify: avoid __built_assume on Clang
3895         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3896         Clang 9 incorrectly diagnoses arguments as having side effects
3897         even when they do not.  I guess Clang 9 considers any function
3898         call as if it had a side effect here.
3900         libc-config: avoid Clang’s __diagnose_if__
3901         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3902         For now, do not use __diagnose_if__ here, as this fails
3903         on Fedora 31 with Clang 9.0.1, with diagnostic
3904         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3905         size than length of destination buffer
3906         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3907         for functions that are not called?
3909         careadlinkat: speedup for GCC 10 with GCC_LINT
3910         Inspired by a suggestion by Bruno Haible in:
3911         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3912         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3913         (readlink_stk): New function, with most of the old careadlinkat
3914         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3915         if GCC_LINT.
3916         (careadlinkat): Use the new function for everything but the
3917         stack buffer.
3919         * build-aux/gcc-warning.spec: Update comments.
3921 2020-08-17  Bruno Haible  <bruno@clisp.org>
3923         Assume autoconf >= 2.64.
3924         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3926 2020-08-17  Bruno Haible  <bruno@clisp.org>
3928         Revert autoupdate's revert.
3929         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3931 2020-08-17  Bruno Haible  <bruno@clisp.org>
3933         uchar C++ tests: Fix build error on FreeBSD 12.
3934         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3935         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3936         <cuchar> does not exist.
3938 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3940         time_rz: remove unused functions
3941         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3943         time_rz: fix issues with mktime_z failures
3944         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3945         Use a cheaper tm_yday test for failed mktime.
3947 2020-08-16  Bruno Haible  <bruno@clisp.org>
3949         intprops test: Strengthen on clang.
3950         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3952 2020-08-16  Bruno Haible  <bruno@clisp.org>
3954         nstrftime: Guide inlining also on clang.
3955         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3957 2020-08-16  Bruno Haible  <bruno@clisp.org>
3959         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3960         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3962 2020-08-16  Bruno Haible  <bruno@clisp.org>
3964         log2l: Disable MSVC workaround on clang.
3965         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3967 2020-08-16  Bruno Haible  <bruno@clisp.org>
3969         argp: Emit a warning also with clang.
3970         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3971         clang.
3973 2020-08-16  Bruno Haible  <bruno@clisp.org>
3975         libc-config: Enable __REDIRECT macro also on clang.
3976         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3977         __ASMNAME2): Define on clang like on GCC.
3979 2020-08-16  Bruno Haible  <bruno@clisp.org>
3981         regex: Use initializer shorthand syntax also with clang.
3982         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3983         with clang.
3985 2020-08-16  Bruno Haible  <bruno@clisp.org>
3987         regex: Use space optimization also with clang.
3988         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3989         with clang.
3991 2020-08-16  Bruno Haible  <bruno@clisp.org>
3993         Use _Static_assert and static_assert primitives when present on clang.
3994         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3995         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3996         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3998 2020-08-16  Bruno Haible  <bruno@clisp.org>
4000         Use 'throw ()' for optimization in C++ mode also on clang.
4001         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4002         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4003         * lib/md5.h (__THROW): Likewise.
4005 2020-08-16  Bruno Haible  <bruno@clisp.org>
4007         absolute-header: Add support for clang.
4008         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4009         HAVE_INCLUDE_NEXT expression.
4011 2020-08-16  Bruno Haible  <bruno@clisp.org>
4013         Fix "warning: implicitly declaring library function 'strcasecmp'".
4014         * lib/argp-help.c: Include <strings.h>.
4016 2020-08-16  Bruno Haible  <bruno@clisp.org>
4018         stdio: Don't break attribute 'scanf' on clang.
4019         * lib/stdio.in.h (scanf): Treat clang like GCC.
4021 2020-08-16  Bruno Haible  <bruno@clisp.org>
4023         Use __restrict also on clang.
4024         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4025         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4026         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4028 2020-08-16  Bruno Haible  <bruno@clisp.org>
4030         pthread-spin: Use GCC built-ins also on clang.
4031         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4032         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4033         also on clang.
4035 2020-08-16  Bruno Haible  <bruno@clisp.org>
4037         asyncsafe-spin tests: Update.
4038         * tests/test-asyncsafe-spin2.c: Update to match the change in
4039         lib/asyncsafe-spin.c from 2020-08-11.
4041 2020-08-16  Bruno Haible  <bruno@clisp.org>
4043         setenv: Use tree code also with clang.
4044         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4046 2020-08-16  Bruno Haible  <bruno@clisp.org>
4048         math: Optimize signbit also on clang.
4049         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4050         on clang.
4052 2020-08-16  Bruno Haible  <bruno@clisp.org>
4054         avltreehash-list, rbtreehash-list: Optimize also on clang.
4055         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4056         __builtin_expect also on clang.
4058 2020-08-16  Bruno Haible  <bruno@clisp.org>
4060         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4061         * lib/socket.c: Use WSASocketW, not WSASocketA.
4063         Fix "warning: format specifies type 'unsigned long'".
4064         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4065         argument to match the format directive.
4067         Fix "warning: no case matching constant switch condition '0'".
4068         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4070         Fix "warning: integer overflow in expression".
4071         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4072         remove a 'long' overflow.
4074         Fix "warning: "getpagesize" redefined".
4075         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4076         macro.
4078         Fix "warning: implicitly declaring library function 'strncasecmp'".
4079         * lib/strptime.c: Include <strings.h>.
4081         Fix "warning: 'snprintf' macro redefined".
4082         * lib/strerror_r.c (snprintf): Undefine before redefining.
4084         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4085         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4087         Fix "warning: '__stat64' macro redefined".
4088         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4090         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4091         * lib/stdio.in.h (printf): Treat clang like GCC.
4093         Fix "warning: attribute declaration must precede definition" with clang.
4094         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4095         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4096         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4097         on non-glibc systems.
4098         * lib/netdb.in.h (gai_strerror): Likewise.
4099         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4100         * lib/sys_stat.in.h (fstat): Likewise.
4101         * lib/utime.in.h (utime): Likewise.
4103         Fix undesired warnings.
4104         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4105         clang.
4107 2020-08-16  Bruno Haible  <bruno@clisp.org>
4109         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4110         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4111         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4112         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4113         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4115 2020-08-16  Bruno Haible  <bruno@clisp.org>
4117         Don't use Autoconf quadrigraphs.
4118         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4119         Autoconf quadrigraph.
4120         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4121         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4122         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4123         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4125         * m4/math_h.m4 (gl_MATH_H): Likewise.
4126         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4128 2020-08-16  Bruno Haible  <bruno@clisp.org>
4130         Fix quoting of AC_LANG_PROGRAM arguments.
4131         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4132         arguments through [[...]].
4133         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4134         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4136         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4137         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4138         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4139         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4140         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4141         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4142         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4143         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4144         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4145         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4147 2020-08-16  Bruno Haible  <bruno@clisp.org>
4149         Assume autoconf >= 2.64.
4150         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4151         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4152         * NEWS: Mention the changed requirement.
4153         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4154         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4155         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4156         variables.
4157         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4158         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4159         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4160         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4161         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4163         Likewise.
4164         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4165         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4166         * m4/configmake.m4: Update comment.
4168 2020-08-16  Bruno Haible  <bruno@clisp.org>
4170         sys_ioctl: Simplify.
4171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4172         AC_INCLUDES_DEFAULT.
4174 2020-08-16  Bruno Haible  <bruno@clisp.org>
4176         Fix quoting of AC_LANG_SOURCE arguments.
4177         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4178         GL_NOCRASH expansion.
4179         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4181         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4185 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4187         nstrftime: be more predictable about errno
4188         This aligns nstrftime better with draft POSIX 202x strftime.
4189         * lib/nstrftime.c: Include errno.h.
4190         (width_add, __strftime_internal): Set errno on failure,
4191         and preserve it on success.  Check for mktime_z failure.
4192         * modules/nstrftime (Depends-on): Add errno.
4193         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4194         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4195         (errno_test): New test function.
4196         (main): Call it.
4198 2020-08-15  Bruno Haible  <bruno@clisp.org>
4200         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4201         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4202         from dependency analysis first.
4204 2020-08-15  Bruno Haible  <bruno@clisp.org>
4206         Determine asm output option and filename suffix for MSVC/clang.
4207         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4208         clang-cl.
4210 2020-08-15  Bruno Haible  <bruno@clisp.org>
4212         doc: Update for MSVC/clang.
4213         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4214         that MSVC 14 does not have.
4216 2020-08-15  Bruno Haible  <bruno@clisp.org>
4218         Revert autoupdate's revert.
4219         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4221 2020-08-15  Bruno Haible  <bruno@clisp.org>
4223         frexpl: Fix configuration test result on MSVC.
4224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4225         zero.
4227 2020-08-15  Bruno Haible  <bruno@clisp.org>
4229         Support compiling without -loldnames on native Windows.
4230         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4231         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4232         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4233         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4234         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4236         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4237         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4238         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4239         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4240         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4241         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4242         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4243         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4244         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4245         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4246         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4248         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4249         Likewise.
4250         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4251         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4252         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4253         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4255         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4256         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4257         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4259         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4260         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4261         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4262         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4263         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4264         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4265         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4266         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4268         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4269         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4270         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4271         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4272         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4273         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4274         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4275         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4276         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4277         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4278         test for getcwd.
4279         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4280         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4281         with GL_MDA_DEFINES.
4282         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4283         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4284         prefixed symbol.
4285         * lib/search.in.h (lfind, lsearch): Likewise.
4286         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4287         Likewise.
4288         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4289         * lib/string.in.h (memccpy, strdup): Likewise.
4290         * lib/sys_stat.in.h (chmod, umask): Likewise.
4291         * lib/time.in.h (tzset): Likewise.
4292         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4293         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4294         read, rmdir, swab, unlink, write): Likewise.
4295         * lib/utime.in.h (utime): Likewise.
4296         * lib/wchar.in.h (wcsdup): Likewise.
4297         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4298         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4299         rpl_-prefixed macro.
4300         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4301         * lib/close.c (close_nothrow): On native Windows, use _close.
4302         * lib/creat.c (orig_creat): On native Windows, use _creat.
4303         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4304         * lib/dup2.c (dup2_nothrow): Use _dup2.
4305         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4306         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4307         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4308         * lib/open.c (orig_open): On native Windows, use _open.
4309         * lib/read.c (read_nothrow): Use _read.
4310         * lib/rmdir.c: On native Windows, use _rmdir.
4311         * lib/unlink.c: On native Windows, use _unlink.
4312         * lib/write.c (write_nothrow): Use _write.
4313         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4314         undefined symbol.
4315         * lib/sys_socket.in.h (close): Likewise.
4316         * lib/sys_time.in.h (close): Likewise.
4317         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4319 2020-08-15  Bruno Haible  <bruno@clisp.org>
4321         Fix "unknown pragma ignored" warnings with clang on native Windows.
4322         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4323         * lib/cbrtf.c: Likewise.
4324         * lib/ceil.c: Likewise.
4325         * lib/floor.c: Likewise.
4326         * lib/fma.c: Likewise.
4327         * lib/fmod.c: Likewise.
4328         * lib/rint.c: Likewise.
4329         * lib/round.c: Likewise.
4330         * lib/trunc.c: Likewise.
4331         * tests/test-ceil2.c: Likewise.
4332         * tests/test-ceilf2.c: Likewise.
4333         * tests/test-floor2.c: Likewise.
4334         * tests/test-floorf2.c: Likewise.
4335         * tests/test-trunc2.c: Likewise.
4336         * tests/test-truncf2.c: Likewise.
4337         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4340 2020-08-15  Bruno Haible  <bruno@clisp.org>
4342         Fix compilation errors in C++ mode with clang on native Windows.
4343         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4344         non-glibc systems.
4345         * lib/sched.in.h (sched_yield): Likewise.
4347 2020-08-14  Bruno Haible  <bruno@clisp.org>
4349         stdnoreturn: Work around problem with MSVC/clang.
4350         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4351         system header after <stdnoreturn.h>.
4352         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4354 2020-08-14  Bruno Haible  <bruno@clisp.org>
4356         utime-h: Generate an utime.h file always.
4357         * modules/utime-h (Makefile.am): Generate utime.h always.
4358         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4359         GL_GENERATE_UTIME_H.
4361 2020-08-14  Bruno Haible  <bruno@clisp.org>
4363         mktime, mktime-internal: Remove obsolete code.
4364         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4366 2020-08-14  Bruno Haible  <bruno@clisp.org>
4368         getcwd: Remove obsolete code.
4369         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4372 2020-08-14  Bruno Haible  <bruno@clisp.org>
4374         tzset: Assume the function exists.
4375         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4376         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4377         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4378         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4379         HAVE_TZSET.
4380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4381         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4383         nstrftime: Assume tzset exists.
4384         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4385         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4386         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4388         mktime, mktime-internal: Assume tzset exists.
4389         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4390         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4392 2020-08-14  Bruno Haible  <bruno@clisp.org>
4394         strdup: Assume the function exists.
4395         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4396         whether strdup exists.
4397         * modules/strdup (Files): Remove lib/strdup.c.
4398         (configure.ac): Don't compile strdup.c.
4399         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4400         ac_cv_func_strdup.
4401         * doc/posix-functions/strdup.texi: Update.
4402         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4403         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4404         (Depends-on): Remove unistr/u8-strlen.
4406 2020-08-13  Bruno Haible  <bruno@clisp.org>
4408         sys_random: Work around an uClibc bug.
4409         Reported by akater <nuclearspace@gmail.com>
4410         via Stefan Kangas <stefan@marxist.se>
4411         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4412         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4413         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4414         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4415         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4417 2020-08-12  Bruno Haible  <bruno@clisp.org>
4419         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4420         Reported by Florian Weimer in
4421         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4422         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4423         the level3 array to 'unsigned int'.
4424         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4425         * lib/unictype/categ_*.h: Regenerated.
4426         * lib/unictype/ctype_*.h: Regenerated.
4427         * lib/unictype/pr_*.h: Regenerated.
4428         * lib/unictype/sy_*.h: Regenerated.
4429         * lib/unicase/cased.h: Regenerated.
4430         * lib/unicase/ignorable.h: Regenerated.
4432 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4434         stdint: port intptr_t to more-recent MinGW
4435         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4436         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4437         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4438         Apparently those two macros were removed in mingwrt-3.22
4439         dated 2016-07-14.
4441 2020-08-12  Bruno Haible  <bruno@clisp.org>
4443         thread-optim: Export function-like macros only.
4444         Suggested by Paul Eggert.
4445         * lib/thread-optim.h (gl_multithreaded): New macro.
4446         (IF_MT_DECL, IF_MT): Remove macros.
4447         * doc/multithread.texi (Multithreading Optimizations): Add a small
4448         example.
4449         * lib/fatal-signal.c: Update all uses.
4450         * lib/clean-temp.c: Likewise.
4451         * lib/localename.c: Likewise.
4452         * modules/localename (Depends-on): Add stdbool.
4454 2020-08-12  Bruno Haible  <bruno@clisp.org>
4456         Revert autoupdate's revert.
4457         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4459 2020-08-11  Bruno Haible  <bruno@clisp.org>
4461         thread-optim: Fix a compiler warning.
4462         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4464 2020-08-11  Bruno Haible  <bruno@clisp.org>
4466         Use __restrict also on clang.
4467         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4468         (__restrict_arr): On clang, define like on GCC.
4469         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4470         (_Restrict_arr_): Use _Restrict_ also on clang.
4471         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4472         (_Restrict_arr_): Use _Restrict_ also on clang.
4474 2020-08-11  Bruno Haible  <bruno@clisp.org>
4476         Use flexible array syntax also on clang.
4477         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4478         define like for GCC 3.
4480 2020-08-11  Bruno Haible  <bruno@clisp.org>
4482         fcntl: On native Windows, use _setmode, not setmode.
4483         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4484         * lib/binary-io.h: Update comment.
4485         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4486         * tests/test-dup2.c: Likewise.
4487         * tests/test-dup-safer.c: Likewise.
4488         * tests/test-fcntl.c: Likewise.
4490 2020-08-11  Bruno Haible  <bruno@clisp.org>
4492         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4493         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4494         * lib/spawn-pipe.c (create_pipe): Likewise.
4495         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4496         * tests/test-nonblocking-socket-main.c (main): Likewise.
4497         * lib/wait-process.c: Update comment.
4498         * doc/posix-functions/fork.texi: Update.
4500 2020-08-11  Bruno Haible  <bruno@clisp.org>
4502         asyncsafe-spin: Use GCC built-ins also on clang.
4503         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4504         the newer GCC built-ins also on clang.
4506 2020-08-11  Bruno Haible  <bruno@clisp.org>
4508         Use expression statements also on clang.
4509         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4510         * lib/obstack.h (__extension__): Likewise.
4511         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4512         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4513         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4514         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4515         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4516         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4518 2020-08-10  Bruno Haible  <bruno@clisp.org>
4520         Use many __attribute__s with clang.
4521         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4522         on clang.
4523         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4524         New macros.
4525         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4526         on clang.
4527         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4528         also on older clang versions.
4529         (__attribute__): Don't define to empty on clang.
4530         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4531         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4532         (__attribute_const__): Use __attribute__ __const__ also on clang.
4533         (__attribute_used__): Use __attribute__ __used__ also on clang.
4534         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4535         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4536         clang.
4537         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4538         clang.
4539         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4540         also on clang.
4541         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4542         (__attribute_warn_unused_result__): Use __attribute__
4543         __warn_unused_result__ also on clang.
4544         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4545         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4546         clang >= 7.
4547         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4548         clang versions.
4549         (_Noreturn): Don't redefine on clang >= 3.5.
4550         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4551         also on clang.
4552         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4553         on clang.
4554         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4555         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4556         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4557         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4558         also on clang.
4559         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4560         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4561         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4562         also on clang.
4563         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4564         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4565         __attribute__ __noreturn__ also on clang.
4566         * lib/obstack.h (__attribute_noreturn__): Likewise.
4567         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4568         clang.
4569         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4570         always_inline also on clang.
4571         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4572         clang.
4574 2020-08-10  Bruno Haible  <bruno@clisp.org>
4576         c-ldtoastr tests: Fix test failure.
4577         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4578         is longer than 'double'.
4580 2020-08-10  Bruno Haible  <bruno@clisp.org>
4582         Revert autoupdate's revert.
4583         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4585 2020-08-09  Bruno Haible  <bruno@clisp.org>
4587         string: Fix build error in C++ mode with clang (regression from today).
4588         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4589         parameters, one for GCC, one for clang.
4590         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4591         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4592         as return type.
4594 2020-08-09  Bruno Haible  <bruno@clisp.org>
4596         ftruncate: Use _chsize, not chsize.
4597         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4598         * lib/ftruncate.c: Test HAVE__CHSIZE.
4599         (chsize_nothrow): Use _chsize, not chsize.
4601 2020-08-09  Bruno Haible  <bruno@clisp.org>
4603         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4604         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4605         clang >= 10.
4606         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4607         * lib/fts.c (FALLTHROUGH): Likewise.
4608         * tests/macros.h (FALLTHROUGH): Likewise.
4609         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4610         * config/srclist.txt: Mark it as needing sync with glibc.
4612 2020-08-09  Bruno Haible  <bruno@clisp.org>
4614         stdbool tests: Enable the stricter tests also on clang.
4615         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4616         (e): Enable the address-to-bool conversion test also on clang.
4618 2020-08-09  Bruno Haible  <bruno@clisp.org>
4620         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4621         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4623 2020-08-09  Bruno Haible  <bruno@clisp.org>
4625         Use attribute __aligned__ with clang.
4626         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4627         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4629 2020-08-09  Bruno Haible  <bruno@clisp.org>
4631         Use __alignof__ with clang.
4632         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4633         on clang.
4634         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4635         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4636         clang.
4637         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4638         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4639         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4640         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4642 2020-08-09  Bruno Haible  <bruno@clisp.org>
4644         ignore-value: Simplify on clang.
4645         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4646         workaround.
4648 2020-08-09  Bruno Haible  <bruno@clisp.org>
4650         Use __typeof__ with clang.
4651         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4652         "clang -std=gnu99".
4653         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4654         * tests/test-stdint.c (verify_same_types): Enable the check also on
4655         clang.
4657 2020-08-09  Bruno Haible  <bruno@clisp.org>
4659         Add ability to emit user-defined warnings and errors with clang.
4660         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4661         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4662         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4663         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4664         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4665         attribute for clang.
4667 2020-08-09  Bruno Haible  <bruno@clisp.org>
4669         intprops: Fix typo in comment.
4670         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4672 2020-08-09  Bruno Haible  <bruno@clisp.org>
4674         Use __builtin_signbit* with clang.
4675         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4676         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4677         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4679         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4680         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4681         not REPLACE_SIGNBIT_USING_GCC.
4683 2020-08-09  Bruno Haible  <bruno@clisp.org>
4685         Use __builtin_isnan with clang.
4686         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4687         not __builtin_isnanf. Also on clang.
4688         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4689         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4690         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4691         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4692         built-in.
4693         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4694         not __builtin_isnanl. Also on clang.
4695         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4696         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4697         * lib/math.in.h (__has_builtin): Remove macro.
4698         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4699         __builtin_isnanf. Also on clang.
4700         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4701         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4702         __builtin_isnanl. Also on clang.
4703         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4704         on clang.
4706 2020-08-09  Bruno Haible  <bruno@clisp.org>
4708         thread-optim: Fix logic error.
4709         Reported by Paul Eggert.
4710         * lib/thread-optim.h (IF_MT): Fix logic error.
4712 2020-08-08  Bruno Haible  <bruno@clisp.org>
4714         localename: Use module 'thread-optim'.
4715         * lib/localename.c: Include thread-optim.h.
4716         (struniq): Use IF_MT macro.
4717         * modules/localename (Depends-on): Add thread-optim.
4719         clean-temp: Use module 'thread-optim'.
4720         * lib/clean-temp.c: Include thread-optim.h.
4721         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4722         register_temp_file, unregister_temp_file, register_temp_subdir,
4723         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4724         close_temp, fclose_variant_temp): Use IF_MT macro.
4725         * modules/clean-temp (Depends-on): Add thread-optim.
4727         fatal-signal: Use module 'thread-optim'.
4728         * lib/fatal-signal.c: Include thread-optim.h.
4729         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4730         macro.
4731         * modules/fatal-signal (Depends-on): Add thread-optim.
4733 2020-08-08  Bruno Haible  <bruno@clisp.org>
4735         New module 'thread-optim'.
4736         * lib/thread-optim.h: New file.
4737         * modules/thread-optim: New file.
4738         * doc/multithread.texi (Multithreading Optimizations): New section.
4740 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4742         doc: more updates for glibc 2.32
4743         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4744         * doc/posix-functions/fchmodat.texi: Update.
4746 2020-08-07  Bruno Haible  <bruno@clisp.org>
4748         doc: Update for glibc 2.32.
4749         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4750         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4751         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4752         * doc/glibc-functions/sigabbrev_np.texi: New file.
4753         * doc/glibc-functions/sigdescr_np.texi: New file.
4754         * doc/glibc-functions/strerrordesc_np.texi: New file.
4755         * doc/glibc-functions/strerrorname_np.texi: New file.
4756         * doc/gnulib.texi: Include them.
4757         (Glibc sys/single_threaded.h): New section.
4758         * doc/pastposix-functions/h_errno.texi: Update.
4759         * doc/posix-functions/*.texi: Likewise.
4760         * doc/glibc-functions/*.texi: Likewise.
4762 2020-08-07  Bruno Haible  <bruno@clisp.org>
4764         alloca: No need to compile alloca.c with clang.
4765         * lib/alloca.c: Skip all code with clang.
4767         Use __builtin_alloca with clang.
4768         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4770 2020-08-06  Bruno Haible  <bruno@clisp.org>
4772         Use __builtin_assume with clang.
4773         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4774         (assume): Use __builtin_assume when available.
4776 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4778         libgmp: add <gmp/gmp.h> support
4779         * m4/libgmp.m4 (gl_LIBGMP):
4780         * modules/libgmp (configure.ac, Makefile.am):
4781         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4782         ‘#include <gmp.h>’.
4784 2020-08-06  Bruno Haible  <bruno@clisp.org>
4786         Consider that clang defines __OPTIMIZE__ like GCC does.
4787         * lib/streq.h: Define the inline functions also on clang.
4788         * lib/c-strcaseeq.h: Likewise.
4789         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4790         the GCC workaround to clang.
4792 2020-08-06  Bruno Haible  <bruno@clisp.org>
4794         safe-alloc: Remove unused code.
4795         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4797 2020-08-06  Bruno Haible  <bruno@clisp.org>
4799         Use __builtin_expect with clang everywhere.
4800         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4801         also on clang.
4803 2020-08-05  Bruno Haible  <bruno@clisp.org>
4805         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4806         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4807         built-in also on clang.
4808         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4809         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4811 2020-08-05  Bruno Haible  <bruno@clisp.org>
4813         Use __builtin_clz{,l,ll} with clang, also on Windows.
4814         * lib/integer_length.c: With clang, use the GCC built-in, not
4815         <intrin.h>.
4816         * lib/integer_length_l.c: Likewise.
4817         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4818         also on clang.
4819         * lib/vasnprintf.c (divide): Likewise.
4821 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4823         Update srclist.txt as per recent glibc changes
4824         * config/srclist.txt: Uncomment lines to reflect recent merges
4825         from Gnulib to glibc.
4827 2020-08-03  Bruno Haible  <bruno@clisp.org>
4829         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4832 2020-08-03  Bruno Haible  <bruno@clisp.org>
4834         integer_length_ll: Optimize for MSVC in 64-bit mode.
4835         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4836         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4838 2020-08-03  Bruno Haible  <bruno@clisp.org>
4840         integer_length_ll: Optimize for MSVC in 32-bit mode.
4841         * lib/integer_length_l.c: Include <intrin.h>.
4842         (integer_length): Define as inline function, like in
4843         lib/integer_length.c.
4845 2020-08-03  Bruno Haible  <bruno@clisp.org>
4847         integer_length: Optimize for MSVC.
4848         * lib/integer_length.c: Include <intrin.h>.
4849         (integer_length): With MSVC, use the _BitScanReverse built-in.
4851 2020-08-03  Bruno Haible  <bruno@clisp.org>
4853         ffsll: Optimize for MSVC in 64-bit mode.
4854         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4855         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4856         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4858 2020-08-03  Bruno Haible  <bruno@clisp.org>
4860         ffsll: Optimize for MSVC in 32-bit mode.
4861         * lib/ffsl.h: Include <intrin.h>.
4862         (ffs): Define as inline function, like in lib/ffs.c.
4864 2020-08-03  Bruno Haible  <bruno@clisp.org>
4866         ffs: Optimize for MSVC.
4867         * lib/ffs.c: Include <intrin.h>.
4868         (ffs): With MSVC, use the _BitScanForward built-in.
4870 2020-08-03  Bruno Haible  <bruno@clisp.org>
4872         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4873         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4874         variable.
4876 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4878         fopen: Avoid undesired interactions with glibc headers.
4879         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4880         __need_FILE, as the latter does not work with glibc.
4882 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4884         fcntl: document some F_SETLK errno variations
4885         * doc/posix-functions/fcntl.texi (fcntl): Document
4886         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4888 2020-08-02  Bruno Haible  <bruno@clisp.org>
4890         oset: Add an 'iterator_atleast' operation.
4891         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4892         extracted from gl_array_search_atleast.
4893         (gl_array_search_atleast): Use it.
4894         (gl_array_iterator_atleast): New function.
4895         (gl_array_oset_implementation): Use it.
4896         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4897         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4898         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4899         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4900         member.
4901         (gl_oset_iterator_atleast): New function.
4902         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4903         (gl_OSet::iterator): Add another auxiliary constructor.
4904         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4905         New functions.
4906         (main): Test also gl_oset_iterator_atleast.
4907         * tests/test-avltree_oset.c (is_at_least): New function.
4908         (main): Test also gl_oset_iterator_atleast.
4909         * tests/test-rbtree_oset.c (is_at_least): New function.
4910         (main): Test also gl_oset_iterator_atleast.
4911         * tests/test-oset-c++.cc (is_at_most): New function.
4912         (main): Test also gl_OSet::begin_atleast.
4914 2020-08-02  Bruno Haible  <bruno@clisp.org>
4916         oset-c++, omap-c++: Remove restriction for search_atleast method.
4917         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4918         a different type than the element.
4919         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4920         a different type than the key.
4922 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4924         gnumakefile: say ‘$(MAKE)’ not ‘make’
4925         * top/GNUmakefile (abort-due-to-no-makefile):
4926         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4927         This change is backported from Autoconf.
4929 2020-08-01  Bruno Haible  <bruno@clisp.org>
4931         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4932         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4933         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4934         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4935         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4936         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4938 2020-08-01  Bruno Haible  <bruno@clisp.org>
4940         libtextstyle-optional: Update tests.
4941         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4942         gl_LIBTEXTSTYLE_OPTIONAL.
4944 2020-08-01  Bruno Haible  <bruno@clisp.org>
4946         parse-datetime: Fix wrong #line statements.
4947         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4948         parse-datetime-gen.h.
4950 2020-08-01  Bruno Haible  <bruno@clisp.org>
4952         libtextstyle[-optional]: Allow requesting a minimum version.
4953         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4954         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4955         gl_LIBTEXTSTYLE_SEARCH): New macros.
4956         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4957         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4958         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4959         * modules/libtextstyle-optional (configure.ac): Don't invoke
4960         gl_LIBTEXTSTYLE_OPTIONAL.
4961         * NEWS: Mention the changes.
4963 2020-07-31  Bruno Haible  <bruno@clisp.org>
4965         _GL_CMP: Improve documentation.
4966         Reported by Paul Eggert in
4967         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4968         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4969         passed.
4971 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4973         largefile: sync with Autoconf master
4974         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4975         Avoid undefined behavior on platforms where off_t is 32 bits.
4976         See: https://bugs.debian.org/742780
4978         alloca: sync with Autoconf master
4979         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4980         Do not define if Autoconf 2.70 or later, since Autoconf master
4981         now matches us.
4983 2020-07-30  Bruno Haible  <bruno@clisp.org>
4985         unicodeio: Add comment.
4986         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4987         different iconv behaviours.
4989 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4991         Work around some Oracle Studio attribute bugs
4992         These were discovered when building bleeding-edge Emacs with
4993         Oracle Studio.
4994         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4995         Port to Oracle Studio 12.6, which mishandles __attribute__
4996         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4997         __has_attribute says they work.
4999 2020-07-29  Bruno Haible  <bruno@clisp.org>
5001         unicodeio: Fix wrong result on musl libc.
5002         Reported by A. Wilcox <awilfox@adelielinux.org> in
5003         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5004         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5005         on musl libc.
5006         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5007         * modules/unicodeio (Files): Add m4/musl.m4.
5009 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5011         fsusage, regex, stat-size: remove Cray support
5012         As near as I can make out this is actually support for UNICOS/mp,
5013         last released 2005, and Cray hasn’t supported that for years.
5014         * config/srclist.txt: Comment out regex.h for now.
5015         * lib/fsusage.c (get_fs_usage):
5016         * lib/regex.h (re_comp, re_exec):
5017         * lib/stat-size.h (ST_NBLOCKSIZE):
5018         Don’t worry about _CRAY.
5020 2020-07-29  Bruno Haible  <bruno@clisp.org>
5022         parse-datetime: Fix compilation error with bison 3.7.
5023         * modules/parse-datetime (Makefile.am): Create a generated header file
5024         parse-datetime-gen.h in the source directory. Correct #include and
5025         #line statements during preprocessing.
5027 2020-07-28  Bruno Haible  <bruno@clisp.org>
5029         fopen-gnu: Create files correctly (regression from 2020-05-24).
5030         * lib/fopen.c (rpl_open): Pass a third argument to open().
5032 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5034         xalloc-die: don’t depend on xalloc
5035         This removes a circular dependency, as xalloc depends on xalloc-die.
5036         * modules/xalloc-die (Files): Add lib/xalloc.h.
5037         (Depends-on): Remove xalloc.
5038         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5040         dfa-tests: port to MSVC
5041         Problem reported by Gisle Vanem in:
5042         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5043         Also, remove an unnecessary dependency on getprogname.
5044         * modules/dfa-tests (Depends-on): Remove getprogname.
5045         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5046         (exit_status): New static var.
5047         (dfawarn): Set it instead of exiting.
5048         Do not declare as _Noreturn, to pacify MSVC.
5049         (main): Return exit_status.
5051 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5053         argz: pacify MSVC
5054         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5055         Problem reported by Gisle Vanem.
5057         libgmp: remove dependency on havelib
5058         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5059         use the more-traditional AC_SEARCH_LIBS approach.
5060         This should work better with GNU Emacs configuration,
5061         which uses pkg-config instead of a havelib-style approach.
5062         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5063         * modules/libgmp (Depends-on): Remove havelib.
5065         libgmp: remove HAVE_GMP, LIB_GMP
5066         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5067         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5069 2020-07-26  Bruno Haible  <bruno@clisp.org>
5071         inttypes: Remove support for AIX 4.
5072         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5073         * m4/inttypes-pri.m4: Remove file.
5074         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5075         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5076         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5077         PRI_MACROS_BROKEN.
5078         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5080 2020-07-26  Bruno Haible  <bruno@clisp.org>
5082         gettimeofday: Remove workaround for Mac OS X 10.0.
5083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5084         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5085         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5086         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5087         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5088         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5089         * modules/localtime-buffer: Remove file.
5090         * lib/localtime-buffer.h: Remove file.
5091         * lib/localtime-buffer.c: Remove file.
5092         * m4/localtime-buffer.m4: Remove file.
5093         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5095 2020-07-26  Bruno Haible  <bruno@clisp.org>
5097         tzset: Remove workaround for Solaris 2.6.
5098         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5099         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5100         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5101         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5102         * lib/localtime-buffer.c: Likewise.
5103         * lib/localtime.c: Likewise.
5104         * lib/tzset.c: Don't include localtime-buffer.h.
5105         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5106         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5107         is 1.
5108         * modules/tzset (Depends-on): Remove localtime-buffer.
5110 2020-07-26  Bruno Haible  <bruno@clisp.org>
5112         expl: Simplify autoconf test.
5113         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5114         with small values..." test into the "checking whether expl works..."
5115         test.
5117 2020-07-26  Bruno Haible  <bruno@clisp.org>
5119         alloca: Remove Cray-2 and Cray Y-MP support.
5120         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5121         Enable also on Autoconf >= 2.69.
5122         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5123         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5124         i00afunc): Remove.
5126 2020-07-25  Bruno Haible  <bruno@clisp.org>
5128         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5129         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5131 2020-07-25  Bruno Haible  <bruno@clisp.org>
5133         sigprocmask: Small autoconf macro improvement.
5134         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5135         user to override the value of gl_cv_func_sigprocmask.
5136         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5138 2020-07-25  Bruno Haible  <bruno@clisp.org>
5140         Small autoconf macro improvements.
5141         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5142         override the value of gl_cv_func_working_mktime.
5143         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5144         compiler produces multi-arch binaries..." in the configure output.
5145         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5146         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5148 2020-07-25  Bruno Haible  <bruno@clisp.org>
5150         doc: Update for NetBSD 7.1, 8.0, 9.0.
5151         * doc/*/*.texi: Update.
5152         * m4/exp2l.m4: Update comments.
5153         * m4/expl.m4: Likewise.
5154         * m4/ilogb.m4: Likewise.
5155         * m4/ilogbf.m4: Likewise.
5156         * m4/log10l.m4: Likewise.
5157         * m4/logl.m4: Likewise.
5158         * m4/printf.m4: Likewise.
5159         * m4/rintl.m4: Likewise.
5160         * m4/wcwidth.m4: Likewise.
5162 2020-07-24  Bruno Haible  <bruno@clisp.org>
5164         doc: Update for Mac OS X 10.13.
5165         * doc/*/*.texi: Update.
5166         * m4/expm1l.m4: Update comments.
5167         * m4/getgroups.m4: Likewise.
5168         * m4/getlogin_r.m4: Likewise.
5169         * m4/linkat.m4: Likewise.
5170         * m4/printf.m4: Likewise.
5172 2020-07-24  Bruno Haible  <bruno@clisp.org>
5174         doc: Update for Cygwin 2.9.0.
5175         * doc/*/*.texi: Update.
5177 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5179         parse-datetime: modernize doc
5180         * doc/parse-datetime.texi: Use more-current examples.
5181         Don’t lead with 32-bit time_t, as it’s on its way out.
5182         Capitalize “Epoch” to be consistent with POSIX.
5184         timespec: remove dependence on ‘verify’
5185         * lib/timespec.h: Do not include verify.h; no longer needed.
5186         * modules/timespec (Depends-on): Remove ‘verify’.
5188         Optimize a few more three-valued comparisons
5189         * lib/timespec.h (timespec_cmp, timespec_sign):
5190         * lib/utimecmp.c (utimecmpat):
5191         Avoid conditional branches by using _GL_CMP.
5193         Fix _GL_CMP parenthesization typo
5194         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5196 2020-07-24  Bruno Haible  <bruno@clisp.org>
5198         dfa: Revert breaking gawk.
5199         Reported by Arnold Robbins <arnold@skeeve.com>.
5200         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5202 2020-07-23  Bruno Haible  <bruno@clisp.org>
5204         Optimize three-valued comparison between integers.
5205         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5206         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5207         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5208         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5209         * lib/dfa.c (compare): Likewise.
5210         * lib/fts.c (fts_compare_ino): Likewise.
5211         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5212         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5213         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5214         * lib/memcasecmp.c (memcasecmp): Likewise.
5215         * lib/memcmp2.c (memcmp2): Likewise.
5216         * lib/savedir.c (direntry_cmp_inode): Likewise.
5217         * lib/strcasecmp.c (strcasecmp): Likewise.
5218         * lib/strncasecmp.c (strncasecmp): Likewise.
5219         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5221 2020-07-23  Bruno Haible  <bruno@clisp.org>
5223         lchmod: Use /proc on Cygwin.
5224         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5226 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5228         fchmodat: Use /proc on Cygwin
5229         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5231 2020-07-21  Bruno Haible  <bruno@clisp.org>
5233         aligned-malloc: Optionally use aligned_alloc.
5234         * lib/aligned-malloc.h: Verify the alignment.
5235         (aligned_malloc): Use aligned_alloc as an alternative.
5236         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5237         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5238         'aligned-malloc' and 'pagealign_alloc'.
5240 2020-07-21  Bruno Haible  <bruno@clisp.org>
5242         aligned-malloc: Add tests.
5243         * tests/test-aligned-malloc.c: New file.
5244         * modules/aligned-malloc-tests: New file.
5246         aligned-malloc: New module.
5247         * lib/aligned-malloc.h: New file.
5248         * m4/malloc-align.m4: New file.
5249         * modules/aligned-malloc: New file.
5250         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5251         * doc/glibc-functions/memalign.texi: Likewise.
5253 2020-07-21  Bruno Haible  <bruno@clisp.org>
5255         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5256         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5257         sure PRIPTR_PREFIX is defined to "ll", not "l".
5259 2020-07-21  Bruno Haible  <bruno@clisp.org>
5261         printf-posix: Make an autoconf test more future-proof.
5262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5263         using uintptr_t.
5265 2020-07-20  Bruno Haible  <bruno@clisp.org>
5267         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5268         * modules/list (License): Change to LGPLv2+.
5269         * modules/array-list (License): Likewise.
5270         * modules/carray-list (License): Likewise.
5271         * modules/linked-list (License): Likewise.
5272         * modules/avltree-list (License): Likewise.
5273         * modules/rbtree-list (License): Likewise.
5274         * modules/oset (License): Likewise.
5275         * modules/array-oset (License): Likewise.
5276         * modules/avltree-oset (License): Likewise.
5277         * modules/rbtree-oset (License): Likewise.
5278         * modules/omap (License): Likewise.
5279         * modules/array-omap (License): Likewise.
5280         * modules/avltree-omap (License): Likewise.
5281         * modules/rbtree-omap (License): Likewise.
5283 2020-07-20  Bruno Haible  <bruno@clisp.org>
5285         oset: Add an 'update' operation.
5286         * lib/gl_array_oset.c (gl_array_update): New function.
5287         (gl_array_oset_implementation): Use it.
5288         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5289         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5290         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5291         extracted from gl_tree_nx_add_before.
5292         (gl_tree_nx_add_before): Invoke it.
5293         (gl_tree_add_node_after): New function, extracted from
5294         gl_tree_nx_add_after.
5295         (gl_tree_nx_add_after): Invoke it.
5296         (gl_tree_remove_node_no_free): New function, extracted from
5297         gl_tree_remove_node.
5298         (gl_tree_remove_node): Invoke it.
5299         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5300         extracted from gl_tree_nx_add_before.
5301         (gl_tree_nx_add_before): Invoke it.
5302         (gl_tree_add_node_after): New function, extracted from
5303         gl_tree_nx_add_after.
5304         (gl_tree_nx_add_after): Invoke it.
5305         (gl_tree_remove_node_no_free): New function, extracted from
5306         gl_tree_remove_node.
5307         (gl_tree_remove_node): Invoke it.
5308         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5309         from gl_tree_iterator_next.
5310         (gl_tree_iterator_next): Invoke it.
5311         (gl_tree_prev_node, gl_tree_update): New functions.
5312         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5313         (gl_avltree_oset_implementation): Use gl_tree_update.
5314         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5315         (gl_rbtree_oset_implementation): Use gl_tree_update.
5316         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5317         (gl_oset_update): New function.
5318         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5319         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5320         * modules/rbtree-oset (configure.ac): Likewise.
5321         * tests/test-oset-update.h: New file.
5322         * tests/test-array_oset.c: Include test-oset-update.h.
5323         (main): Invoke test_update.
5324         * tests/test-avltree_oset.c: Likewise.
5325         * tests/test-rbtree_oset.c: Likewise.
5326         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5327         * modules/avltree-oset-tests (Files): Likewise.
5328         * modules/rbtree-oset-tests (Files): Likewise.
5329         * tests/test-oset-c++.cc (action): New function.
5330         (main): Test the 'update' member function.
5332 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5334         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5335         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5336         shell if, so that the argument to AC_CHECK_HEADERS is
5337         a simple string that does not require shell evaluation.
5338         This fixes a warning generated by Autoconf 2.69b.
5340 2020-07-12  Bruno Haible  <bruno@clisp.org>
5342         libgmp: Avoid warning when --without-libgmp is used.
5343         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5344         GCC >= 8, not for GCC >= 4.6.
5346 2020-07-12  Bruno Haible  <bruno@clisp.org>
5348         libgmp: Link to the correct shared library.
5349         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5350         * modules/libgmp (Depends-on): Add havelib.
5351         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5352         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5354 2020-07-12  Bruno Haible  <bruno@clisp.org>
5356         libgmp tests: Add some safety checks.
5357         * modules/libgmp-tests (Depends-on): Add verify.
5358         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5359         (main): Verify that gmp.h and libgmp versions match.
5361 2020-07-10  Bruno Haible  <bruno@clisp.org>
5363         unicodeio: Fix wrong result on NetBSD.
5364         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5365         characters also on NetBSD.
5367 2020-07-09  Bruno Haible  <bruno@clisp.org>
5369         unicodeio: Fix wrong result on Solaris 11.
5370         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5371         via Akim Demaille <akim.demaille@gmail.com> in
5372         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5373         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5374         characters on Solaris.
5375         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5376         UTF-8 output or the specified fallback.
5378 2020-07-08  Bruno Haible  <bruno@clisp.org>
5380         unicodeio: Add tests.
5381         * tests/test-unicodeio.c: New file.
5382         * tests/test-unicodeio1.sh: New file.
5383         * tests/test-unicodeio2.sh: New file.
5384         * tests/test-unicodeio3.sh: New file.
5385         * modules/unicodeio-tests: New file.
5387 2020-07-08  Bruno Haible  <bruno@clisp.org>
5389         unicodeio: Document link requirements.
5390         * modules/unicodeio (Link): New section.
5392 2020-07-07  Bruno Haible  <bruno@clisp.org>
5394         doc: Remove support for some very old platforms.
5395         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5396         * doc/posix-functions/memcpy.texi: Likewise.
5397         * doc/posix-functions/memmove.texi: Likewise.
5398         * doc/posix-functions/memset.texi: Likewise.
5399         * doc/posix-functions/getcwd.texi: Likewise.
5401         memchr: Remove support for some very old platforms.
5402         * m4/memchr-obsolete.m4: Remove file.
5403         * modules/memchr-obsolete: Remove file.
5404         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5405         absent. Don't define HAVE_MEMCHR.
5406         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5407         * modules/memchr (Depends-on): Remove memchr-obsolete.
5408         (configure.ac): Assume HAVE_MEMCHR is 1.
5409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5410         HAVE_MEMCHR.
5411         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5412         * doc/posix-functions/memchr.texi: Don't mention module
5413         'memchr-obsolete'.
5414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5415         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5416         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5418         dup2: Remove support for some very old platforms.
5419         * m4/dup2-obsolete.m4: Remove file.
5420         * modules/dup2-obsolete: Remove file.
5421         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5422         Don't define HAVE_DUP2.
5423         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5424         * lib/dup2.c: Likewise.
5425         * modules/dup2 (Depends-on, configure.ac): Likewise.
5426         (Depends-on): Remove dup2-obsolete.
5427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5428         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5429         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5431 2020-07-07  Bruno Haible  <bruno@clisp.org>
5433         canonicalize: Trim module dependencies.
5434         * lib/hash-triple.h: Group declarations.
5435         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5436         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5437         (STREQ): Remove macro.
5438         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5439         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5440         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5441         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5442         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5443         hash-triple-simple.
5444         * modules/file-set (Depends-on): Likewise.
5446 2020-07-07  Bruno Haible  <bruno@clisp.org>
5448         Clarify dependencies to double-slash-root.
5449         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5450         (Depends-on): Add double-slash-root.
5451         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5452         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5454 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5456         libgmp: new module
5457         The idea is to let programs simply include <gmp.h>, and
5458         so long as they live within the mini-gmp subset they need
5459         not worry about whether the GMP libraries are installed.
5460         * MODULES.html.sh: Mention it.
5461         * config/srclist.txt: Mention files copied from GMP source.
5462         * config/srclistvars.sh (GMP): New var.
5463         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5464         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5465         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5467 2020-07-05  Bruno Haible  <bruno@clisp.org>
5469         mkancesdirs: Trim module dependencies.
5470         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5471         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5473 2020-07-05  Bruno Haible  <bruno@clisp.org>
5475         getprogname: Trim module dependencies.
5476         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5477         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5478         basename-lgpl.
5480 2020-07-05  Bruno Haible  <bruno@clisp.org>
5482         filenamecat-lgpl: Trim module dependencies.
5483         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5484         dirname.h.
5485         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5486         basename-lgpl, filename.
5488 2020-07-05  Bruno Haible  <bruno@clisp.org>
5490         backupfile, backup-rename: Trim module dependencies.
5491         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5492         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5493         basename-lgpl.
5494         * modules/backup-rename (Depends-on): Likewise.
5496 2020-07-05  Bruno Haible  <bruno@clisp.org>
5498         argp: Trim module dependencies.
5499         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5500         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5502 2020-07-05  Bruno Haible  <bruno@clisp.org>
5504         basename-lgpl: New module.
5505         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5506         lib/basename-lgpl.c.
5507         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5508         <stdbool.h>, filename.h.
5509         (last_component): Rename a local variable.
5510         * lib/dirname.h: Include basename-lgpl.h.
5511         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5512         (last_component, base_len): Remove declarations.
5513         * modules/basename-lgpl: New file.
5514         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5515         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5516         (Makefile.am): Don't compile basename-lgpl.c.
5517         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5518         not 'dirname'.
5520 2020-07-05  Bruno Haible  <bruno@clisp.org>
5522         dirname, dirname-lgpl: Simplify.
5523         * m4/dirname.m4: Remove file.
5524         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5525         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5526         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5528 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5530         tests: avoid shadowing warning
5531         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5533 2020-07-05  Bruno Haible  <bruno@clisp.org>
5535         supersede: Add tests.
5536         * tests/test-supersede.c: New file.
5537         * tests/test-supersede-open.h: New file.
5538         * tests/test-supersede-fopen.h: New file.
5539         * modules/supersede-tests: New file.
5541         supersede: New module.
5542         * lib/supersede.h: New file.
5543         * lib/supersede.c: New file.
5544         * m4/supersede.m4: New file.
5545         * modules/supersede: New file.
5547 2020-07-05  Bruno Haible  <bruno@clisp.org>
5549         Add some copyright headers.
5550         * lib/dev-ino.h: Add copyright header.
5551         * lib/di-set.h: Likewise.
5552         * lib/fchown-stub.c: Likewise.
5553         * lib/file-set.h: Likewise.
5554         * lib/hash-triple.h: Likewise.
5555         * lib/idcache.h: Likewise.
5556         * lib/ino-map.h: Likewise.
5557         * lib/mkancesdirs.h: Likewise.
5558         * lib/scratch_buffer.h: Likewise.
5559         * lib/se-context.in.h: Likewise.
5560         * lib/stdopen.h: Likewise.
5561         * lib/userspec.h: Likewise.
5563 2020-07-04  Bruno Haible  <bruno@clisp.org>
5565         getrandom: Relicense under LGPLv2+.
5566         Paul Eggert's approval is in
5567         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5568         * modules/getrandom (License): Change to LGPLv2+.
5570 2020-07-04  Bruno Haible  <bruno@clisp.org>
5572         getumask: Add tests.
5573         * tests/test-getumask.c: New file.
5574         * modules/getumask-tests: New file.
5576         getumask: New module.
5577         * lib/sys_stat.in.h (getumask): New declaration.
5578         * lib/getumask.c: New file.
5579         * m4/getumask.m4: New file.
5580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5581         declared.
5582         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5583         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5584         HAVE_GETUMASK.
5585         * modules/getumask: New file.
5586         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5587         * doc/glibc-functions/getumask.texi: New file.
5588         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5590 2020-07-04  Bruno Haible  <bruno@clisp.org>
5592         clean-temp: Add support for temporary files with given mode.
5593         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5594         * lib/clean-temp.c (struct try_create_file_params): New type.
5595         (try_create_file): New function.
5596         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5597         gen_tempname.
5599 2020-07-04  Bruno Haible  <bruno@clisp.org>
5601         clean-temp: Document limitations.
5602         * lib/clean-temp.h: Document limitations.
5604 2020-07-04  Bruno Haible  <bruno@clisp.org>
5606         clean-temp: Add support for temporary files with unpredictable names.
5607         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5608         * lib/clean-temp.c: Include tempname.h.
5609         (gen_register_open_temp): New function.
5610         * modules/tempname (configure.ac): Define a module indicator.
5612 2020-07-04  Bruno Haible  <bruno@clisp.org>
5614         clean-temp: Add support for temporary files anywhere in the file system.
5615         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5616         cleanup_temporary_file): New declarations.
5617         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5618         variables.
5619         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5620         (dir_cleanup_list): Renamed from cleanup_list.
5621         (cleanup_action): Process the file_cleanup_list as well.
5622         (do_init_clean_temp): New function.
5623         (clean_temp_once): New variable.
5624         (init_clean_temp): New function.
5625         (create_temp_dir): Invoke it.
5626         (register_temporary_file, unregister_temporary_file,
5627         cleanup_temporary_file): New functions.
5628         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5629         argument.
5631 2020-07-04  Bruno Haible  <bruno@clisp.org>
5633         clean-temp: Improve comments.
5634         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5635         fwriteerror_temp, close_stream_temp): Clarify intended use.
5636         * lib/clean-temp.c: Likewise.
5638 2020-07-04  Bruno Haible  <bruno@clisp.org>
5640         clean-temp: Make multithread-safe, part 2.
5641         * lib/fatal-signal.h: Include <signal.h>.
5642         (get_fatal_signal_set): New declaration.
5643         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5644         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5645         (struct closeable_fd): New type.
5646         (fatal_signal_set): New variable.
5647         (init_fatal_signal_set): New function.
5648         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5649         (cleanup_action): Invoke asyncsafe_close instead of close.
5650         (create_temp_dir): Invoke init_fatal_signal_set.
5651         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5652         element.
5653         (unregister_fd): Remove function.
5654         (close_temp): Cleanup descriptors list on the fly. Invoke
5655         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5656         (fclose_variant_temp): New function.
5657         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5658         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5660 2020-07-04  Bruno Haible  <bruno@clisp.org>
5662         clean-temp: Make multithread-safe, part 1.
5663         * lib/clean-temp.c: Include glthread/lock.h.
5664         (cleanup_list_lock): New variable.
5665         (register_temp_file, unregister_temp_file, register_temp_subdir,
5666         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5667         (create_temp_dir): Likewise. Don't free the old array.
5668         (descriptors_lock): New variable.
5669         (register_fd, unregister_fd): Use it.
5670         * modules/clean-temp (Depends-on): Add lock.
5672 2020-07-04  Bruno Haible  <bruno@clisp.org>
5674         fatal-signal: Make multithread-safe.
5675         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5676         (do_init_fatal_signal_set): New function, extracted from
5677         init_fatal_signal_set.
5678         (fatal_signal_set_once): New variable.
5679         (init_fatal_signal_set): Use gl_once.
5681 2020-07-03  Bruno Haible  <bruno@clisp.org>
5683         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5684         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5685         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5686         <bcrypt.h>.
5688 2020-07-03  Bruno Haible  <bruno@clisp.org>
5690         dfa tests: Follow common file naming conventions.
5691         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5692         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5693         * tests/test-dfa-invalid-char-class.sh: Renamed from
5694         tests/dfa-invalid-char-class.sh. Update.
5695         * modules/dfa-tests (Files, Makefile.am): Update.
5697 2020-07-03  Bruno Haible  <bruno@clisp.org>
5699         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5700         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5701         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5703 2020-07-03  Bruno Haible  <bruno@clisp.org>
5705         asyncsafe-spin: Reduce code duplication.
5706         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5707         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5708         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5710 2020-07-03  Bruno Haible  <bruno@clisp.org>
5712         lchmod: Simplify after 2020-02-22 change.
5713         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5715 2020-07-03  Bruno Haible  <bruno@clisp.org>
5717         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5718         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5720 2020-07-03  Bruno Haible  <bruno@clisp.org>
5722         dfa: Make sure the compiler does not barf on 'inline'.
5723         * modules/dfa (configure.ac): Require AC_C_INLINE.
5725 2020-07-03  Bruno Haible  <bruno@clisp.org>
5727         bitset: Make sure the compiler does not barf on 'inline'.
5728         * modules/bitset (configure.ac): New section.
5730 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5732         manywarnings: improve port to GCC 10.1
5733         * build-aux/gcc-warning.spec: Also list warnings that are default
5734         or are enabled by already-given flags.  This lets us speed up
5735         checking for attributes, and makes the generated compilation
5736         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5737         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5738         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5739         to shell variables that may have long values.
5740         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5741         consequences of other flags, to speed up checking and
5742         shorten commands.
5744         tests: pacify gcc -fanalyzer on zerosize_ptr
5745         * tests/test-memcasecmp.c (main):
5746         * tests/test-memchr.c (main):
5747         * tests/test-memchr2.c (main):
5748         * tests/test-memcmp.c (main):
5749         * tests/test-memmem.c (main):
5750         * tests/test-memrchr.c (main):
5751         * tests/unistr/test-chr.h (main):
5752         * tests/unistr/test-cmp.h (test_cmp):
5753         Check whether zerosize_ptr returns NULL before using it.
5754         This pacifies GCC 10.1’s new fanalyzer option, and matches
5755         other uses of zerosize_ptr.
5757 2020-07-01  Bruno Haible  <bruno@clisp.org>
5759         asyncsafe-spin: Add tests.
5760         * tests/test-asyncsafe-spin1.c: New file.
5761         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5762         tests/test-pthread-spin.c.
5763         * modules/asyncsafe-spin-tests: New file.
5765 2020-07-01  Bruno Haible  <bruno@clisp.org>
5767         asyncsafe-spin: New module.
5768         * lib/asyncsafe-spin.h: New file.
5769         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5770         * modules/asyncsafe-spin: New file.
5772 2020-07-01  Bruno Haible  <bruno@clisp.org>
5774         windows-spin: Fix race condition on multiprocessor systems.
5775         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5777 2020-07-01  Bruno Haible  <bruno@clisp.org>
5779         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5780         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5781         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5782         an implementation based on other GCC built-ins.
5784 2020-07-01  Bruno Haible  <bruno@clisp.org>
5786         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5787         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5788         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5789         lock byte.
5791 2020-07-01  Bruno Haible  <bruno@clisp.org>
5793         pthread-spin: Add error checking.
5794         * lib/pthread-spin.c: Include <stdbool.h>.
5795         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5796         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5797         the unlocks.
5798         * modules/pthread-spin (Depends-on): Add stdbool.
5800 2020-07-01  Bruno Haible  <bruno@clisp.org>
5802         pthread-spin: Add tests.
5803         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5804         * modules/pthread-spin-tests: New file.
5806 2020-07-01  Bruno Haible  <bruno@clisp.org>
5808         tests: Reduce code duplication.
5809         * tests/atomic-int-posix.h: New file, extracted from
5810         tests/test-pthread-mutex.c.
5811         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5812         * tests/test-pthread-rwlock.c: Likewise.
5813         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5814         * modules/pthread-rwlock-tests (Files): Likewise.
5816 2020-07-01  Bruno Haible  <bruno@clisp.org>
5818         tests: Refactor.
5819         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5820         * tests/test-mtx.c: Include it. Remove the corresponding code.
5821         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5823 2020-07-01  Bruno Haible  <bruno@clisp.org>
5825         tests: Refactor.
5826         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5827         * tests/test-lock.c: Include it. Remove the corresponding code.
5828         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5830 2020-06-29  Bruno Haible  <bruno@clisp.org>
5832         sys_socket: Don't define socklen_t if it is already defined on mingw.
5833         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5834         <https://savannah.gnu.org/bugs/?57725>,
5835         by Rahul Das <bokul_4u@yahoo.com> in
5836         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5837         and by Eli Zaretskii <eliz@gnu.org> in
5838         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5839         * lib/sys_socket.in.h (socklen_t): Remove definition.
5841 2020-06-29  Bruno Haible  <bruno@clisp.org>
5843         alloca-opt: Fix warning on mingw.
5844         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5845         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5846         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5847         whether alloca is defined.
5849 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5851         getrandom: do not depend on ‘open’ on mingw
5852         Similarly for at-internal, getloadavg.  These modules do not call
5853         the ‘open’ function when they are compiled on mingw.  On mingw,
5854         this avoids having to compile open.c when building Emacs, which
5855         does its own thing with ‘open’.
5856         * modules/at-internal, modules/getloadavg, modules/getrandom:
5857         (Depends-on): Don’t depend on ‘open’ on mingw.
5858         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5859         * modules/getloadavg (Depends-on):
5860         Depend on intprops, open, stdbool, stdlib only if compiling
5861         getloadavg.c.
5863 2020-06-28  Bruno Haible  <bruno@clisp.org>
5865         doc: Add a note about sigprocmask vs. pthread_sigmask.
5866         * doc/posix-functions/sigprocmask.texi: Add note.
5868 2020-06-28  Bruno Haible  <bruno@clisp.org>
5870         getrandom: Fix compilation errors on older versions of mingw.
5871         Reported by Eli Zaretskii <eliz@gnu.org> in
5872         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5873         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5874         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5875         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5876         BCryptGenRandom ourselves.
5878 2020-06-28  Bruno Haible  <bruno@clisp.org>
5880         clean-temp: Fix wrong errno in error message.
5881         * lib/clean-temp.c (create_temp_dir): Save errno around
5882         unblock_fatal_signals call.
5884 2020-06-27  Bruno Haible  <bruno@clisp.org>
5886         fatal-signal: Make multithread-safe.
5887         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5889 2020-06-27  Bruno Haible  <bruno@clisp.org>
5891         clean-temp: Don't force deletion of temporary files on native Windows.
5892         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5893         argument.
5894         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5895         * NEWS: Mention the change.
5896         * lib/javacomp.c (write_temp_file): Update.
5898 2020-06-27  Bruno Haible  <bruno@clisp.org>
5900         fatal-signal: Make multithread-safe.
5901         * lib/fatal-signal.c: Include glthread/lock.h.
5902         (at_fatal_signal_lock): New variable.
5903         (at_fatal_signal): Use it.
5904         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5905         (block_fatal_signals, unblock_fatal_signals): Use them.
5906         * modules/fatal-signal (Depends-on): Add lock.
5908 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5910         getloadavg: don’t depend on fopen-gnu
5911         This is for Emacs, which does not need fopen-gnu for anything else,
5912         and which would need it only on a NetBSD platform where getloadavg
5913         does not work (does that even happen?).
5914         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5915         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5917         * tests/test-getloadavg.c (main): Fix typo.
5919 2020-06-27  Bruno Haible  <bruno@clisp.org>
5921         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5922         * modules/tempname (Link): New section.
5923         * modules/mkdtemp (Link): Likewise.
5924         * modules/clean-temp (Link): Likewise.
5925         * modules/mkstemp (Link): Likewise.
5926         * modules/stdlib-safer (Link): Likewise.
5927         * modules/mkstemps (Link): Likewise.
5928         * modules/mkostemp (Link): Likewise.
5929         * modules/mkostemps (Link): Likewise.
5930         * modules/tmpfile (Link): Likewise.
5931         * modules/tmpfile-safer (Link): Likewise.
5932         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5933         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5934         $(LIB_GETRANDOM).
5935         * NEWS: Mention the changes.
5937 2020-06-27  Bruno Haible  <bruno@clisp.org>
5939         fopen-gnu: Simplify code.
5940         * lib/fopen.c: Include <stdbool.h>.
5941         (rpl_fopen): Use a single variable open_flags instead of
5942         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5943         * modules/fopen (Depends-on): Add stdbool.
5945 2020-06-26  Bruno Haible  <bruno@clisp.org>
5947         canonicalize: Improve documentation.
5948         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5949         return convention.
5951 2020-06-26  Bruno Haible  <bruno@clisp.org>
5953         xgetcwd: Improve documentation.
5954         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5956 2020-06-26  Bruno Haible  <bruno@clisp.org>
5958         getcwd: Improve documentation.
5959         * lib/getcwd.c (__getcwd): Document the failure return convention.
5961 2020-06-26  Bruno Haible  <bruno@clisp.org>
5963         fchdir: Improve documentation.
5964         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5965         convention.
5967 2020-06-26  Bruno Haible  <bruno@clisp.org>
5969         filenamecat-lgpl: Set errno upon failure.
5970         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5971         return convention.
5972         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5974 2020-06-26  Bruno Haible  <bruno@clisp.org>
5976         areadlink-with-size: Set errno upon failure.
5977         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5978         fails.
5979         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5981 2020-06-26  Bruno Haible  <bruno@clisp.org>
5983         copy-file: Shrink dependencies.
5984         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5985         qcopy-acl.
5987 2020-06-26  Bruno Haible  <bruno@clisp.org>
5989         doc: Mention declaration fixes implemented by some modules.
5990         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5991         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5992         declaration appear in <unistd.h>.
5993         * doc/posix-functions/dup.texi: Likewise.
5994         * doc/posix-functions/dup2.texi: Likewise.
5995         * doc/posix-functions/gethostname.texi: Likewise.
5996         * doc/posix-functions/isatty.texi: Likewise.
5997         * doc/posix-functions/lseek.texi: Likewise.
5998         * doc/posix-functions/unlink.texi: Likewise.
5999         * doc/posix-functions/read.texi: Mention the module 'read'.
6000         * doc/posix-functions/write.texi: Mention the effects of the module
6001         'write'.
6003 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6005         c-dtoastr, c-ldtoastr: new modules
6006         These modules provide the same functionality as the modules
6007         dtoastr and ldtoastr except for the formatting taking place in the
6008         C locale.
6009         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6010         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6011         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6012         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6013         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6014         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6015         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6016         modules/c-ldtoastr-tests: New files.
6017         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6018         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6020 2020-06-21  Bruno Haible  <bruno@clisp.org>
6022         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6023         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6025 2020-06-16  Bruno Haible  <bruno@clisp.org>
6027         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6028         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6030 2020-06-16  Bruno Haible  <bruno@clisp.org>
6032         thread, thrd: Avoid a compiler warning.
6033         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6035 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6037         windows-thread: Avoid a compiler warning.
6038         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6039         void.
6040         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6042 2020-06-15  Bruno Haible  <bruno@clisp.org>
6044         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6045         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6047         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6048         first.
6050 2020-06-06  Bruno Haible  <bruno@clisp.org>
6052         calloc-gnu tests: Avoid a test failure with clang.
6053         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6054         'volatile', to defeat compiler optimizations.
6056 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6058         getloadavg: fix double-increment bug
6059         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6060         Linux without glibc, Android, Cygwin.  This fixes a bug I
6061         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6062         Problem and fix reported by Semen Verchenko in:
6063         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6065         tempname: use getrandom, not getentropy
6066         This removes a dependency, as getentropy depends on getrandom.
6067         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6068         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6069         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6071 2020-06-01  Bruno Haible  <bruno@clisp.org>
6073         doc: New chapter 'Multithreading'.
6074         * doc/multithread.texi: New file.
6075         * doc/gnulib.texi: Include it.
6077 2020-06-01  Bruno Haible  <bruno@clisp.org>
6079         doc: Move 'Running self-tests under valgrind' section.
6080         * doc/gnulib.texi (Build Infrastructure Modules): Include
6081         valgrind-tests.texi here...
6082         (Miscellaneous Notes): ... not here.
6084 2020-06-01  Bruno Haible  <bruno@clisp.org>
6086         doc: Move 'Visual Studio Compatibility' section.
6087         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6088         here...
6089         (Build Infrastructure Modules): ... not here.
6091 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6093         doc: improve randomness discussion
6094         Inspired by comments from Jeffrey Walton in:
6095         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6096         * doc/glibc-functions/getentropy.texi (getentropy):
6097         * doc/glibc-functions/getrandom.texi (getrandom):
6098         Improve discussion of problems with "random" data,
6099         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6101 2020-06-01  Bruno Haible  <bruno@clisp.org>
6103         doc: Fix Texinfo syntax error.
6104         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6106 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6108         doc: Change '.' to '@.' where appropriate.
6109         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6110         * doc/glibc-functions/fstatfs.texi: Likewise.
6111         * doc/glibc-functions/fts_children.texi: Likewise.
6112         * doc/glibc-functions/fts_read.texi: Likewise.
6113         * doc/glibc-functions/getdirentries.texi: Likewise.
6114         * doc/glibc-functions/mkostemp.texi: Likewise.
6115         * doc/glibc-functions/mkostemps.texi: Likewise.
6116         * doc/glibc-functions/mkstemps.texi: Likewise.
6117         * doc/glibc-functions/preadv.texi: Likewise.
6118         * doc/glibc-functions/pwritev.texi: Likewise.
6119         * doc/glibc-functions/sendfile.texi: Likewise.
6120         * doc/glibc-functions/statfs.texi: Likewise.
6121         * doc/gnulib-intro.texi: Likewise.
6122         * doc/gnulib-tool.texi: Likewise.
6123         * doc/intprops.texi: Likewise.
6124         * doc/lib-symbol-visibility.texi: Likewise.
6125         * doc/licenses-texi.texi: Likewise.
6126         * doc/pastposix-functions/bcmp.texi: Likewise.
6127         * doc/pastposix-functions/bcopy.texi: Likewise.
6128         * doc/pastposix-functions/bzero.texi: Likewise.
6129         * doc/pastposix-functions/ecvt.texi: Likewise.
6130         * doc/pastposix-functions/fcvt.texi: Likewise.
6131         * doc/pastposix-functions/ftime.texi: Likewise.
6132         * doc/pastposix-functions/gcvt.texi: Likewise.
6133         * doc/pastposix-functions/getwd.texi: Likewise.
6134         * doc/pastposix-functions/index.texi: Likewise.
6135         * doc/pastposix-functions/mktemp.texi: Likewise.
6136         * doc/pastposix-functions/rindex.texi: Likewise.
6137         * doc/pastposix-functions/wcswcs.texi: Likewise.
6138         * doc/posix-functions/aio_cancel.texi: Likewise.
6139         * doc/posix-functions/aio_error.texi: Likewise.
6140         * doc/posix-functions/aio_fsync.texi: Likewise.
6141         * doc/posix-functions/aio_read.texi: Likewise.
6142         * doc/posix-functions/aio_return.texi: Likewise.
6143         * doc/posix-functions/aio_suspend.texi: Likewise.
6144         * doc/posix-functions/aio_write.texi: Likewise.
6145         * doc/posix-functions/creat.texi: Likewise.
6146         * doc/posix-functions/ctime.texi: Likewise.
6147         * doc/posix-functions/daylight.texi: Likewise.
6148         * doc/posix-functions/fgetpos.texi: Likewise.
6149         * doc/posix-functions/fopen.texi: Likewise.
6150         * doc/posix-functions/freopen.texi: Likewise.
6151         * doc/posix-functions/fseeko.texi: Likewise.
6152         * doc/posix-functions/fsetpos.texi: Likewise.
6153         * doc/posix-functions/fstatat.texi: Likewise.
6154         * doc/posix-functions/fstatvfs.texi: Likewise.
6155         * doc/posix-functions/ftello.texi: Likewise.
6156         * doc/posix-functions/ftruncate.texi: Likewise.
6157         * doc/posix-functions/getrlimit.texi: Likewise.
6158         * doc/posix-functions/lio_listio.texi: Likewise.
6159         * doc/posix-functions/localtime.texi: Likewise.
6160         * doc/posix-functions/lseek.texi: Likewise.
6161         * doc/posix-functions/mkstemp.texi: Likewise.
6162         * doc/posix-functions/mktime.texi: Likewise.
6163         * doc/posix-functions/open.texi: Likewise.
6164         * doc/posix-functions/openat.texi: Likewise.
6165         * doc/posix-functions/opendir.texi: Likewise.
6166         * doc/posix-functions/pread.texi: Likewise.
6167         * doc/posix-functions/pwrite.texi: Likewise.
6168         * doc/posix-functions/readdir.texi: Likewise.
6169         * doc/posix-functions/readdir_r.texi: Likewise.
6170         * doc/posix-functions/scandir.texi: Likewise.
6171         * doc/posix-functions/seekdir.texi: Likewise.
6172         * doc/posix-functions/setrlimit.texi: Likewise.
6173         * doc/posix-functions/statvfs.texi: Likewise.
6174         * doc/posix-functions/strftime.texi: Likewise.
6175         * doc/posix-functions/telldir.texi: Likewise.
6176         * doc/posix-functions/timezone.texi: Likewise.
6177         * doc/posix-functions/tmpfile.texi: Likewise.
6178         * doc/posix-functions/truncate.texi: Likewise.
6179         * doc/posix-functions/tzname.texi: Likewise.
6180         * doc/posix-functions/wcsftime.texi: Likewise.
6181         * doc/windows-sockets.texi: Likewise.
6183 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6185         getrandom-tests: do not assume GRND_RANDOM yields short read
6186         * tests/test-getrandom.c (main): Omit assertion that
6187         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6188         when b’s size is 100000.  This assertion fails with Linux kernel
6189         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6190         The separate blocking pool is going away in the Linux kernel, and
6191         they’ve added a flag GRND_INSECURE instead; see:
6192         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6193         The assertion was iffy anyway; what’s to prevent a kernel from
6194         lazily filling a large buffer with random bytes?
6196         read-file-test: pacify --enable-gcc-warnings
6197         * tests/test-read-file.c (test_read_file): Now static.
6199         tempname: merge from glibc and coreutils
6200         Also, merge in Gnulib’s more-recent methods of making it easier
6201         to share between Gnulib and glibc, and fix a few randomness
6202         glitches.
6203         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6204         (__set_errno): Remove; libc-config.h does that for us.
6205         Do not include <sys/time.h>.
6206         (__secure_getenv) [_LIBC]: New macro.
6207         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6208         (RANDOM_BITS): Rewrite.
6209         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6210         (random_value): New typedef.
6211         (try_file, try_dir, try_nocreate): Move up.
6212         (gen_tempname_len, try_tempname_len): New functions.
6213         (gen_tempname_len): Use a constant array rather than a switch.
6214         (try_tempname_len): Don’t assume string length fits in int.
6215         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6216         has enough entropy (it’s a bit short).
6217         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6218         (__try_tempname): Rewrite in terms of try_tempname_len.
6219         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6220         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6221         Add getentropy, libc-config.
6223 2020-05-31  Bruno Haible  <bruno@clisp.org>
6225         getrandom, getentropy: Mention the crypto/gc-random module.
6226         Suggested by Simon Josefsson in
6227         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6228         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6229         crypto/gc-random module.
6230         * doc/glibc-functions/getentropy.texi: Likewise.
6232 2020-05-31  Bruno Haible  <bruno@clisp.org>
6234         getentropy: Enhance tests.
6235         * tests/test-getentropy.c (main): Add one more test.
6236         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6238 2020-05-31  Bruno Haible  <bruno@clisp.org>
6240         getentropy: Work around a macOS and Solaris problem.
6241         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6242         'getentropy' module.
6243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6244         UNISTD_H_HAVE_SYS_RANDOM_H.
6245         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6246         UNISTD_H_HAVE_SYS_RANDOM_H.
6247         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6248         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6249         problem. List more platforms.
6251 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6253         fnmatch: merge from glibc
6254         Also, merge in Gnulib’s more-recent methods of making it easier
6255         to share between Gnulib and glibc.
6256         * lib/fnmatch.c: Reorder includes to match glibc better.
6257         Include libc-config.h instead of config.h.
6258         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6259         Do not include "../locale/elem-hash.h" if _LIBC.
6260         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6261         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6262         Include intprops.h, since glibc has it now.
6263         (SIZE_MAX): Remove; use (size_t) -1 instead.
6264         Omit the "Comment out all this code" ifdef, since Gnulib
6265         has never really needed it.
6266         (STREQ): Remove; no longer used.
6267         (__libc_use_alloca, alloca, alloca_account): Define as
6268         needed if !_LIBC.
6269         (ISWCTYPE): Remove; all uses replaced by iswctype.
6270         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6271         (internal_function): Remove.  All uses removed.
6272         (STRUCT): New macro.
6273         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6274         (WMEMCMP): New macro.
6275         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6276         and <locale/weightwc.h>.
6277         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6278         __builtin_expect.  Check for integer overflow more
6279         systematically.  Account for alloca storage better when
6280         recursive.  Use strnlen instead of strlen for efficiency.
6281         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6282         (struct STRUCT): New type.
6283         (FCT, EXT): New ENDS and ALLOCA_USED args.
6284         All callers changed.
6285         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6286         Simplify by assuming WIDE_CHAR_SUPPORT.
6287         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6288         Cast cold to UCHAR to avoid signedness warning.
6289         (END): Check for invalid pattern.
6290         (EXT): Improve alloca/malloc checking (taken from glibc),
6291         and improve it some more by using intprops.h and checking
6292         for integer overflow and using bool for booleans.
6293         * lib/libc-config.h (compat_symbol): New macro.
6294         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6295         acceptable to non-GCC when a trailing semicolon is added.
6296         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6297         libc-config, strnlen.  Remove alloca.
6299 2020-05-31  Bruno Haible  <bruno@clisp.org>
6301         getrandom: Doc and test tweaks.
6302         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6303         it sets errno when failing.
6304         * tests/test-getrandom.c (main): Disable the high-quality check on those
6305         platforms on which it fails.
6306         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6307         Cygwin to the list of platforms that don't have the function. Add a note
6308         about the quality of the result.
6309         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6310         declaration; this is fixed by module 'getrandom'.
6312 2020-05-31  Bruno Haible  <bruno@clisp.org>
6314         getrandom: Add support for native Windows.
6315         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6316         <wincrypt.h>.
6317         (CRYPT_VERIFY_CONTEXT): New macro.
6318         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6319         'A'.
6320         (GetProcAddress): New macro.
6321         (BCryptGenRandomFuncType): New type.
6322         (BCryptGenRandomFunc, initialized): New variables.
6323         (initialize): New function.
6324         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6325         <wincrypt.h> API as fallback.
6326         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6327         * modules/getrandom (Link): New section.
6328         * modules/getentropy (Link): Likewise.
6329         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6330         $(LIB_GETRANDOM).
6331         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6332         $(LIB_GETRANDOM).
6333         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6334         against $(LIB_GETRANDOM).
6335         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6336         support.
6338 2020-05-31  Bruno Haible  <bruno@clisp.org>
6340         getrandom: Simplify the determination of the random number devices.
6341         Suggested by Paul Eggert in
6342         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6343         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6344         macros.
6345         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6347 2020-05-31  Bruno Haible  <bruno@clisp.org>
6349         crypto/gc-random: Fix list of crypto devices for Solaris.
6350         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6352 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6354         list: fix GCC warnings
6355         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6356         (gl_tree_next_node, gl_tree_node_nx_set_value)
6357         (gl_tree_previous_node, gl_tree_next_node):
6358         Mark unused arguments.
6359         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6360         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6361         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6363         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6364         the same variable name in nested scopes.
6366 2020-05-31  Bruno Haible  <bruno@clisp.org>
6368         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6369         Reported by Akim Demaille in
6370         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6371         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6372         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6373         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6374         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6375         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6377 2020-05-30  Bruno Haible  <bruno@clisp.org>
6379         wmemchr: Relicense under LGPLv2+.
6380         * modules/wmemchr (License): Set to LGPLv2+.
6382 2020-05-30  Bruno Haible  <bruno@clisp.org>
6384         wmempcpy: New module.
6385         Reported by Paul Eggert in
6386         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6387         * lib/wchar.in.h (wmempcpy): New declaration.
6388         * lib/wmempcpy.c: New file.
6389         * m4/wmempcpy.m4: New file.
6390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6392         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6393         HAVE_WMEMPCPY.
6394         * modules/wmempcpy: New file.
6395         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6396         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6397         * modules/mempcpy (Description): Fix typo.
6399 2020-05-30  Bruno Haible  <bruno@clisp.org>
6401         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6402         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6404 2020-05-30  Bruno Haible  <bruno@clisp.org>
6406         sys_random: Work around macOS bug.
6407         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6408         <stdlib.h> before <sys/random.h>.
6409         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6410         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6411         first.
6412         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6414 2020-05-30  Bruno Haible  <bruno@clisp.org>
6416         getrandom: Override incompatible system function on Solaris 11.
6417         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6418         * lib/getrandom.c (getrandom): When the system has getrandom, just
6419         invoke it.
6420         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6421         system's getrandom function's prototype is not the expected one.
6422         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6423         REPLACE_GETRANDOM.
6424         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6425         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6426         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6427         EAGAIN.
6428         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6429         Solaris problem.
6431 2020-05-30  Bruno Haible  <bruno@clisp.org>
6433         sys_random: Add C++ tests.
6434         * tests/test-sys_random-c++.cc: New file.
6435         * modules/sys_random-c++-tests: New file.
6436         * modules/sys_random-tests (Depends-on): Depend on it.
6438         sys_random: Add tests.
6439         * tests/test-sys_random.c: New file.
6440         * modules/sys_random-tests: New file.
6442         sys_random: New module.
6443         * lib/sys_random.in.h: Use the common idioms for overridable header
6444         files.
6445         * m4/sys_random_h.m4: New file.
6446         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6447         * modules/sys_random: New file.
6448         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6449         (Depends-on): Add sys_random.
6450         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6451         gl_UNISTD_MODULE_INDICATOR.
6452         (Makefile.am): Don't generate sys/random.h here.
6453         * doc/glibc-headers/sys_random.texi: New file.
6454         * doc/gnulib.texi: Include it.
6456 2020-05-30  Bruno Haible  <bruno@clisp.org>
6458         unistd: Remove conflicting declaration of getrandom().
6459         * lib/unistd.in.h (getrandom): Remove declaration.
6460         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6461         declared.
6462         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6463         HAVE_GETRANDOM.
6464         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6465         HAVE_GETRANDOM.
6467 2020-05-30  Bruno Haible  <bruno@clisp.org>
6469         getrandom: Add tests.
6470         * tests/test-getrandom.c: New file.
6471         * modules/getrandom-tests: New file.
6473 2020-05-30  Bruno Haible  <bruno@clisp.org>
6475         crypto/gc-random: Fix link error on MSVC.
6476         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6477         * modules/crypto/gc-random (Link): New section.
6478         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6479         $(LIB_GC_RANDOM).
6481 2020-05-30  Bruno Haible  <bruno@clisp.org>
6483         Don't assume that UNICODE is not defined.
6484         Many Windows API functions are defined differently (redirecting to a
6485         function with suffix 'W') if the application defines the macro UNICODE
6486         than by default (redirecting to a function with suffix 'A').
6487         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6488         variant with suffix 'A'.
6489         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6490         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6491         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6492         * lib/getlogin.c (GetUserName): Likewise.
6493         * lib/getlogin_r.c (GetUserName): Likewise.
6494         * lib/gettimeofday.c (LoadLibrary): Likewise.
6495         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6496         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6497         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6498         * lib/mountlist.c (GetDriveType): Likewise.
6499         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6500         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6501         Likewise.
6502         * lib/physmem.c (GetModuleHandle): Likewise.
6503         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6504         PeekMessage, DispatchMessage): Likewise.
6505         * lib/progreloc.c (GetModuleFileName): Likewise.
6506         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6507         * lib/read.c (GetNamedPipeHandleState): Likewise.
6508         * lib/readdir.c (FindNextFile): Likewise.
6509         * lib/relocatable.c (GetModuleFileName): Likewise.
6510         * lib/rename.c (MoveFileEx): Likewise.
6511         * lib/rewinddir.c (FindFirstFile): Likewise.
6512         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6513         PeekMessage, DispatchMessage): Likewise.
6514         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6515         * lib/socket.c (WSASocket): Likewise.
6516         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6517         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6518         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6519         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6520         * lib/tmpdir.c (GetTempPath): Likewise.
6521         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6522         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6523         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6524         * lib/windows-cond.c (CreateEvent): Likewise.
6525         * lib/windows-rwlock.c (CreateEvent): Likewise.
6526         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6527         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6528         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6529         * lib/write.c (GetNamedPipeHandleState): Likewise.
6531 2020-05-30  Bruno Haible  <bruno@clisp.org>
6533         physmem: Fix compilation errors on MSVC.
6534         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6535         * modules/physmem (Depends-on): Add unistd.
6537 2020-05-29  Bruno Haible  <bruno@clisp.org>
6539         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6540         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6541         LDADD a second time, after the second occurrence of libtests.a.
6542         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6544 2020-05-29  Bruno Haible  <bruno@clisp.org>
6546         fnmatch: Rely on more gnulib modules.
6547         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6548         wmempcpy, mempcpy.
6549         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6550         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6551         HAVE_MEMPCPY are all 1.
6552         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6553         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6555 2020-05-29  Bruno Haible  <bruno@clisp.org>
6557         Avoid dynamic lookup of Windows API functions when possible.
6558         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6559         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6560         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6561         (use_win32_p): Define differently.
6562         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6563         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6564         for Windows XP or higher.
6566 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6568         read-file: disable buffering if RF_SENSITIVE is set
6569         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6570         Suggested by Glenn Strauss.
6571         (fread_file): Suggest calling setvbuf before calling this
6572         function.  Suggested by Bruno Haible.
6574 2020-05-29  Bruno Haible  <bruno@clisp.org>
6576         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6577         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6578         program.
6579         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6580         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6581         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6582         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6584 2020-05-29  Bruno Haible  <bruno@clisp.org>
6586         Fix compilation error on native Windows (regression from 2020-05-28).
6587         Reported by Daiki Ueno.
6588         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6589         macro when not using dynamic loading.
6590         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6591         QueryFullProcessImageNameFunc): Likewise.
6592         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6593         GetFinalPathNameByHandleFunc): Likewise.
6595 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6597         fopen-gnu-tests: fix "\x" escape usage
6598         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6600 2020-05-28  Bruno Haible  <bruno@clisp.org>
6602         Avoid dynamic loading of Windows API functions when possible.
6603         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6604         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6605         * lib/gettimeofday.c (GetProcAddress,
6606         GetSystemTimePreciseAsFileTimeFuncType,
6607         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6608         define in a build for Windows 8 or higher.
6609         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6610         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6611         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6612         in a build for Windows Vista or higher.
6613         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6614         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6615         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6617 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6619         explicit_bzero-tests: improve -Wmissing-declarations pacification
6620         * tests/test-explicit_bzero.c: Now noinline.
6621         Suggested by Bruno Haible in:
6622         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6624 2020-05-28  Bruno Haible  <bruno@clisp.org>
6626         Fix build errors due to read-file changes (regression from 2020-05-27).
6627         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6628         invocation.
6629         * tests/test-sameacls.c (main): Likewise.
6630         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6631         read_binary_file.
6632         * tests/test-pipe-filter-ii1.c (main): Likewise.
6634 2020-05-28  Bruno Haible  <bruno@clisp.org>
6636         fts: Make more robust in multithreaded applications.
6637         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6638         * modules/fts (Depends-on): Add 'open'.
6640 2020-05-28  Bruno Haible  <bruno@clisp.org>
6642         relocatable-prog: Make more robust in multithreaded applications.
6643         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6644         relocatable-prog-wrapper.
6645         (find_executable): Pass an O_CLOEXEC flag to open().
6646         * modules/relocatable-prog (Depends-on): Add 'open'.
6648 2020-05-28  Bruno Haible  <bruno@clisp.org>
6650         getloadavg: Make more robust in multithreaded applications.
6651         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6652         Simplify use of O_CLOEXEC.
6653         * modules/getloadavg (Depends-on): Add 'open'.
6655 2020-05-28  Bruno Haible  <bruno@clisp.org>
6657         vma-iter: Make more robust in multithreaded applications.
6658         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6659         open().
6660         * modules/vma-iter (Depends-on): Add 'open'.
6662 2020-05-28  Bruno Haible  <bruno@clisp.org>
6664         truncate: Make more robust in multithreaded applications.
6665         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6667 2020-05-28  Bruno Haible  <bruno@clisp.org>
6669         pagealign_alloc: Make more robust in multithreaded applications.
6670         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6671         open().
6672         * modules/pagealign_alloc (Depends-on): Add 'open'.
6674 2020-05-28  Bruno Haible  <bruno@clisp.org>
6676         openat: Make more robust in multithreaded applications.
6677         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6679 2020-05-28  Bruno Haible  <bruno@clisp.org>
6681         at-internal: Make more robust in multithreaded applications.
6682         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6683         open().
6685 2020-05-28  Bruno Haible  <bruno@clisp.org>
6687         mountlist: Make more robust in multithreaded applications.
6688         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6689         open().
6690         * modules/mountlist (Depends-on): Add 'open'.
6692 2020-05-28  Bruno Haible  <bruno@clisp.org>
6694         login_tty: Make more robust in multithreaded applications.
6695         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6696         * modules/login_tty (Depends-on): Add 'open'.
6698 2020-05-28  Bruno Haible  <bruno@clisp.org>
6700         javacomp: Make more robust in multithreaded applications.
6701         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6702         open().
6703         * modules/javacomp (Depends-on): Add 'open'.
6705 2020-05-28  Bruno Haible  <bruno@clisp.org>
6707         getprogname: Make more robust in multithreaded applications.
6708         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6709         * modules/getprogname (Depends-on): Add 'open'.
6711 2020-05-28  Bruno Haible  <bruno@clisp.org>
6713         get_progname_of: Make more robust in multithreaded applications.
6714         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6715         open().
6716         * modules/get_progname_of (Depends-on): Add 'open'.
6718 2020-05-28  Bruno Haible  <bruno@clisp.org>
6720         get_ppid_of: Make more robust in multithreaded applications.
6721         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6722         * modules/get_ppid_of (Depends-on): Add 'open'.
6724 2020-05-28  Bruno Haible  <bruno@clisp.org>
6726         get-rusage-as: Make more robust in multithreaded applications.
6727         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6728         flag to open().
6729         * modules/get-rusage-as (Depends-on): Add 'open'.
6731 2020-05-28  Bruno Haible  <bruno@clisp.org>
6733         crypto/gc: Make more robust in multithreaded applications.
6734         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6735         * modules/crypto/gc (Depends-on): Add 'open'.
6737 2020-05-28  Bruno Haible  <bruno@clisp.org>
6739         copy-file: Make more robust in multithreaded applications.
6740         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6741         open().
6743 2020-05-28  Bruno Haible  <bruno@clisp.org>
6745         chown: Make more robust in multithreaded applications.
6746         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6748 2020-05-28  Bruno Haible  <bruno@clisp.org>
6750         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6751         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6753 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6755         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6756         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6757         specified on Windows.
6758         * tests/test-fopen-gnu.c (DATA): New define.
6759         (main): Add test for reading binary files with an 'e' flag.
6761 2020-05-27  Bruno Haible  <bruno@clisp.org>
6763         Don't assume that UNICODE is not defined.
6764         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6765         differently if the application defines the macro UNICODE.
6766         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6767         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6768         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6769         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6770         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6772 2020-05-27  Bruno Haible  <bruno@clisp.org>
6774         Improve pattern for defining _WIN32_WINNT.
6775         Newer versions of the Windows API may not only add, but also remove API
6776         functions. Therefore, when the user is e.g. building for Windows 10, we
6777         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6778         use of APIs that were present in Windows 8 but removed in Windows 10.
6779         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6780         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6781         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6782         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6783         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6785 2020-05-27  Bruno Haible  <bruno@clisp.org>
6787         javacomp: Make more robust in multithreaded applications.
6788         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6789         * modules/javacomp (Depends-on): Add fopen-gnu.
6791 2020-05-27  Bruno Haible  <bruno@clisp.org>
6793         mountlist: Make more robust in multithreaded applications.
6794         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6795         to fopen.
6796         * modules/mountlist (Depends-on): Add fopen-gnu.
6798 2020-05-27  Bruno Haible  <bruno@clisp.org>
6800         sethostname: Make more robust in multithreaded applications.
6801         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6802         * modules/sethostname (Depends-on): Add fopen-gnu.
6804 2020-05-27  Bruno Haible  <bruno@clisp.org>
6806         readutmp: Make more robust in multithreaded applications.
6807         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6808         * modules/readutmp (Depends-on): Add fopen-gnu.
6810 2020-05-27  Bruno Haible  <bruno@clisp.org>
6812         getpass: Make more robust in multithreaded applications.
6813         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6814         * modules/getpass (Depends-on): Add fopen-gnu.
6816 2020-05-27  Bruno Haible  <bruno@clisp.org>
6818         getloadavg: Make more robust in multithreaded applications.
6819         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6820         * modules/getloadavg (Depends-on): Add fopen-gnu.
6822 2020-05-27  Bruno Haible  <bruno@clisp.org>
6824         exclude: Make more robust in multithreaded applications.
6825         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6826         * modules/exclude (Depends-on): Add fopen-gnu.
6828 2020-05-27  Bruno Haible  <bruno@clisp.org>
6830         bitset: Make more robust in multithreaded applications.
6831         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6832         'e' flag to fopen.
6833         * modules/bitset (Depends-on): Add fopen-gnu.
6835 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6837         read-file: add RF_SENSITIVE flag
6838         * lib/read-file.h (RF_SENSITIVE): New define.
6839         * lib/read-file.c (fread_file, read_file): Take into account of
6840         RF_SENSITIVE flag.
6841         * modules/read-file (Depends-on): Add explicit_bzero.
6842         This adds an alternative behavior of those functions to explicitly
6843         clear the internal memory block when it becomes unused.  This is
6844         useful for reading sensitive information from a file.
6846 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6848         read-file: add flags to modify reading behavior
6849         * lib/read-file.h (RF_BINARY): New define.
6850         (fread_file, read_file): Take FLAGS argument.
6851         (read_binary_file): Remove.
6852         * lib/read-file.c (internal_read_file): Merge into ...
6853         (read_file): ... here.
6854         * modules/read-file-tests (Files): Add "tests/macros.h".
6855         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6856         * NEWS: Mention this change.
6858 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6860         doc/gnulib-intro.texi: add missing "to" in sentence
6861         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6862         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6863         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6865 2020-05-26  Bruno Haible  <bruno@clisp.org>
6867         count-one-bits: Fix MSVC specific code.
6868         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6869         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6870         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6871         using GCC.
6872         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6873         (__popcnt64): In 32-bit mode, define as an inline function.
6874         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6876 2020-05-26  Bruno Haible  <bruno@clisp.org>
6878         argz: Avoid name clashes through argz.h.
6879         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6880         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6881         * lib/argz.h: Don't use __ prefixed identifiers.
6882         (const): Remove definition.
6883         (argz_next): Remove inline definitions.
6885 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6887         read-file: make use of fopen-gnu
6888         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6889         (read_binary_file): Likewise.
6890         * modules/read-file (Depends-on): Add fopen-gnu.
6892 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6894         getentropy, getrandom: new modules
6895         * MODULES.html.sh (func_all_modules):
6896         * lib/unistd.in.h (getentropy, getrandom):
6897         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6898         * modules/unistd (unistd.h):
6899         Add support for getentropy, getrandom.
6900         * doc/glibc-functions/getentropy.texi (getentropy):
6901         * doc/glibc-functions/getrandom.texi (getrandom):
6902         These are now fixed on some platforms.
6903         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6904         * m4/getentropy.m4, m4/getrandom.m4:
6905         * modules/getentropy, modules/getentropy-tests:
6906         * modules/getrandom, modules/getrandom-tests:
6907         * tests/test-getentropy.c, tests/test-getrandom.c:
6908         New files.
6910 2020-05-25  Bruno Haible  <bruno@clisp.org>
6912         Add missing C99 dependencies.
6913         Reported by Paul Smith <psmith@gnu.org> in
6914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6915         * modules/assert (Depends-on): Add c99.
6916         * modules/filenamecat-lgpl (Depends-on): Likewise.
6917         * modules/libc-config (Depends-on): Likewise.
6918         * modules/mktime (Depends-on): Likewise.
6919         * modules/random_r (Depends-on): Likewise.
6920         * modules/regex (Depends-on): Likewise.
6921         * modules/scratch_buffer (Depends-on): Likewise.
6922         * modules/timespec-add (Depends-on): Likewise.
6923         * modules/timespec-sub (Depends-on): Likewise.
6924         * modules/verify (Depends-on): Likewise.
6926 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6928         explicit_bzero-tests: pacify -Wmissing-declarations
6929         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6930         Now static.
6932 2020-05-24  Bruno Haible  <bruno@clisp.org>
6934         fopen-gnu: Add tests.
6935         * tests/test-fopen-gnu.c: New file.
6936         * modules/fopen-gnu-tests: New file.
6938         fopen-gnu: New module.
6939         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6940         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6941         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6942         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6943         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6944         * modules/fopen-gnu: New file.
6945         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6947 2020-05-24  Bruno Haible  <bruno@clisp.org>
6949         open, openat: Really support O_CLOEXEC.
6950         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6951         O_CLOEXEC flag to orig_open.
6952         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6953         pass a O_CLOEXEC flag to orig_openat.
6954         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6955         * modules/open-tests (Depends-on): Add fcntl.
6956         * modules/openat-tests (Depends-on): Likewise.
6957         * modules/fcntl-safer-tests (Depends-on): Likewise.
6959 2020-05-24  Bruno Haible  <bruno@clisp.org>
6961         fopen: Fix the trailing slash workaround.
6962         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6963         write access. Pass the right flags to open().
6964         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6966 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6968         assure: new macro ‘affirm’
6969         * lib/assure.h: Include verify.h.
6970         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6971         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6972         and commentary by Bruno Haible in:
6973         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6974         * modules/assure (Depends-on:): Add verify.
6976 2020-05-23  Bruno Haible  <bruno@clisp.org>
6978         calloc-gnu: Make test work in non-flat address spaces.
6979         Uses code by Paul Eggert.
6980         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6981         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6983 2020-05-23  Bruno Haible  <bruno@clisp.org>
6985         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6986         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6987         AC_RUN_IFELSE invocations.
6989 2020-05-23  Bruno Haible  <bruno@clisp.org>
6991         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6992         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6993         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6994         don't have it.
6995         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6996         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6997         don't have it.
6998         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6999         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7000         it.
7001         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7002         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7003         it.
7004         * lib/math.in.h (__has_builtin): New macro.
7005         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7006         it.
7007         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7008         it.
7009         (isnan): Don't use the builtins on clang versions that don't have
7010         __builtin_isnanf and __builtin_isnanl.
7012 2020-05-23  Bruno Haible  <bruno@clisp.org>
7014         calloc-gnu: Avoid wrong configure results with clang.
7015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7016         'volatile', to defeat compiler optimizations.
7018 2020-05-23  Bruno Haible  <bruno@clisp.org>
7020         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7021         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7022         'long double' values by reference, with values taken from a statically
7023         allocated array.
7025 2020-05-23  Bruno Haible  <bruno@clisp.org>
7027         findprog-in: Ignore directories.
7028         Reported by Frederick Eaton via Dmitry Goncharov in
7029         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7030         * lib/findprog-in.c (find_in_given_path): When the file found is a
7031         directory, set errno to EACCES and, during a PATH search, continue
7032         searching.
7033         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7035 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7037         verify: document ‘assume’ better
7038         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7040 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7042         gendocs: Clarify licenses for templates.
7043         * doc/gendocs_template: Add a GNU All-Permissive license notice
7044         and bump Parent-Version.
7045         * doc/gendocs_template_min: Add a GNU All-Permissive license
7046         notice and copy the explanatory comment about the license notice
7047         at the bottom from gendocs_template.
7049 2020-05-21  Bruno Haible  <bruno@clisp.org>
7051         group-member: Relicense under LGPLv2+.
7052         Jim Meyering's approval is in
7053         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7054         Paul Eggert's approval is in
7055         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7056         Eric Blake's approval is in
7057         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7058         * modules/group-member (License): Change to LGPLv2+.
7060 2020-05-21  Bruno Haible  <bruno@clisp.org>
7062         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7063         Reported by Tim Rühsen in
7064         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7067 2020-05-21  Bruno Haible  <bruno@clisp.org>
7069         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7070         Reported by Tim Rühsen in
7071         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7072         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7073         before returning with status 0.
7075 2020-05-21  Bruno Haible  <bruno@clisp.org>
7077         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7078         Reported by Tim Rühsen in
7079         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7080         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7082 2020-05-21  Bruno Haible  <bruno@clisp.org>
7084         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7085         Reported by Tim Rühsen in
7086         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7087         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7088         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7089         respectively.
7091 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7093         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7094         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7096 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7098         ftoastr: fix ifndef typo
7099         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7101 2020-05-19  Bruno Haible  <bruno@clisp.org>
7103         havelib: Tweak documentation.
7104         * doc/havelib.texi (Searching for Libraries): Fix typo.
7106 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7108         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7109         This was needed earlier because modules had to import the main script,
7110         but that is no longer true.  Rename the script so that it is
7111         consistent with all other scripts in gnulib and uses hyphens.
7112         * build-aux/vcs_to_changelog.py: Rename to...
7113         * build-aux/vcs-to-changelog.py: ... this.
7114         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7115         * modules/vcs-to-changelog: Likewise.
7117 2020-05-17  Bruno Haible  <bruno@clisp.org>
7119         Clarify intended usage of the license file modules.
7120         Reported by Asher Gordon <AsDaGo@posteo.net> in
7121         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7122         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7123         GNU AGPL. Explain the intended usage of the modules.
7124         * modules/fdl (Notice): Discourage use as a module.
7125         * modules/fdl-1.3 (Notice): Likewise.
7127 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7129         hash: add hash_xinsert
7130         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7132 2020-05-16  Bruno Haible  <bruno@clisp.org>
7134         findprog-lgpl: Fix link error (existing since 2008-09-02).
7135         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7136         findprog-lgpl.c, not findprog.c.
7137         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7138         XNMALLOC.
7140 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7142         c-stack: pacify -Wunused-result when DEBUG
7143         Problem reported by Marc Nieper-Wißkirchen in:
7144         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7145         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7146         Explicitly ignore write failures.
7148 2020-05-13  Jim Meyering  <meyering@fb.com>
7150         announce-gen: improve a comment
7151         * build-aux/announce-gen: Improve comment.
7153 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7155         xalloc: pacify -Wanalyzer-possible-null-argument
7156         Problem reported for GCC 10.1.0 by Bruno Haible in:
7157         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7158         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7159         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7160         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7162 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7164         careadlinkat: fix GCC 10 workaround
7165         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7166         Massage the code so that it’s closer to what it was before
7167         the GCC 10.1.0 workaround was introduced.  This fixes
7168         a loop when !buffer and the bug workaround is in effect.
7169         Remove unnecessary casts.  Defend in a different way
7170         against (buffer && !buffer_size), by adding at least 1
7171         to buf_size each time through the loop.
7173 2020-05-10  Bruno Haible  <bruno@clisp.org>
7175         doc: Mark HP-UX as unsupported.
7176         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7178 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7180         careadlinkat: limit GCC workaround
7181         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7182         10.1.0 and later, since the workaround is pretty bad and the GCC
7183         bug should get fixed.
7185 2020-05-10  Bruno Haible  <bruno@clisp.org>
7187         havelib: Enhance documentation.
7188         * doc/havelib.texi (Searching for Libraries): Mention the bad
7189         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7191 2020-05-10  Bruno Haible  <bruno@clisp.org>
7193         attribute: Clarify list of attributes.
7194         * lib/attribute.h: Reorder the list of attributes, and group them by
7195         purpose.
7197 2020-05-10  Bruno Haible  <bruno@clisp.org>
7199         string: Fix compilation error in C++ mode.
7200         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7201         _GL_WARN_ON_USE.
7202         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7203         instead of _GL_WARN_ON_USE.
7205 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7207         announce-gen: add support for dist-lzip
7208         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7210 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7212         manywarnings: port to GCC 10.1
7213         * build-aux/gcc-warning.spec:
7214         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7215         Add GCC 10.1.0 warnings.
7217         careadlinkat: pacify -Wreturn-local-addr
7218         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7219         Pacify gcc 10’s -Wreturn-local-addr option.
7220         Simplify some of the later code.
7222 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7224         attribute: remove ATTRIBUTE_DEPRECATED
7225         * lib/attribute.h: Improve recently-added comments, mostly
7226         by shortening them (use active voice, etc.).
7227         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7228         Problem reported by Bruno Haible in:
7229         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7231 2020-05-09  Bruno Haible  <bruno@clisp.org>
7233         attribute: Add comments.
7234         * lib/attribute.h: Document each macro.
7236 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7238         bitset: use the attribute module
7239         * modules/bitset: Depend on 'attribute'.
7240         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7241         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7242         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7243         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7245 2020-05-09  Bruno Haible  <bruno@clisp.org>
7247         c-stack: Fix warning when DEBUG is enabled.
7248         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7249         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7250         * lib/c-stack.c: Include <stdio.h>.
7252 2020-05-09  Bruno Haible  <bruno@clisp.org>
7254         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7255         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7256         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7257         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7258         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7259         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7260         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7261         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7262         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7263         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7264         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7265         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7266         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7268 2020-05-09  Bruno Haible  <bruno@clisp.org>
7270         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7271         Reported by Akim Demaille in
7272         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7273         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7274         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7275         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7277 2020-05-09  Bruno Haible  <bruno@clisp.org>
7279         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7280         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7281         that usually comes from m4/gnulib-common.m4.
7282         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7284 2020-05-09  Bruno Haible  <bruno@clisp.org>
7286         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7287         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7288         that usually comes from m4/gnulib-common.m4.
7289         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7290         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7291         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7293 2020-05-09  Bruno Haible  <bruno@clisp.org>
7295         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7296         * lib/uchar.in.h (char16_t): Define as macro if
7297         GNULIB_OVERRIDES_CHAR16_T.
7298         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7299         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7300         (gl_UCHAR_H): Invoke them.
7301         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7302         GNULIB_OVERRIDES_CHAR32_T.
7303         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7304         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7305         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7306         GNULIB_OVERRIDES_CHAR32_T.
7308 2020-05-09  Bruno Haible  <bruno@clisp.org>
7310         Macro tweaks.
7311         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7312         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7314 2020-05-08  Bruno Haible  <bruno@clisp.org>
7316         c32rtomb: Avoid compilation failure on Haiku.
7317         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7318         inline definitions.
7319         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7321 2020-05-08  Bruno Haible  <bruno@clisp.org>
7323         mbrtoc32: Avoid compilation failure on Haiku.
7324         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7325         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7326         AC_CHECK_FUNCS_ONCE.
7327         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7329 2020-05-08  Bruno Haible  <bruno@clisp.org>
7331         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7332         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7334 2020-05-08  Bruno Haible  <bruno@clisp.org>
7336         list: Update documentation.
7337         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7338         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7339         * doc/containers.texi (Container data types): Document the new list
7340         operations and their complexity.
7342 2020-05-08  Bruno Haible  <bruno@clisp.org>
7344         ignore-value tests: Use module 'attribute'.
7345         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7346         * tests/test-ignore-value.c: Include attribute.h.
7347         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7348         * modules/ignore-value-tests (Depends-on): Add attribute.
7350 2020-05-08  Bruno Haible  <bruno@clisp.org>
7352         uniname/uniname: Use module 'attribute'.
7353         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7354         * lib/uniname/uninames.h: Regenerated.
7355         * lib/uniname/uniname.c: Include attribute.h.
7356         * modules/uniname/uniname (Depends-on): Add attribute.
7358 2020-05-08  Bruno Haible  <bruno@clisp.org>
7360         c32rtomb: Use module 'attribute'.
7361         * lib/c32rtomb.c: Include attribute.h.
7362         (FALLTHROUGH): Remove macro.
7363         * modules/c32rtomb (Depends-on): Add attribute.
7365 2020-05-08  Bruno Haible  <bruno@clisp.org>
7367         xsize: Use module 'attribute'.
7368         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7369         * modules/xsize (Depends-on): Add attribute.
7371 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7373         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7375         * lib/attribute.h: Minor style fixes.
7377         Fix version-etc glitch on OpenIndiana
7378         Problem reported by Mats Erik Andersson in:
7379         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7380         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7381         that now clashes with gnulib-common.h.  All uses changed.
7383 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7385         attribute: new module
7386         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7387         * MODULES.html.sh: Add attribute.
7388         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7389         * doc/gnulib.texi (Particular Modules): Add Attributes.
7390         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7391         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7392         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7393         * lib/vasnprintf.c:
7394         Include attribute.h, and let it define FALLTHROUGH.
7395         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7396         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7397         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7398         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7399         This is a copy since Gawk doesn’t use Gnulib.
7400         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7401         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7402         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7403         Keep the existing FALLTHROUGH definition since Glibc might use it,
7404         and it does no harm to Gnulib’s FALLTHROUGH.
7405         * lib/fts_.h, lib/inttostr.h:
7406         (__GNUC_PREREQ): Remove; no longer needed.
7407         (__attribute_warn_unused_result__): Remove.  All uses
7408         replaced by _GL_ATTRIBUTE_NODISCARD.
7409         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7410         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7411         __attribute__ ((__warn_unused_result__)), for forward
7412         compatibility to C2X.
7413         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7414         _GL_ATTRIBUTE_NODISCARD.
7415         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7416         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7417         replaced by gl_COMMON_BODY’s implementation, which has a
7418         slightly different signature.
7419         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7420         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7421         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7422         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7423         No doubt all uses should be replaced, at some point.
7424         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7425         (_Noreturn): Use it.
7426         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7427         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7428         (_GL_ATTRIBUTE_COLD)
7429         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7430         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7431         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7432         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7433         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7434         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7435         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7436         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7437         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7438         (_GL_ATTRIBUTE_SENTINEL): New macros.
7439         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7440         * modules/fnmatch, modules/freopen-safer, modules/fts:
7441         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7442         * modules/quotearg, modules/savewd:
7443         * modules/unistdio/u16-u16-vasnprintf:
7444         * modules/unistdio/u16-vasnprintf:
7445         * modules/unistdio/u32-u32-vasnprintf:
7446         * modules/unistdio/u32-vasnprintf:
7447         * modules/unistdio/u8-u8-vasnprintf:
7448         * modules/unistdio/u8-vasnprintf:
7449         * modules/unistdio/ulc-vasnprintf:
7450         * modules/unistr/u8-uctomb, modules/vasnprintf:
7451         (Depends-on:): Add attribute module.
7453 2020-05-03  Bruno Haible  <bruno@clisp.org>
7455         bison: Fix today's commit.
7456         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7458 2020-05-03  Bruno Haible  <bruno@clisp.org>
7460         list-c++: Add get_first, get_last, set_first, set_last operations.
7461         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7462         set_first, set_last.
7463         * lib/gl_list.h: Tweak comments.
7465 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7467         bison: rely on bison's %require to check a version requirement
7468         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7469         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7470         enough of not.
7471         So far it is the only know Yacc tool that supports '%require'.
7472         Other yaccs will actually even choke on seeing the -o option after the
7473         input file name.
7474         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7476 2020-05-02  Bruno Haible  <bruno@clisp.org>
7478         list: Add get_first, get_last, set_first, set_last operations.
7479         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7480         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7481         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7483 2020-05-02  Bruno Haible  <bruno@clisp.org>
7485         list: Remove redundant code for remove_first and remove_last operations.
7486         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7487         remove_first, remove_last.
7488         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7489         * lib/gl_array_list.c: Revert last change.
7490         * lib/gl_carray_list.c: Likewise.
7491         * lib/gl_anylinked_list2.h: Likewise.
7492         * lib/gl_linked_list.c: Likewise.
7493         * lib/gl_linkedhash_list.c: Likewise.
7494         * lib/gl_anytree_list2.h: Likewise.
7495         * lib/gl_avltree_list.c: Likewise.
7496         * lib/gl_avltreehash_list.c: Likewise.
7497         * lib/gl_rbtree_list.c: Likewise.
7498         * lib/gl_rbtreehash_list.c: Likewise.
7499         * lib/gl_sublist.c: Likewise.
7501 2020-05-02  Bruno Haible  <bruno@clisp.org>
7503         bison-i18n: Add support for cross-compilation.
7504         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7505         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7506         via Akim Demaille <akim@lrde.epita.fr>.
7507         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7508         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7509         Don't use bison's --print-localedir option when cross-compiling.
7510         Also, fix an error message and a comment.
7512 2020-05-01  Bruno Haible  <bruno@clisp.org>
7514         list: Add remove_first and remove_last operations.
7515         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7516         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7517         * lib/gl_list.h (struct gl_list_implementation): Add fields
7518         remove_first, remove_last.
7519         (gl_list_remove_first, gl_list_remove_last): New functions.
7520         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7521         functions, based on gl_array_remove_at.
7522         (gl_array_list_implementation): Implement the new operations.
7523         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7524         New functions, based on gl_carray_remove_at.
7525         (gl_carray_list_implementation): Implement the new operations.
7526         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7527         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7528         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7529         new operations.
7530         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7531         Likewise.
7532         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7533         New functions, based on gl_tree_remove_at.
7534         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7535         new operations.
7536         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7537         Likewise.
7538         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7539         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7540         Likewise.
7541         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7542         New functions, based on gl_sublist_remove_at.
7543         (gl_sublist_list_implementation): Implement the new operations.
7544         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7545         remove_last.
7546         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7547         gl_list_remove_last.
7548         * tests/test-avltree_list.c (main): Likewise.
7549         * tests/test-avltreehash_list.c (main): Likewise.
7550         * tests/test-carray_list.c (main): Likewise.
7551         * tests/test-linked_list.c (main): Likewise.
7552         * tests/test-linkedhash_list.c (main): Likewise.
7553         * tests/test-rbtree_list.c (main): Likewise.
7554         * tests/test-rbtreehash_list.c (main): Likewise.
7556 2020-05-01  Bruno Haible  <bruno@clisp.org>
7558         parse-datetime: Fix a build failure with an older bison version.
7559         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7560         parse-datetime.tab.c if a suitable version of bison was not found.
7562 2020-05-01  Bruno Haible  <bruno@clisp.org>
7564         bison: New module.
7565         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7566         m4/parse-datetime.m4.
7567         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7568         * modules/bison: New file.
7569         * modules/parse-datetime (Files): Remove m4/bison.m4.
7570         (Depends-on): Add bison.
7572 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7574         Update users.txt.
7575         * users.txt: Add poke.
7577 2020-04-28  Bruno Haible  <bruno@clisp.org>
7579         posix_spawn_file_actions_addfchdir tests: Enhance test.
7580         * tests/test-posix_spawn5.c: Include findprog.h.
7581         (test): New function, extracted from main.
7582         (main): Invoke it. Also, invoke it with a program name such as
7583         "bin/pwd".
7584         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7585         findprog.
7587 2020-04-28  Bruno Haible  <bruno@clisp.org>
7589         posix_spawn_file_actions_addchdir tests: Enhance test.
7590         * tests/test-posix_spawn4.c: Include findprog.h.
7591         (test): New function, extracted from main.
7592         (main): Invoke it. Also, invoke it with a program name such as
7593         "bin/pwd".
7594         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7595         findprog.
7597 2020-04-28  Bruno Haible  <bruno@clisp.org>
7599         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7600         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7601         access elements of the wrong union member.
7603 2020-04-27  Bruno Haible  <bruno@clisp.org>
7605         getdate: Remove deprecated module.
7606         * modules/getdate: Remove file.
7607         * doc/getdate.texi: Remove file.
7608         * lib/getdate.h: Remove file.
7609         * NEWS: Mention the removal.
7611 2020-04-27  Bruno Haible  <bruno@clisp.org>
7613         realloc: Remove deprecated module.
7614         * modules/realloc: Remove file.
7615         * NEWS: Mention the removal.
7617 2020-04-27  Bruno Haible  <bruno@clisp.org>
7619         calloc: Remove deprecated module.
7620         * modules/calloc: Remove file.
7621         * NEWS: Mention the removal.
7623 2020-04-27  Bruno Haible  <bruno@clisp.org>
7625         malloc: Remove deprecated module.
7626         * modules/malloc: Remove file.
7627         * NEWS: Mention the removal.
7629 2020-04-27  Bruno Haible  <bruno@clisp.org>
7631         fnmatch-posix: Remove deprecated module.
7632         * modules/fnmatch-posix: Remove file.
7633         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7634         * NEWS: Mention the removal.
7636 2020-04-27  Bruno Haible  <bruno@clisp.org>
7638         pipe: Remove deprecated module.
7639         * modules/pipe: Remove file.
7640         * lib/pipe.h: Remove file.
7641         * NEWS: Mention the removal.
7643 2020-04-27  Bruno Haible  <bruno@clisp.org>
7645         getopt: Remove deprecated module.
7646         * modules/getopt: Remove file.
7647         * NEWS: Mention the removal.
7649 2020-04-27  Bruno Haible  <bruno@clisp.org>
7651         remove-dest-slash: Remove deprecated module.
7652         * modules/rename-dest-slash: Remove file.
7653         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7654         Update.
7655         * NEWS: Mention the removal.
7657 2020-04-27  Bruno Haible  <bruno@clisp.org>
7659         unictype/bidicategory-*: Remove deprecated modules.
7660         * modules/unictype/bidicategory-all: Remove file.
7661         * modules/unictype/bidicategory-byname: Remove file.
7662         * modules/unictype/bidicategory-name: Remove file.
7663         * modules/unictype/bidicategory-of: Remove file.
7664         * modules/unictype/bidicategory-test: Remove file.
7665         * MODULES.html.sh (Unicode string functions): Update.
7666         * NEWS: Mention the removals.
7668 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7670         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7671         From a suggestion by Askar Safin in:
7672         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7673         * lib/fts.c (fts_build): If file types are known, optimize
7674         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7675         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7676         non-directories.
7678 2020-04-19  Bruno Haible  <bruno@clisp.org>
7680         vasnprintf: Add support for printing wide characters using escapes.
7681         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7682         (wctomb_fallback): New function.
7683         (local_wctomb): New function.
7684         (local_wcrtomb): New function or macro.
7685         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7686         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7687         %lc.
7689 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7691         fts: remove NOSTAT_LEAF_OPTIMIZATION
7692         It caused ‘find’ and ‘du’ to dump core, and it was useful
7693         only for obsolescent Linux filesystems anyway.  Problem reported in:
7694         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7695         Quite possibly there is still a serious underlying fts bug with
7696         tight-loop-check and mutating file systems, but if so this patch
7697         should cause the bug to be triggered less often.
7698         * lib/fts.c (enum leaf_optimization): Remove
7699         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7700         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7701         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7702         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7703         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7704         Remove.  All uses removed.
7706 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7708         explicit_bzero: Improve code style.
7709         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7711 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7713         explicit_bzero: On native Windows, use SecureZeroMemory().
7714         * lib/explicit_bzero.c: Include <windows.h>.
7715         (explicit_bzero): On native Windows, use SecureZeroMemory.
7717 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7719         explicit_bzero: Use memset_s() when available.
7720         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7721         (explicit_bzero): Use memset_s when available.
7722         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7724 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7726         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7727         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7728         free() that overwrite the memory with canaries.
7730 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7732         bootstrap: recommend git submodule update --init
7733         Reported by Bruno Haible.
7734         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7735         * build-aux/bootstrap: recommand "git submodule update --init"
7736         rather than "git submodule init".
7738 2020-04-12  Bruno Haible  <bruno@clisp.org>
7740         explicit_bzero: Add tests.
7741         * tests/test-explicit_bzero.c: New file.
7742         * modules/explicit_bzero-tests: New file.
7744 2020-04-11  Bruno Haible  <bruno@clisp.org>
7746         explicit_bzero: Relicense under LGPLv2+.
7747         Approved by Paul Eggert.
7748         * modules/explicit_bzero (License): Change to LGPLv2+.
7750 2020-04-10  Bruno Haible  <bruno@clisp.org>
7752         findprog, relocatable-prog: Ignore directories during PATH search.
7753         Reported by Frederick Eaton via Dmitry Goncharov in
7754         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7756         * lib/findprog.c (find_in_path): When the file found in a PATH element
7757         is a directory, continue searching.
7758         * modules/findprog (Depends-on): Add sys_stat, stat.
7759         * modules/findprog-lgpl (Depends-on): Likewise.
7761         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7762         element is a directory, continue searching.
7763         * lib/relocwrapper.c: Update comments.
7764         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7765         (configure.ac-early): New section.
7767 2020-04-10  Bruno Haible  <bruno@clisp.org>
7769         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7770         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7771         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7772         * MODULES.html.sh: In a git-less tarball, use the date of the first
7773         ChangeLog entry.
7775 2020-04-04  Bruno Haible  <bruno@clisp.org>
7777         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7778         * m4/gettext.m4: Fix comments regarding the gettext library.
7779         * m4/intl-thread-locale.m4: Likewise.
7780         * m4/intlmacosx.m4: Likewise.
7781         * m4/lcmessage.m4: Likewise.
7782         * m4/nls.m4: Likewise.
7783         * m4/po.m4: Likewise.
7784         * m4/progtest.m4: Likewise.
7786 2020-04-04  Jim Meyering  <meyering@fb.com>
7788         maint: remove a stray inter-word space in a 6x-repeated comment
7789         Induce the changes by running this:
7790           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7791         * build-aux/announce-gen: Change "by  perl" to "by perl".
7792         * build-aux/gitlog-to-changelog: Likewise.
7793         * build-aux/prefix-gnulib-mk: Likewise.
7794         * build-aux/update-copyright: Likewise.
7795         * build-aux/useless-if-before-free: Likewise.
7796         * tests/test-update-copyright.sh: Likewise.
7798 2020-03-28  Bruno Haible  <bruno@clisp.org>
7800         Use module 'filename' instead of module 'dosname'.
7802         * lib/at-func.c: Include filename.h instead of dosname.h.
7803         * lib/unlinkat.c: Likewise.
7804         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7805         * modules/areadlinkat-with-size (Depends-on): Likewise.
7806         * modules/faccessat (Depends-on): Likewise.
7807         * modules/fchmodat (Depends-on): Likewise.
7808         * modules/fchownat (Depends-on): Likewise.
7809         * modules/fstatat (Depends-on): Likewise.
7810         * modules/mkdirat (Depends-on): Likewise.
7811         * modules/mkfifoat (Depends-on): Likewise.
7812         * modules/readlinkat (Depends-on): Likewise.
7813         * modules/selinux-at (Depends-on): Likewise.
7814         * modules/symlinkat (Depends-on): Likewise.
7815         * modules/unlinkat (Depends-on): Likewise.
7816         * modules/utimensat (Depends-on): Likewise.
7818         * lib/at-func2.c: Include filename.h instead of dosname.h.
7819         * modules/linkat (Depends-on): Add filename. Remove dosname.
7820         * modules/renameatu (Depends-on): Likewise.
7822         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7823         * lib/canonicalize-lgpl.c: Likewise.
7824         * modules/canonicalize (Depends-on): Add filename.
7825         * modules/canonicalize-lgpl (Depends-on): Likewise.
7827         * lib/dirname.h: Include filename.h instead of dosname.h.
7828         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7830         * lib/fchdir.c: Include filename.h instead of dosname.h.
7831         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7833         * lib/openat.c: Include filename.h instead of dosname.h.
7834         * modules/openat (Depends-on): Add filename. Remove dosname.
7836         * lib/rmdir.c: Include filename.h instead of dosname.h.
7837         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7839         * lib/savewd.c: Include filename.h instead of dosname.h.
7840         * modules/savewd (Depends-on): Add filename. Remove dosname.
7842         * lib/unlink.c: Include filename.h instead of dosname.h.
7843         * modules/unlink (Depends-on): Add filename. Remove dosname.
7845         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7846         * lib/relocwrapper.c: Update comments.
7848         * modules/lstat (Depends-on): Remove dosname.
7850 2020-03-28  Bruno Haible  <bruno@clisp.org>
7852         dosname: Redirect to 'filename'.
7853         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7854         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7855         * lib/dosname.h: Remove all definitions. Just include filename.h.
7856         * modules/dosname (Status, Notice): Mark as deprecated.
7857         (Depends-on): Add 'filename'.
7859 2020-03-28  Bruno Haible  <bruno@clisp.org>
7861         dosname: Change IS_RELATIVE_FILE_NAME.
7862         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7863         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7864         * NEWS: Mention the change.
7866 2020-03-28  Bruno Haible  <bruno@clisp.org>
7868         filename: Copy some definitions from module 'dosname'.
7869         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7870         (HAS_DEVICE): Document macro.
7871         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7872         (IS_ABSOLUTE_FILE_NAME): Consider
7873         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7874         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7875         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7876         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7877         IS_PATH_WITH_DIR.
7878         (DllMain): Update.
7879         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7880         IS_PATH_WITH_DIR.
7881         (find_executable): Update.
7882         * NEWS: Document the deprecations.
7884 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7886         getopt-posix: port __GETOPT_PREFIX to macOS
7887         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7888         Define to work around a problem with asm on macOS (Bug#40205).
7890 2020-03-22  Bruno Haible  <bruno@clisp.org>
7892         MODULES.html.sh: Add support for reproducible builds.
7893         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7895         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7896         current date.
7898 2020-03-22  Bruno Haible  <bruno@clisp.org>
7900         Several modules: Depend on stat.
7901         * modules/acl-permissions (Depends-on): Add stat.
7902         * modules/canonicalize (Depends-on): Likewise.
7903         * modules/file-has-acl (Depends-on): Likewise.
7904         * modules/fstat (Depends-on): Likewise.
7905         * modules/fstatat (Depends-on): Likewise.
7906         * modules/glob (Depends-on): Likewise.
7907         * modules/javacomp (Depends-on): Likewise.
7908         * modules/linkat (Depends-on): Likewise.
7909         * modules/mkdir (Depends-on): Likewise.
7910         * modules/pt_chown (Depends-on): Likewise.
7911         * modules/ptsname_r (Depends-on): Likewise.
7912         * modules/readlinkat (Depends-on): Likewise.
7913         * modules/rename (Depends-on): Likewise.
7914         * modules/renameatu (Depends-on): Likewise.
7915         * modules/tmpdir (Depends-on): Likewise.
7916         * modules/utimens (Depends-on): Likewise.
7917         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7918         * modules/same (Depends-on): Remove stat.
7920 2020-03-22  Bruno Haible  <bruno@clisp.org>
7922         acl-permissions: Improve autoconf macro.
7923         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7924         more reliably.
7926 2020-03-22  Bruno Haible  <bruno@clisp.org>
7928         file-has-acl: Fix module description.
7929         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7930         (Depends-on): Depend on acl-permissions unconditionally.
7932 2020-03-21  Bruno Haible  <bruno@clisp.org>
7934         unlink: Ensure errno also on native Windows.
7935         * modules/unlink (Depends-on): Add malloc-posix.
7937 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7939         unlink: fix malloc errno typo
7940         Problem reported by Tim Rühsen in:
7941         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7942         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7944 2020-03-16  Bruno Haible  <bruno@clisp.org>
7946         *printf-posix: Fix m4 error (regression from 2020-03-08).
7947         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7948         brackets in AC_COMPILE_IFELSE invocation.
7950 2020-03-08  Bruno Haible  <bruno@clisp.org>
7952         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7953         * modules/crypto/af_alg (Depends-on): Add fstat.
7954         * modules/renameatu (Depends-on): Likewise.
7955         * modules/same (Depends-on): Likewise.
7956         * modules/term-style-control (Depends-on): Likewise.
7958 2020-03-08  Bruno Haible  <bruno@clisp.org>
7960         *printf-posix: Document why it's overridden on some glibc systems.
7961         Reported by Adrian Bunk <bunk@stusta.de> in
7962         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7963         * doc/posix-functions/*printf.texi: Document the problem with the %n
7964         directive on some glibc systems.
7965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7966         the cross-compilation guesses accordingly.
7968 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7970         open, openat: port to (O_RDWR | O_RDONLY) != 0
7971         Potential portability problem reported by Dan Gohman in:
7972         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7973         * lib/open.c (open):
7974         * lib/openat.c (rpl_openat):
7975         Don’t assume O_RDONLY is disjoint from O_RDWR.
7977 2020-03-07  Bruno Haible  <bruno@clisp.org>
7979         openat: Fix theoretically possible issue on GNU/Hurd.
7980         Reported by Dan Gohman <sunfish@mozilla.com> in
7981         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7982         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7983         ignore the bits that are also set in O_RDONLY.
7985 2020-02-24  Bruno Haible  <bruno@clisp.org>
7987         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7988         Reported by Jens Rehsack <sno@netbsd.org> in
7989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7990         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7991         cross-compiling.
7993 2020-02-24  Bruno Haible  <bruno@clisp.org>
7995         fcntl: Add witness of gnulib override.
7996         Reported by Jens Rehsack <sno@netbsd.org> in
7997         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7998         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7999         macros.
8001 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8003         Update users.txt.
8004         * users.txt: Add datamash, time.
8006 2020-02-23  Bruno Haible  <bruno@clisp.org>
8008         uni*/base: Use 'restrict'.
8009         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8010         from lib/regex.h.
8011         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8012         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8013         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8014         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8015         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8016         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8017         '_UC_RESTRICT'.
8018         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8019         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8020         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8021         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8022         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8023         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8024         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8025         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8026         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8027         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8028         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8029         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8030         '_UC_RESTRICT'.
8031         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8032         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8033         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8034         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8035         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8036         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8037         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8038         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8040 2020-02-23  Bruno Haible  <bruno@clisp.org>
8042         glob, spawn: Use improved '_Restrict_' definition.
8043         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8044         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8046 2020-02-23  Bruno Haible  <bruno@clisp.org>
8048         crypto/gc: Use 'restrict'.
8049         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8050         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8052         crypto/hmac-*: Use 'restrict'.
8053         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8054         'restrict'.
8055         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8056         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8057         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8058         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8060         crypto/sm3: Use 'restrict'.
8061         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8062         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8064         crypto/*-buffer: Use 'restrict'.
8065         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8066         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8068         crypto/sha512-buffer: Use 'restrict'.
8069         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8070         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8071         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8073         crypto/sha256-buffer: Use 'restrict'.
8074         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8075         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8076         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8078         crypto/sha1-buffer: Use 'restrict'.
8079         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8080         'restrict'.
8081         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8083         crypto/md5-buffer: Use 'restrict'.
8084         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8085         'restrict'.
8086         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8088         crypto/md4: Use 'restrict'.
8089         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8090         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8092         crypto/md2: Use 'restrict'.
8093         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8094         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8096         crypto/rijndael: Use 'restrict'.
8097         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8098         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8099         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8101         crypto/arctwo: Use 'restrict'.
8102         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8103         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8105         crypto/arcfour: Use 'restrict'.
8106         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8107         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8109         careadlinkat: Use 'restrict'.
8110         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8111         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8112         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8114         regex-quote: Use 'restrict'.
8115         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8116         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8118         system-quote: Use 'restrict'.
8119         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8120         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8122         sh-quote: Use 'restrict'.
8123         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8124         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8126         quotearg: Use 'restrict'.
8127         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8128         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8130         parse-datetime: Use 'restrict'.
8131         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8132         'restrict'.
8133         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8135         nstrftime: Use 'restrict'.
8136         * lib/strftime.h (nstrftime): Use 'restrict'.
8137         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8139         mbstok_r: Use 'restrict'.
8140         * lib/string.in.h (mbstok_r): Use 'restrict'.
8142         xmemcoll: Use 'restrict'.
8143         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8144         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8146         memcoll: Use 'restrict'.
8147         * lib/memcoll.h (memcoll): Use 'restrict'.
8148         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8150         vasnprintf: Use 'restrict'.
8151         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8152         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8154         c-vasnprintf: Use 'restrict'.
8155         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8156         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8158         c-vsnprintf: Use 'restrict'.
8159         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8160         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8162         c-snprintf: Use 'restrict'.
8163         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8164         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8166         astrxfrm: Use 'restrict'.
8167         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8168         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8170         amemxfrm: Use 'restrict'.
8171         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8172         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8174 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8176         fchmodat, lchmod: simplify
8177         It appears that we may have overengineered lchmod and fchmodat,
8178         in that the code was prepared for some hypothetical platforms but
8179         was so complicated that it was hard to understand.  I attempted to
8180         improve the situation by simplifying the code when this
8181         simplification should not hurt on real platforms; we can re-add
8182         complexity later to port to platforms I didn’t know about.
8183         * lib/fchmodat.c (fchmodat):
8184         * lib/lchmod.c (lchmod):
8185         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8186         around the /proc code that needs it.
8187         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8188         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8189         Do not include <config.h> twice.
8190         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8191         lchmod on any known hosts.
8192         (lchmod): Do not defer to fchmodat, so that the lchmod module
8193         need not depend on the fchmodat module (which is a circular
8194         dependency).  Do not use openat, since ‘open’ suffices.
8195         Coalesce calls to lchmod/chmod.
8196         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8197         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8198         * modules/lchmod (Depends-on, configure.ac):
8199         * modules/sys_stat (Depends-on):
8200         Do not worry about replacing lchmod, since that shouldn’t happen.
8201         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8202         Do not worry about whether lchmod works on non-symlinks,
8203         since every known lchmod works on non-symlinks.
8204         * modules/lchmod (Depends-on):
8205         Remove circular dependency on fchmodat.
8207 2020-02-22  Bruno Haible  <bruno@clisp.org>
8209         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8210         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8211         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8213 2020-02-22  Bruno Haible  <bruno@clisp.org>
8215         Use 'restrict' in all POSIX function declarations.
8216         * lib/iconv.in.h (iconv): Use 'restrict'.
8217         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8218         * lib/monetary.in.h (strfmon_l): Likewise.
8219         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8220         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8221         pthread_mutex_timedlock, pthread_rwlock_init,
8222         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8223         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8224         * lib/search.in.h (tdelete): Likewise.
8225         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8226         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8227         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8228         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8229         Likewise.
8230         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8231         strtoull): Likewise.
8232         * lib/string.in.h (strncat): Likewise.
8233         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8234         recvfrom): Likewise.
8235         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8236         * lib/time.in.h (strftime): Likewise.
8237         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8238         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8239         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8240         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8241         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8242         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8243         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8244         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8245         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8250         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8251         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8252         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8253         other *_h.m4 files.
8254         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8256 2020-02-22  Bruno Haible  <bruno@clisp.org>
8258         Update NEWS.
8259         * NEWS: Mention the last change.
8261 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8263         chmodat, chownat: new modules
8264         These are split from fchmodat, fchownat.  GNU Emacs needs the
8265         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8266         lchmodat.  Split the latter two into a new module chmodat.
8267         Similarly for fchownat.  This the same basic idea for why statat
8268         was split from fstatat on 2013-01-23.
8269         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8270         Rename from FCHMODAT_INLINE.  All uses changed.
8271         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8272         Rename from FCHOWNAT_INLINE.  All uses changed.
8273         * lib/openat.h:
8274         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8275         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8276         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8277         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8278         (configure.ac): Remove fchmodat module indicator.
8279         (Makefile.am): Omit chmodat.c.
8280         (Maintainer): Add self.
8281         * modules/fchownat: Similarly, but for chown.
8282         * tests/test-fchownat.c (BASE): Don't define if already defined.
8283         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8285 2020-02-22  Bruno Haible  <bruno@clisp.org>
8287         users.txt: Add groff.
8288         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8289         * users.txt: Add groff.
8291 2020-02-22  Bruno Haible  <bruno@clisp.org>
8293         gnulib-tool: Ensure copied files are writable.
8294         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8296         * gnulib-tool (func_ensure_writable): New function.
8297         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8298         func_create_testdir, copy-file): Invoke it after copying a file.
8300 2020-02-22  Bruno Haible  <bruno@clisp.org>
8302         users.txt: Update.
8303         * users.txt: Update URLs to projects that have moved or switched to git.
8304         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8305         over the summary view. Add gawk.
8307 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8309         largefile: remove _DARWIN_USE_64_BIT_INODE
8310         It’s not needed in currently-supported macOS versions, and was
8311         problematic anyway in MacOS X 10.5 which was the only version that
8312         could use it.  Problem reported by Peter Eisentraut in:
8313         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8314         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8315         Don’t define _DARWIN_USE_64_BIT_INODE.
8316         This syncs with Autoconf master.
8318         Add ‘extern "C"’ to count-one-bits.h etc.
8319         This ports these .h files to C++.
8320         Problem reported by Simon Marchi in:
8321         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8322         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8323         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8325 2020-02-19  Bruno Haible  <bruno@clisp.org>
8327         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8328         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8329         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8330         * lib/array-mergesort.h: Accept an optional macro definition
8331         STATIC_FROMTO.
8332         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8334 2020-02-16  Bruno Haible  <bruno@clisp.org>
8336         fchmodat: Make more future-proof.
8337         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8338         NEED_FCHMODAT_NONSYMLINK_FIX.
8339         (gl_PREREQ_FCHMODAT): New macro.
8340         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8341         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8342         without lchmod function.
8343         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8345 2020-02-16  Bruno Haible  <bruno@clisp.org>
8347         lchmod: Make more future-proof.
8348         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8349         (gl_PREREQ_LCHMOD): New macro.
8350         * lib/lchmod.c (orig_lchmod): New function.
8351         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8352         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8353         function.
8354         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8356         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8357         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8359 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8361         xnanosleep: prefer pause, and get remaining time
8362         Problem reported by Vladimir Panteleev in:
8363         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8364         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8365         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8366         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8367         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8368         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8370 2020-02-16  Bruno Haible  <bruno@clisp.org>
8372         lchmod: Improve cross-compilation guess.
8373         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8374         cross-compiling, guess depending on the platform.
8376 2020-02-16  Bruno Haible  <bruno@clisp.org>
8378         fstrcmp: Add API to clean up resources.
8379         Reported by Akim Demaille <akim@lrde.epita.fr> in
8380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8381         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8382         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8384 2020-02-14  Bruno Haible  <bruno@clisp.org>
8386         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8387         Reported by Christian Biesinger in
8388         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8389         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8390         corresponding module is not enabled.
8391         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8392         prototype if the corresponding module is not enabled.
8394 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8396         fchmodat, lchmod: port to buggy Linux filesystems
8397         Problem reported by Florian Weimer in:
8398         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8399         * lib/fchmodat.c (fchmodat):
8400         * lib/lchmod.c (lchmod):
8401         Don’t assume that chmod on the O_PATH-opened fd will do
8402         the right thing on a symbolic link.
8403         * lib/fchmodat.c (fchmodat):
8404         Don’t attempt to special-case
8405         any flag value other than AT_SYMLINK_NOFOLLOW.
8407 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8409         lchmod: pacify Coverity CID 1491216
8410         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8411         not complain about unreachable code at the ‘struct stat st;’
8412         declaration.
8414 2020-02-10  Bruno Haible  <bruno@clisp.org>
8416         copysignf: Fix link error on HP-UX with cc.
8417         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8418         HP-UX, set COPYSIGNF_LIBM to -lm.
8420 2020-02-10  Bruno Haible  <bruno@clisp.org>
8422         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8423         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8424         with $(LIB_SEMAPHORE).
8425         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8426         with $(LIB_SEMAPHORE).
8428 2020-02-10  Bruno Haible  <bruno@clisp.org>
8430         ptsname_r-tests: Avoid unused function warning.
8431         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8433 2020-02-08  Bruno Haible  <bruno@clisp.org>
8435         lchmod: Add tests.
8436         * tests/test-lchmod.c: New file.
8437         * modules/lchmod-tests: New file.
8439 2020-02-08  Bruno Haible  <bruno@clisp.org>
8441         lchmod: Ensure declaration on HP-UX.
8442         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8443         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8445 2020-02-08  Bruno Haible  <bruno@clisp.org>
8447         fchmodat: Strengthen tests.
8448         * tests/test-fchmodat.c (BASE): New macro.
8449         (main): Use it, to avoid conflicts with other unit tests. Verify that
8450         fchmodat changed the file permission bits.
8452 2020-02-08  Bruno Haible  <bruno@clisp.org>
8454         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8455         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8456         '#undef __need_system_sys_stat_h'.
8458 2020-02-08  Bruno Haible  <bruno@clisp.org>
8460         fchmodat: Improve cross-compilation guesses.
8461         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8462         cross-compiling, guess depending on the platform.
8463         * doc/posix-functions/fchmodat.texi: Clarify.
8465 2020-02-08  Bruno Haible  <bruno@clisp.org>
8467         Fix compilation errors in a testdir created with --with-c++-tests.
8468         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8469         since it does not work any more with g++ >= 4.4.
8471 2020-02-08  Bruno Haible  <bruno@clisp.org>
8473         doc: Update for glibc 2.31.
8474         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8475         * doc/gnulib.texi: Include it.
8476         * doc/pastposix-functions/h_errno.texi: Update.
8477         * doc/posix-functions/*.texi: Likewise.
8479 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8481         mountlist: consider smb3 file systems as remote
8482         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8483         "smb3" as remote.
8485 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8487         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8488         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8489         they act like chmod on non-symlinks.
8490         * NEWS:
8491         * doc/glibc-functions/lchmod.texi (lchmod):
8492         * doc/posix-functions/fchmodat.texi (fchmodat):
8493         Mention this.
8494         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8495         config.h, and undef it after including sys/stat.h the first time.
8496         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8497         sys/stat.h a second time after defining orig_fchmodat.
8498         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8499         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8500         * lib/lchmod.c: New file.
8501         * lib/sys_stat.in.h (fchmodat, lchmod):
8502         Support replacing these functions.
8503         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8504         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8505         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8506         Test that lchmod works on non-symlinks.
8507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8508         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8509         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8510         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8511         * modules/lchmod (Files): Add lib/lchmod.c.
8512         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8513         (configure.ac): Compile lchmod.c if needed.
8514         (lib_SOURCES): Add lchmod.c.
8515         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8516         and REPLACE_LCHMOD.
8517         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8518         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8520 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8522         mountlist: Consider AFS filesystems as remote
8523         df --local relies on the ME_REMOTE macro to determine if a given
8524         mount entry should be considered "local".  There is special logic
8525         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8526         kernel's kafs module or AuriStorFS is treated as a local mount.
8527         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8528         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8530 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8532         Port _Noreturn to older Clang
8533         Problem reported by Jeffery Walton in:
8534         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8535         * lib/_Noreturn.h (_Noreturn):
8536         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8537         Assume _Noreturn works in Clang 3.5 and later.
8538         It is documented to work in Clang 3.5:
8539         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8540         and is not documented in Clang 3.4:
8541         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8542         Apple sets __clang_version__ to a different value, so use
8543         __apple_build_version__ there.  See:
8544         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8546 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8548         test-canonicalize: avoid unused function warning
8549         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8550         with the same guard as that used to protect usage of the null_ptr
8551         function, so that one doesn't get a -Wunused warning.
8552         * tests/test-canonicalize-lgpl.c: Likewise.
8554 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8556         libc-config: port to Apple’s Clang variant
8557         * lib/libc-config.h (__glibc_clang_prereq):
8558         Port to Apple’s Clang variant, which uses a different
8559         numbering scheme for __clang_major__.
8561 2020-02-02  Bruno Haible  <bruno@clisp.org>
8563         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8564         * doc/containers.texi: Document these new modules.
8566 2020-02-02  Bruno Haible  <bruno@clisp.org>
8568         omap-c++: Add tests.
8569         * tests/test-omap-c++.cc: New file.
8570         * modules/omap-c++-tests: New file.
8572         omap-c++: New module.
8573         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8574         * modules/omap-c++: New file.
8576 2020-02-02  Bruno Haible  <bruno@clisp.org>
8578         map-c++: Add tests.
8579         * tests/test-map-c++.cc: New file.
8580         * modules/map-c++-tests: New file.
8582         map-c++: New module.
8583         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8584         * modules/map-c++: New file.
8586 2020-02-02  Bruno Haible  <bruno@clisp.org>
8588         oset-c++: Add tests.
8589         * tests/test-oset-c++.cc: New file.
8590         * modules/oset-c++-tests: New file.
8592         oset-c++: New module.
8593         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8594         * modules/oset-c++: New file.
8596 2020-02-02  Bruno Haible  <bruno@clisp.org>
8598         set-c++: Add tests.
8599         * tests/test-set-c++.cc: New file.
8600         * modules/set-c++-tests: New file.
8602         set-c++: New module.
8603         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8604         * modules/set-c++: New file.
8606 2020-02-02  Bruno Haible  <bruno@clisp.org>
8608         list-c++: Add tests.
8609         * tests/test-list-c++.cc: New file.
8610         * modules/list-c++-tests: New file.
8612         list-c++: New module.
8613         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8614         * modules/list-c++: New file.
8616 2020-02-02  Bruno Haible  <bruno@clisp.org>
8618         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8619         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8620         '_Noreturn'.
8621         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8623 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8625         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8626         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8627           error: argument 2 value '18446744073709551615'
8628           exceeds maximum object size 9223372036854775807
8629           [-Werror=alloc-size-larger-than=]
8630         The details of this restriction are discussed at:
8631         https://stackoverflow.com/q/42574890/4421
8632         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8634 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8636         sysctl.h: avoid including on glibc
8637         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8638         * lib/physmem.c: Likewise.
8640 2020-02-02  Bruno Haible  <bruno@clisp.org>
8642         list, set, oset, map, omap: Avoid imperative voice in documentation.
8643         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8644         in the specification of functions.
8645         * lib/gl_set.h: Likewise.
8646         * lib/gl_oset.h: Likewise.
8647         * lib/gl_map.h: Likewise.
8648         * lib/gl_omap.h: Likewise.
8649         * lib/gl_*.h: Likewise.
8651 2020-02-01  Bruno Haible  <bruno@clisp.org>
8653         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8654         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8655         does.
8657 2020-01-29  Bruno Haible  <bruno@clisp.org>
8659         array-map, hash-map, linkedhash-map: Fix module description.
8660         * modules/array-map (Description): Fix description.
8661         * modules/hash-map (Description): Likewise.
8662         * modules/linkedhash-map (Description): Likewise.
8664 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8666         dfa: do not depend on isblank
8667         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8668         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8669         * modules/dfa (Depends-on): Remove isblank.
8670         * modules/isblank: Add a module indicator, for lib/dfa.c.
8672         dfa: do not assume 64-bit int
8673         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8674         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8675         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8676         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8677         Fall back to 32-bit words.
8678         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8679         of 4 64-bit args.  All uses changed.
8681 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8683         regex: remove limits-h dependency
8684         * modules/regex (Depends-on): Remove limits-h, since the
8685         code no longer depends on ULONG_WIDTH already being defined.
8687         regex: port to non-GCC pre-IEC-60559
8688         Problem reported by Arnold Robbins in:
8689         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8690         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8692 2020-01-25  Bruno Haible  <bruno@clisp.org>
8694         c32isxdigit: Add tests.
8695         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8696         * tests/test-c32isxdigit.sh: New file.
8697         * modules/c32isxdigit-tests: New file.
8699         c32isxdigit: New module.
8700         * lib/c32isxdigit.c: New file.
8701         * modules/c32isxdigit: New file.
8702         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8704 2020-01-25  Bruno Haible  <bruno@clisp.org>
8706         c32isupper: Add tests.
8707         * tests/test-c32isupper.c: New file.
8708         * tests/test-c32isupper.sh: New file.
8709         * modules/c32isupper-tests: New file.
8711         c32isupper: New module.
8712         * lib/c32isupper.c: New file.
8713         * modules/c32isupper: New file.
8714         * doc/posix-functions/iswupper.texi: Mention the new module.
8716 2020-01-25  Bruno Haible  <bruno@clisp.org>
8718         c32isspace: Add tests.
8719         * tests/test-c32isspace.c: New file.
8720         * tests/test-c32isspace.sh: New file.
8721         * modules/c32isspace-tests: New file.
8723         c32isspace: New module.
8724         * lib/c32isspace.c: New file.
8725         * modules/c32isspace: New file.
8726         * doc/posix-functions/iswspace.texi: Mention the new module.
8728 2020-01-25  Bruno Haible  <bruno@clisp.org>
8730         c32ispunct: Add tests.
8731         * tests/test-c32ispunct.c: New file.
8732         * tests/test-c32ispunct.sh: New file.
8733         * modules/c32ispunct-tests: New file.
8735         c32ispunct: New module.
8736         * lib/c32ispunct.c: New file.
8737         * modules/c32ispunct: New file.
8738         * doc/posix-functions/iswpunct.texi: Mention the new module.
8740 2020-01-25  Bruno Haible  <bruno@clisp.org>
8742         c32isprint: Add tests.
8743         * tests/test-c32isprint.c: New file.
8744         * tests/test-c32isprint.sh: New file.
8745         * modules/c32isprint-tests: New file.
8747         c32isprint: New module.
8748         * lib/c32isprint.c: New file.
8749         * modules/c32isprint: New file.
8750         * doc/posix-functions/iswprint.texi: Mention the new module.
8752 2020-01-25  Bruno Haible  <bruno@clisp.org>
8754         c32islower: Add tests.
8755         * tests/test-c32islower.c: New file.
8756         * tests/test-c32islower.sh: New file.
8757         * modules/c32islower-tests: New file.
8759         c32islower: New module.
8760         * lib/c32islower.c: New file.
8761         * modules/c32islower: New file.
8762         * doc/posix-functions/iswlower.texi: Mention the new module.
8764 2020-01-25  Bruno Haible  <bruno@clisp.org>
8766         c32isgraph: Add tests.
8767         * tests/test-c32isgraph.c: New file.
8768         * tests/test-c32isgraph.sh: New file.
8769         * modules/c32isgraph-tests: New file.
8771         c32isgraph: New module.
8772         * lib/c32isgraph.c: New file.
8773         * modules/c32isgraph: New file.
8774         * doc/posix-functions/iswgraph.texi: Mention the new module.
8776 2020-01-25  Bruno Haible  <bruno@clisp.org>
8778         c32isdigit: Add tests.
8779         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8780         * tests/test-c32isdigit.sh: New file.
8781         * modules/c32isdigit-tests: New file.
8783         c32isdigit: New module.
8784         * lib/c32isdigit.c: New file.
8785         * modules/c32isdigit: New file.
8786         * doc/posix-functions/iswdigit.texi: Mention the new module.
8788 2020-01-25  Bruno Haible  <bruno@clisp.org>
8790         c32iscntrl: Add tests.
8791         * tests/test-c32iscntrl.c: New file.
8792         * tests/test-c32iscntrl.sh: New file.
8793         * modules/c32iscntrl-tests: New file.
8795         c32iscntrl: New module.
8796         * lib/c32iscntrl.c: New file.
8797         * modules/c32iscntrl: New file.
8798         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8800 2020-01-25  Bruno Haible  <bruno@clisp.org>
8802         c32isblank: Add tests.
8803         * tests/test-c32isblank.c: New file.
8804         * tests/test-c32isblank.sh: New file.
8805         * modules/c32isblank-tests: New file.
8807         c32isblank: New module.
8808         * lib/c32isblank.c: New file.
8809         * modules/c32isblank: New file.
8810         * doc/posix-functions/iswblank.texi: Mention the new module.
8812 2020-01-25  Bruno Haible  <bruno@clisp.org>
8814         c32isalpha: Add tests.
8815         * tests/test-c32isalpha.c: New file.
8816         * tests/test-c32isalpha.sh: New file.
8817         * modules/c32isalpha-tests: New file.
8819         c32isalpha: New module.
8820         * lib/c32isalpha.c: New file.
8821         * modules/c32isalpha: New file.
8822         * doc/posix-functions/iswalpha.texi: Mention the new module.
8824 2020-01-25  Bruno Haible  <bruno@clisp.org>
8826         c32isalnum: Add tests.
8827         * tests/test-c32isalnum.c: New file.
8828         * tests/test-c32isalnum.sh: New file.
8829         * modules/c32isalnum-tests: New file.
8831         c32isalnum: New module.
8832         * lib/c32isalnum.c: New file.
8833         * lib/c32is-impl.h: New file.
8834         * modules/c32isalnum: New file.
8835         * doc/posix-functions/iswalnum.texi: Mention the new module.
8837 2020-01-25  Bruno Haible  <bruno@clisp.org>
8839         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8840         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8841         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8842         c32isupper, c32isxdigit): New declarations.
8843         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8844         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8845         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8846         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8847         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8848         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8849         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8850         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8851         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8852         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8853         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8854         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8855         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8857 2020-01-25  Bruno Haible  <bruno@clisp.org>
8859         mbchar, wctype: Use the corrected iswxdigit function.
8860         * modules/mbchar (Depends-on): Add iswxdigit.
8861         * modules/wctype (Depends-on): Likewise.
8863         iswxdigit: Add tests.
8864         * tests/test-iswxdigit.c: New file.
8865         * tests/test-iswxdigit.sh: New file.
8866         * modules/iswxdigit-tests: New file.
8868         iswxdigit: New module.
8869         * m4/iswxdigit.m4: New file.
8870         * lib/wctype.in.h (iswxdigit): Potentially override.
8871         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8872         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8873         * lib/iswxdigit.c: New file.
8874         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8875         REPLACE_ISWXDIGIT.
8876         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8877         REPLACE_ISWXDIGIT.
8878         * modules/iswxdigit: New file.
8879         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8881 2020-01-25  Bruno Haible  <bruno@clisp.org>
8883         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8884         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8885         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8886         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8887         off_t on mingw, invoke _lseeki64 instead of lseek.
8889 2020-01-25  Bruno Haible  <bruno@clisp.org>
8891         iswdigit tests: Avoid test failure on Cygwin.
8892         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8893         byte sequence, return 0.
8895         iswdigit: Fix test failure on native Windows.
8896         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8898         mbchar, wctype: Use the corrected iswdigit function.
8899         * modules/mbchar (Depends-on): Add iswdigit.
8900         * modules/wctype (Depends-on): Likewise.
8902         iswdigit: Add tests.
8903         * tests/test-iswdigit.c: New file.
8904         * tests/test-iswdigit.sh: New file.
8905         * modules/iswdigit-tests: New file.
8907         iswdigit: New module.
8908         * m4/iswdigit.m4: New file.
8909         * lib/wctype.in.h (iswdigit): Potentially override.
8910         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8911         * lib/iswdigit.c: New file.
8912         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8913         REPLACE_ISWDIGIT.
8914         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8915         REPLACE_ISWDIGIT.
8916         * modules/iswdigit: New file.
8917         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8919 2020-01-25  Bruno Haible  <bruno@clisp.org>
8921         hard-locale tests: Make it easy to reuse the musl test.
8922         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8923         * modules/hard-locale-tests (Files): Add it.
8924         (configure.ac): Invoke gl_MUSL_LIBC.
8926 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8928         regex: port to Gawk on nonstandard platforms
8929         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8930         This is useful for Gawk, which does not use the Gnulib stdlib-h
8931         module.  Problem reported by Arnold Robbins in:
8932         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8934 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8936         regex: fix bug with >=16 subexpressions
8937         * lib/regex_internal.h (struct re_backref_cache_entry):
8938         Use bitset_word_t as the type of eps_reachable_subexps_map,
8939         instead of unsigned short int.  This fixes a bug I introduced
8940         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8941         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8942         Remove unused member 'unused'.
8944         regex: simplify definition of BITSET_WORD_BITS
8945         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8946         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8947         * lib/regex_internal.h (BITSET_WORD_BITS):
8948         * modules/regex (Depends-on): Add limits-h.
8949         Simplify now that we can use ULONG_WIDTH.
8951 2020-01-20  Bruno Haible  <bruno@clisp.org>
8953         mbrtoc32: Add note about FreeBSD 12.
8954         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8955         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8956         affected.
8958 2020-01-20  Bruno Haible  <bruno@clisp.org>
8960         unistr/u8-uctomb: Fix warning.
8961         Reported by Andreas Schwab <schwab@suse.de> in
8962         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8963         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8964         (u8_uctomb): Add FALLTHROUGH markers.
8966 2020-01-20  Bruno Haible  <bruno@clisp.org>
8968         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8969         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8970         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8971         (glthread_once): Use it.
8973 2020-01-19  Bruno Haible  <bruno@clisp.org>
8975         threadlib: Disable use of weak symbols on FreeBSD 11.
8976         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8977         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8978         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8979         against a bug in FreeBSD 11.
8981 2020-01-19  Bruno Haible  <bruno@clisp.org>
8983         iconv_open: Improve z/OS support.
8984         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8985         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8986         Remove mapping for EUC-TW.
8988 2020-01-18  Bruno Haible  <bruno@clisp.org>
8990         Rename ~~gnulib.m4 to zzgnulib.m4.
8991         Suggested by Paul Eggert.
8992         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8993         * gnulib-tool (func_get_filelist): Update.
8994         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8996 2020-01-18  Bruno Haible  <bruno@clisp.org>
8998         doc: Update license notices.
8999         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9000         reference to a section or to a "file as part of this distribution".
9002 2020-01-18  Bruno Haible  <bruno@clisp.org>
9004         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9005         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9006         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9007         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9008         AC_EGREP_CPP.
9010 2020-01-18  Bruno Haible  <bruno@clisp.org>
9012         Ensure Automake does not drop ~~gnulib.m4.
9013         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9014         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9016 2020-01-18  Bruno Haible  <bruno@clisp.org>
9018         Fix major regression from 2020-01-10.
9019         Reported by Paul Eggert in
9020         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9021         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9022         Don't AC_REQUIRE anything.
9023         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9024         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9025         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9026         use ac_compile instead.
9027         (AC_CHECK_DECL): Remove override.
9028         * m4/~~gnulib.m4: New file.
9029         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9030         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9032 2020-01-17  Bruno Haible  <bruno@clisp.org>
9033             Paul Eggert  <eggert@cs.ucla.edu>
9035         glob: Fix use-after-free bug.
9036         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9037         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9038         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9039         end_name.
9041 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9043         vcs-to-changelog: Fix parsing of fndecl without args.
9044         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9045         for empty arguments.
9047 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9049         vcs-to-changelog: Add documentation.
9050         * doc/vcs-to-changelog.texi: New file.
9051         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9052         section.
9054 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9056         vcs-to-changelog: Allow loading of custom quirks file.
9057         * build-aux/vcs_to_changelog.py: New commandline option -q.
9059 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9061         vcs-to-changelog: Fix formatting of ChangeLog output.
9062         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9063         output.
9065 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9067         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9068         Reported in
9069         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9070         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9072 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9074         crypto/gc-pbkdf2: New module.
9075         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9076         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9077         * lib/gc-pbkdf2.c: New file.
9078         * lib/gc-pbkdf2-sha1.c: Use new interface.
9079         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9080         * modules/crypto/gc-pbkdf2: New file.
9081         * modules/crypto/gc-pbkdf2-tests: New file.
9082         * tests/test-gc-pbkdf2.c: New file.
9084 2020-01-12  Bruno Haible  <bruno@clisp.org>
9086         c32stombs: Add tests.
9087         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9088         * tests/test-c32stombs-1.sh: New file, based on
9089         tests/test-c32srtombs-1.sh.
9090         * tests/test-c32stombs-2.sh: New file, based on
9091         tests/test-c32srtombs-2.sh.
9092         * tests/test-c32stombs-3.sh: New file, based on
9093         tests/test-c32srtombs-3.sh.
9094         * tests/test-c32stombs-4.sh: New file, based on
9095         tests/test-c32srtombs-4.sh.
9096         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9098         c32stombs: New module.
9099         * lib/uchar.in.h (c32stombs): New declaration.
9100         * lib/c32stombs.c: New file.
9101         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9102         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9103         * modules/c32stombs: New file.
9104         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9105         * doc/posix-functions/wcstombs.texi: Mention the new module.
9107 2020-01-11  Jim Meyering  <meyering@fb.com>
9109         perl: require the "warnings" module
9110         * m4/perl.m4: Also "use warnings", so we reject the perl found
9111         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9112         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9114 2020-01-10  Bruno Haible  <bruno@clisp.org>
9116         Fix major regression from 2020-01-04.
9117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9118         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9119         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9120         AC_DEFUN_ONCE.
9121         (AC_CHECK_DECL): Invoke, not require, it.
9123 2020-01-10  Bruno Haible  <bruno@clisp.org>
9125         c32snrtombs: Add tests.
9126         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9127         * tests/test-c32snrtombs-1.sh: New file, based on
9128         tests/test-wcsnrtombs1.sh.
9129         * tests/test-c32snrtombs-2.sh: New file, based on
9130         tests/test-wcsnrtombs2.sh.
9131         * tests/test-c32snrtombs-3.sh: New file, based on
9132         tests/test-wcsnrtombs3.sh.
9133         * tests/test-c32snrtombs-4.sh: New file, based on
9134         tests/test-wcsnrtombs4.sh.
9135         * modules/c32snrtombs-tests: New file, based on
9136         modules/wcsnrtombs-tests.
9138         c32snrtombs: New module.
9139         * lib/uchar.in.h (c32snrtombs): New declaration.
9140         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9141         INTERNAL_STATE, WCRTOMB.
9142         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9143         * lib/c32snrtombs.c: New file.
9144         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9145         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9146         * modules/c32snrtombs: New file.
9147         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9148         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9150 2020-01-09  Bruno Haible  <bruno@clisp.org>
9152         c32srtombs: Add tests.
9153         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9154         * tests/test-c32srtombs-1.sh: New file, based on
9155         tests/test-wcsrtombs1.sh.
9156         * tests/test-c32srtombs-2.sh: New file, based on
9157         tests/test-wcsrtombs2.sh.
9158         * tests/test-c32srtombs-3.sh: New file, based on
9159         tests/test-wcsrtombs3.sh.
9160         * tests/test-c32srtombs-4.sh: New file, based on
9161         tests/test-wcsrtombs4.sh.
9162         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9164         c32srtombs: New module.
9165         * lib/uchar.in.h (c32srtombs): New declaration.
9166         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9167         INTERNAL_STATE, WCRTOMB.
9168         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9169         * lib/c32srtombs.c: New file.
9170         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9171         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9172         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9173         * modules/c32srtombs: New file.
9174         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9175         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9177 2020-01-08  Bruno Haible  <bruno@clisp.org>
9179         c32tob: Make consistent with mbrtoc32.
9180         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9181         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9182         use c32rtomb, not wctob.
9183         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9184         (Depends-on): Add c32rtomb.
9185         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9187 2020-01-08  Bruno Haible  <bruno@clisp.org>
9189         c32rtomb: Add tests.
9190         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9191         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9192         * tests/test-c32rtomb-w32.c: New file, based on
9193         tests/test-wcrtomb-w32.c.
9194         * tests/test-c32rtomb-w32-1.sh: New file, based on
9195         tests/test-wcrtomb-w32-1.sh.
9196         * tests/test-c32rtomb-w32-2.sh: New file, based on
9197         tests/test-wcrtomb-w32-2.sh.
9198         * tests/test-c32rtomb-w32-3.sh: New file, based on
9199         tests/test-wcrtomb-w32-3.sh.
9200         * tests/test-c32rtomb-w32-4.sh: New file, based on
9201         tests/test-wcrtomb-w32-4.sh.
9202         * tests/test-c32rtomb-w32-5.sh: New file, based on
9203         tests/test-wcrtomb-w32-5.sh.
9204         * tests/test-c32rtomb-w32-6.sh: New file, based on
9205         tests/test-wcrtomb-w32-6.sh.
9206         * tests/test-c32rtomb-w32-7.sh: New file, based on
9207         tests/test-wcrtomb-w32-7.sh.
9208         * modules/c32rtomb-tests: New file.
9210         c32rtomb: New module.
9211         * lib/uchar.in.h (c32rtomb): New declaration.
9212         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9213         * m4/c32rtomb.m4: New file.
9214         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9215         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9216         REPLACE_C32RTOMB.
9217         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9218         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9219         * modules/c32rtomb: New file.
9220         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9221         * doc/posix-functions/c32rtomb.texi: Document the new module.
9222         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9224 2020-01-08  Bruno Haible  <bruno@clisp.org>
9226         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9227         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9228         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9229         but is not working.
9230         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9231         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9232         differ, use the system's mbrtoc32, adding workarounds.
9233         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9234         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9235         Windows problem.
9236         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9237         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9238         use mbrtoc32, not btowc.
9239         * modules/btoc32 (Depends-on): Add mbrtoc32.
9240         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9241         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9242         * modules/mbsrtoc32s (Depends-on): Update conditions.
9243         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9244         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9245         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9246         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9247         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9249 2020-01-07  Bruno Haible  <bruno@clisp.org>
9251         wcrtomb: Make multithread-safe, except possibly on IRIX.
9252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9253         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9254         WCRTOMB_RETVAL_BUG.
9255         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9256         wctomb only on IRIX.
9258 2020-01-05  Jim Meyering  <meyering@fb.com>
9260         tests: skip thread-using tests when threading is disabled
9261         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9262         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9263         of those, so they are skipped in this case.
9264         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9265         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9266         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9268 2020-01-05  Bruno Haible  <bruno@clisp.org>
9270         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9271         Reported by Jim Meyering in
9272         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9273         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9274         (GNULIB_defined_ptsname_r): New macro.
9275         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9276         (main): Disable the NULL argument test if canonicalize_file_name does
9277         not come from gnulib.
9278         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9279         (main): Disable the NULL argument test if canonicalize_file_name does
9280         not come from gnulib.
9281         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9282         (test_errors): Disable the NULL argument test if ptsname_r does not come
9283         from gnulib.
9285 2020-01-04  Jim Meyering  <meyering@fb.com>
9287         update-copyright: reenable its always-skipped test
9288         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9289         on 2019-06-15. Without those, an internal preliminary test would
9290         fail, causing this test always to be skipped.
9291         Verify that the test is now run and passes via this:
9292           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9294 2020-01-05  Bruno Haible  <bruno@clisp.org>
9296         mbstoc32s: Add tests.
9297         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9298         * tests/test-mbstoc32s-1.sh: New file, based on
9299         tests/test-mbsrtoc32s-1.sh.
9300         * tests/test-mbstoc32s-2.sh: New file, based on
9301         tests/test-mbsrtoc32s-2.sh.
9302         * tests/test-mbstoc32s-3.sh: New file, based on
9303         tests/test-mbsrtoc32s-3.sh.
9304         * tests/test-mbstoc32s-4.sh: New file, based on
9305         tests/test-mbsrtoc32s-4.sh.
9306         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9308         mbstoc32s: New module.
9309         * lib/uchar.in.h (mbstoc32s): New declaration.
9310         * lib/mbstoc32s.c: New file.
9311         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9312         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9313         * modules/mbstoc32s: New file.
9314         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9315         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9317 2020-01-05  Bruno Haible  <bruno@clisp.org>
9319         Tweak recently added tests.
9320         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9321         * tests/test-mbsrtoc32s.c: Likewise.
9322         * tests/test-mbsnrtoc32s.c: Likewise.
9324 2020-01-04  Bruno Haible  <bruno@clisp.org>
9326         mbsnrtoc32s: Add tests.
9327         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9328         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9329         tests/test-mbsnrtowcs1.sh.
9330         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9331         tests/test-mbsnrtowcs2.sh.
9332         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9333         tests/test-mbsnrtowcs3.sh.
9334         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9335         tests/test-mbsnrtowcs4.sh.
9336         * modules/mbsnrtoc32s-tests: New file, based on
9337         modules/mbsnrtowcs-tests.
9339         mbsnrtoc32s: New module.
9340         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9341         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9342         INTERNAL_STATE, MBRTOWC.
9343         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9344         * lib/mbsnrtoc32s.c: New file.
9345         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9346         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9347         * modules/mbsnrtoc32s: New file.
9348         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9349         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9351 2020-01-04  Bruno Haible  <bruno@clisp.org>
9353         mbsrtoc32s tests: Enhance test.
9354         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9355         test strings for UTF-8 and GB18030.
9357 2020-01-04  Bruno Haible  <bruno@clisp.org>
9359         mbsrtoc32s: Fix bug.
9360         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9361         that SMALL_WCHAR_T is defined.
9363 2020-01-04  Bruno Haible  <bruno@clisp.org>
9365         mbsrtoc32s: Add tests.
9366         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9367         * tests/test-mbsrtoc32s-1.sh: New file, based on
9368         tests/test-mbsrtowcs1.sh.
9369         * tests/test-mbsrtoc32s-2.sh: New file, based on
9370         tests/test-mbsrtowcs2.sh.
9371         * tests/test-mbsrtoc32s-3.sh: New file, based on
9372         tests/test-mbsrtowcs3.sh.
9373         * tests/test-mbsrtoc32s-4.sh: New file, based on
9374         tests/test-mbsrtowcs4.sh.
9375         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9377         mbsrtoc32s: New module.
9378         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9379         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9380         INTERNAL_STATE, MBRTOWC.
9381         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9382         * lib/mbsrtoc32s.c: New file.
9383         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9384         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9385         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9386         * modules/mbsrtoc32s: New file.
9387         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9388         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9390 2020-01-04  Bruno Haible  <bruno@clisp.org>
9392         mbrtowc, mbrtoc32: Tighten dependendies.
9393         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9394         REPLACE_MBSTATE_T is 1.
9395         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9396         REPLACE_MBSTATE_T is 0.
9397         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9398         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9399         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9400         REPLACE_MBSTATE_T is 0.
9402 2020-01-04  Bruno Haible  <bruno@clisp.org>
9404         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9405         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9406         * modules/uchar (Files): Add stdint.m4.
9407         (Makefile.am): Substitute SMALL_WCHAR_T.
9408         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9410 2020-01-04  Bruno Haible  <bruno@clisp.org>
9412         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9413         Reported by Martin Storsjö <martin@martin.st> in
9414         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9415         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9416         New macros.
9417         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9419 2020-01-04  Bruno Haible  <bruno@clisp.org>
9421         btoc32: Add tests.
9422         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9423         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9424         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9425         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9427         btoc32: New module.
9428         * lib/uchar.in.h (btoc32): New declaration.
9429         * lib/btoc32.c: New file.
9430         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9431         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9432         * modules/btoc32: New file.
9433         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9434         * doc/posix-functions/btowc.texi: Mention the new module.
9436 2020-01-03  Bruno Haible  <bruno@clisp.org>
9438         uchar tests: Avoid compilation error with HP cc.
9439         * tests/test-uchar.c: Disable a test when HP cc is in use.
9441 2020-01-03  Bruno Haible  <bruno@clisp.org>
9443         mbrtoc32: Add tests.
9444         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9445         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9446         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9447         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9448         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9449         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9450         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9451         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9452         tests/test-mbrtowc-w32-1.sh.
9453         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9454         tests/test-mbrtowc-w32-2.sh.
9455         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9456         tests/test-mbrtowc-w32-3.sh.
9457         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9458         tests/test-mbrtowc-w32-4.sh.
9459         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9460         tests/test-mbrtowc-w32-5.sh.
9461         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9462         tests/test-mbrtowc-w32-6.sh.
9463         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9464         tests/test-mbrtowc-w32-7.sh.
9465         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9467         mbrtoc32: New module.
9468         * lib/uchar.in.h (mbrtoc32): New declaration.
9469         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9470         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9471         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9472         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9473         REPLACE_MBRTOC32.
9474         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9475         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9476         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9477         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9478         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9479         $(LIB_MBRTOWC).
9480         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9481         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9483 2020-01-03  Bruno Haible  <bruno@clisp.org>
9485         mbrtowc: Refactor to share code with mbrtoc32.
9486         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9487         * lib/mbrtowc-impl-utf8.h: Likewise.
9488         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9489         mbrtowc-impl.h.
9490         * modules/mbrtowc (Files): Add the new files.
9492 2020-01-03  Jim Meyering  <meyering@fb.com>
9494         doc: fix time.texi wording
9495         * doc/posix-headers/time.texi (time.h): Typo.
9497 2020-01-03  Bruno Haible  <bruno@clisp.org>
9499         mbrtowc: Refactor locale charset dispatching.
9500         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9501         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9502         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9503         localcharset.h, streq.h.
9504         (enc_t): Remove type.
9505         (locale_enc): Remove function.
9506         (cached_locale_enc): Remove variable.
9507         (locale_enc_cached): Remove function.
9508         (mbrtowc): Invoke locale_encoding_classification.
9509         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9510         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9511         lc-charset-dispatch.c.
9512         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9514 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9516         doc: mention 32-bit time_t issue
9517         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9518         * doc/posix-headers/time.texi (time.h): Mention 2038.
9520 2020-01-03  Bruno Haible  <bruno@clisp.org>
9522         mbrtowc: Ensure the mbtowc_lock is unique.
9523         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9524         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9525         lib/setlocale_null.c.
9526         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9527         glthread/lock.h. Include mbtowc-lock.h.
9528         (mbtowc_lock): Remove declaration.
9529         (mbrtowc): Use mbtowc_with_lock.
9530         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9531         threads.h. Set LIB_MBRTOWC.
9532         (gl_PREREQ_MBTOWC_LOCK): New macro.
9533         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9534         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9535         (Depends-on): Remove lock.
9536         (configure.ac): Arrange to compile mbtowc-lock.c.
9537         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9538         * modules/acl (Link): Likewise.
9539         * modules/argmatch (Link): Likewise.
9540         * modules/backup-rename (Link): Likewise.
9541         * modules/backupfile (Link): Likewise.
9542         * modules/closein (Link): Likewise.
9543         * modules/closeout (Link): Likewise.
9544         * modules/copy-file (Link): Likewise.
9545         * modules/csharpcomp (Link): Likewise.
9546         * modules/csharpexec (Link): Likewise.
9547         * modules/dfa (Link): Likewise.
9548         * modules/exclude (Link): Likewise.
9549         * modules/fnmatch (Link): Likewise.
9550         * modules/fnmatch-gnu (Link): Likewise.
9551         * modules/fnmatch-posix (Link): Likewise.
9552         * modules/glob (Link): Likewise.
9553         * modules/human (Link): Likewise.
9554         * modules/javacomp (Link): Likewise.
9555         * modules/javaexec (Link): Likewise.
9556         * modules/javaversion (Link): Likewise.
9557         * modules/mbfile (Link): Likewise.
9558         * modules/mbiter (Link): Likewise.
9559         * modules/mbmemcasecmp (Link): Likewise.
9560         * modules/mbmemcasecoll (Link): Likewise.
9561         * modules/mbrlen (Link): Likewise.
9562         * modules/mbscasecmp (Link): Likewise.
9563         * modules/mbscasestr (Link): Likewise.
9564         * modules/mbschr (Link): Likewise.
9565         * modules/mbscspn (Link): Likewise.
9566         * modules/mbsinit (Link): Likewise.
9567         * modules/mbslen (Link): Likewise.
9568         * modules/mbsncasecmp (Link): Likewise.
9569         * modules/mbsnlen (Link): Likewise.
9570         * modules/mbsnrtowcs (Link): Likewise.
9571         * modules/mbspbrk (Link): Likewise.
9572         * modules/mbspcasecmp (Link): Likewise.
9573         * modules/mbsrchr (Link): Likewise.
9574         * modules/mbsrtowcs (Link): Likewise.
9575         * modules/mbssep (Link): Likewise.
9576         * modules/mbsspn (Link): Likewise.
9577         * modules/mbsstr (Link): Likewise.
9578         * modules/mbstok_r (Link): Likewise.
9579         * modules/mbswidth (Link): Likewise.
9580         * modules/mbuiter (Link): Likewise.
9581         * modules/mkdir-p (Link): Likewise.
9582         * modules/propername (Link): Likewise.
9583         * modules/quote (Link): Likewise.
9584         * modules/quotearg (Link): Likewise.
9585         * modules/quotearg-simple (Link): Likewise.
9586         * modules/regex-quote (Link): Likewise.
9587         * modules/rpmatch (Link): Likewise.
9588         * modules/sh-quote (Link): Likewise.
9589         * modules/system-quote (Link): Likewise.
9590         * modules/trim (Link): Likewise.
9591         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9592         * modules/unistdio/ulc-fprintf (Link): Likewise.
9593         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9594         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9595         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9596         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9597         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9598         * modules/xfreopen (Link): Likewise.
9599         * modules/xmemcoll (Link): Likewise.
9600         * modules/yesno (Link): Likewise.
9601         * modules/regex (Link): Add $(LIB_MBRTOWC).
9602         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9603         instead of $(LIBTHREAD).
9604         * modules/argmatch-tests (Makefile.am): Likewise.
9605         * modules/closein-tests (Makefile.am): Likewise.
9606         * modules/copy-file-tests (Makefile.am): Likewise.
9607         * modules/dfa-tests (Makefile.am): Likewise.
9608         * modules/fnmatch-tests (Makefile.am): Likewise.
9609         * modules/glob-tests (Makefile.am): Likewise.
9610         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9611         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9612         * modules/mbrtowc-tests (Makefile.am): Likewise.
9613         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9614         * modules/mbscasestr-tests (Makefile.am): Likewise.
9615         * modules/mbschr-tests (Makefile.am): Likewise.
9616         * modules/mbscspn-tests (Makefile.am): Likewise.
9617         * modules/mbsinit-tests (Makefile.am): Likewise.
9618         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9619         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9620         * modules/mbspbrk-tests (Makefile.am): Likewise.
9621         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9622         * modules/mbsrchr-tests (Makefile.am): Likewise.
9623         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9624         * modules/mbsspn-tests (Makefile.am): Likewise.
9625         * modules/mbsstr-tests (Makefile.am): Likewise.
9626         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9627         * modules/quotearg-tests (Makefile.am): Likewise.
9628         * modules/readtokens-tests (Makefile.am): Likewise.
9629         * modules/sh-quote-tests (Makefile.am): Likewise.
9630         * modules/system-quote-tests (Makefile.am): Likewise.
9631         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9632         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9633         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9634         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9635         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9636         * modules/yesno-tests (Makefile.am): Likewise.
9637         * modules/exclude-tests (Makefile.am): Link the programs with
9638         $(LIB_MBRTOWC).
9639         * modules/regex-tests (Makefile.am): Likewise.
9640         * modules/regex-quote-tests (Makefile.am): Likewise.
9642 2020-01-03  Bruno Haible  <bruno@clisp.org>
9644         getopt-posix: Fix compilation failure in testdirs.
9645         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9646         when the gnulib module 'getopt-posix' is enabled.
9647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9648         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9649         module indicator.
9650         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9652 2020-01-03  Bruno Haible  <bruno@clisp.org>
9654         doc: Mention the 64-bit inode number problem.
9655         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9656         64-bit inode number problem.
9657         * doc/posix-functions/stat.texi: Mention that this module fixes the
9658         64-bit inode number problem.
9659         * doc/posix-functions/lstat.texi: Likewise.
9660         * doc/posix-functions/fstat.texi: Likewise.
9661         * doc/posix-functions/readdir.texi: Add more details.
9662         * doc/posix-functions/readdir_r.texi: Likewise.
9664 2020-01-02  Bruno Haible  <bruno@clisp.org>
9666         wcrtomb: Add more tests.
9667         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9668         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9669         locale_charset() returns the expected value; otherwise, skip the test.
9670         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9671         * tests/test-wcrtomb-w32-7.sh: Likewise.
9672         * modules/wcrtomb-tests (Files): Add these files.
9673         (Depends-on): Add localcharset.
9674         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9676 2020-01-02  Bruno Haible  <bruno@clisp.org>
9678         mbrtowc: Add more tests.
9679         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9680         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9681         locale_charset() returns the expected value; otherwise, skip the test.
9682         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9683         * tests/test-mbrtowc-w32-7.sh: Likewise.
9684         * modules/mbrtowc-tests (Files): Add these files.
9685         (Depends-on): Add localcharset.
9686         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9688 2020-01-02  Bruno Haible  <bruno@clisp.org>
9690         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9691         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9692         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9693         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9694         MBRTOWC_STORES_INCOMPLETE_BUG.
9695         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9697 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9699         doc: mention glibc bug 24269
9700         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9701         Reformat slightly so that it looks nicer in the Grep manual.
9703 2020-01-02  Bruno Haible  <bruno@clisp.org>
9705         mbrtowc: Don't replace mbstate_t on MSVC.
9706         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9707         a missing mbsinit function on native Windows.
9708         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9709         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9710         MSVC bug.
9711         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9713 2020-01-02  Bruno Haible  <bruno@clisp.org>
9715         setlocale-null: Avoid crashing the MSVC linker.
9716         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9717         MSVC.
9719 2020-01-02  Bruno Haible  <bruno@clisp.org>
9721         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9722         * modules/wchar (Depends-on): Add inttypes-incomplete.
9723         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9724         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9725         of strtoimax.
9727 2020-01-02  Bruno Haible  <bruno@clisp.org>
9729         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9730         * lib/mbrtowc.c: Include <stdint.h>.
9731         * modules/mbrtowc (Depends-on): Add stdint.
9733 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9735         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9736         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9737         which will auto enable use of openssl, only for >= version 3,
9738         which is newly licensed under the Apache Software License.
9740 2020-01-01  Bruno Haible  <bruno@clisp.org>
9742         mbrtowc: Include function name in macro names.
9743         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9744         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9745         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9746         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9747         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9748         C_LOCALE_MAYBE_EILSEQ.
9750 2020-01-01  Bruno Haible  <bruno@clisp.org>
9752         c32tob: New module.
9753         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9754         (c32tob): New declaration.
9755         * lib/c32tob.c: New file.
9756         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9757         macros.
9758         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9759         * modules/uchar (Depends-on): Add snippet/c++defs.
9760         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9761         uchar.h.
9762         * modules/c32tob: New file.
9763         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9764         defined.
9765         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9766         c32tob.
9767         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9768         * doc/posix-functions/wctob.texi: Mention the new module.
9770 2020-01-01  Bruno Haible  <bruno@clisp.org>
9772         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9773         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9774         $(LIB_SETLOCALE).
9776 2020-01-01  Bruno Haible  <bruno@clisp.org>
9778         hard-locale tests: Fix a conflict with the C++ tests.
9779         * modules/hard-locale-tests (Makefile.am): Build a program named
9780         'current-locale', not 'locale'.
9782 2020-01-01  Bruno Haible  <bruno@clisp.org>
9784         doc: Update documentation about wchar_t.
9785         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9786         wchar_t type.
9788 2020-01-01  Bruno Haible  <bruno@clisp.org>
9790         mbrtowc tests: Fix typos.
9791         * tests/test-mbrtowc.c (main): Fix typo.
9792         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9794 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9796         maint: update copyright notices
9797         Before doing the following changes done by hand, I also ran ‘make
9798         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9799         to do most of the copyright years automatically.  A few upstream
9800         sources are still in 2019 but these should eventually be changed
9801         automatically too.
9802         * build-aux/declared.sh (func_version):
9803         * build-aux/libtool-next-version (func_version):
9804         * build-aux/run-test (func_version):
9805         Update these notices by hand.  Put just the last year
9806         in output of programs, as per GNU coding standards.
9808 2019-12-31  Bruno Haible  <bruno@clisp.org>
9810         uchar: Add C++ tests.
9811         * tests/test-uchar-c++.cc: New file.
9812         * tests/test-uchar-c++2.cc: New file.
9813         * modules/uchar-c++-tests: New file.
9815         uchar: Add tests.
9816         * tests/test-uchar.c: New file.
9817         * modules/uchar-tests: New file.
9819         uchar: New module.
9820         * lib/uchar.in.h: New file.
9821         * m4/uchar.m4: New file.
9822         * modules/uchar: New file.
9823         * doc/posix-headers/uchar.texi: Mention the new module.
9825 2019-12-30  Jim Meyering  <meyering@fb.com>
9827         localeinfo: ->simple would be wrong for LC_ALL=C
9828         That would lead to using unnecessary and expensive code paths in dfa.c.
9829         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9830         error that would have made grep many times slower in the C locale.
9831         With this change, and a file created like this:
9832           yes 00 | head -10000000 > in
9833         Running grep as follows becomes more than 40 times faster:
9834           LC_ALL=C grep -Fw 0 in
9836 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9838         doc: document trouble with back-references
9839         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9841 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9843         doc: use “back-reference” for \1 etc.
9844         * doc/regex.texi: Consistently spell “back-reference” with
9845         a hyphen, since that’s how POSIX does it.
9847 2019-12-26  Jim Meyering  <meyering@fb.com>
9849         test-framework-sh: tighten an internal grep regexp
9850         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9851         that helps test for a working printf.
9853 2019-12-26  Bruno Haible  <bruno@clisp.org>
9855         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9856         Reported by Paul Eggert in
9857         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9858         Simplification by Jim Meyering.
9859         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9860         octal escape sequence in a UTF-8 locale.
9862 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9864         mbrtowc: port better to narrow-wchar_t platforms
9865         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9866         wchar_t is too narrow to represent all the Unicode characters,
9867         consider a byte sequence for an out-of-wchar_t-range character to
9868         be an encoding error.  This fixes grep’s surrogate-pair test
9869         failure on AIX 7.2.
9871 2019-12-24  Bruno Haible  <bruno@clisp.org>
9873         localcharset: Avoid referencing rpl_setlocale on native Windows.
9874         * lib/localcharset.c (setlocale): Undefine.
9876 2019-12-24  Bruno Haible  <bruno@clisp.org>
9878         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9879         * m4/semaphore.m4: New file.
9880         * modules/lock-tests (Files): Add it.
9881         (configure.ac): Require gl_SEMAPHORE.
9882         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9884 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9886         strptime: fix typo in previous patch
9887         Problem and fix reported by Bruno Haible in:
9888         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9889         * lib/strptime.c (day_of_the_week): Fix paren bug.
9891 2019-12-24  Bruno Haible  <bruno@clisp.org>
9893         setlocale-null: Make it easy to rely on the lock in another library.
9894         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9895         defined.
9897 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9899         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9900         Performanced analyzed by Bruno Haible in:
9901         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9902         * config/srclist.txt: Do not sync mktime.c for now.
9903         * lib/mktime.c (shr, ydhms_diff):
9904         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9905         * lib/strptime.c (day_of_the_week):
9906         * lib/xtime.h (xtime_sec):
9907         Redo with neither ‘%’ nor conditional branches.
9909 2019-12-23  Bruno Haible  <bruno@clisp.org>
9911         setlocale-null: Export the lock function also on non-Windows platforms.
9912         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9913         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9914         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9915         * modules/setlocale-null (configure.ac): Invoke it.
9916         (Files): Add m4/visibility.m4.
9918 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9920         gethrxtime: fix rounding bug with negative args
9921         Problem reported by Bruno Haible in:
9922         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9923         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9924         with negative rounding.  Common platforms can compute / and % with
9925         a single instruction, so the simplified code should be shorter and
9926         faster on these platforms anyway.
9928 2019-12-22  Bruno Haible  <bruno@clisp.org>
9930         gethrxtime: remove incorrect overflow detection
9931         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9932         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9933         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9934         cannot now see the need for anyway (even in cases where it works),
9935         as the patch is helpful only when the signs of S and NS disagree,
9936         and all callers pass nonnegative values for S and NS.
9938 2019-12-22  Bruno Haible  <bruno@clisp.org>
9940         setlocale-null: Add standalone include file.
9941         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9942         * lib/locale.in.h: Include setlocale_null.h.
9943         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9944         setlocale_null): Remove declarations.
9945         * lib/setlocale_null.c: Include setlocale_null.h.
9946         * lib/localename.c: Likewise.
9947         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9948         (Depends-on): Add snippet/arg-nonnull.
9949         (Include): Allow either "setlocale_null.h" or <locale.h>.
9951 2019-12-22  Bruno Haible  <bruno@clisp.org>
9953         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9954         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9955         AC_RUN_IFELSE test.
9956         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9957         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9958         problem.
9960 2019-12-22  Bruno Haible  <bruno@clisp.org>
9962         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9963         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9964         unconditional AC_LIBOBJ.
9965         * modules/selinux-at: Likewise.
9966         * modules/xmemdup0: Likewise.
9967         * modules/xstrtoll: Likewise.
9969 2019-12-22  Bruno Haible  <bruno@clisp.org>
9971         longlong: Mark module obsolete.
9972         * modules/longlong (Status, Notice): New sections.
9974         stdint: Assume that the compiler supports 'long long'.
9975         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9976         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9977         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9978         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9979         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9980         * modules/stdint (Files): Remove longlong.m4.
9981         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9982         HAVE_UNSIGNED_LONG_LONG_INT.
9984         inttypes-incomplete: Assume that the compiler supports 'long long'.
9985         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9986         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9987         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9988         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9989         HAVE_LONG_LONG_INT to be 1.
9990         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9991         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9993         malloca: Assume that the compiler supports 'long long'.
9994         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9995         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9996         * modules/malloca (Files): Remove longlong.m4.
9997         * modules/relocatable-prog-wrapper (Files): Likewise.
9999         atoll: Assume that the compiler supports 'long long'.
10000         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10001         * modules/atoll (Files): Remove longlong.m4.
10003         strtoll: Assume that the compiler supports 'long long'.
10004         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10005         * modules/strtoll (Files): Remove longlong.m4.
10007         strtoull: Assume that the compiler supports 'long long'.
10008         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10009         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10010         * modules/strtoull (Files): Remove longlong.m4.
10012         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10013         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10014         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10015         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10016         AC_TYPE_LONG_LONG_INT.
10017         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10018         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10019         * modules/strtoimax (Files): Remove longlong.m4.
10020         * modules/strtoumax (Files): Likewise.
10022         xstrtoll: Assume that the compiler supports 'long long'.
10023         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10024         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10026         vasnprintf: Assume that the compiler supports 'long long'.
10027         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10028         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10029         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10030         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10031         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10032         require AC_TYPE_LONG_LONG_INT.
10033         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10034         gl_PREREQ_VASNPRINTF): Likewise.
10035         * modules/vasnprintf (Files): Remove longlong.m4.
10036         * modules/c-vasnprintf (Files): Likewise.
10037         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10038         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10039         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10040         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10041         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10042         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10043         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10045         gethrxtime: Assume that the compiler supports 'long long'.
10046         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10047         (XTIME_PRECISION): Define to 1000000000 always.
10048         (xtime_make, xtime_sec): Optimize accordingly.
10049         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10050         * modules/gethrxtime (Files): Remove longlong.m4.
10052         integer_length*: Assume that the compiler supports 'long long'.
10053         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10054         * modules/integer_length (Files): Remove longlong.m4.
10055         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10056         * modules/integer_length_l (Files): Remove longlong.m4.
10057         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10058         * modules/integer_length_ll (Files): Remove longlong.m4.
10059         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10061         count-one-bits: Assume that the compiler supports 'long long'.
10062         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10063         * m4/count-one-bits.m4: Remove file.
10064         * modules/count-one-bits (Files): Remove it.
10065         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10066         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10067         unconditionally.
10069         count-trailing-zeros: Assume that the compiler supports 'long long'.
10070         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10071         unconditionally.
10072         * m4/count-trailing-zeros.m4: Remove file.
10073         * modules/count-trailing-zeros (Files): Remove it.
10074         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10075         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10076         unconditionally.
10078         count-leading-zeros: Assume that the compiler supports 'long long'.
10079         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10080         unconditionally.
10081         * m4/count-leading-zeros.m4: Remove file.
10082         * modules/count-leading-zeros (Files): Remove it.
10083         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10084         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10085         unconditionally.
10087 2019-12-22  Bruno Haible  <bruno@clisp.org>
10089         localcharset: Update support for OpenBSD.
10090         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10092 2019-12-21  Bruno Haible  <bruno@clisp.org>
10094         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10095         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10096         NetBSD.
10097         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10099 2019-12-21  Bruno Haible  <bruno@clisp.org>
10101         threadlib: Improve code structure.
10102         * m4/threadlib.m4: Reorder macros. Add comments.
10104 2019-12-21  Bruno Haible  <bruno@clisp.org>
10106         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10107         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10108         here from m4/threads.m4).
10109         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10110         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10111         (gl_STDTHREADLIB): New macro.
10112         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10113         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10115 2019-12-21  Bruno Haible  <bruno@clisp.org>
10117         sched_yield: Don't depend on threadlib and yield.
10118         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10119         LIB_SCHED_YIELD.
10120         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10121         m4/yield.m4).
10122         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10123         gl_THREADLIB and gl_YIELD.
10124         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10125         based on $(LIB_SCHED_YIELD).
10126         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10127         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10128         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10129         (Depends-on): Remove threadlib.
10130         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10131         * modules/threads-h (Files): Remove m4/yield.m4.
10132         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10133         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10134         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10135         * modules/pthread-once-tests (Makefile.am): Likewise.
10136         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10137         * modules/pthread-tss-tests (Makefile.am): Likewise.
10139 2019-12-21  Bruno Haible  <bruno@clisp.org>
10141         threads-h: Don't depend on threadlib.
10142         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10143         not gl_THREADLIB_EARLY.
10145 2019-12-21  Bruno Haible  <bruno@clisp.org>
10147         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10148         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10149         with $(LIB_SETLOCALE).
10151 2019-12-21  Bruno Haible  <bruno@clisp.org>
10153         threadlib: Remove unused dependency (left over from 2019-07-06).
10154         * modules/threadlib (Depends-on): Remove havelib.
10156 2019-12-21  Bruno Haible  <bruno@clisp.org>
10158         New convention for multithread-safety tests.
10159         * tests/test-setlocale_null-mt-one.c: Renamed from
10160         tests/test-setlocale_null-one.c.
10161         * tests/test-setlocale_null-mt-all.c: Renamed from
10162         tests/test-setlocale_null-all.c.
10163         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10165 2019-12-21  Bruno Haible  <bruno@clisp.org>
10167         quotearg tests: Fix conflict with hard-locale tests.
10168         * tests/testlocale: Renamed from tests/locale.
10169         * modules/quotearg-tests (Files): Update.
10170         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10172 2019-12-21  Bruno Haible  <bruno@clisp.org>
10174         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10175         Reported by Daniel Richard G. in
10176         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10177         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10178         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10179         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10180         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10181         alternative to PTHREAD_RWLOCK_INITIALIZER.
10182         * lib/glthread/lock.c: Likewise.
10184 2019-12-21  Bruno Haible  <bruno@clisp.org>
10186         memcmp tests: Work around the clang bug.
10187         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10188         the clang optimization.
10190 2019-12-20  Bruno Haible  <bruno@clisp.org>
10192         localcharset: Add support for z/OS encoding names.
10193         * lib/localcharset.h: Mention which encodings are used as locale
10194         encodings on z/OS.
10196 2019-12-20  Bruno Haible  <bruno@clisp.org>
10198         iconv_open: Add support for z/OS encoding names.
10199         Reported by Daniel Richard G. in
10200         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10201         * lib/iconv_open-zos.gperf: New file.
10202         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10203         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10204         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10205         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10206         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10208 2019-12-20  Bruno Haible  <bruno@clisp.org>
10210         doc: Document the problem of the per-thread locale functions on z/OS.
10211         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10212         * doc/posix-functions/newlocale.texi: Likewise.
10213         * doc/posix-functions/duplocale.texi: Likewise.
10214         * doc/posix-functions/freelocale.texi: Likewise.
10216 2019-12-20  Bruno Haible  <bruno@clisp.org>
10218         localename, gettext: Fix host_os value for z/OS.
10219         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10220         cross-configuration code.
10222 2019-12-19  Jim Meyering  <meyering@fb.com>
10224         nstrftime: avoid a shadowing warning
10225         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10226         to avoid shadowing an "i" declared hundreds of lines above.
10228 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10230         dfa: struct dfamust now uses flexible array
10231         * lib/dfa.c: Include flexmember.h.
10232         (dfamust, dfamustfree): Adjust to struct dfamust change.
10233         This saves a call to malloc+free.
10234         * lib/dfa.h (struct dfamust): Make the final member a
10235         flexible array member.
10236         * modules/dfa (Depends-on): Add flexmember.
10238         dfa: fast->small for array elements
10239         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10240         since this type is used in arrays.  This change is more for
10241         documentation than for any practical effect, since the two types
10242         are the same on all known platforms.
10244 2019-12-19  Bruno Haible  <bruno@clisp.org>
10246         iconv tests: Test canonicalized, not system-dependent, encoding names.
10247         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10248         * modules/iconv-tests (Depends-on): Add iconv_open.
10250 2019-12-18  Bruno Haible  <bruno@clisp.org>
10252         localename: Fix test failure on AIX 7.2.
10253         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10254         locales on AIX.
10255         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10256         locales on AIX.
10258 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10260         Improve port of AC_C_RESTRICT to Oracle C++
10261         Problem reported by Christian Biesinger in:
10262         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10263         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10264         Oracle Developer Studio C++ 12.5 or later.
10266 2019-12-18  Bruno Haible  <bruno@clisp.org>
10268         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10269         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10271 2019-12-18  Bruno Haible  <bruno@clisp.org>
10273         localename: Ensure multithread-safety in future changes.
10274         * lib/localename.c (setlocale): Reference the system's setlocale().
10275         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10276         (gl_locale_name_posix): Likewise.
10277         * modules/localename (Depends-on): Add setlocale-null.
10279 2019-12-18  Bruno Haible  <bruno@clisp.org>
10281         setlocale-null: Make API more useful.
10282         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10283         callers changed.
10284         (setlocale_null): New declaration.
10285         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10286         extracted from setlocale_null_unlocked.
10287         (setlocale_null_unlocked): Invoke it.
10288         (setlocale_null_r): Renamed from setlocale_null.
10289         (setlocale_null): New function, extracted from setlocale_mtsafe in
10290         setlocale.c.
10291         * lib/setlocale.c: Don't include <errno.h>.
10292         (setlocale_mtsafe): Invoke setlocale_null.
10293         * lib/setlocale-lock.c: Update comments.
10294         * doc/posix-functions/setlocale.texi: Mention both functions.
10296 2019-12-18  Bruno Haible  <bruno@clisp.org>
10298         localename: Optimize code for native Windows.
10299         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10300         category (not allowed here).
10302 2019-12-18  Bruno Haible  <bruno@clisp.org>
10304         setlocale: Make calls with NULL argument multithread-safe.
10305         * lib/setlocale.c: Include <errno.h>.
10306         (setlocale_mtsafe): New function.
10307         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10308         (setlocale_improved): Renamed from rpl_setlocale.
10309         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10310         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10311         LIB_SETLOCALE.
10312         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10313         (Link): New section.
10314         * tests/locale.c: Undefine setlocale.
10315         * tests/test-setlocale_null-one.c: Likewise.
10316         * tests/test-setlocale_null-all.c: Likewise.
10317         * modules/setlocale-tests (Makefile.am): Link the test programs with
10318         $(LIB_SETLOCALE).
10319         * modules/astrxfrm-tests (Makefile.am): Likewise.
10320         * modules/btowc-tests (Makefile.am): Likewise.
10321         * modules/c-ctype-tests (Makefile.am): Likewise.
10322         * modules/c-snprintf-tests (Makefile.am): Likewise.
10323         * modules/c-strcase-tests (Makefile.am): Likewise.
10324         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10325         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10326         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10327         * modules/dfa-tests (Makefile.am): Likewise.
10328         * modules/duplocale-tests (Makefile.am): Likewise.
10329         * modules/hard-locale-tests (Makefile.am): Likewise.
10330         * modules/localcharset-tests (Makefile.am): Likewise.
10331         * modules/localename-tests (Makefile.am): Likewise.
10332         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10333         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10334         * modules/mbrtowc-tests (Makefile.am): Likewise.
10335         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10336         * modules/mbscasestr-tests (Makefile.am): Likewise.
10337         * modules/mbschr-tests (Makefile.am): Likewise.
10338         * modules/mbscspn-tests (Makefile.am): Likewise.
10339         * modules/mbsinit-tests (Makefile.am): Likewise.
10340         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10341         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10342         * modules/mbspbrk-tests (Makefile.am): Likewise.
10343         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10344         * modules/mbsrchr-tests (Makefile.am): Likewise.
10345         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10346         * modules/mbsspn-tests (Makefile.am): Likewise.
10347         * modules/mbsstr-tests (Makefile.am): Likewise.
10348         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10349         * modules/quotearg-tests (Makefile.am): Likewise.
10350         * modules/regex-tests (Makefile.am): Likewise.
10351         * modules/strfmon_l-tests (Makefile.am): Likewise.
10352         * modules/strtod-tests (Makefile.am): Likewise.
10353         * modules/strtold-tests (Makefile.am): Likewise.
10354         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10355         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10356         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10357         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10358         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10359         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10360         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10361         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10362         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10363         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10364         * modules/wcrtomb-tests (Makefile.am): Likewise.
10365         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10366         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10367         * modules/wcwidth-tests (Makefile.am): Likewise.
10368         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10369         safety fix is also available in module 'setlocale'.
10371 2019-12-18  Bruno Haible  <bruno@clisp.org>
10373         hard-locale: Make multithread-safe.
10374         * lib/hard-locale.h (hard_locale): Move documentation to here.
10375         * lib/hard-locale.c: Don't include <stdlib.h>.
10376         (GLIBC_VERSION): Remove macro.
10377         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10378         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10379         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10380         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10381         (Link): New section.
10382         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10383         $(LIB_HARD_LOCALE).
10385 2019-12-18  Bruno Haible  <bruno@clisp.org>
10387         hard-locale: Avoid test failure on Haiku.
10388         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10390 2019-12-18  Bruno Haible  <bruno@clisp.org>
10392         setlocale-null: Handle NULL result from setlocale.
10393         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10394         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10395         from setlocale or _wsetlocale.
10397 2019-12-18  Bruno Haible  <bruno@clisp.org>
10399         hard-locale: Add test.
10400         * tests/test-hard-locale.c: New file.
10401         * tests/locale.c: New file.
10402         * modules/hard-locale-tests: New file.
10404 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10406         dfa: do not match invalid UTF-8
10407         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10408         from 5 to 9 tokens; this is needed due to the changes to
10409         add_utf8_anychar.
10410         (charclass_index): 2nd arg is now pointer-to-const.
10411         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10412         instead of allowing overlong encodings or surrogate halves.
10414         dfa: simplify charclass by assuming C99
10415         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10416         (charclass_word): Now always uint_fast64_t.
10417         (CHARCLASS_PAIR): Remove.
10418         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10420         fts: tune via calloc
10421         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10423         dfa: tune via xzalloc
10424         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10426 2019-12-17  Bruno Haible  <bruno@clisp.org>
10428         localcharset: Fix multithread-safety bug on Windows and OS/2.
10429         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10430         invalid.
10431         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10432         assemble the result.
10434 2019-12-17  Bruno Haible  <bruno@clisp.org>
10436         localcharset: Optimize code for native Windows.
10437         * lib/localcharset.c (locale_charset): Don't bother calling
10438         setlocale (LC_ALL, NULL) since we're not interested in its result.
10440 2019-12-17  Bruno Haible  <bruno@clisp.org>
10442         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10443         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10444         setlocale.
10445         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10446         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10447         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10449 2019-12-17  Bruno Haible  <bruno@clisp.org>
10451         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10452         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10453         stack-allocated buffer to assemble each result and different static
10454         buffers to return it.
10455         * tests/test-nl_langinfo-mt.c: New file.
10456         * modules/nl_langinfo-tests (Files): Add it.
10457         (Depends-on): Add thread, nanosleep.
10458         (Makefile.am): Build test-nl_langinfo-mt test.
10460 2019-12-17  Bruno Haible  <bruno@clisp.org>
10462         langinfo: Document more details.
10463         * doc/posix-headers/langinfo.texi: List platform details.
10464         * doc/posix-functions/nl_langinfo.texi: Likewise.
10466 2019-12-17  Bruno Haible  <bruno@clisp.org>
10468         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10469         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10470         and Martin Storsjö <martin@martin.st>
10471         in <https://savannah.gnu.org/bugs/?57406>.
10472         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10473         mingw.
10475 2019-12-17  Bruno Haible  <bruno@clisp.org>
10477         glob: Avoid warning on mingw.
10478         Reported by Christian Biesinger <cbiesinger@google.com> in
10479         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10480         * lib/glob.c (__stat64): Undefine first.
10482 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10484         xalloc: tune xzalloc for fresh allocations
10485         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10486         because when the memory is freshly allocated from the OS via sbrk
10487         or mmap, calloc can avoid doing the memset.
10489         dfa: new function dfacopysyntax
10490         * lib/dfa.c (struct dfa): Move syntax member later so
10491         that dfacopysyntax can easily clear earlier members.
10492         (dfacopysyntax): New function, used by Gawk.
10494 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10496         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10497         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10498         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10499         if not already defined.
10501         dfa: remove one dependency on MB_CUR_MAX
10502         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10504         dfa: remove struct lexer_state.cur_mb_len
10505         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10506         as it’s not needed and the code is simpler without it.
10507         All uses removed.
10509 2019-12-16  Bruno Haible  <bruno@clisp.org>
10511         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10512         Reported by Arnold Robbins <arnold@skeeve.com>.
10513         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10514         copied from lib/glthread/lock.h.
10515         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10516         (setlocale_null_with_lock): If pthread_in_use() is false, use
10517         setlocale_null_unlocked directly.
10518         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10519         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10520         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10521         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10522         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10523         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10525 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10527         dfa: make dfasyntax thread-safe
10528         Problem reported by Bruno Haible in:
10529         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10530         * lib/dfa.c: Do not include locale.h.
10531         (struct dfa): Remove simple_locale member.
10532         All uses replaced by localeinfo.simple.
10533         (using_simple_locale): Remove; now present (with some
10534         changes) in localeinfo.c.
10535         (dfasyntax): No need to initialize removed member.
10537         localeinfo: record whether locale is simple
10538         * lib/localeinfo.c (using_simple_locale): New function,
10539         copied here from lib/dfa.c but with a change: it uses
10540         strcoll for its heuristic, instead of using setlocale.
10541         This lets it be thread-safe.
10542         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10544 2019-12-15  Bruno Haible  <bruno@clisp.org>
10546         duplocale: Fix multithread-safety bug on AIX.
10547         * lib/duplocale.c: Don't include <stdlib.h>.
10548         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10549         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10550         Set LIB_DUPLOCALE.
10551         * modules/duplocale (Depends-on): Add setlocale-null.
10552         (Link): New section.
10553         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10554         $(LIB_DUPLOCALE).
10556 2019-12-15  Bruno Haible  <bruno@clisp.org>
10558         setlocale-null: Add tests.
10559         * tests/test-setlocale_null.c: New file.
10560         * tests/test-setlocale_null-one.c: New file.
10561         * tests/test-setlocale_null-all.c: New file.
10562         * modules/setlocale-null-tests: New file.
10564         setlocale-null: New module.
10565         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10566         setlocale_null): New declarations.
10567         * lib/setlocale_null.c: New file.
10568         * lib/setlocale-lock.c: New file.
10569         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10570         * m4/setlocale_null.m4: New file.
10571         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10572         GNULIB_SETLOCALE_NULL.
10573         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10574         * modules/setlocale-null: New file.
10575         * doc/posix-functions/setlocale.texi: Mention the new module.
10577 2019-12-15  Bruno Haible  <bruno@clisp.org>
10579         lock tests: Skip test when no multithreading is enabled.
10580         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10582 2019-12-14  Bruno Haible  <bruno@clisp.org>
10584         locale, duplocale, localename: Fix last patch.
10585         Reported by Daniel Richard G. in
10586         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10587         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10588         Don't define if locale_t does not exist.
10590 2019-12-13  Bruno Haible  <bruno@clisp.org>
10592         locale, duplocale, localename: Fix errors if locale_t does not exist.
10593         Reported by Daniel Richard G. in
10594         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10595         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10596         macros.
10597         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10598         HAVE_NEWLOCALE.
10599         * tests/test-localename.c: Likewise.
10600         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10601         HAVE_DUPLOCALE.
10602         * tests/test-locale-c++.cc: Likewise.
10604 2019-12-13  Bruno Haible  <bruno@clisp.org>
10606         wcstok: Fix test failure on HP-UX.
10607         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10608         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10610 2019-12-12  Bruno Haible  <bruno@clisp.org>
10612         strtod, strtold tests: Avoid test failure on AIX 7.2.
10613         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10614         '.' both are radix characters.
10615         * tests/test-strtold1.c (main): Likewise.
10617 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10619         dfa: prefer ptrdiff_t for API, too
10620         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10621         but do this only for internal use for now.
10622         * NEWS: Mention the API change.
10623         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10624         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10625         values known to be nonnegative.
10626         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10627         Prefer idx_t or ptrdiff_t to size_t for API.
10628         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10629         Prefer ptrdiff_t to size_t for API.
10631         stdalign: port to xlclang 16.01
10632         Problem reportd by Bruno Haible in:
10633         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10634         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10635         ((__aligned__ (...))) with xlclang, as a top-level
10636         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10637         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10639 2019-12-12  Bruno Haible  <bruno@clisp.org>
10641         duplocale: Fix test failure on AIX 7.2 with xlclang.
10642         * lib/duplocale.c: Include <stdlib.h>.
10643         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10644         value.
10646 2019-12-12  Bruno Haible  <bruno@clisp.org>
10648         stddef: Document the AIX xlc issue.
10649         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10651 2019-12-12  Bruno Haible  <bruno@clisp.org>
10653         duplocale: Don't attempt to override if locale_t does not exist.
10654         Reported by Daniel Richard G. in
10655         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10656         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10657         HAVE_DUPLOCALE to 0.
10659 2019-12-12  Bruno Haible  <bruno@clisp.org>
10661         wcwidth: Avoid test failure on AIX 7.2.
10662         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10663         negative.
10664         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10666 2019-12-12  Bruno Haible  <bruno@clisp.org>
10668         ilogbl: Work around Cygwin bug.
10669         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10670         correct.
10671         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10673 2019-12-12  Bruno Haible  <bruno@clisp.org>
10675         strtold: Work around Cygwin bug.
10676         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10677         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10678         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10679         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10680         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10682 2019-12-12  Bruno Haible  <bruno@clisp.org>
10684         strtold: Fix autoconf test.
10685         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10687 2019-12-11  Bruno Haible  <bruno@clisp.org>
10689         fsync tests: Skip test that is known to fail.
10690         * doc/posix-functions/fsync.texi: Update list of platforms.
10691         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10692         that is known to fail on AIX and Cygwin.
10694 2019-12-11  Bruno Haible  <bruno@clisp.org>
10696         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10698         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10699         HAVE_GETADDRINFO as a C macro.
10700         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10701         declare as replacement functions.
10702         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10703         define as no-op overrides.
10704         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10705         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10706         * modules/getaddrinfo (Depends-on, configure.ac): Test
10707         REPLACE_GETADDRINFO.
10708         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10709         problem.
10710         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10711         convention problems.
10713 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10715         dfa: prefer signed integers for internals
10716         Signed integers can be checked more easily for integer overflow.
10717         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10718         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10719         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10720         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10721         (replace, state_index, epsclosure, charclass_context)
10722         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10723         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10724         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10725         (comsubs, inboth, allocmust):
10726         Prefer a signed to an unsigned integer when calculating indexes,
10727         unless the integer is part of the external API (a bigger deal,
10728         and to be done later).
10730         dfa: fix index overflow
10731         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10732         very large regular expressions.
10734         dfa: update commentary for previous change
10735         * NEWS: Mention the change.
10736         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10738 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10740         dfa: separate parse and compile phase
10741         ‘dfamust’ must be called after parsing and before tokens are
10742         reordered, but both are executed in the compilation phase.
10743         Token reordering was introduced in Gnulib commit
10744         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10745         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10746         * lib/dfa.c (dfaparse): Change it to global function.
10747         (dfacomp): If first argument is NULL, skip parse.
10748         * lib/dfa.h: (dfaparse): Add a prototype.
10750 2019-12-11  Bruno Haible  <bruno@clisp.org>
10752         unistd tests: Fix link error on MSVC.
10753         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10754         $(LIB_GETLOGIN).
10756 2019-12-11  Bruno Haible  <bruno@clisp.org>
10758         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10759         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10760         and POSIX substitutes are supported in C++ mode.
10761         * NEWS: Likewise.
10763 2019-12-11  Bruno Haible  <bruno@clisp.org>
10765         stddef: Fix compilation error in C++ mode on MSVC.
10766         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10767         instead, include <cstddef>.
10769 2019-12-11  Bruno Haible  <bruno@clisp.org>
10771         unistd: Fix compilation error in C++ mode on MSVC.
10772         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10773         does not have <unistd.h>.
10775 2019-12-11  Bruno Haible  <bruno@clisp.org>
10777         locale: Fix compilation error in C++ mode on MSVC.
10778         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10779         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10780         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10781         int_n_sep_by_space): Define as macros on MSVC.
10783 2019-12-11  Bruno Haible  <bruno@clisp.org>
10785         wchar: Fix compilation error in C++ mode on MSVC.
10786         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10788 2019-12-11  Bruno Haible  <bruno@clisp.org>
10790         pthread-thread: Fix compilation error in C++ mode on MSVC.
10791         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10792         _GL_CXXALIAS_RPL invocation.
10794 2019-12-08  Bruno Haible  <bruno@clisp.org>
10796         Fix compilation errors in C++ mode on Haiku.
10797         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10798         non-glibc systems.
10799         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10800         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10801         posix_spawnattr_setschedparam): Likewise.
10802         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10803         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10804         * lib/unistd.in.h (usleep): Likewise.
10806 2019-12-08  Bruno Haible  <bruno@clisp.org>
10808         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10809         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10810         * modules/fseeko (configure.ac-early): Require it instead of
10811         AC_FUNC_FSEEKO.
10812         * modules/ftello (configure.ac-early): Likewise.
10813         * modules/fflush (configure.ac-early): Likewise.
10815 2019-12-08  Bruno Haible  <bruno@clisp.org>
10817         Fix compilation error in C++ mode on HP-UX 11.
10818         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10819         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10821 2019-12-08  Bruno Haible  <bruno@clisp.org>
10823         Fix compilation errors on HP-UX 11/ia64.
10824         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10825         _GL_FUNCDECL_SYS.
10827 2019-12-08  Bruno Haible  <bruno@clisp.org>
10829         Fix compilation error in C++ mode on OpenBSD.
10830         * lib/signal.in.h (signal): Declare on OpenBSD.
10832 2019-12-08  Bruno Haible  <bruno@clisp.org>
10834         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10835         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10836         instead of #error.
10838 2019-12-08  Bruno Haible  <bruno@clisp.org>
10840         Fix compilation errors in C++ mode on FreeBSD.
10841         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10842         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10843         * lib/threads.in.h (thrd_exit): Likewise.
10844         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10846 2019-12-08  Bruno Haible  <bruno@clisp.org>
10848         Fix compilation errors in C++ mode on macOS and FreeBSD.
10849         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10850         or FreeBSD with clang, use the approach without C preprocessor macro.
10852 2019-12-07  Bruno Haible  <bruno@clisp.org>
10854         Fix compilation errors in C++ mode on AIX with xlclang++.
10855         Reported by Christian Biesinger <cbiesinger@google.com> in
10856         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10857         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10859 2019-12-07  Bruno Haible  <bruno@clisp.org>
10861         Document compilation error in C++ mode on NetBSD 8.0.
10862         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10864 2019-12-07  Bruno Haible  <bruno@clisp.org>
10866         Fix compilation errors in C++ mode on Solaris 10.
10867         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10868         to non-empty on Solaris with a non-GCC compiler.
10869         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10871 2019-12-07  Bruno Haible  <bruno@clisp.org>
10873         Reword NEWS entry.
10874         * NEWS: Reword the latest NEWS entry.
10876 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10878         Move xstrtol_fatal to a new xstrtol-error module.
10879         * lib/xstrtol.h: Stop including <getopt.h>.
10880         (xstrtol_fatal): Move ...
10881         * lib/xstrtol-error.h: ... here.  New file.
10882         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10883         * tests/test-xstrtol.c: Likewise.
10884         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10885         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10886         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10887         * modules/xstrtol-error: New file.
10888         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10889         * MODULES.html.sh: Add xstrtol-error.
10890         * NEWS: Document the change.
10892 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10894         nstrftime: better width support for %N, %z
10895         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10896         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10897         a new WIDTH parameter.
10898         (add, add1, cpy): Use these macros.
10899         (width_add): Do not treat digits == 0 as a special case,
10900         do not pad if padding is ‘-’, and do not use a negative width.
10901         (__strftime_internal): Redo formatting of nanoseconds and numeric
10902         timezones to avoid buffer misuse in unusual cases, and so that
10903         widths make more sense.  Add support for widths greater than 9 to
10904         the %N format; they are zero filled on the right.
10905         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10907 2019-12-05  Bruno Haible  <bruno@clisp.org>
10909         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10910         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10911         set REPLACE_ISFINITE to 1.
10912         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10913         REPLACE_ISINF to 1.
10914         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10915         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10916         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10917         * lib/threads.in.h (call_once): Likewise.
10918         * lib/iconv.in.h (iconv): Likewise.
10920 2019-12-05  Bruno Haible  <bruno@clisp.org>
10922         wchar: Add more C++ tests.
10923         Reported by Christian Biesinger <cbiesinger@google.com> in
10924         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10925         * tests/test-wchar-c++3.cc: New file.
10926         * modules/wchar-c++-tests (Files): Add it.
10927         (Makefile.am): Compile it.
10929 2019-12-05  Bruno Haible  <bruno@clisp.org>
10931         Add more C++ tests.
10933         assert-h: Add C++ tests.
10934         * tests/test-assert-h-c++.cc: New file.
10935         * tests/test-assert-h-c++2.cc: New file.
10936         * modules/assert-h-c++-tests: New file.
10937         * modules/assert-h-tests: New file.
10939         ctype: Add C++ tests.
10940         * tests/test-ctype-c++.cc: New file.
10941         * tests/test-ctype-c++2.cc: New file.
10942         * modules/ctype-c++-tests: New file.
10943         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10945         errno: Add C++ tests.
10946         * tests/test-errno-c++.cc: New file.
10947         * tests/test-errno-c++2.cc: New file.
10948         * modules/errno-c++-tests: New file.
10949         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10951         float: Add C++ tests.
10952         * tests/test-float-c++.cc: New file.
10953         * tests/test-float-c++2.cc: New file.
10954         * modules/float-c++-tests: New file.
10955         * modules/float-tests (Depends-on): Add float-c++-tests.
10957         inttypes: Add more C++ tests.
10958         * tests/test-inttypes-c++2.cc: New file.
10959         * modules/inttypes-c++-tests (Files): Add it.
10960         (Makefile.am): Compile it.
10962         limits-h: Add C++ tests.
10963         * tests/test-limits-h-c++.cc: New file.
10964         * tests/test-limits-h-c++2.cc: New file.
10965         * modules/limits-h-c++-tests: New file.
10966         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10968         stdarg: Add C++ tests.
10969         * tests/test-stdarg-c++.cc: New file.
10970         * tests/test-stdarg-c++2.cc: New file.
10971         * modules/stdarg-c++-tests: New file.
10972         * modules/stdarg-tests: New file.
10974         stdbool: Add C++ tests.
10975         * tests/test-stdbool-c++.cc: New file.
10976         * tests/test-stdbool-c++2.cc: New file.
10977         * modules/stdbool-c++-tests: New file.
10978         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10980         stddef: Add C++ tests.
10981         * tests/test-stddef-c++.cc: New file.
10982         * tests/test-stddef-c++2.cc: New file.
10983         * modules/stddef-c++-tests: New file.
10984         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10986         stdint: Add C++ tests.
10987         * tests/test-stdint-c++.cc: New file.
10988         * tests/test-stdint-c++2.cc: New file.
10989         * modules/stdint-c++-tests: New file.
10990         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10992         wchar: Add more C++ tests.
10993         * tests/test-wchar-c++2.cc: New file.
10994         * modules/wchar-c++-tests (Files): Add it.
10995         (Makefile.am): Compile it.
10997         wctype-h: Add more C++ tests.
10998         * tests/test-wctype-h-c++2.cc: New file.
10999         * modules/wctype-h-c++-tests (Files): Add it.
11000         (Makefile.am): Compile it.
11002 2019-12-04  Bruno Haible  <bruno@clisp.org>
11004         Fix compilation errors in C++ mode with xlclang++ on AIX.
11005         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11006         C++ mode on AIX.
11007         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11008         without C preprocessor macro.
11009         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11010         _GL_CXXALIAS_SYS.
11011         * lib/threads.in.h (thrd_exit): Likewise.
11013 2019-12-04  Bruno Haible  <bruno@clisp.org>
11015         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11016         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11017         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11019 2019-12-04  Bruno Haible  <bruno@clisp.org>
11021         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11022         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11023         _GL_CXXALIASWARN invocation on non-glibc systems.
11024         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11025         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11026         iswctype, towlower, towupper): Likewise.
11028 2019-12-03  Bruno Haible  <bruno@clisp.org>
11030         Avoid hassles caused by [[noreturn]] in C++.
11031         Reported by Christian Biesinger <cbiesinger@google.com> in
11032         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11033         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11034         * lib/_Noreturn.h: Likewise.
11036 2019-12-02  Bruno Haible  <bruno@clisp.org>
11038         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11039         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11040         LIBMULTITHREAD.
11041         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11042         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11043         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11044         gl_THREADLIB.
11045         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11047 2019-12-02  Bruno Haible  <bruno@clisp.org>
11049         Fix some more link errors with --enable-threads=isoc.
11050         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11051         * modules/pthread-rwlock (Depends-on): Likewise.
11053 2019-12-02  Bruno Haible  <bruno@clisp.org>
11055         Fix link errors with --enable-threads=posix on AIX.
11056         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11057         program with $(LIBTHREAD).
11058         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11059         program with $(LIBTHREAD).
11061 2019-12-02  Bruno Haible  <bruno@clisp.org>
11063         Fix link errors with --enable-threads=posix on AIX.
11064         * modules/mbrtowc (Link): New section.
11065         * modules/acl (Link): Likewise.
11066         * modules/argmatch (Link): Likewise.
11067         * modules/backup-rename (Link): Likewise.
11068         * modules/backupfile (Link): Likewise.
11069         * modules/closein (Link): Likewise.
11070         * modules/closeout (Link): Likewise.
11071         * modules/copy-file (Link): Likewise.
11072         * modules/csharpcomp (Link): Likewise.
11073         * modules/csharpexec (Link): Likewise.
11074         * modules/dfa (Link): Likewise.
11075         * modules/exclude (Link): Likewise.
11076         * modules/fnmatch (Link): Likewise.
11077         * modules/fnmatch-gnu (Link): Likewise.
11078         * modules/fnmatch-posix (Link): Likewise.
11079         * modules/glob (Link): Likewise.
11080         * modules/human (Link): Likewise.
11081         * modules/javacomp (Link): Likewise.
11082         * modules/javaexec (Link): Likewise.
11083         * modules/javaversion (Link): Likewise.
11084         * modules/mbfile (Link): Likewise.
11085         * modules/mbiter (Link): Likewise.
11086         * modules/mbmemcasecmp (Link): Likewise.
11087         * modules/mbmemcasecoll (Link): Likewise.
11088         * modules/mbrlen (Link): Likewise.
11089         * modules/mbscasecmp (Link): Likewise.
11090         * modules/mbscasestr (Link): Likewise.
11091         * modules/mbschr (Link): Likewise.
11092         * modules/mbscspn (Link): Likewise.
11093         * modules/mbsinit (Link): Likewise.
11094         * modules/mbslen (Link): Likewise.
11095         * modules/mbsncasecmp (Link): Likewise.
11096         * modules/mbsnlen (Link): Likewise.
11097         * modules/mbsnrtowcs (Link): Likewise.
11098         * modules/mbspbrk (Link): Likewise.
11099         * modules/mbspcasecmp (Link): Likewise.
11100         * modules/mbsrchr (Link): Likewise.
11101         * modules/mbsrtowcs (Link): Likewise.
11102         * modules/mbssep (Link): Likewise.
11103         * modules/mbsspn (Link): Likewise.
11104         * modules/mbsstr (Link): Likewise.
11105         * modules/mbstok_r (Link): Likewise.
11106         * modules/mbswidth (Link): Likewise.
11107         * modules/mbuiter (Link): Likewise.
11108         * modules/mkdir-p (Link): Likewise.
11109         * modules/propername (Link): Likewise.
11110         * modules/quote (Link): Likewise.
11111         * modules/quotearg (Link): Likewise.
11112         * modules/quotearg-simple (Link): Likewise.
11113         * modules/regex-quote (Link): Likewise.
11114         * modules/rpmatch (Link): Likewise.
11115         * modules/sh-quote (Link): Likewise.
11116         * modules/system-quote (Link): Likewise.
11117         * modules/trim (Link): Likewise.
11118         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11119         * modules/unistdio/ulc-fprintf (Link): Likewise.
11120         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11121         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11122         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11123         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11124         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11125         * modules/xfreopen (Link): Likewise.
11126         * modules/xmemcoll (Link): Likewise.
11127         * modules/yesno (Link): Likewise.
11128         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11129         * modules/argmatch-tests (Makefile.am): Likewise.
11130         * modules/closein-tests (Makefile.am): Likewise.
11131         * modules/copy-file-tests (Makefile.am): Likewise.
11132         * modules/dfa-tests (Makefile.am): Likewise.
11133         * modules/fnmatch-tests (Makefile.am): Likewise.
11134         * modules/glob-tests (Makefile.am): Likewise.
11135         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11136         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11137         * modules/mbrtowc-tests (Makefile.am): Likewise.
11138         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11139         * modules/mbscasestr-tests (Makefile.am): Likewise.
11140         * modules/mbschr-tests (Makefile.am): Likewise.
11141         * modules/mbscspn-tests (Makefile.am): Likewise.
11142         * modules/mbsinit-tests (Makefile.am): Likewise.
11143         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11144         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11145         * modules/mbspbrk-tests (Makefile.am): Likewise.
11146         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11147         * modules/mbsrchr-tests (Makefile.am): Likewise.
11148         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11149         * modules/mbsspn-tests (Makefile.am): Likewise.
11150         * modules/mbsstr-tests (Makefile.am): Likewise.
11151         * modules/quotearg-tests (Makefile.am): Likewise.
11152         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11153         * modules/readtokens-tests (Makefile.am): Likewise.
11154         * modules/regex-quote-tests (Makefile.am): Likewise.
11155         * modules/sh-quote-tests (Makefile.am): Likewise.
11156         * modules/system-quote-tests (Makefile.am): Likewise.
11157         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11158         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11159         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11160         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11161         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11162         * modules/yesno-tests (Makefile.am): Likewise.
11164 2019-12-02  Bruno Haible  <bruno@clisp.org>
11166         Simplify link sections.
11167         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11168         * modules/lock (Link): Likewise.
11169         * modules/cond (Link): Likewise.
11170         * modules/tls (Link): Likewise.
11171         * modules/yield (Link): Likewise.
11172         * modules/regex (Link): Likewise.
11173         * modules/localename (Link): Likewise.
11174         * modules/unicase/locale-language (Link): Likewise.
11175         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11177 2019-12-02  Bruno Haible  <bruno@clisp.org>
11179         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11180         * tests/test-thread_self.c (main): Disable test on AIX.
11182 2019-12-01  Bruno Haible  <bruno@clisp.org>
11184         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11185         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11186         gl_THREADLIB_EARLY_BODY.
11187         (gl_THREADLIB_EARLY_BODY): Invoke it.
11188         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11189         (gl_THREADLIB_BODY): Invoke it.
11190         (gl_PTHREADLIB): New macro.
11191         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11192         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11193         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11194         * modules/pthread-h (Files): Add threadlib.m4.
11195         (Depends-on): Remove threadlib.
11196         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11197         and _THREAD_SAFE here.
11198         (Link): Use LIBPTHREAD, not LIBTHREAD.
11199         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11200         LIBMULTITHREAD.
11201         * modules/pthread-once (Link): Likewise.
11202         * modules/pthread-mutex (Link): Likewise.
11203         * modules/pthread-rwlock (Link): Likewise.
11204         * modules/pthread-cond (Link): Likewise.
11205         * modules/pthread-tss (Link): Likewise.
11206         * modules/pthread-spin (Link): Likewise.
11207         * modules/pthread (Link): Likewise.
11208         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11209         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11210         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11211         test_pthread_once2_LDADD): Likewise.
11212         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11213         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11214         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11215         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11217 2019-12-01  Bruno Haible  <bruno@clisp.org>
11219         cond: State linking requirements.
11220         * modules/cond (Link): New section.
11222 2019-12-01  Bruno Haible  <bruno@clisp.org>
11224         threadlib: Remove unnecessary file (left over from 2019-07-06).
11225         * modules/threadlib (Files): Remove config.rpath.
11227 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11229         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11230         Reported by Dagobert Michelsen <dam@opencsw.org> in
11231         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11232         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11233         list of strings instead of one string.
11234         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11235         * pygnulib/GLImport.py (execute): Likewise.
11237 2019-11-27  Bruno Haible  <bruno@clisp.org>
11239         openpty, forkpty: Fix build error on Solaris 11.4.
11240         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11241         also in <termios.h>.
11242         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11243         of the function also in <termios.h>.
11244         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11245         * doc/glibc-functions/forkpty.texi: Likewise.
11247 2019-11-27  Bruno Haible  <bruno@clisp.org>
11249         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11250         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11251         --enable-threads=isoc and --enable-threads=isoc+posix.
11252         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11253         When both the ISO C and the POSIX threads API are available, choose
11254         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11255         --enable-threads=isoc+posix was specified. When only the ISO C threads
11256         API is available and --enable-threads=iso was specified, choose
11257         USE_ISOC_THREADS.
11258         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11259         USE_ISOC_AND_POSIX_THREADS.
11260         * lib/glthread/lock.c: Likewise.
11261         * lib/glthread/cond.h: Likewise.
11262         * lib/glthread/cond.c: Likewise.
11263         * lib/glthread/tls.h: Likewise.
11264         * lib/glthread/tls.c: Likewise.
11265         * lib/glthread/yield.h: Likewise.
11266         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11267         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11268         * lib/glthread/thread.c: Likewise.
11269         * lib/glthread/threadlib.c: Likewise.
11270         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11271         USE_ISOC_AND_POSIX_THREADS.
11272         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11273         USE_ISOC_AND_POSIX_THREADS.
11274         * tests/test-tls.c: Likewise.
11275         * tests/test-thread_create.c (main): Likewise.
11276         * tests/test-pthread-cond.c: Likewise.
11277         * tests/test-pthread-mutex.c: Likewise.
11278         * tests/test-pthread-once2.c: Likewise.
11279         * tests/test-pthread-rwlock.c: Likewise.
11280         * tests/test-pthread-tss.c: Likewise.
11281         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11282         USE_POSIX_THREADS.
11284 2019-11-24  Bruno Haible  <bruno@clisp.org>
11286         mbrtowc: Modernize autoconf test.
11287         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11288         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11289         try a UTF-8 locale.
11290         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11292 2019-11-24  Bruno Haible  <bruno@clisp.org>
11294         Fix errors in C++ mode on mingw.
11295         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11296         instead of _GL_CXXALIAS_SYS.
11297         * lib/signal.in.h (pthread_sigmask): Likewise.
11298         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11299         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11300         Likewise.
11301         * lib/wchar.in.h (btowc): Likewise.
11303 2019-11-24  Bruno Haible  <bruno@clisp.org>
11305         sys_time: Fix errors in C++ mode on mingw.
11306         * lib/sys_time.in.h (timeval): Restore the redirection
11307         '#define timeval rpl_timeval', for when the symbol timeval is being used
11308         outside the 'gnulib' namespace.
11309         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11310         'struct timeval'.
11312 2019-11-24  Bruno Haible  <bruno@clisp.org>
11314         iswctype: Fix errors in C++ mode on mingw.
11315         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11316         is 1.
11317         * lib/iswctype.c (iswctype): Add another implementation, for the
11318         GNULIB_defined_wint_t case.
11319         * modules/iswctype (configure.ac): Compile iswctype.c also if
11320         GNULIB_OVERRIDES_WINT_T is 1.
11322 2019-11-24  Bruno Haible  <bruno@clisp.org>
11324         windows-timedmutex: Fix errors in C++ mode on mingw.
11325         * lib/windows-timedmutex.h: Add closing brace.
11327 2019-11-24  Bruno Haible  <bruno@clisp.org>
11329         Fix errors in C++ mode on Cygwin.
11330         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11331         _GL_CXXALIAS_SYS.
11333 2019-11-24  Bruno Haible  <bruno@clisp.org>
11335         time_r: Fix for mingw (regression from 2019-11-16).
11336         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11337         AC_LINK_IFELSE test only if the function does not appear to exist.
11339 2019-11-24  Bruno Haible  <bruno@clisp.org>
11341         wcstok: Add tests.
11342         * tests/test-wcstok.c: New file.
11343         * modules/wcstok-tests: New file.
11345 2019-11-24  Bruno Haible  <bruno@clisp.org>
11347         wcstok: Work around wrong signature on native Windows.
11348         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11349         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11350         REPLACE_WCSTOK.
11351         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11352         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11353         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11354         * doc/posix-functions/wcstok.texi: Mention the problem.
11356 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11358         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11359         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11360         remove workaround for GCC bug 91450 as the bug should be fixed
11361         there too.
11363 2019-11-21  Bruno Haible  <bruno@clisp.org>
11365         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11366         Reported by Christian Biesinger <cbiesinger@google.com> in
11367         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11368         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11369         non-glibc systems.
11370         * lib/locale.in.h (localeconv, setlocale): Likewise.
11371         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11372         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11373         rint, round, trunc): Likewise.
11374         * lib/monetary.in.h (strfmon_l): Likewise.
11375         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11376         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11377         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11378         pthread_spin_destroy): Likewise.
11379         * lib/signal.in.h (raise, signal): Likewise.
11380         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11381         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11382         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11383         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11384         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11385         Likewise.
11386         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11387         Likewise.
11388         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11389         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11390         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11391         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11392         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11393         wcsftime): Likewise.
11394         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11396 2019-11-21  Bruno Haible  <bruno@clisp.org>
11398         Fix various errors in _GL_CXXALIAS_SYS invocations.
11399         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11400         _GL_CXXALIAS_SYS.
11401         * lib/pthread.in.h (pthread_mutexattr_gettype,
11402         pthread_mutexattr_getrobust): Likewise.
11403         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11404         * lib/sys_socket.in.h (recv, send): Likewise.
11405         * lib/unistd.in.h (getdtablesize): Likewise.
11406         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11407         'struct timeval'.
11409 2019-11-21  Bruno Haible  <bruno@clisp.org>
11411         math tests: Update after 2019-08-28 change.
11412         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11413         return type of 'bool', not 'int'.
11415 2019-11-21  Bruno Haible  <bruno@clisp.org>
11417         pthread-spin: Fix errors in C++ mode.
11418         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11419         functions as nonexistent when <pthread.h> exists but does not define
11420         the pthread_spinlock_t type.
11422 2019-11-21  Bruno Haible  <bruno@clisp.org>
11424         pthread-mutex: Fix errors in C++ mode.
11425         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11426         pthread_mutexattr_getrobust exists. If not, define
11427         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11428         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11429         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11430         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11431         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11432         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11433         definition.
11435 2019-11-19  Bruno Haible  <bruno@clisp.org>
11437         threads-h tests: Fix typo.
11438         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11440 2019-11-19  Bruno Haible  <bruno@clisp.org>
11442         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11443         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11444         to 'const pthread_attr_t *'.
11445         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11446         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11448 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11450         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11451         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11452         work around GCC bug 91450 as the bug should be fixed there.
11454 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11456         glob: get closer to glibc glob.c
11457         Omit differences from glibc when the differences don’t matter.
11458         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11459         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11460         (glob_lstat): New function.
11461         (glob_in_dir): Use it.
11462         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11463         Use changed.
11465 2019-11-18  Bruno Haible  <bruno@clisp.org>
11467         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11468         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11469         UINTPTR_MAX): Consider _WIN64.
11470         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11471         a pointer.
11473 2019-11-18  Bruno Haible  <bruno@clisp.org>
11475         stdint: Fix value of WINT_MAX when we override wint_t.
11476         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11477         when GNULIB_OVERRIDES_WINT_T is 1.
11479 2019-11-18  Bruno Haible  <bruno@clisp.org>
11481         vcs-to-changelog: New module.
11482         * modules/vcs-to-changelog: New file.
11483         * MODULES.html.sh (func_all_modules): Add it.
11485 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11487         vcs-to-changelog: New script to generate ChangeLog-like output.
11488         Discussion:
11489         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11490         * build-aux/vcs_to_changelog.py: New file.
11491         * build-aux/vcstocl/frontend_c.py: New file.
11492         * build-aux/vcstocl/misc_util.py: New file.
11493         * build-aux/vcstocl/vcs_git.py: New file.
11495 2019-11-18  Bruno Haible  <bruno@clisp.org>
11497         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11498         Reported by Keith Marshall <keith@users.osdn.me> in
11499         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11500         and <https://osdn.net/projects/mingw/ticket/39677>.
11501         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11502         already been defined by mingw's <crtdefs.h>.
11504 2019-11-18  Bruno Haible  <bruno@clisp.org>
11506         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11507         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11508         conditionally enabled.
11510 2019-11-18  Bruno Haible  <bruno@clisp.org>
11512         gc: Mirror libgcrypt.m4 from libgcrypt.
11513         * config/srclistvars.sh (LIBGCRYPT): New variable.
11514         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11516 2019-11-17  Bruno Haible  <bruno@clisp.org>
11518         locale, localename: Improve z/OS support.
11519         Reported by Daniel Richard G. in
11520         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11521         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11522         gl_LOCALE_H.
11523         (gl_LOCALE_H): Require it.
11524         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11525         defined, don't even check for newlocale, duplocale, freelocale.
11526         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11527         locale_t is not defined.
11529 2019-11-17  Bruno Haible  <bruno@clisp.org>
11531         havelib: Make libdirstems processing more flexible.
11532         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11533         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11534         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11535         patch from 2017-02-19).
11536         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11537         libdirs, even when the first one exists as a directory.
11539 2019-11-17  Bruno Haible  <bruno@clisp.org>
11541         havelib: Match the bitness when searching for libraries.
11542         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11543         acl_is_expected_elfclass.
11544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11545         file exists, in ELF, also test whether it has the ELF class that
11546         corresponds to the host's bitness.
11548 2019-11-17  Bruno Haible  <bruno@clisp.org>
11550         host-cpu-c-abi: Add support for unknown CPUs.
11551         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11552         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11553         32-bit or 64-bit.
11555 2019-11-17  Bruno Haible  <bruno@clisp.org>
11557         havelib: Remove redundant code.
11558         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11559         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11561 2019-11-17  Bruno Haible  <bruno@clisp.org>
11563         havelib: Fix a bug in dependency processing.
11564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11565         of .la files, don't overwrite the value of additional_libdir for the
11566         next rounds.
11568 2019-11-16  Bruno Haible  <bruno@clisp.org>
11570         wctype-h: When overriding wint_t, override also the related functions.
11571         Reported by Christian Biesinger <cbiesinger@google.com> in
11572         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11573         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11574         REPLACE_ISWCNTRL to 1.
11575         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11576         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11577         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11578         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11579         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11580         on mingw.
11581         * doc/posix-headers/wctype.texi: Likewise.
11583 2019-11-16  Bruno Haible  <bruno@clisp.org>
11585         time_r: Fix for mingw.
11586         Reported by Christian Biesinger <cbiesinger@google.com> in
11587         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11588         * lib/time.in.h: On mingw, include <unistd.h>.
11589         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11590         <time.h>. Test for localtime_r in a way that works when it is defined
11591         as an inline function.
11593 2019-11-13  Bruno Haible  <bruno@clisp.org>
11595         havelib: Revert last change.
11596         * build-aux/config.rpath: Revert last change. We can add msys2 support
11597         when it has been added to libtool.m4 upstream.
11599 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11601         config: add msys support
11602         Requested by Arnold Robbins in:
11603         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11604         He also requested a change to config.guess, which I’ll forward
11605         upstream.
11606         * build-aux/ar-lib (func_file_conv):
11607         * build-aux/compile (func_file_conv):
11608         * build-aux/config.rpath (wl, with_gnu_ld)
11609         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11610         Treat msys like cygwin.
11612 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11614         regex: now back in sync with glibc
11615         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11616         regexec.c got merged into glibc and are now copies again.
11618 2019-10-27  Bruno Haible  <bruno@clisp.org>
11620         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11621         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11622         statement.
11623         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11624         32-bit CPUs.
11626 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11628         timespec-add, timespec-sub: simplify
11629         * lib/timespec-add.c (timespec_add):
11630         * lib/timespec-sub.c (timespec_sub):
11631         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11632         work on unsigned integers.
11634 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11636         nstrftime: speed up integer overflow checking
11637         * lib/nstrftime.c: Include intprops.h.
11638         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11639         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11640         instead of doing it by hand.
11641         * modules/nstrftime (Depends-on): Add intprops.
11643         Port better to GCC under macOS
11644         Work around macOS header that has ‘#define __has_builtin(x) 0’
11645         when compiled by GCC.  Apple really, really doesn’t want you to
11646         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11647         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11648         The fix is to not trust __has_builtin when being compiled by
11649         recent-enough GCC.
11650         * lib/intprops.h (__has_builtin)
11651         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11652         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11653         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11654         Remove.  All uses removed.
11655         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11656         directly, if defined and if not newer GCC.
11657         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11658         New macro, that use __has_builtin directly, if defined and if
11659         not newer GCC.
11660         (assume): Use them.
11662 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11664         maintainer-makefile: update rule for argmatch.
11665         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11667 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11669         bitset: let freeing functions accept NULL.
11670         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11671         given NULL.
11672         * lib/bitset.h: Document that.
11673         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11675 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11677         inttypes: use more-robust test for int range
11678         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11679         Problem reported by Dagobert Michelsen in:
11680         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11681         * lib/inttypes.in.h: Rely only on limits.h when checking
11682         int range.
11684 2019-10-15  Bruno Haible  <bruno@clisp.org>
11686         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11687         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11688         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11689         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11690         term_ostream_set_hyperlink): New functions.
11691         (term_styled_ostream_get_hyperlink_ref,
11692         term_styled_ostream_get_hyperlink_id,
11693         term_styled_ostream_set_hyperlink): New function aliases.
11695 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11697         update-copyright: use en dashes in .texi ranges
11698         * build-aux/update-copyright: Match year ranges like "1998--2019",
11699         which are used in the Autoconf manual.  Also, update ranges in
11700         .tex, .texi, and .texinfo files to use en dashes instead of
11701         hyphens.
11703 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11705         * config/srclist.txt: Remove posix/regex_internal.c for now.
11707 2019-10-13  Bruno Haible  <bruno@clisp.org>
11709         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11710         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11711         contents to the empty string.
11713 2019-10-12  Bruno Haible  <bruno@clisp.org>
11715         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11716         * tests/test-intprops.c (main): Disable two more tests when using
11717         HP-UX cc.
11719 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11721         Simplify and regularize regex use of ‘assert’
11722         Also, tell GCC about the asserts even when compiling without
11723         debugging, to give it further optimization opportunities.
11724         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11725         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11726         (parse_expression, parse_bracket_exp):
11727         * lib/regex_internal.c (build_wcs_buffer)
11728         (build_wcs_upper_buffer, re_string_reconstruct)
11729         (re_string_context_at):
11730         * lib/regexec.c (re_search_stub, re_copy_regs)
11731         (re_search_internal, prune_impossible_nodes, check_matching)
11732         (check_halt_state_context, set_regs, sift_states_backward)
11733         (build_sifted_states, transit_state_mb, transit_state_bkref)
11734         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11735         (match_ctx_add_subtop):
11736         Use it instead of plain ‘assert’.
11738 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11740         regex: omit debug assignment when not debugging
11741         * lib/regexec.c (re_search_internal) [!DEBUG]:
11742         Remove unnecessary assignment.
11744         regex: tell compiler there’s at most 256 arcs out
11745         Partly this is to help the reader (and maybe help GCC);
11746         partly this is to pacify Coverity.
11747         * lib/regex_internal.h: Include verify.h.
11748         * lib/regexec.c (group_nodes_into_DFAstates):
11749         Tell the compiler that ndests cannot exceed SBC_MAX.
11750         * modules/regex (Depends-on): Add ‘verify’.
11752         regex: simplify by assuming C99
11753         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11754         temporarily.
11755         * lib/regex_internal.h (lock_define, re_match_context_t):
11756         Simplify by assuming C99 macros and const.
11757         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11758         initializers.  Remove unnecessary assignment, as mctx is now
11759         safely initialized earlier.
11761         regex: avoid copying of uninitialized storage
11762         * config/srclist.txt: Comment out regcomp.c temporarily.
11763         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11764         Initialize even when not checking for lint, as the behavior is
11765         arguably undefined otherwise and Coverity warns about it.
11767 2019-10-06  Bruno Haible  <bruno@clisp.org>
11769         access tests: Fix test failure when run as root.
11770         * tests/test-access.c: Include root-uid.h.
11771         (geteuid): Define fallback.
11772         (main): Don't expect that writing to a read-only file would fail when
11773         running as root. Also, remove the created files at the end.
11774         * modules/access-tests (Depends-on): Add root-uid.
11775         (configure.ac): Test whether geteuid exists.
11777 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11779         users.txt: add GNU nano
11780         Nano has been making use of gnulib since March 2017, version 2.8.0.
11782 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11784         bootstrap: simplify debugging of wget failures
11785         Problem reported by Tim Rühsen in:
11786         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11787         * build-aux/bootstrap (po_download_command_format):
11788         Invoke wget with -nv instead of -q, to make debugging easier.
11790 2019-09-29  Bruno Haible  <bruno@clisp.org>
11792         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11793         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11794         'const' attribute.
11796 2019-09-29  Bruno Haible  <bruno@clisp.org>
11798         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11799         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11801 2019-09-28  Bruno Haible  <bruno@clisp.org>
11803         Update comments that refer to POSIX.
11804         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11805         sentence about trailing slashes.
11806         * lib/fflush.c: Clarify the reasoning.
11807         * tests/test-fflush2.c: Cite the relevant sentence.
11809 2019-09-28  Bruno Haible  <bruno@clisp.org>
11811         access: Document limitations on Windows.
11812         Suggested by Zaretskii <eliz@gnu.org>.
11813         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11815 2019-09-28  Bruno Haible  <bruno@clisp.org>
11817         findprog-in: Fix comment.
11818         Reported by Eli Zaretskii <eliz@gnu.org>.
11819         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11820         condition.
11821         * lib/stat.c (rpl_stat): Fix typo in comment.
11822         * lib/utime.c (_gl_utimens_windows): Likewise.
11824 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11826         Update URLs and associated text
11827         (Thanks to Bruno Haible for proofreading this patch.)
11828         Prefer https: to http: in URLs where either will do, for the usual
11829         security reasons.  I also updated broken and/or moved URLs
11830         discovered during the process. In a few places I had to resort to
11831         archive.org, since I didn't find the originals elsewhere.
11833 2019-09-15  Paul Smith  <psmith@gnu.org>
11834             Bruno Haible  <bruno@clisp.org>
11836         findprog-in: Set errno when the search fails.
11837         * lib/findprog-in.c: Include <errno.h>.
11838         (find_in_given_path): Set errno before returning NULL.
11839         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11840         Define the term "slash".
11842 2019-09-15  Bruno Haible  <bruno@clisp.org>
11844         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11845         * modules/findprog (Depends-on): Add access.
11846         * modules/findprog-lgpl (Depends-on): Likewise.
11847         * modules/findprog-in (Depends-on): Likewise.
11849 2019-09-15  Bruno Haible  <bruno@clisp.org>
11851         access: Add tests.
11852         * tests/test-access.c: New file.
11853         * modules/access-tests: New file.
11855         access: New module.
11856         * lib/unistd.in.h (access): New declaration.
11857         * lib/access.c: New file.
11858         * m4/access.m4: New file.
11859         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11861         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11862         REPLACE_ACCESS.
11863         * modules/access: New file.
11864         * tests/test-unistd-c++.cc (access): Check signature.
11865         * doc/posix-functions/access.texi: Mention the new module.
11867 2019-09-15  Bruno Haible  <bruno@clisp.org>
11869         fcntl-h: Fix compilation error of creat.c on MSVC.
11870         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11871         defined.
11873 2019-09-15  Bruno Haible  <bruno@clisp.org>
11875         creat: Add tests.
11876         * tests/test-creat.c: New file, based on tests/test-open.h.
11877         * modules/creat-tests: New file.
11879         creat: New module.
11880         * lib/fcntl.in.h (creat): New declaration.
11881         * lib/creat.c: New file, based on lib/open.c.
11882         * m4/creat.m4: New file.
11883         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11884         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11885         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11886         * modules/open (Files): Add m4/open-slash.m4.
11887         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11888         REPLACE_CREAT.
11889         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11890         * modules/creat: New file.
11891         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11892         * doc/posix-functions/creat.texi: Mention the new module.
11894 2019-09-15  Bruno Haible  <bruno@clisp.org>
11896         open tests: Enhance test.
11897         * tests/test-open.h (test_open): Test the creation of an executable
11898         regular file. Also improve initial cleanup.
11900 2019-09-15  Bruno Haible  <bruno@clisp.org>
11902         intprops tests: Avoid build failure with HP-UX cc.
11903         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11904         "error 4018: Macro param too large after substitution - use -H option.".
11906 2019-09-14  Bruno Haible  <bruno@clisp.org>
11908         Make autoconf tests work with -Werror=implicit-function-declaration.
11909         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11910         towupper() declaration.
11911         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11912         declaration.
11914 2019-09-14  Bruno Haible  <bruno@clisp.org>
11916         findprog-in: Better mimic the system on native Windows.
11917         Reported by Paul Smith <psmith@gnu.org>.
11918         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11919         non-empty suffixes when the file name already contains a '.'.
11921 2019-09-10  Bruno Haible  <bruno@clisp.org>
11923         wctob: Fix autoconf test.
11924         Based on patch by Florian Weimer <fweimer@redhat.com>.
11925         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11927 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11929         xhash: provide hash_xinitialize.
11930         Suggested by Egor Pugin <egor.pugin@gmail.com>
11931         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11932         * modules/xhash, lib/xhash.c: New.
11933         * lib/hash.h (hash_xinitialize): New.
11935 2019-09-09  Bruno Haible  <bruno@clisp.org>
11937         findprog-in: Make exec optimization optional.
11938         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11939         (find_in_given_path): Add optimize_for_exec parameter.
11940         * lib/findprog-in.c (find_in_given_path): Likewise.
11942 2019-09-08  Bruno Haible  <bruno@clisp.org>
11944         Add option to assume the best, not the worst, when cross-compiling.
11945         Suggested by Jonas Termansen <sortie@maxsi.org>.
11946         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11947         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11948         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11949         lt_cv_sys_argz_works.
11950         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11951         ac_cv_func_calloc_0_nonnull.
11952         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11953         --enable-cross-guesses for gl_cv_func_realpath_works.
11954         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11955         gl_cv_func_cbrtl_ieee.
11956         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11957         gl_cv_func_ceil_ieee.
11958         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11959         gl_cv_func_ceilf_ieee.
11960         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11961         gl_cv_func_ceill_ieee.
11962         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11963         ac_cv_func_chown_works.
11964         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11965         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11967         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11968         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11969         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11970         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11971         gl_cv_func_expl_works.
11972         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11973         gl_cv_func_expm1_ieee.
11974         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11975         gl_cv_func_expm1l_works.
11976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11977         gl_cv_func_open_directory_works.
11978         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11979         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11980         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11981         gl_cv_func_fchownat_empty_filename_works.
11982         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11983         gl_cv_func_fdopendir_works.
11984         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11985         gl_cv_func_floor_ieee.
11986         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11987         gl_cv_func_floorf_ieee.
11988         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11989         gl_cv_func_fma_works.
11990         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11991         gl_cv_func_fmaf_works.
11992         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11993         gl_cv_func_fmal_works.
11994         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11995         gl_cv_func_fmod_ieee.
11996         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11997         gl_cv_func_fmodf_ieee.
11998         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11999         gl_cv_func_fmodl_ieee.
12000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12001         gl_cv_func_fpurge_works.
12002         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12003         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12004         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12005         gl_cv_func_getcwd_null.
12006         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12008         gl_cv_func_working_getdelim.
12009         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12010         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12011         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12012         gl_cv_func_getgroups_works.
12013         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12014         am_cv_func_working_getline.
12015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12016         for gl_cv_func_getopt_gnu.
12017         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12018         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12019         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12020         gl_cv_func_hypot_ieee.
12021         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12022         gl_cv_func_hypotf_ieee.
12023         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12024         gl_cv_func_hypotl_ieee.
12025         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12026         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12027         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12028         gl_cv_func_link_works.
12029         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12030         gl_cv_func_linkat_slash.
12031         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12032         gl_cv_func_log_ieee.
12033         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12034         gl_cv_func_logf_ieee.
12035         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12036         gl_cv_func_logl_works.
12037         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12038         gl_cv_func_log10_ieee.
12039         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12040         gl_cv_func_log10f_ieee.
12041         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12042         gl_cv_func_log10l_works.
12043         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12044         gl_cv_func_log1p_ieee.
12045         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12046         gl_cv_func_log1pf_ieee.
12047         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12048         gl_cv_func_log1pl_ieee.
12049         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12050         gl_cv_func_log2_ieee.
12051         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12052         gl_cv_func_log2f_ieee.
12053         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12054         --enable-cross-guesses for
12055         gl_cv_func_lstat_dereferences_slashed_symlink.
12056         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12057         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12058         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12059         gl_cv_C_locale_sans_EILSEQ.
12060         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12061         gl_cv_func_memchr_works.
12062         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12063         gl_cv_func_memmem_works_always.
12064         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12065         gl_cv_func_memmem_works_fast.
12066         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12067         gl_cv_func_mkdir_trailing_slash_works,
12068         gl_cv_func_mkdir_trailing_dot_works.
12069         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12070         gl_cv_func_mkfifo_works.
12071         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12072         gl_cv_func_mknod_works.
12073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12074         gl_cv_func_working_mkstemp.
12075         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12076         gl_cv_func_working_mktime.
12077         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12078         gl_cv_func_modf_ieee.
12079         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12080         gl_cv_func_modff_ieee.
12081         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12082         gl_cv_func_modfl_ieee.
12083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12084         gl_cv_func_nanosleep.
12085         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12086         gl_cv_func_perror_works.
12087         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12088         gl_cv_func_printf_sizes_c99.
12089         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12090         gl_cv_func_printf_infinite.
12091         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12092         gl_cv_func_printf_infinite_long_double.
12093         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12094         gl_cv_func_printf_directive_a.
12095         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12096         gl_cv_func_printf_directive_f.
12097         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12098         gl_cv_func_printf_flag_zero.
12099         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12100         gl_cv_func_printf_enomem.
12101         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12102         gl_cv_func_snprintf_truncation_c99.
12103         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12104         gl_cv_func_snprintf_retval_c99.
12105         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12106         gl_cv_func_snprintf_directive_n.
12107         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12108         gl_cv_func_vsnprintf_zerosize_c99.
12109         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12110         gl_cv_func_pselect_detects_ebadf.
12111         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12112         Obey --enable-cross-guesses for
12113         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12114         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12115         gl_cv_func_ptsname_sets_errno.
12116         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12117         gl_cv_func_svid_putenv.
12118         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12119         gl_cv_func_readlink_works.
12120         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12121         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12122         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12123         gl_cv_func_re_compile_pattern_working.
12124         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12125         gl_cv_func_remainder_ieee.
12126         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12127         gl_cv_func_remainderf_ieee.
12128         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12129         gl_cv_func_remainderl_ieee.
12130         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12131         gl_cv_func_rintl_works.
12132         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12133         gl_cv_func_rmdir_works.
12134         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12135         gl_cv_func_round_ieee.
12136         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12137         gl_cv_func_roundf_ieee.
12138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12139         gl_cv_func_roundl_ieee.
12140         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12141         gl_cv_func_select_detects_ebadf.
12142         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12143         gl_cv_func_setenv_works.
12144         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12145         gl_cv_func_unsetenv_works.
12146         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12147         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12148         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12149         gl_cv_func_sleep_works.
12150         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12151         gl_cv_func_stat_file_slash.
12152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12153         gl_cv_func_stpncpy.
12154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12155         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12156         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12157         gl_cv_func_strcasestr_linear.
12158         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12159         gl_cv_func_working_strerror.
12160         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12161         gl_cv_func_strerror_0_works.
12162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12163         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12164         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12165         gl_cv_func_strstr_works_always.
12166         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12167         gl_cv_func_strstr_linear.
12168         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12169         gl_cv_func_strtod_works.
12170         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12171         gl_cv_func_strtold_works.
12172         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12173         gl_cv_func_symlink_works.
12174         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12175         gl_cv_func_symlinkat_works.
12176         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12177         gl_cv_func_trunc_ieee.
12178         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12179         gl_cv_func_truncf_ieee.
12180         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12181         gl_cv_func_truncl_ieee.
12182         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12183         gl_cv_func_tzset_clobber.
12184         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12185         gl_cv_func_ungetc_works.
12186         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12187         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12188         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12189         gl_cv_func_usleep_works.
12190         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12191         gl_cv_func_futimesat_works.
12192         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12193         gl_cv_func_working_utimes.
12194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12195         gl_cv_func_wcwidth_works.
12196         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12197         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12198         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12199         links for testing. Obey --enable-cross-guesses for
12200         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12201         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12203 2019-09-08  Bruno Haible  <bruno@clisp.org>
12205         Clarify that cross-compilation guesses are guesses.
12206         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12207         cross-compiling.
12209 2019-09-08  Bruno Haible  <bruno@clisp.org>
12211         chown: Fix configure output (regression from 2019-03-23).
12212         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12213         gl_cv_func_chown_follows_symlink variable.
12215 2019-09-08  Bruno Haible  <bruno@clisp.org>
12217         findprog-in: New module.
12218         Suggested by Paul Smith <psmith@gnu.org>.
12219         * lib/findprog.h (find_in_given_path): New declaration.
12220         * lib/findprog-in.c: New file, based on lib/findprog.c.
12221         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12222         * modules/findprog-in: New file.
12224 2019-09-08  Bruno Haible  <bruno@clisp.org>
12226         findprog: Remove unused dependency.
12227         * modules/findprog (Depends-on): Remove strdup.
12229 2019-09-08  Bruno Haible  <bruno@clisp.org>
12231         findprog: Remove test that is obsolete since 2006-04-24.
12232         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12234 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12236         bitset: style changes
12237         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12238         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12239         xzalloc to xcalloc.
12240         Suggested by Paul Eggert.
12242 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12244         bitset: check memory allocation
12245         Reported by 江 祖铭 (Zu-Ming Jiang).
12246         With help from Paul Eggert.
12247         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12248         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12249         instead of realloc.
12250         When shrinking, accept failures.
12251         * lib/bitset/vector.c (vbitset_resize): Likewise.
12253 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12255         scratch_buffer: sync from glibc
12256         * config/srclist.txt: Add the scratch_buffer source
12257         code from glibc, since these should be in sync.
12258         Autoupdate.
12260 2019-09-07  Bruno Haible  <bruno@clisp.org>
12262         doc: Update for glibc 2.30.
12263         * doc/glibc-functions/gettid.texi: New file.
12264         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12265         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12266         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12267         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12268         * doc/glibc-functions/sem_clockwait.texi: New file.
12269         * doc/glibc-functions/tgkill.texi: New file.
12270         * doc/glibc-functions/twalk_r.texi: New file.
12271         * doc/gnulib.texi: Include them.
12272         (Glibc semaphore.h): New section.
12273         * doc/pastposix-functions/h_errno.texi: Update.
12274         * doc/posix-functions/*.texi: Likewise.
12276 2019-09-06  Bruno Haible  <bruno@clisp.org>
12278         symlink tests: Avoid test failure on Linux with Lustre file system.
12279         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12280         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12281         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12283 2019-09-01  Bruno Haible  <bruno@clisp.org>
12285         gitsub.sh: Add support for shallow-cloning of subdirectories.
12286         * top/gitsub.sh (func_usage): Document allowed git options with
12287         'git pull'.
12288         (func_pull): Accept GIT_OPTIONS argument.
12289         (pull): Parse git options before complaining about too many arguments.
12290         Pass the git options to func_pull.
12292 2019-08-29  Bruno Haible  <bruno@clisp.org>
12294         lock: Fix cross-compilation guesses.
12295         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12296         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12297         platforms.
12299 2019-08-28  Bruno Haible  <bruno@clisp.org>
12301         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12302         Reported by Martin Storsjö <martin@martin.st> in
12303         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12304         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12305         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12306         files from GCC 6 or newer, use an override through '#define', because
12307         the inline definitions in the platform's <cmath> cannot be overridden
12308         in another way.
12310 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12312         Revert macOS INT_MULTIPLY_WRAPV patch
12313         Problem reported by Bruno Haible in:
12314         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12315         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12316         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12317         Go back to working around the Clang bug on macOS.
12319 2019-08-27  Bruno Haible  <bruno@clisp.org>
12321         libtool-next-version: Fix error output.
12322         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12323         name.
12325 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12327         Speed up INT_MULTIPLY_WRAPV on macOS
12328         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12329         Mattias Engdegård says it’s safe to assume the relevant library
12330         is always available there.
12331         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12332         New temporary internal macro.
12333         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12334         No need to work around the Clang bug on macOS.
12336 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12338         intprops.h, verify.h: port better to clang
12339         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12340         with Clang.  Problem reported privately by Mattias Engdegård.
12341         Also, insulate intprops.h and verify.h better against each other’s
12342         definitions of __has_builtin on non-Clang hosts.
12343         * lib/intprops.h (__has_builtin): Define a temporary substitute
12344         if __has_builtin is not already defined.
12345         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12346         New temporary internal macros.
12347         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12348         Now two separate macros, replacing the old
12349         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12350         __builtin_mul_overflow is like the rest.  All uses changed.
12351         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12352         Adjust to above changes.
12353         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12354         longer relevant.  All uses changed.
12355         * lib/verify.h (__has_builtin): Treat like intprops.h,
12356         so that the two .h files do not collide with each other.
12357         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12358         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12360 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12362         intprops: say why not Clang __builtin_add_overflow
12363         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12364         Mention Clang in comment, responding to a query from
12365         Mattias Engdegård.
12367 2019-08-24  Bruno Haible  <bruno@clisp.org>
12369         doc: Document most of the files outside of modules.
12370         * doc/gnulib.texi (Build Infrastructure Files,
12371         Release Management Files): New chapters.
12373 2019-08-24  Bruno Haible  <bruno@clisp.org>
12375         bootstrap: Keep in sync with the 'gettext' module.
12376         Reported by Assaf Gordon in
12377         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12378         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12379         * build-aux/po/remove-potcdate.sin: Likewise.
12381 2019-08-24  Bruno Haible  <bruno@clisp.org>
12383         crypto/gc-sha512: Add tests.
12384         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12385         * modules/crypto/gc-sha512-tests: New file.
12387         crypto/gc-sha256: Add tests.
12388         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12389         * modules/crypto/gc-sha256-tests: New file.
12391         crypto/gc-sha256, crypto/gc-sha512: New modules.
12392         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12393         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12394         (MAX_DIGEST_SIZE): Set to 64.
12395         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12396         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12397         (gc_sha256, gc_sha512): New functions.
12398         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12399         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12400         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12402 2019-08-24  Bruno Haible  <bruno@clisp.org>
12404         crypto/gc-sha1 tests: Improve output when the test fails.
12405         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12406         output.
12408 2019-08-24  Bruno Haible  <bruno@clisp.org>
12410         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12411         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12412         LIBGCRYPT_HAS_MD_SM3.
12413         * lib/gc-libgcrypt.c: Include sm3.h.
12414         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12415         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12416         implementation if libgcrypt does not support SM3.
12418 2019-08-24  Bruno Haible  <bruno@clisp.org>
12420         crypto/gc-md2: Optimize and clarify code.
12421         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12422         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12423         is not needed.
12425 2019-08-24  Bruno Haible  <bruno@clisp.org>
12427         crypto/gc-md2: Add comment.
12428         * lib/gc-libgcrypt.c: Add comment.
12430 2019-08-24  Bruno Haible  <bruno@clisp.org>
12432         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12433         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12434         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12435         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12436         variable.
12438 2019-08-24  Bruno Haible  <bruno@clisp.org>
12440         crypto/gc: Fix link error with --with-libgcrypt.
12441         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12442         AC_LIB_HAVE_LINKFLAGS invocation.
12444 2019-08-24  Bruno Haible  <bruno@clisp.org>
12446         crypto/gc: Access the module indicators correctly.
12447         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12448         * lib/gc-libgcrypt.c: Likewise.
12450 2019-08-24  Bruno Haible  <bruno@clisp.org>
12452         crypto/gc: Fix configuration with --with-libgcrypt.
12453         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12454         * modules/crypto/gc (Files): Add it.
12455         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12457 2019-08-24  Bruno Haible  <bruno@clisp.org>
12459         Remove unused file.
12460         * m4/stat-macros.m4: Remove file.
12462 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12464         New strip-trailing-space option for srclist-update
12465         * config/srclist-update (fixfile): Support new option.
12466         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12467         Use it.
12469 2019-08-20  Eric Blake  <eblake@redhat.com>
12471         accept4: Support SOCK_NONBLOCK, if defined
12472         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12474         accept4: Fix compilation when native accept4() exists.
12475         Reported by Richard W.M. Jones <rjones@redhat.com> in
12476         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12477         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12479 2019-08-18  Bruno Haible  <bruno@clisp.org>
12481         Defeat -flto GCC optimization in math autoconf tests.
12482         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12483         at <https://savannah.gnu.org/bugs/?56109>.
12484         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12485         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12486         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12487         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12488         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12489         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12490         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12491         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12492         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12493         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12494         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12495         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12497 2019-08-17  Bruno Haible  <bruno@clisp.org>
12499         windows-spin: Implement declared functions.
12500         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12501         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12502         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12503         name.
12505 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12507         intprops: port to Oracle Developer Studio 12.6
12508         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12509         typos that were in a section not compiled by GCC.
12511 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12513         intprops: support uchar, ushort _WRAPV dests
12514         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12515         when __builtin_add_overflow etc. and _Generic are not used.
12516         (_GL_INT_OP_WRAPV): Use it to support destinations that
12517         are unsigned char or unsigned short, even in compilers
12518         that lack __typeof__ and are not C11-compatible.
12520         intprops: pacify picky GCC
12521         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12522         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12523         possibly-incorrect result.
12524         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12525         about (A) used as a boolean, when A is an expression like 3 * 4.
12527         intprops: support unsigned *_WRAPV results
12528         Add support for unsigned, unsigned long, and unsigned long long
12529         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12530         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12531         bug with unsigned inputs reported by Eli Zaretskii in:
12532         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12533         * config/srclist.txt: Break the glibc connection for intprops.h
12534         temporarily, while more testing is done in Gnulib-using apps.
12535         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12536         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12537         Support unsigned results no narrower than unsigned int.  Report
12538         overflow correctly if some arguments are unsigned.
12539         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12540         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12541         the right thing with narrow args.
12542         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12543         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12544         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12545         * tests/test-intprops.c: Check for bugs and test new behavior.
12547 2019-08-14  Bruno Haible  <bruno@clisp.org>
12549         get_progname_of: New module.
12550         * lib/get_progname_of.h: New file.
12551         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12552         * lib/getprogname.c (getprogname): Tweak coding style.
12553         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12554         * modules/get_progname_of: New file.
12556 2019-08-14  Bruno Haible  <bruno@clisp.org>
12558         get_ppid_of: New module.
12559         * lib/get_ppid_of.h: New file.
12560         * lib/get_ppid_of.c: New file.
12561         * modules/get_ppid_of: New file.
12563 2019-08-13  Bruno Haible  <bruno@clisp.org>
12565         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12566         * tests/test-libtextstyle.c (main): Do not emit styling when the
12567         environment variable NO_COLOR is set.
12569 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12571         verify: improve diagnostic quality in recent GCC
12572         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12573         useful line number containing the top-level caller of the macro.
12574         So, bring back the older way of issuing a diagnostic containing
12575         the top-level call’s arg, so that it is easier to diagnose
12576         ‘verify’ failures with recent GCC.
12577         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12578         Bring back DIAGNOSTIC arg.  All callers changed.
12579         (verify): Just use _GL_VERIFY.
12581 2019-08-11  Bruno Haible  <bruno@clisp.org>
12583         localcharset: Add more aliases for OS/2.
12584         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12585         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12586         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12588 2019-08-10  Eric Blake  <eblake@redhat.com>
12590         configmake: Update advice on usage.
12591         * modules/configmake (Include): No longer necessary to include
12592         last, since configmake.h itself worries about collision avoidance.
12594 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12596         parse-datetime: fix 'T' military timezone handling
12597         * lib/parse-datetime.y (zone):
12598         follow-up to the previous commit: the 'T' case is handled outside the
12599         conversion table (used as either military timezone UTC-7 or ISO8601
12600         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12601         timezone letters.
12603 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12605         parse-datetime: fix military timezone letters
12606         Problem and trivial fix reported by Neil Hoggarth in:
12607         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12608         * lib/parse-datetime.y (military_table):
12609         Do it the right way, not the RFC 822 way.
12611 2019-08-08  Eric Blake  <eblake@redhat.com>
12613         configmake: Avoid namespace pollution issue on mingw.
12614         * modules/configmake (Makefile.am): If the project uses
12615         <winsock2.h>, include that header before defining DATADIR.
12617 2019-07-28  Bruno Haible  <bruno@clisp.org>
12619         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12620         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12622 2019-07-24  Bruno Haible  <bruno@clisp.org>
12624         pthread-h: Fix definitions of types and macros on mingw.
12625         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12626         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12627         not in use.
12628         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12629         'pthread-once' is not in use.
12630         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12631         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12632         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12633         in use.
12634         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12635         Define also when module 'pthread-rwlock' is not in use.
12636         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12637         also when module 'pthread-cond' is not in use.
12638         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12639         'pthread-tss' is not in use.
12640         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12641         use.
12643 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12645         crypto/gc: Cope with libgcrypt without SM3.
12646         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12648 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12650         backupfile: fix resource leak on memory failure
12651         Problem found by Coverity (CID 1484214).
12652         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12654 2019-07-22  Bruno Haible  <bruno@clisp.org>
12656         Avoid missing-declarations warning in various tests.
12657         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12658         test6, test_optional, test7, test8, test9, test10, test11, test12,
12659         test13, test14, test15, test_fun): Declare static.
12660         * tests/test-cnd.c (test_cnd_wait): Likewise.
12661         * tests/test-cond.c (test_cond): Likewise.
12663 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12665         pthread tests: Avoid missing-declarations warning.
12666         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12668 2019-07-19  Bruno Haible  <bruno@clisp.org>
12670         parse-datetime: Avoid warnings from bison versions >= 3.3.
12671         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12672         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12674 2019-07-19  Bruno Haible  <bruno@clisp.org>
12676         parse-datetime: Require Bison 2.4 or newer.
12677         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12678         Code taken from gettext's intl.m4.
12679         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12680         of YACC.
12682 2019-07-19  Bruno Haible  <bruno@clisp.org>
12684         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12685         * lib/areadlink-with-size.c: Include <string.h>.
12686         * lib/areadlinkat-with-size.c: Likewise.
12687         * lib/xgethostname.c: Likewise.
12688         * lib/xgetdomainname.c: Likewise.
12690 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12692         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12693         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12694         "%pure-parser".  The former is available since Bison 2.3b (2008),
12695         while the latter is marked as obsolete since version 3.4 (May 2019).
12697 2019-07-16  Bruno Haible  <bruno@clisp.org>
12699         update-copyright: Make it work again (regression from 2019-06-15).
12700         Reported by Brian C. Lane <bcl@redhat.com>.
12701         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12703 2019-07-14  Bruno Haible  <bruno@clisp.org>
12705         doc: Update info about <pthread.h>.
12706         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12707         of 'pthread'.
12709 2019-07-14  Bruno Haible  <bruno@clisp.org>
12711         pthread_sigmask tests: Use new multithread modules.
12712         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12713         glthread/thread.h.
12714         (main_thread, killer_thread): Change type to pthread_t.
12715         (main): Update accordingly.
12716         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12717         thread.
12719 2019-07-14  Bruno Haible  <bruno@clisp.org>
12721         pthread-tss: Add tests.
12722         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12723         tests/test-tss.c.
12724         * modules/pthread-tss-tests: New file.
12726 2019-07-14  Bruno Haible  <bruno@clisp.org>
12728         pthread-cond: Add tests.
12729         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12730         tests/test-cnd.c.
12731         * modules/pthread-cond-tests: New file.
12733 2019-07-14  Bruno Haible  <bruno@clisp.org>
12735         pthread-rwlock: Add tests.
12736         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12737         * modules/pthread-rwlock-tests: New file.
12739 2019-07-14  Bruno Haible  <bruno@clisp.org>
12741         pthread-mutex: Add tests.
12742         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12743         tests/test-mtx.c.
12744         * modules/pthread-mutex-tests: New file.
12746 2019-07-14  Bruno Haible  <bruno@clisp.org>
12748         pthread-once: Add tests.
12749         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12750         tests/test-call_once.c.
12751         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12752         tests/test-mtx.c.
12753         * modules/pthread-once-tests: New file.
12755 2019-07-14  Bruno Haible  <bruno@clisp.org>
12757         pthread-thread: Add tests.
12758         * tests/test-pthread-thread.c: New file, based on
12759         tests/test-thread_create.c and tests/test-thrd_create.c.
12760         * modules/pthread-thread-tests: New file.
12762 2019-07-14  Bruno Haible  <bruno@clisp.org>
12764         pthread: Turn into a convenience module.
12765         * lib/pthread.in.h: Remove declarations for extern inline functions.
12766         * lib/pthread.c: Remove file.
12767         * modules/pthread (Files): Remove it.
12768         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12769         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12770         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12771         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12772         GNULIB_PTHREAD.
12773         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12775 2019-07-14  Bruno Haible  <bruno@clisp.org>
12777         pthread-spin: New module.
12778         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12779         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12780         inline definitions.
12781         * lib/pthread-spin.c: New file.
12782         * m4/pthread-spin.m4: New file.
12783         * modules/pthread-spin: New file.
12784         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12785         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12786         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12787         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12788         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12790 2019-07-14  Bruno Haible  <bruno@clisp.org>
12792         pthread-tss: New module.
12793         * lib/pthread-tss.c: New file.
12794         * m4/pthread-tss.m4: New file.
12795         * modules/pthread-tss: New file.
12796         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12797         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12798         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12799         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12801 2019-07-14  Bruno Haible  <bruno@clisp.org>
12803         pthread-cond: New module.
12804         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12805         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12806         * lib/pthread-cond.c: New file.
12807         * m4/pthread-cond.m4: New file.
12808         * modules/pthread-cond: New file.
12809         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12810         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12811         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12812         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12813         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12814         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12815         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12816         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12818 2019-07-14  Bruno Haible  <bruno@clisp.org>
12820         pthread-rwlock: New module.
12821         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12822         * m4/pthread-rwlock.m4: New file.
12823         * modules/pthread-rwlock: New file.
12824         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12825         and the Android problem.
12826         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12827         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12828         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12829         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12830         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12831         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12832         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12833         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12834         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12835         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12837 2019-07-14  Bruno Haible  <bruno@clisp.org>
12839         pthread-mutex: New module.
12840         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12841         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12842         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12843         pthread_mutex_unlock): Remove inline definitions.
12844         * lib/pthread-mutex.c: New file.
12845         * m4/pthread-mutex.m4: New file.
12846         * modules/pthread-mutex: New file.
12847         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12848         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12849         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12850         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12851         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12852         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12853         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12854         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12855         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12856         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12857         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12858         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12860 2019-07-14  Bruno Haible  <bruno@clisp.org>
12862         pthread-once: New module.
12863         * lib/pthread-once.c: New file.
12864         * m4/pthread-once.m4: New file.
12865         * modules/pthread-once: New file.
12866         * doc/posix-functions/pthread_once.texi: Mention the new module.
12868 2019-07-14  Bruno Haible  <bruno@clisp.org>
12870         pthread-thread: New module.
12871         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12872         inline definitions.
12873         * lib/pthread-thread.c: New file.
12874         * m4/pthread-thread.m4: New file.
12875         * modules/pthread-thread: New file.
12876         * doc/posix-functions/pthread_create.texi: Mention the new module.
12877         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12878         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12879         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12880         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12881         * doc/posix-functions/pthread_self.texi: Likewise.
12882         * doc/posix-functions/pthread_equal.texi: Likewise.
12883         * doc/posix-functions/pthread_detach.texi: Likewise.
12884         * doc/posix-functions/pthread_join.texi: Likewise.
12885         * doc/posix-functions/pthread_exit.texi: Likewise.
12887 2019-07-14  Bruno Haible  <bruno@clisp.org>
12889         pthread-h: Prepare for adding new modules.
12890         * lib/pthread.in.h: Define the types and macros for each of the
12891         facilities separately.
12892         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12893         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12894         HAVE_PTHREAD_PROCESS_SHARED.
12895         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12896         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12897         HAVE_PTHREAD_PROCESS_SHARED.
12898         * modules/pthread-h (Makefile.am): Substitute
12899         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12900         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12902 2019-07-14  Bruno Haible  <bruno@clisp.org>
12904         pthread-h: Add declarations of essential pthread functions.
12905         * lib/pthread.in.h: Include snippets.
12906         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12907         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12908         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12909         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12910         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12911         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12912         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12913         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12914         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12915         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12916         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12917         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12918         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12919         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12920         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12921         pthread_key_create, pthread_setspecific, pthread_getspecific,
12922         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12923         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12924         declarations.
12925         (pthread_mutex_timedlock): Move declaration.
12926         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12927         declared.
12928         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12929         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12930         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12931         HAVE_* and REPLACE_* variables for the new functions.
12932         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12933         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12934         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12935         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12936         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12937         variables for the new functions. Split the sed script, to avoid the
12938         limit of 99 commands of HP-UX sed.
12939         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12941 2019-07-14  Bruno Haible  <bruno@clisp.org>
12943         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12944         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12945         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12946         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12947         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12948         * modules/pthread-h (Depends-on): Add threadlib.
12949         (Link): Change to $(LIBTHREAD).
12950         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12951         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12953 2019-07-14  Bruno Haible  <bruno@clisp.org>
12955         pthread-h: Add C++ tests.
12956         * tests/test-pthread-c++.cc: New file.
12957         * modules/pthread-h-c++-tests: New file.
12959 2019-07-14  Bruno Haible  <bruno@clisp.org>
12961         pthread-h: Add tests.
12962         * tests/test-pthread.c: New file.
12963         * modules/pthread-h-tests: New file.
12965 2019-07-14  Bruno Haible  <bruno@clisp.org>
12967         pthread-h: New module.
12968         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12969         is 1.
12970         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12971         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12972         <pthread.h> pollutes the namespace; instead, prepare for generating a
12973         pthread.h always. Substitute HAVE_PTHREAD_H here.
12974         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12975         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12976         * modules/pthread-h: New file, based on modules/pthread.
12977         * modules/pthread: Rely on 'pthread-h'.
12978         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12979         Update.
12980         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12981         pthread.
12983 2019-07-14  Bruno Haible  <bruno@clisp.org>
12985         sched_yield: New module.
12986         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12987         (sched_yield): New declaration.
12988         * lib/sched_yield.c: New file.
12989         * m4/sched_yield.m4: New file.
12990         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12991         provide a replacement sched.h always. Test whether sched_yield is
12992         declared.
12993         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12994         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12995         (Makefile.am): Provide a replacement sched.h always. Substitute
12996         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12997         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12998         * modules/sched_yield: New file.
12999         * doc/posix-functions/sched_yield.texi: Mention the new module.
13001 2019-07-14  Bruno Haible  <bruno@clisp.org>
13003         windows-spin: New module.
13004         * lib/windows-spin.h: New file.
13005         * lib/windows-spin.c: New file.
13006         * modules/windows-spin: New file.
13008 2019-07-14  Bruno Haible  <bruno@clisp.org>
13010         windows-timedrwlock: New module.
13011         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13012         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13013         windows-cond.c.
13014         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13015         redefinition conflict with windows-timedrwlock.h.
13016         * modules/windows-timedrwlock: New file.
13018 2019-07-14  Bruno Haible  <bruno@clisp.org>
13020         windows-rwlock: New module.
13021         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13022         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13023         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13024         windows-initguard.h.
13025         (gl_rwlock_t): Define using glwthread_rwlock_t.
13026         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13027         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13028         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13029         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13030         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13031         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13032         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13033         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13034         glthread_rwlock_destroy_func): Remove declarations.
13035         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13036         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13037         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13038         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13039         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13040         functions.
13041         * modules/windows-rwlock: New file.
13042         * modules/lock (Depends-on): Add windows-rwlock.
13044 2019-07-14  Bruno Haible  <bruno@clisp.org>
13046         windows-thread: Add support for creating a thread in detached state.
13047         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13048         (glwthread_thread_create): Add attr argument.
13049         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13050         * lib/glthread/thread.h (glthread_create): Update.
13051         * lib/thrd.c (thrd_create): Update.
13053 2019-07-14  Bruno Haible  <bruno@clisp.org>
13055         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13056         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13057         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13058         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13059         * lib/windows-mutex.h: Update.
13060         * lib/windows-recmutex.h: Likewise.
13061         * lib/windows-timedmutex.h: Likewise.
13062         * lib/windows-timedrecmutex.h: Likewise.
13063         * lib/windows-cond.h: Likewise.
13064         * lib/glthread/lock.h: Likewise.
13065         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13066         lib/windows-spinlock.h.
13067         * modules/windows-recmutex (Files): Likewise.
13068         * modules/windows-timedmutex (Files): Likewise.
13069         * modules/windows-timedrecmutex (Files): Likewise.
13070         * modules/windows-cond (Files): Likewise.
13071         * modules/threads-h (Files): Likewise.
13073 2019-07-14  Bruno Haible  <bruno@clisp.org>
13075         doc: Fix info about pthread API in HP-UX.
13076         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13078 2019-07-14  Bruno Haible  <bruno@clisp.org>
13080         threads-h: Fix generation of threads.h.
13081         * modules/threads-h (Makefile.am): Insert the required header file
13082         snippets.
13084 2019-07-09  Bruno Haible  <bruno@clisp.org>
13086         striconveh test: Fix a compilation failure when iconv is not available.
13087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13088         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13089         HAVE_ICONV.
13091 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13093         argmatch: adjust columns for help2man.
13094         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13095         requires column 20 or more, return 20.
13097 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13099         areadlink-with-size: avoid realloc when size==0
13100         * lib/areadlink-with-size.c (areadlink_with_size):
13101         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13102         Reallocate at the end to the actual size, to avoid memory waste,
13103         as suggested by Bruno Haible.  But when the guessed size is zero -
13104         useful when the size is unknown - do the initial small readlink
13105         into the stack, to avoid that realloc in the usual case.
13107 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13109         areadlink-with-size: guess a buffer size with 0 size
13110         The size is usually taken from st_size, which can be zero,
13111         resulting in inefficient operation.
13112         Instead let zero select an initial memory allocation
13113         of 128 bytes, which most symlinks fit within.
13114         * lib/areadlink-with-size.c (areadlink_with_size):
13115         Start with a 128 byte buffer, for SIZE == 0.
13116         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13118 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13120         Replace manually crafted hex regexes with [:xdigit:]
13121         * build-aux/gitlog-to-changelog (parse_amend_file)
13122         (git_dir_option):
13123         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13124         This patch is backported from Emacs (Bug#36167).
13126 2019-07-06  Bruno Haible  <bruno@clisp.org>
13128         error: Fix documentation.
13129         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13130         module provides.
13131         * doc/glibc-functions/error_message_count.texi: Likewise.
13132         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13133         * doc/glibc-functions/error_print_progname.texi: Likewise.
13135 2019-07-06  Bruno Haible  <bruno@clisp.org>
13137         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13138         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13139         and older is unsupported.
13140         * doc/**/*.texi: Update.
13142 2019-07-06  Bruno Haible  <bruno@clisp.org>
13144         doc: Remove documentation of Linux libc5 as a supported platform.
13145         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13146         to Linux libc5.
13147         * doc/posix-functions/iswalpha.texi: Likewise.
13148         * doc/posix-functions/iswblank.texi: Likewise.
13149         * doc/posix-functions/iswcntrl.texi: Likewise.
13150         * doc/posix-functions/iswdigit.texi: Likewise.
13151         * doc/posix-functions/iswgraph.texi: Likewise.
13152         * doc/posix-functions/iswlower.texi: Likewise.
13153         * doc/posix-functions/iswprint.texi: Likewise.
13154         * doc/posix-functions/iswpunct.texi: Likewise.
13155         * doc/posix-functions/iswspace.texi: Likewise.
13156         * doc/posix-functions/iswupper.texi: Likewise.
13157         * doc/posix-functions/iswxdigit.texi: Likewise.
13158         * doc/posix-functions/snprintf.texi: Likewise.
13159         * doc/posix-functions/vsnprintf.texi: Likewise.
13161 2019-07-06  Bruno Haible  <bruno@clisp.org>
13163         doc: Remove documentation of Tandem/NSK as a supported platform.
13164         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13165         Tandem/NSK.
13166         * doc/**/*.texi: Update.
13168 2019-07-06  Bruno Haible  <bruno@clisp.org>
13170         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13171         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13172         and older is unsupported.
13173         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13174         Mac OS X 10.4 and older.
13175         * doc/posix-functions/asinl.texi: Likewise.
13176         * doc/posix-functions/atanl.texi: Likewise.
13177         * doc/posix-functions/cosl.texi: Likewise.
13178         * doc/posix-functions/expl.texi: Likewise.
13179         * doc/posix-functions/frexpl.texi: Likewise.
13180         * doc/posix-functions/gettimeofday.texi: Likewise.
13181         * doc/posix-functions/logl.texi: Likewise.
13182         * doc/posix-functions/mkstemp.texi: Likewise.
13183         * doc/posix-functions/sinl.texi: Likewise.
13184         * doc/posix-functions/sqrtl.texi: Likewise.
13185         * doc/posix-functions/tanl.texi: Likewise.
13186         * doc/posix-functions/wcswidth.texi: Likewise.
13187         * doc/**/*.texi: Update.
13189 2019-07-06  Bruno Haible  <bruno@clisp.org>
13191         doc: Remove documentation of AIX 4 as a supported platform.
13192         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13193         unsupported.
13194         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13195         workarounds.
13196         * doc/posix-functions/strnlen.texi: Likewise.
13197         * doc/posix-headers/inttypes.texi: Likewise.
13198         * doc/**/*.texi: Update.
13200 2019-07-06  Bruno Haible  <bruno@clisp.org>
13202         doc: Remove documentation of HP-UX 10 as a supported platform.
13203         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13204         unsupported.
13205         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13206         workarounds.
13207         * doc/posix-functions/gmtime_r.texi: Likewise.
13208         * doc/posix-functions/localtime_r.texi: Likewise.
13209         * doc/posix-functions/mkstemp.texi: Likewise.
13210         * doc/**/*.texi: Update.
13212 2019-07-06  Bruno Haible  <bruno@clisp.org>
13214         doc: Remove documentation of Interix 3.5 as a supported platform.
13215         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13216         unsupported.
13217         * doc/posix-functions/select.texi: Don't mention Interix specific
13218         workarounds.
13219         * doc/posix-headers/signal.texi: Likewise.
13220         * doc/**/*.texi: Update.
13222 2019-07-06  Bruno Haible  <bruno@clisp.org>
13224         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13225         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13226         unsupported.
13227         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13228         workarounds.
13229         * doc/posix-functions/nl_langinfo.texi: Likewise.
13230         * doc/posix-functions/remainder.texi: Likewise.
13231         * doc/posix-functions/towlower.texi: Likewise.
13232         * doc/posix-functions/towupper.texi: Likewise.
13233         * doc/posix-functions/vsnprintf.texi: Likewise.
13234         * doc/posix-functions/wcscat.texi: Likewise.
13235         * doc/posix-functions/wcschr.texi: Likewise.
13236         * doc/posix-functions/wcscmp.texi: Likewise.
13237         * doc/posix-functions/wcscpy.texi: Likewise.
13238         * doc/posix-functions/wcscspn.texi: Likewise.
13239         * doc/posix-functions/wcslen.texi: Likewise.
13240         * doc/posix-functions/wcsncat.texi: Likewise.
13241         * doc/posix-functions/wcsncmp.texi: Likewise.
13242         * doc/posix-functions/wcsncpy.texi: Likewise.
13243         * doc/posix-functions/wcspbrk.texi: Likewise.
13244         * doc/posix-functions/wcsrchr.texi: Likewise.
13245         * doc/posix-functions/wcsspn.texi: Likewise.
13246         * doc/posix-headers/langinfo.texi: Likewise.
13247         * doc/posix-headers/signal.texi: Likewise.
13248         * doc/posix-headers/wchar.texi: Likewise.
13249         * doc/posix-headers/wctype.texi: Likewise.
13250         * doc/**/*.texi: Update.
13252 2019-07-05  Bruno Haible  <bruno@clisp.org>
13254         doc: Remove documentation of OSF/1 as supported platform.
13255         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13256         unsupported.
13257         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13258         workarounds.
13259         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13260         * doc/glibc-functions/ptsname_r.texi: Likewise.
13261         * doc/posix-functions/ceil.texi: Likewise.
13262         * doc/posix-functions/ceilf.texi: Likewise.
13263         * doc/posix-functions/ceill.texi: Likewise.
13264         * doc/posix-functions/fchdir.texi: Likewise.
13265         * doc/posix-functions/floor.texi: Likewise.
13266         * doc/posix-functions/floorf.texi: Likewise.
13267         * doc/posix-functions/fmod.texi: Likewise.
13268         * doc/posix-functions/fmodf.texi: Likewise.
13269         * doc/posix-functions/fmodl.texi: Likewise.
13270         * doc/posix-functions/log.texi: Likewise.
13271         * doc/posix-functions/logf.texi: Likewise.
13272         * doc/posix-functions/logl.texi: Likewise.
13273         * doc/posix-functions/log10.texi: Likewise.
13274         * doc/posix-functions/log10f.texi: Likewise.
13275         * doc/posix-functions/log10l.texi: Likewise.
13276         * doc/posix-functions/log2.texi: Likewise.
13277         * doc/posix-functions/log2f.texi: Likewise.
13278         * doc/posix-functions/log2l.texi: Likewise.
13279         * doc/posix-functions/mbrtowc.texi: Likewise.
13280         * doc/posix-functions/recv.texi: Likewise.
13281         * doc/posix-functions/recvfrom.texi: Likewise.
13282         * doc/posix-functions/remainder.texi: Likewise.
13283         * doc/posix-functions/remainderf.texi: Likewise.
13284         * doc/posix-functions/remainderl.texi: Likewise.
13285         * doc/posix-functions/round.texi: Likewise.
13286         * doc/posix-functions/roundf.texi: Likewise.
13287         * doc/posix-functions/roundl.texi: Likewise.
13288         * doc/posix-functions/send.texi: Likewise.
13289         * doc/posix-functions/sendto.texi: Likewise.
13290         * doc/posix-functions/setenv.texi: Likewise.
13291         * doc/posix-functions/snprintf.texi: Likewise.
13292         * doc/posix-functions/tcgetsid.texi: Likewise.
13293         * doc/posix-functions/trunc.texi: Likewise.
13294         * doc/posix-functions/truncf.texi: Likewise.
13295         * doc/posix-functions/truncl.texi: Likewise.
13296         * doc/posix-functions/ttyname_r.texi: Likewise.
13297         * doc/posix-functions/unsetenv.texi: Likewise.
13298         * doc/posix-functions/wcsrtombs.texi: Likewise.
13299         * doc/posix-headers/sys_select.texi: Likewise.
13300         * doc/posix-headers/wchar.texi: Likewise.
13301         * doc/posix-headers/wctype.texi: Likewise.
13302         * doc/**/*.texi: Update.
13304 2019-07-05  Bruno Haible  <bruno@clisp.org>
13306         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13307         * doc/**/*.texi: Update.
13309 2019-07-05  Bruno Haible  <bruno@clisp.org>
13311         doc: Remove documentation of Solaris 8 and older as supported platforms.
13312         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13313         unsupported.
13314         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13315         workarounds.
13316         * doc/posix-functions/memcmp.texi: Likewise.
13317         * doc/posix-functions/rename.texi: Likewise.
13318         * doc/posix-functions/tzset.texi: Likewise.
13319         * doc/posix-headers/wctype.texi: Likewise.
13320         * doc/**/*.texi: Update.
13322 2019-07-05  Bruno Haible  <bruno@clisp.org>
13324         doc: Remove documentation of Interix 3.5 as a supported platform.
13325         * doc/**/*.texi: Update.
13327 2019-07-05  Bruno Haible  <bruno@clisp.org>
13329         doc: Remove documentation of BeOS as a supported platform.
13330         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13331         unsupported.
13332         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13333         * doc/posix-functions/getdelim.texi: Likewise.
13334         * doc/**/*.texi: Update.
13336 2019-07-05  Bruno Haible  <bruno@clisp.org>
13338         thread, lock, cond, tls: Remove support for Pth threads.
13339         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13340         --enable-threads=pth any more.
13341         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13342         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13343         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13344         threads and ISO C11 threads.
13345         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13346         * lib/glthread/lock.h: Likewise.
13347         * lib/glthread/lock.c: Likewise.
13348         * lib/glthread/cond.h: Likewise.
13349         * lib/glthread/cond.c: Likewise.
13350         * lib/glthread/tls.h: Likewise.
13351         * lib/glthread/tls.c: Likewise.
13352         * lib/glthread/yield.h: Likewise.
13353         * lib/regex_internal.h: Likewise.
13354         * tests/test-thread_create.c: Likewise.
13355         * tests/test-lock.c: Likewise.
13356         * tests/test-cond.c: Likewise.
13357         * tests/test-tls.c: Likewise.
13358         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13359         (main): Sleep without calling gl_thread_yield.
13361 2019-07-05  Bruno Haible  <bruno@clisp.org>
13363         thread, lock, cond, tls: Remove support for old Solaris threads.
13364         Solaris >= 2.5.1 has POSIX threads.
13365         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13366         --enable-threads=solaris any more.
13367         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13368         * lib/glthread/thread.c: Update comment.
13369         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13370         * lib/glthread/lock.h: Likewise.
13371         * lib/glthread/lock.c: Likewise.
13372         * lib/glthread/cond.h: Likewise.
13373         * lib/glthread/cond.c: Likewise.
13374         * lib/glthread/tls.h: Likewise.
13375         * lib/glthread/tls.c: Likewise.
13376         * lib/glthread/yield.h: Likewise.
13377         * lib/regex_internal.h: Likewise.
13378         * tests/test-thread_create.c: Likewise.
13379         * tests/test-lock.c: Likewise.
13380         * tests/test-cond.c: Likewise.
13381         * tests/test-tls.c: Likewise.
13383 2019-07-05  Bruno Haible  <bruno@clisp.org>
13385         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13386         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13387         needed size is equal to the allocated size.
13388         * lib/getcwd.c (__getcwd): Likewise.
13390 2019-07-05  Bruno Haible  <bruno@clisp.org>
13392         xgetdomainname: Don't return an excessive memory allocation.
13393         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13394         before returning it.
13396 2019-07-05  Bruno Haible  <bruno@clisp.org>
13398         xgethostname: Don't return an excessive memory allocation.
13399         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13400         returning it.
13402 2019-07-05  Bruno Haible  <bruno@clisp.org>
13404         areadlinkat-with-size: Don't return an excessive memory allocation.
13405         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13406         before returning it.
13408 2019-07-05  Bruno Haible  <bruno@clisp.org>
13410         areadlink-with-size: Don't return an excessive memory allocation.
13411         Reported by Andreas Dilger <adilger@whamcloud.com>.
13412         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13413         before returning it.
13415 2019-07-03  Bruno Haible  <bruno@clisp.org>
13417         renameatu: Fix test failure on MSVC.
13418         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13419         empty string.
13421 2019-07-03  Bruno Haible  <bruno@clisp.org>
13423         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13424         * lib/mbrtowc.c: Include glthread/lock.h.
13425         (mbtowc_lock): New variable.
13426         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13427         encodings, explicitly reset the internal state of mbtowc, and protect
13428         this through a lock.
13429         * modules/mbrtowc (Depends-on): Add lock.
13431 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13433         argmatch: don't define _ in the header.
13434         Reported by Jim Meyering.
13435         * lib/argmatch.h (N_, _): Don't define.
13436         Use gettext instead.
13437         * lib/argmatch.h (_): Define.
13438         * tests/test-argmatch.c (N_): Define.
13440 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13442         verify: document ‘assume’ better
13443         * lib/verify.h: Reword doc (Bug#36370).
13445 2019-07-02  Bruno Haible  <bruno@clisp.org>
13447         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13448         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13449         "CPutf8".
13450         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13452 2019-07-02  Bruno Haible  <bruno@clisp.org>
13454         getcwd: Fix crash when invoked with size = 0 on MSVC.
13455         * lib/getcwd.c: Include msvc-inval.h.
13456         (getcwd_nothrow): New function/macro.
13457         (getcwd_system): New macro.
13458         (__getcwd): Use it instead of getcwd.
13459         * modules/getcwd (Depends-on): Add msvc-inval.
13460         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13462 2019-07-02  Bruno Haible  <bruno@clisp.org>
13464         nonblocking-pipe tests: Fix test failure on MSVC.
13465         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13466         native Windows.
13468 2019-07-02  Bruno Haible  <bruno@clisp.org>
13470         usleep: Implement with millisecond resolution on native Windows.
13471         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13472         * doc/pastposix-functions/usleep.texi: Update accordingly.
13474 2019-07-02  Bruno Haible  <bruno@clisp.org>
13476         lstat tests: Fix test failure on MSVC.
13477         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13478         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13480 2019-07-02  Bruno Haible  <bruno@clisp.org>
13482         stat tests: Fix test failure on MSVC.
13483         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13484         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13486 2019-07-02  Bruno Haible  <bruno@clisp.org>
13488         getaddrinfo tests: Fix test failure on MSVC.
13489         * tests/test-getaddrinfo.c: Include sockets.h.
13490         (main): Invoke gl_sockets_startup.
13491         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13493 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13495         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13496         * lib/poll.c: Call Windows native select() with Windows native timeval.
13498 2019-06-30  Bruno Haible  <bruno@clisp.org>
13500         argmatch: Fix compilation errors.
13501         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13502         * tests/test-argmatch.c (main): Update after last-minute function names
13503         change.
13505 2019-06-30  Bruno Haible  <bruno@clisp.org>
13507         Include <stdlib.h> when needed.
13508         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13509         * lib/fcntl.c: Likewise.
13510         * lib/mbscasestr.c: Likewise.
13511         * lib/mbssep.c: Likewise.
13512         * lib/mbsstr.c: Likewise.
13513         * lib/openat.c: Include <stdlib.h>, needed for free().
13514         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13515         abort().
13517 2019-06-30  Bruno Haible  <bruno@clisp.org>
13519         Include <stdlib.h> when needed.
13520         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13521         * lib/faccessat.c: Likewise.
13522         * lib/fchmodat.c: Likewise.
13523         * lib/fchownat.c: Likewise.
13524         * lib/fstatat.c: Likewise.
13525         * lib/mkfifoat.c: Likewise.
13526         * lib/mknodat.c: Likewise.
13527         * lib/readlinkat.c: Likewise.
13528         * lib/symlinkat.c: Likewise.
13529         * lib/utimensat.c: Likewise.
13530         * lib/mkdirat.c: Likewise. Include also the specification header.
13532 2019-06-30  Bruno Haible  <bruno@clisp.org>
13534         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13536         from gl_PREREQ_SYS_H_SOCKET.
13537         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13538         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13539         gl_PREREQ_SYS_H_WS2TCPIP.
13540         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13541         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13542         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13544 2019-06-30  Bruno Haible  <bruno@clisp.org>
13546         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13547         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13548         REPLACE_INET_NTOP to 1 always.
13549         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13550         REPLACE_INET_PTON to 1 always.
13552 2019-06-30  Bruno Haible  <bruno@clisp.org>
13554         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13555         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13556         not REPLACE_INET_NTOP.
13558 2019-06-30  Bruno Haible  <bruno@clisp.org>
13560         poll: Add comment.
13561         * lib/poll.c: Add comment about WSAPoll.
13563 2019-06-30  Bruno Haible  <bruno@clisp.org>
13565         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13566         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13567         * lib/poll.in.h: Include <winsock2.h>.
13568         (POLL*, pollfd): Override on native Windows.
13569         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13570         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13571         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13573 2019-06-28  Bruno Haible  <bruno@clisp.org>
13575         accept4: Fix compilation error on OpenIndiana.
13576         Reported by Michal Nowak <mnowak@startmail.com>
13577         via Mark H Weaver <mhw@netris.org>.
13578         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13579         whether it exists as a function.
13581 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13583         strverscmp: sync from glibc
13584         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13585         comments, include libc-config.h, define __strverscmp to be
13586         strverscmp, and don’t assume types line uint8_t and int8_t that
13587         that C99 doesn’t guarantee.
13588         [!_LIBC]: Include libc-config.h; define __strverscmp.
13589         Include stdint.h.
13590         (__strverscmp): Assume C99.  Use uint_least8_t
13591         and int_least8_t instead of unsigned char and signed char.
13592         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13594 2019-06-25  Bruno Haible  <bruno@clisp.org>
13596         tss tests: Add tests for destructors and races.
13597         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13598         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13599         functions.
13600         (main): Invoke them.
13601         * modules/tls-tests (Depends-on): Add mtx.
13603 2019-06-25  Bruno Haible  <bruno@clisp.org>
13605         tls tests: Add tests for destructors and races.
13606         * tests/test-tls.c: Include glthread/lock.h.
13607         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13608         functions.
13609         (main): Invoke them.
13610         * modules/tls-tests (Depends-on): Add lock.
13612 2019-06-25  Bruno Haible  <bruno@clisp.org>
13614         windows-tls: Implement TLS key destructors for native Windows.
13615         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13616         declaration.
13617         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13618         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13619         (dtor_table_init_once, dtor_table_lock: New variables.
13620         (struct dtor): New type.
13621         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13622         dtor_processing_threads): New variables.
13623         (dtor_table_initialize, dtor_table_ensure_initialized,
13624         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13625         functions.
13626         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13627         handle non-NULL destructors.
13628         * modules/windows-tls (Depends-on): Add windows-once.
13629         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13630         Use the functions declared in windows-tls.h.
13631         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13632         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13633         * lib/windows-thread.c: Include windows-tls.h.
13634         (wrapper_func, glwthread_thread_exit): Invoke
13635         glwthread_tls_process_destructors.
13636         * modules/windows-thread (Depends-on): Add windows-tls.
13638 2019-06-25  Bruno Haible  <bruno@clisp.org>
13640         threadlib: Avoid autoconf warning "was expanded before it was required".
13641         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13643 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13645         argmatch: remove duplicate const qualifier
13646         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13648 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13650         unistd: stddef.h and sys/types.h namespace cleanup
13651         * lib/unistd.in.h [__GLIBC__]:
13652         Do not include stddef.h or sys/types.h.
13653         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13654         supposed to declare off_t and ssize_t.  Problem found when looking
13655         at why @GNULIB_PWRITE@ was different from the newly-added
13656         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13658 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13660         maintainer-makefile: restore portability to non-GNU awks
13661         Reported by Tim Rühsen.
13662         * top/maint.mk (AWK): New variable.  Use it.
13663         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13665 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13667         Document setvbuf _IOLBF problem
13668         * doc/posix-functions/setvbuf.texi (setvbuf):
13669         Document MS-Windows portability problem with _IOLBF.
13671         Document lseek SEEK_DATA/SEEK_HOLE
13672         * doc/posix-functions/lseek.texi (lseek):
13673         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13675 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13677         argmatch: put all the docs member last.
13678         Reported by Bruno Haible.
13679         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13680         member before the docs done.
13681         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13683 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13685         argmatch: add support to generate the usage message.
13686         * lib/argmatch.c: Move some #includes and gettext support to...
13687         * lib/argmatch.h: here.
13688         (ARGMATCH_DEFINE_GROUP): New macro.
13689         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13690         (argmatch_backup_group): New.
13691         (CHECK): New.
13692         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13693         argmatch_backup_argument and argmatch_backup_usage.
13694         * modules/argmatch: We depend on c99.
13695         * doc/argmatch.texi (Recognizing Option Arguments): New.
13696         * doc/gnulib.texi: Use it.
13698 2019-06-21  Bruno Haible  <bruno@clisp.org>
13700         thrd: Add comment.
13701         * lib/thrd.c (pthread_main_func): Add comment.
13703 2019-06-21  Bruno Haible  <bruno@clisp.org>
13705         threads-h: Define 'thread_local' if and only if it actually works.
13706         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13707         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13708         Oracle Solaris Studio C. Compile a simple program, to see whether
13709         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13710         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13711         * lib/threads.in.h (thread_local): Undefine if it does not work.
13712         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13713         (Link): Mention LIBTHREADLOCAL.
13714         * tests/test-threads.c: Don't check that thread_local is defined.
13715         * tests/test-thread_local.c: New file.
13716         * modules/threads-h-tests (Files): Add it and macros.h.
13717         (Depends-on): Add thrd and stdint.
13718         (configure.ac): Test whether 'alarm' is declared.
13719         (Makefile.am): Arrange to build and link test-thread_local.
13720         * doc/posix-headers/threads.texi: Mention the platforms that don't
13721         support 'thread_local'.
13723 2019-06-20  Bruno Haible  <bruno@clisp.org>
13725         threads-h: Simplify link dependencies.
13726         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13727         Don't set LTLIBSTDTHREAD.
13728         * modules/thrd (Link): Simplify accordingly.
13729         * modules/mtx (Link): Likewise.
13730         * modules/cnd (Link): Likewise.
13731         * modules/tss (Link): Likewise.
13732         * modules/threads (Link): Likewise.
13734 2019-06-20  Bruno Haible  <bruno@clisp.org>
13736         threads-h: Fix link error on FreeBSD 11.
13737         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13738         also with -lpthread.
13740 2019-06-20  Bruno Haible  <bruno@clisp.org>
13742         threadlib: Fix typo (regression from today).
13743         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13745 2019-06-20  Bruno Haible  <bruno@clisp.org>
13747         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13748         * lib/windows-thread.c: Include <errno.h>.
13749         * lib/windows-tls.c: Likewise.
13751 2019-06-20  Bruno Haible  <bruno@clisp.org>
13753         tss tests: Small improvement.
13754         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13756 2019-06-20  Bruno Haible  <bruno@clisp.org>
13758         threads: New module.
13759         * modules/threads: New file.
13761 2019-06-20  Bruno Haible  <bruno@clisp.org>
13763         tss: Add tests.
13764         * tests/test-tss.c: New file, based on tests/test-tls.c.
13765         * modules/tss-tests: New file.
13767 2019-06-20  Bruno Haible  <bruno@clisp.org>
13769         cnd: Add tests.
13770         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13771         * modules/cnd-tests: New file.
13773 2019-06-20  Bruno Haible  <bruno@clisp.org>
13775         mtx: Add tests.
13776         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13777         * tests/test-call_once.c: New file, based on tests/test-once.c.
13778         * modules/mtx-tests: New file.
13780 2019-06-20  Bruno Haible  <bruno@clisp.org>
13782         thrd: Add tests.
13783         * tests/test-thrd_create.c: New file, based on
13784         tests/test-thread_create.c.
13785         * tests/test-thrd_current.c: New file, based on
13786         tests/test-thread_self.c.
13787         * modules/thrd-tests: New file.
13789 2019-06-20  Bruno Haible  <bruno@clisp.org>
13791         tss: New module.
13792         * lib/tss.c: New file.
13793         * modules/tss: New file.
13794         * doc/posix-functions/tss_create.texi: Mention the new module.
13795         * doc/posix-functions/tss_set.texi: Likewise.
13796         * doc/posix-functions/tss_get.texi: Likewise.
13797         * doc/posix-functions/tss_delete.texi: Likewise.
13799 2019-06-20  Bruno Haible  <bruno@clisp.org>
13801         cnd: New module.
13802         * lib/cnd.c: New file.
13803         * modules/cnd: New file.
13804         * doc/posix-functions/cnd_init.texi: Mention the new module.
13805         * doc/posix-functions/cnd_wait.texi: Likewise.
13806         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13807         * doc/posix-functions/cnd_signal.texi: Likewise.
13808         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13809         * doc/posix-functions/cnd_destroy.texi: Likewise.
13811 2019-06-20  Bruno Haible  <bruno@clisp.org>
13813         mtx: New module.
13814         * lib/mtx.c: New file.
13815         * modules/mtx: New file.
13816         * doc/posix-functions/call_once.texi: Mention the new module.
13817         * doc/posix-functions/mtx_init.texi: Likewise.
13818         * doc/posix-functions/mtx_lock.texi: Likewise.
13819         * doc/posix-functions/mtx_trylock.texi: Likewise.
13820         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13821         * doc/posix-functions/mtx_unlock.texi: Likewise.
13822         * doc/posix-functions/mtx_destroy.texi: Likewise.
13824 2019-06-20  Bruno Haible  <bruno@clisp.org>
13826         thrd: New module.
13827         * lib/thrd.c: New file.
13828         * m4/thrd.m4: New file.
13829         * modules/thrd: New file.
13830         * doc/posix-functions/thrd_current.texi: Mention the new module.
13831         * doc/posix-functions/thrd_detach.texi: Likewise.
13832         * doc/posix-functions/thrd_equal.texi: Likewise.
13833         * doc/posix-functions/thrd_exit.texi: Likewise.
13834         * doc/posix-functions/thrd_sleep.texi: Likewise.
13835         * doc/posix-functions/thrd_yield.texi: Likewise.
13836         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13837         AIX bug.
13838         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13839         AIX and Solaris bugs.
13841 2019-06-20  Bruno Haible  <bruno@clisp.org>
13843         threads-h: Add tests.
13844         * tests/test-threads.c: New file.
13845         * modules/threads-h-tests: New file.
13846         * tests/test-threads-c++.cc: New file.
13847         * modules/threads-h-c++-tests: New file.
13849 2019-06-20  Bruno Haible  <bruno@clisp.org>
13851         threads-h: New module.
13852         * lib/threads.in.h: New file.
13853         * m4/threads.m4: New file.
13854         * m4/yield.m4 (gl_YIELD): Update comment.
13855         * modules/threads-h: New file.
13856         * modules/yields (configure.ac): Use AC_REQUIRE.
13857         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13858         bugs.
13860 2019-06-20  Bruno Haible  <bruno@clisp.org>
13862         windows-thread: New module.
13863         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13864         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13865         * lib/glthread/thread.h: Include windows-thread.h.
13866         (gl_thread_t): Define using glwthread_thread_t.
13867         (glthread_create): Define using glwthread_thread_create.
13868         (glthread_join): Define using glwthread_thread_join.
13869         (gl_thread_self): Define using glwthread_thread_self.
13870         (gl_thread_exit): Define using glwthread_thread_exit.
13871         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13872         gl_thread_exit_func): Remove declarations.
13873         * lib/glthread/thread.c (self_key): Remove variable.
13874         (do_init_self_key, init_self_key): Remove functions.
13875         (struct gl_thread_struct): Remove type.
13876         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13877         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13878         functions.
13879         * modules/windows-thread: New file.
13880         * modules/thread (Depends-on): Add windows-thread.
13882 2019-06-20  Bruno Haible  <bruno@clisp.org>
13884         windows-tls: New module.
13885         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13886         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13887         * lib/glthread/tls.h: Include windows-tls.h.
13888         (gl_tls_key_t): Define using glwthread_tls_key_t.
13889         * modules/windows-tls: New file.
13890         * modules/tls (Depends-on): Add windows-tls.
13892 2019-06-20  Bruno Haible  <bruno@clisp.org>
13894         windows-cond: New module.
13895         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13896         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13897         * lib/glthread/cond.h: Include windows-cond.h.
13898         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13899         (gl_cond_t): Define using glwthread_cond_t.
13900         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13901         (glthread_cond_init): Define using glwthread_cond_init.
13902         (glthread_cond_wait): Define using glwthread_cond_wait.
13903         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13904         (glthread_cond_signal): Define using glwthread_cond_signal.
13905         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13906         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13907         (glthread_cond_init_func, glthread_cond_wait_func,
13908         glthread_cond_timedwait_func, glthread_cond_signal_func,
13909         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13910         declarations.
13911         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13912         types.
13913         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13914         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13915         glthread_cond_init_func, glthread_cond_wait_func,
13916         glthread_cond_timedwait_func, glthread_cond_signal_func,
13917         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13918         functions.
13919         * modules/windows-cond: New file.
13920         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13922 2019-06-20  Bruno Haible  <bruno@clisp.org>
13924         windows-timedrecmutex: New module.
13925         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13926         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13927         * modules/windows-timedrecmutex: New file.
13929 2019-06-20  Bruno Haible  <bruno@clisp.org>
13931         windows-timedmutex: New module.
13932         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13933         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13934         * modules/windows-timedmutex: New file.
13936 2019-06-20  Bruno Haible  <bruno@clisp.org>
13938         windows-recmutex: New module.
13939         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13940         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13941         * lib/glthread/lock.h: Include windows-recmutex.h.
13942         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13943         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13944         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13945         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13946         (glthread_recursive_lock_unlock): Define using
13947         glwthread_recmutex_unlock.
13948         (glthread_recursive_lock_destroy): Define using
13949         glwthread_recmutex_destroy.
13950         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13951         glthread_recursive_lock_unlock_func,
13952         glthread_recursive_lock_destroy_func): Remove declarations.
13953         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13954         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13955         glthread_recursive_lock_destroy_func): Remove functions.
13956         * modules/windows-recmutex: New file.
13957         * modules/lock (Depends-on): Add windows-recmutex.
13959 2019-06-20  Bruno Haible  <bruno@clisp.org>
13961         windows-mutex: New module.
13962         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13963         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13964         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13965         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13966         (gl_spinlock_t): Remove type.
13967         (gl_lock_t): Define using glwthread_mutex_t.
13968         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13969         (glthread_lock_init): Define using glwthread_mutex_init.
13970         (glthread_lock_lock): Define using glwthread_mutex_lock.
13971         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13972         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13973         (glthread_lock_init_func, glthread_lock_lock_func,
13974         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13975         declarations.
13976         Use glwthread_spinlock_t instead of gl_spinlock_t.
13977         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13978         GLWTHREAD_SPINLOCK_INIT.
13979         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13980         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13981         functions.
13982         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13983         gl_spinlock_t.
13984         * modules/windows-mutex: New file.
13985         * modules/lock (Depends-on): Add windows-mutex.
13987 2019-06-20  Bruno Haible  <bruno@clisp.org>
13989         windows-once: New module.
13990         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13991         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13992         * lib/glthread/lock.h: Include windows-once.h.
13993         (gl_once_t): Define using glwthread_once_t.
13994         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13995         (glthread_once): Define using glwthread_once.
13996         (glthread_once_func): Remove declaration.
13997         * lib/glthread/lock.c (glthread_once_func): Remove function.
13998         * modules/windows-once: New file.
13999         * modules/lock (Depends-on): Add windows-once.
14001 2019-06-20  Bruno Haible  <bruno@clisp.org>
14003         lock, cond: Avoid possible counter wraparound on Windows.
14004         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14005         field of the guard unchanged if it was already positive.
14006         (glthread_rwlock_rdlock_func): Likewise.
14007         (glthread_rwlock_wrlock_func): Likewise.
14008         (glthread_recursive_lock_lock_func): Likewise.
14009         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14010         (glthread_cond_timedwait_func): Likewise.
14012 2019-06-20  Bruno Haible  <bruno@clisp.org>
14014         cond: Make glthread_cond_timedwait more reliable on Windows.
14015         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14016         condition variable before looking at the current time.
14018 2019-06-20  Bruno Haible  <bruno@clisp.org>
14020         pthread_mutex_timedlock: New module.
14021         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14022         new declaration.
14023         * lib/pthread_mutex_timedlock.c: New file.
14024         * m4/pthread_mutex_timedlock.m4: New file.
14025         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14026         whether pthread_mutex_timedlock is declared.
14027         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14028         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14029         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14030         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14031         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14032         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14033         * modules/pthread_mutex_timedlock: New file.
14034         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14035         module.
14037 2019-06-20  Bruno Haible  <bruno@clisp.org>
14039         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14040         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14041         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14042         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14043         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14044         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14045         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14046         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14047         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14048         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14050 2019-06-20  Bruno Haible  <bruno@clisp.org>
14052         tls tests: Small improvements.
14053         * tests/test-tls.c: Include <stdint.h>.
14054         (worker_thread): Avoid gcc warning on 64-bit mingw.
14055         (test_tls): Pass a different id to each thread.
14056         * modules/tls-tests (Depends-on): Add stdint.
14058 2019-06-20  Bruno Haible  <bruno@clisp.org>
14060         cond tests: Simplify.
14061         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14063 2019-06-20  Bruno Haible  <bruno@clisp.org>
14065         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14066         * tests/test-lock.c (test_once): Don't reference fire_signal if
14067         !ENABLE_LOCKING.
14069 2019-06-19  Bruno Haible  <bruno@clisp.org>
14071         nanosleep: Relicense under LGPLv2+.
14072         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14073         * modules/nanosleep (License): Change to LGPLv2+.
14075 2019-06-19  Bruno Haible  <bruno@clisp.org>
14077         Reorder pieces of header in perl scripts.
14078         The desired order is
14079         - Prologue part 1 (2 lines with #!)
14080         - Program short description
14081         - Copyright and license notice
14082         - Written-by notice
14083         - Program short description (optional)
14084         - Program long description (optional)
14085         - Prologue part 2
14086         - Time stamp
14087         - Code
14088         Reported by Paul Eggert.
14089         * build-aux/announce-gen: Reorder header.
14090         * build-aux/gitlog-to-changelog: Likewise.
14091         * build-aux/useless-if-before-free: Likewise.
14092         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14093         description.
14094         * build-aux/update-copyright: Likewise. Add short description. Bump
14095         time-stamp-line-limit to 200.
14097 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14099         verify-tests: work around xlc bug
14100         Problem reported by Bruno Haible in:
14101         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14102         * tests/test-verify.c (item): Move the arithmetic inside the
14103         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14105 2019-06-16  Bruno Haible  <bruno@clisp.org>
14107         Restore Emacs time-stamp hook applicability.
14108         Reported by Darshit Shah <darnir@gnu.org>.
14109         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14110         * build-aux/announce-gen: Likewise.
14111         * build-aux/gitlog-to-changelog: Likewise.
14112         * build-aux/prefix-gnulib-mk: Likewise.
14113         * build-aux/update-copyright: Likewise.
14115 2019-06-15  Bruno Haible  <bruno@clisp.org>
14117         Fix scripts to have valid executable format on Alpine Linux.
14118         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14119         Idea by Paul Eggert.
14120         * build-aux/useless-if-before-free: Use a prologue that starts with
14121         '#!/bin/sh'.
14122         * build-aux/announce-gen: Likewise.
14123         * build-aux/gitlog-to-changelog: Likewise.
14124         * build-aux/prefix-gnulib-mk: Likewise.
14125         * build-aux/update-copyright: Likewise.
14126         * tests/test-update-copyright.sh: Update test program accordingly.
14128 2019-06-10  Bruno Haible  <bruno@clisp.org>
14130         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14131         Reported by Nikita Ermakov <arei@altlinux.org> in
14132         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14133         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14134         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14136 2019-06-10  Bruno Haible  <bruno@clisp.org>
14138         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14139         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14140         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14141         a copy of the path argument.
14142         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14143         it.
14145 2019-06-10  Bruno Haible  <bruno@clisp.org>
14147         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14148         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14149         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14150         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14151         a copy of the path argument.
14152         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14153         it.
14155 2019-06-10  Bruno Haible  <bruno@clisp.org>
14157         posix_spawn_file_actions_addfchdir: Add tests.
14158         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14159         * tests/test-posix_spawn5.c: New file.
14160         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14162 2019-06-10  Bruno Haible  <bruno@clisp.org>
14164         posix_spawn_file_actions_addfchdir: New module.
14165         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14166         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14167         union member 'fchdir_action'.
14168         * lib/spawn_faction_addfchdir.c: New file.
14169         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14170         * m4/posix_spawn_faction_addfchdir.m4: New file.
14171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14172         'posix_spawn_file_actions_addfchdir' is present and whether
14173         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14174         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14175         posix_spawn_file_actions_addfchdir is declared.
14176         (gl_SPAWN_H_DEFAULTS): Initialize
14177         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14178         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14180         * modules/spawn (Makefile.am): Substitute
14181         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14182         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14184         * modules/posix_spawn_file_actions_addfchdir: New file.
14185         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14186         signature.
14187         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14188         * doc/posix-functions/posix_spawnp.texi: Likewise.
14189         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14190         Likewise.
14192 2019-06-10  Bruno Haible  <bruno@clisp.org>
14194         doc: Document existence of posix_spawn_file_actions_addchdir module.
14195         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14196         the posix_spawn_file_actions_addchdir module.
14198 2019-06-10  Bruno Haible  <bruno@clisp.org>
14200         posix_spawn-internal: Fix module description.
14201         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14202         from here...
14203         * modules/posix_spawnp (configure.ac): ... and here...
14204         * modules/posix_spawn-internal (configure.ac): ... to here.
14206 2019-06-10  Bruno Haible  <bruno@clisp.org>
14208         doc: Update and improve documentation of glibc functions.
14209         This is a series of commits that
14210         - updates the documentation to the state of glibc 2.29,
14211         - adds references to Linux man pages and glibc documentation,
14212         - marks Linux specific functions as such.
14213         These are the commits:
14214         doc: Update after removal of crypt functions from glibc 2.28.
14215         doc: Remove mention of function vm86 (does not exist on x86_64).
14216         doc: Remove mention of functions that are gone from glibc.
14217         doc: Mention that glibc no longer provides h_errno.
14218         doc: Mention the availability of specific functions in glibc versions.
14219         doc: Mention eaccess.
14220         doc: Add references to Linux man pages.
14221         doc: Add references to glibc documentation.
14222         doc: Mention inotify_* functions.
14223         doc: Mention ppoll.
14224         doc: Mention sched_getcpu.
14225         doc: Mention sync_file_range.
14226         doc: Mention epoll_pwait.
14227         doc: Mention eventfd, eventfd_read, eventfd_write.
14228         doc: Mention signalfd.
14229         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14230         doc: Mention epoll_create1.
14231         doc: Mention getauxval.
14232         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14233         doc: Mention nextdown, nextup.
14234         doc: Mention more ISO TS 18661-1 <math.h> functions.
14235         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14236         doc: Mention getrandom, getentropy.
14237         doc: Mention strfromf, strfromd, strfroml.
14238         doc: Mention preadv2, pwritev2.
14239         doc: Mention copy_file_range.
14240         doc: Mention memfd_create.
14241         doc: Mention mlock2.
14242         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14243         doc: Mention more ISO TS 18661-1 <math.h> functions.
14244         doc: Mention renameat2.
14245         doc: Mention statx.
14246         doc: Mention the ISO C11 multithreading header and functions.
14247         doc: Mention getcpu.
14248         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14249         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14250         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14251         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14252         doc: Some glibc functions also exist on Solaris 11.
14253         doc: Some glibc functions also exist on Solaris 11.4.
14254         doc: Some glibc functions also exist on FreeBSD.
14255         doc: Some glibc functions also exist on BeOS.
14256         doc: Some glibc functions also exist on Haiku.
14257         doc: Mark functions which exist only on Linux.
14258         doc: Mark functions which exist only on Linux and illumos.
14260 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14262         copy-file: fix typo
14263         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14265         copy-file-range: simplify into a stub
14266         Based on a comment by Florian Weimer in:
14267         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14268         It turns out that Emacs (which will use this module) won’t need an
14269         emulation and I suspect other programs won’t either, because these
14270         programs will need to fall back on read+write anyway.  Perhaps I
14271         am wrong and other programs will be able to use an emulation; if
14272         so, this patch can be reverted.
14273         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14274         Just call it copy_file_range.
14275         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14276         Check via AC_LINK_IFELSE.
14277         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14279 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14281         copy-file: prefer copy_file_range
14282         * lib/copy-file.c: Do not include xalloc.h.
14283         (qcopy_file_preserving): Allocate a buffer only if
14284         copy_file_range does not suffice.  If the allocation fails
14285         don't give up; just use a small stack-based buffer.
14286         Prefer copy_file_range if it works.
14287         * modules/copy-file (Depends-on): Add copy-file-range.
14288         Remove xalloc.
14290         copy-file-range: new module
14291         * MODULES.html.sh: Add copy-file-range.
14292         * lib/copy-file-range.c, m4/copy-file-range.m4:
14293         * modules/copy-file-range: New files.
14294         * lib/unistd.in.h (copy_file_range): Declare.
14295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14296         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14297         * modules/unistd (unistd.h): Substitute them.
14299 2019-05-28  Bruno Haible  <bruno@clisp.org>
14301         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14302         Reported by KO Myung-Hun <komh78@gmail.com> in
14303         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14304         * lib/binary-io.h (__gl_setmode_check): Remove function.
14305         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14306         * lib/binary-io.c (__gl_setmode_check): Remove function.
14307         (set_binary_mode): Define here on DJGPP and EMX. Inline
14308         __gl_setmode_check. In case of a tty, don't return an error code.
14310 2019-05-28  James Youngman  <jay@gnu.org>
14312         dirent-safer: Make opendir_safer usable from C++.
14313         * lib/dirent-safer.h: use extern "C".
14315 2019-05-28  James Youngman  <jay@gnu.org>
14317         canonicalize: Make canonicalize_filename_mode usable from C++.
14318         * lib/canonicalize.h: use extern "C".
14320 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14322         prefix-gnulib-mk: Fix CPPFLAGS migration.
14323         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14324         _a part of the library name.
14326 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14328         flexmember: update comments again
14329         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14331         flexmember: update comment
14332         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14334 2019-05-20  Bruno Haible  <bruno@clisp.org>
14336         setlocale: Improve fallback on macOS.
14337         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14338         invocation.
14339         (locales_with_principal_territory): New array.
14340         (langcmp, get_main_locale_with_same_language): New functions.
14341         (locales_with_principal_language): New array.
14342         (terrcmp, get_main_locale_with_same_territory): New functions.
14343         (rpl_setlocale): When setlocale_single failed, try again with a locale
14344         that is more likely to exist. Don't warn if the environment variable
14345         SETLOCALE_VERBOSE is not set.
14347 2019-05-19  Bruno Haible  <bruno@clisp.org>
14349         localename: Fix default on macOS.
14350         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14351         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14352         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14353         HAVE_CFLOCALECOPYCURRENT.
14354         * lib/localename.h (gl_locale_name_default): Update.
14356 2019-05-19  Karl Berry  <karl@freefriends.org>
14358         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14359         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14360         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14362 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14364         maintainer-makefile: catch uses of $< in non-implicit rules
14365         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14367 2019-05-18  Bruno Haible  <bruno@clisp.org>
14369         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14370         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14371         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14372         gl_use_threads accordingly.
14374 2019-05-18  Bruno Haible  <bruno@clisp.org>
14376         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14377         Reported by Tim Rühsen in
14378         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14379         and Michele Locati in
14380         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14381         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14382         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14383         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14384         in use and regardless which threads API is chosen.
14386 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14388         close-stream, closein, closeout: simplify
14389         I noticed this opportunity for simplification while drafting a
14390         new, related module that I haven’t had time to finish yet.
14391         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14392         * modules/close-stream (Files): Remove m4/close-stream.m4.
14393         (configure.ac): Omit gl_CLOSE_STREAM.
14394         * modules/closein (Files): Remove m4/closein.m4
14395         (configure.ac): Omit gl_CLOSEIN.
14396         * modules/closeout (Files): Remove m4/closeout.m4.
14397         (configure.ac): Omit gl_CLOSEOUT.
14399 2019-05-12  Bruno Haible  <bruno@clisp.org>
14401         libtool-next-version: New program.
14402         * build-aux/libtool-next-version: New file.
14404 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14405             Bruno Haible  <bruno@clisp.org>
14407         version-etc: Ease translation.
14408         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14409         URLs and formatting newlines out of translatable string.
14411 2019-05-11  Bruno Haible  <bruno@clisp.org>
14413         gnupload: Explain how to create symlinks.
14414         * build-aux/gnupload (usage): Add an example that creates symlinks.
14416 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14418         fpucw: port to gcc -pedantic
14419         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14420         Use __extension__ if using ({ ... }).
14422         crypto/af_alg: port to strict C compilers
14423         * lib/af_alg.c: Include af_alg.h regardless, so that the
14424         compilation unit is nonempty.
14426 2019-05-10  Bruno Haible  <bruno@clisp.org>
14428         base64: Avoid false positive warning from Coverity.
14429         Reported by Kamil Dudka <kdudka@redhat.com>.
14430         Idea by Paul Eggert.
14431         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14432         '& 0x3f' to the array index expressions. This convinces Coverity that
14433         there is no out-of-bounds array reference, regardless of the input.
14435 2019-05-09  Bruno Haible  <bruno@clisp.org>
14437         gettext: Update to gettext 0.20.
14438         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14439         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14440         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14441         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14442         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14443         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14444         (configure.ac): Request infrastructure compatible with gettext 0.20.
14445         * m4/glibc2.m4: Remove file.
14446         * m4/intdiv0.m4: Remove file.
14447         * m4/intl.m4: Remove file.
14448         * m4/intldir.m4: Remove file.
14449         * m4/intmax.m4: Remove file.
14450         * m4/printf-posix.m4: Remove file.
14451         * m4/uintmax_t.m4: Remove file.
14452         * m4/gettext.m4: Update from gettext 0.20.
14453         * m4/po.m4: Likewise.
14455 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14457         verify: remove verify_true
14458         * NEWS: Mention this.
14459         * lib/verify.h (verify_true): Remove.
14460         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14462         Support C2X and C++17 static_assert
14463         C2X and C++17 finally added support for a simple, single-argument
14464         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14465         doing back in 2005.  Implement static_assert on older platforms.
14466         The only remaining advantage of ‘verify’ is a shorter name.
14467         * doc/posix-headers/assert.texi (assert.h):
14468         * doc/verify.texi (Compile-time Assertions):
14469         Modernize for C2X and C++17.
14470         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14471         New macros.
14472         (_GL_HAVE__STATIC_ASSERT): Remove.
14473         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14474         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14475         string.  All callers changed.
14476         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14477         are used.  All callers changed.
14478         (_Static_assert): Allow either 1 or 2 args, and define if
14479         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14480         !_GL_HAVE__STATIC_ASSERT.
14481         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14482         of defining if !_GL_HAVE_STATIC_ASSERT.
14483         (verify_expr, verify): Don’t bother trying to copy the expression
14484         into the diagnostic, since 1-argument static_assert doesn’t.
14485         (verify): Prefer 1-argument _Static_assert if it works.
14486         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14488 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14490         Fix _GL_HAVE__STATIC_ASSERT typo
14491         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14492         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14494 2019-05-05  Bruno Haible  <bruno@clisp.org>
14496         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14497         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14498         via Akim Demaille <akim.demaille@gmail.com>.
14499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14500         en_US.UTF-8 locale, since that is more likely to be present than an
14501         fr_FR.UTF-8 locale.
14502         * tests/test-wcwidth.c (main): Check the width of U+2202.
14503         * doc/posix-functions/wcwidth.texi: Mention the issue.
14505 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14507         Port manywarnings to GCC 9
14508         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14509         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14510         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14511         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14512         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14513         --help=warnings output.
14514         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14515         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14516         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14518 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14520         Sync lib/mktime-internal.h from glibc
14521         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14522         * lib/mktime-internal.h: Autoupdate.
14524 2019-04-28  Bruno Haible  <bruno@clisp.org>
14526         tls tests: Prevent that the test takes too long.
14527         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14528         (main): Let the test fail if it takes more than 10 minutes.
14529         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14531 2019-04-27  Bruno Haible  <bruno@clisp.org>
14533         lock tests: Prevent that the test takes too long.
14534         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14535         (main): Let the test fail if it takes more than 10 minutes.
14536         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14538 2019-04-27  Bruno Haible  <bruno@clisp.org>
14540         localename: Fix crash on mingw (regression from 2018-11-23).
14541         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14542         locale name that is null.
14544 2019-04-27  Bruno Haible  <bruno@clisp.org>
14546         Fix gcc warnings on 64-bit mode mingw.
14547         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14548         * lib/gl_array_list.c: Likewise.
14549         * lib/gl_array_map.c: Likewise.
14550         * lib/gl_array_set.c: Likewise.
14551         * lib/gl_carray_list.c: Likewise.
14552         * lib/gl_sublist.c: Likewise.
14553         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14554         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14555         * lib/gl_hash_map.c (uintptr_t): Likewise.
14556         * lib/gl_hash_set.c (uintptr_t): Likewise.
14557         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14558         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14559         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14560         * lib/iconv.c (uintptr_t): Likewise.
14561         * lib/iconv_close.c (uintptr_t): Likewise.
14562         * tests/test-lock.c: Include <stdint.h>.
14563         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14564         'long'.
14565         * modules/clean-temp (Depends-on): Add stdint.
14566         * modules/array-list (Depends-on): Likewise.
14567         * modules/array-map (Depends-on): Likewise.
14568         * modules/array-set (Depends-on): Likewise.
14569         * modules/carray-list (Depends-on): Likewise.
14570         * modules/sublist (Depends-on): Likewise.
14571         * modules/lock-tests (Depends-on): Likewise.
14573 2019-04-27  Bruno Haible  <bruno@clisp.org>
14575         error: Tweak indentation.
14576         * lib/error.c: Correct indentation.
14578 2019-04-27  Bruno Haible  <bruno@clisp.org>
14580         term-style-control: Fix gcc warning on mingw.
14581         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14582         of i.
14584 2019-04-26  Bruno Haible  <bruno@clisp.org>
14586         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14587         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14589 2019-04-26  Bruno Haible  <bruno@clisp.org>
14591         relocatable-prog: Fix gcc warning on mingw.
14592         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14593         on EMX.
14595 2019-04-02  Bruno Haible  <bruno@clisp.org>
14597         gitsub.sh: New file.
14598         * top/gitsub.sh: New file.
14600 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14602         argmatch: use void* for raw memory pointers
14603         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14604         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14605         to "values", keep char* for strings.
14607 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14609         prefix-gnulib-mk: fix the support for gnulib-po
14610         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14611         Don't touch HAVE_* variables.
14612         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14614 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14616         di-set: allow free with 'ino_map' being NULL.
14617         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14618         is NULL.  Bug introduced in commit 3703dbbe88dd.
14619         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14620         as a test.
14622 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14624         * lib/str-two-way.h: Fix comment typo.
14626 2019-04-13  Bruno Haible  <bruno@clisp.org>
14628         x-to-1: Restore ability to use original calling convention.
14629         * build-aux/x-to-1.in: Add comments. Accept the original form of
14630         HELP2MAN argument as well as the form expected since 2012-12-12.
14632 2019-04-13  Bruno Haible  <bruno@clisp.org>
14634         x-to-1: Avoid failure due to missing perl modules.
14635         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14636         needs are installed.
14638 2019-04-13  Bruno Haible  <bruno@clisp.org>
14640         openmp-init: New module.
14641         * modules/openmp-init: New file.
14642         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14643         the changes from 2019-04-09.
14645 2019-04-12  Bruno Haible  <bruno@clisp.org>
14647         signbit: Fix compilation error when gnulib's math.h exists twice.
14648         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14650 2019-04-12  Bruno Haible  <bruno@clisp.org>
14652         openmp: Fix compilation error on platforms without OpenMP.
14653         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14655 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14657         mountlist: make parsing /proc/self/mountinfo more robust
14658         Cater for the following issues with mountinfo parsing (the first
14659         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14660         in <https://bugs.gnu.org/35137>).
14661         1. The fields source, target, mntroot and fstype may contain characters
14662         like '\r'; sscanf(3) fails to read such values with the %s format
14663         specifier because it would stop at such characters.
14664         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14665         The only true separator in that file is the ' ' character.
14666         2. The source field may be an empty string, which happens e.g. with
14667         "mount -t tmpfs '' /target".
14668         3. The fstype field may contain mangled characters as well which need
14669         unescaping.
14670         * lib/mountlist.c (terminate_at_blank): Add utility function.
14671         (read_file_system_list): In the block trying to read the mountinfo file,
14672         avoid using sscanf(3) with %s format; instead, parse the above fields
14673         separated by spaces one by one.
14674         This also handles the case when the source field is an empty string.
14675         Unescape the fstype field.
14677 2019-04-09  Bruno Haible  <bruno@clisp.org>
14679         openmp: Add workaround for 32-bit programs on AIX.
14680         * lib/omp.in.h: New file.
14681         * lib/omp-init.c: New file, based on lib/nproc.c.
14682         * m4/omp_h.m4: New file.
14683         * modules/openmp (Files): Add them.
14684         (Depends-on): Add include_next, c-ctype, setenv.
14685         (configure.ac): Invoke gl_OMP_H.
14686         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14687         (Include): Mention <omp.h>.
14689 2019-04-09  Bruno Haible  <bruno@clisp.org>
14691         nproc: Fix return value for privileged processes.
14692         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14693         getpid().
14695 2019-04-07  Bruno Haible  <bruno@clisp.org>
14697         Add copyright notices in several files.
14698         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14699         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14700         * lib/libunistring.valgrind: Likewise.
14701         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14702         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14703         * lib/memchr.valgrind: Likewise.
14704         * lib/memchr2.valgrind: Likewise.
14705         * lib/rawmemchr.valgrind: Likewise.
14706         * lib/relocatable.valgrind: Likewise.
14707         * lib/strchrnul.valgrind: Likewise.
14709 2019-03-25  Bruno Haible  <bruno@clisp.org>
14711         term-style-control tests: Fix link error.
14712         Reported by Tom G. Christensen in
14713         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14714         * modules/term-style-control-tests (Makefile.am): Link
14715         test-term-style-control-hello and test-term-style-control-yes against
14716         LIBINTL.
14718 2019-03-24  Bruno Haible  <bruno@clisp.org>
14720         term-style-control: Add tests.
14721         * tests/test-term-style-control-hello.c: New file.
14722         * tests/test-term-style-control-yes.c: New file.
14723         * modules/term-style-control-tests: New file.
14725         term-style-control: New module.
14726         * lib/term-style-control.h: New file, based on libtextstyle's
14727         term-ostream.oo.h and term-ostream.oo.c.
14728         * lib/term-style-control.c: New file, based on libtextstyle's
14729         term-ostream.oo.c.
14730         * modules/term-style-control: New file.
14732 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14734         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14735         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14736         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14738 2019-03-23  Bruno Haible  <bruno@clisp.org>
14740         Support cross-compilation to musl libc.
14741         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14742         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14743         musl libc.
14744         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14745         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14746         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14747         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14748         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14749         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14750         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14751         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14752         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14753         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14754         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14755         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14756         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14757         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14758         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14759         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14760         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14761         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14764         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14765         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14766         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14767         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14769         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14770         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14771         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14772         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14773         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14774         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14775         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14776         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14777         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14778         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14779         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14780         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14781         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14782         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14783         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14784         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14785         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14786         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14788         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14789         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14790         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14791         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14792         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14793         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14794         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14795         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14796         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14797         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14798         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14799         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14800         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14801         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14802         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14803         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14804         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14806         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14807         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14808         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14809         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14811         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14812         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14813         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14814         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14815         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14816         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14817         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14818         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14819         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14820         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14823 2019-03-23  Bruno Haible  <bruno@clisp.org>
14825         posix_spawn_file_actions_*: Document musl libc bugs.
14826         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14827         the bug.
14828         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14829         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14830         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14831         cross-compiling to a musl system, guess no.
14832         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14833         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14835 2019-03-23  Bruno Haible  <bruno@clisp.org>
14837         futimens: Document musl libc bug.
14838         * doc/posix-functions/futimens.texi: Mention the bug.
14839         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14840         cross-compiling, guess no on glibc and musl systems.
14842 2019-03-23  Bruno Haible  <bruno@clisp.org>
14844         Clarify that cross-compilation guesses are guesses.
14845         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14846         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14847         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14848         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14849         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14850         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14851         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14852         gl_cv_glob_lists_symlinks.
14853         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14854         'guessing ' to ac_cv_func_malloc_0_nonnull.
14855         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14856         'guessing ' to ac_cv_func_realloc_0_nonnull.
14857         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14858         'guessing ' to gl_cv_func_poll.
14859         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14860         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14861         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14863 2019-03-23  Bruno Haible  <bruno@clisp.org>
14865         strtold: Fix typo.
14866         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14868 2019-03-23  Bruno Haible  <bruno@clisp.org>
14870         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14871         Reported by Akim Demaille.
14872         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14873         [[noreturn]] would not work, use _Noreturn instead.
14875 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14877         libtextstyle-optional: Fix compiler warnings.
14878         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14879         as unused.
14881 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14883         bitset: fix memory leaks
14884         Reported by Bruno Haible.
14885         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14886         * lib/bitset/vector.c (vbitset_free): New.
14887         (vbitset_vtable): Use it.
14889 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14891         bitset: minor changes
14892         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14893         * lib/bitset/table.c: Formatting changes.
14894         Remove useless braces.
14895         Prefer using else in cascades of if/else-if with returns.
14896         * lib/bitset/vector.c: Reduce scopes.
14898 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14900         bitset: expose bitset_resize
14901         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14902         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14903         (main): Use a variable bitset as reference, since fixed does not support resize.
14905 2019-03-19  Bruno Haible  <bruno@clisp.org>
14907         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14908         Reported by Akim Demaille.
14909         * doc/noreturn.texi: New file.
14910         * doc/gnulib.texi: Include it.
14912 2019-03-19  Bruno Haible  <bruno@clisp.org>
14914         doc: Document how to use 'static inline'.
14915         * doc/static-inline.texi: New file.
14916         * doc/gnulib.texi: Include it.
14918 2019-03-19  Bruno Haible  <bruno@clisp.org>
14920         libtextstyle-optional: Add tests.
14921         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14922         adhoc-tests/hello.c.
14923         * tests/test-libtextstyle-default.css: New file, copied from
14924         libtextstyle's adhoc-tests/hello-default.css.
14925         * modules/libtextstyle-optional-tests: New file.
14927         libtextstyle-optional: New module.
14928         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14929         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14930         * modules/libtextstyle-optional: New file.
14932 2019-03-19  Bruno Haible  <bruno@clisp.org>
14934         c-stack: Make signal handlers more reliable.
14935         * lib/c-stack.c (progname): New variable.
14936         (die): Use it.
14937         (c_stack_action): Initialize it.
14938         (segv_handler): Save and restore errno.
14940 2019-03-19  Bruno Haible  <bruno@clisp.org>
14942         Help making signal handlers more reliable.
14943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14944         _GL_ASYNC_SAFE into config.h.
14945         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14946         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14947         argument.
14948         * lib/fatal-signal.c (action_t, uninstall_handlers,
14949         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14950         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14951         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14952         _GL_ASYNC_SAFE.
14953         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14954         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14956 2019-03-18  Bruno Haible  <bruno@clisp.org>
14958         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14959         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14960         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14962 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14964         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14965         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14966         GCC 4.8.
14968 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14970         fts: minor simplification
14971         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14973 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14975         bitset, timevar: Depend on c99.
14976         Reported by Bruno Haible.
14977         * modules/bitset, modules/timevar (Depends-on): Add c99.
14979 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14981         bitset: a bit (...) more tests
14982         * tests/test-bitset.c (check_attributes): Check zero and ones.
14984 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14986         bitset: fix overflows.
14987         Reported by Bruno Haible.
14988         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14989         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14990         the bit in the array of bitset_word, so be sure to take its modulo
14991         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14992         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14994 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14996         bitset: style changes.
14997         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14998         Formatting changes.
14999         (tbitset_list): Reduce scopes.
15001 2019-03-16  Bruno Haible  <bruno@clisp.org>
15003         fatal-signal: Pass the signal number to the action.
15004         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15005         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15006         (fatal_signal_handler): Pass the signal number to the action.
15007         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15008         signal number as parameter.
15009         (create_temp_dir): Update.
15010         * lib/wait-process.c (cleanup_slaves_action): New function.
15011         (register_slave_subprocess): Update at_fatal_signal invocation.
15012         * NEWS: Mention the change.
15014 2019-03-16  Bruno Haible  <bruno@clisp.org>
15016         fatal-signal: Add function that lists the fatal signals.
15017         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15018         * lib/fatal-signal.c (get_fatal_signals): New function.
15020 2019-03-14  Bruno Haible  <bruno@clisp.org>
15022         isatty: Make it return true in Cygwin consoles on native Windows.
15023         * lib/isatty.c: Include <string.h>.
15024         (GetProcAddress): New macro.
15025         (GetNamedPipeClientProcessIdFuncType): New type.
15026         (GetNamedPipeClientProcessIdFunc): New variable.
15027         (QueryFullProcessImageNameFuncType): New type.
15028         (QueryFullProcessImageNameFunc): New variable.
15029         (initialized): New variable.
15030         (initialize): New function.
15031         (IsCygwinConsoleHandle): New function.
15032         (isatty): Invoke it.
15033         * doc/posix-functions/isatty.texi: Mention the issue.
15035 2019-03-14  Bruno Haible  <bruno@clisp.org>
15037         all: Update URLs to msdn.microsoft.com.
15038         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15039         was moved to docs.microsoft.com.
15041 2019-03-13  Bruno Haible  <bruno@clisp.org>
15043         gnulib-tool: Clarify the coding style.
15044         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15045         * gnulib-tool: Add comment about coding style.
15047 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15049         strtod: fix clash with strtold
15050         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15051         * lib/strtod.c (compute_minus_zero, minus_zero):
15052         Simplify by remving the macro / external variable,
15053         and having just a function.  User changed.  This avoids
15054         the need for an external variable that might clash.
15056 2019-03-10  Bruno Haible  <bruno@clisp.org>
15058         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15059         Reported by Eli Zaretskii <eliz@gnu.org>.
15060         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15061         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15062         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15064 2019-03-10  Bruno Haible  <bruno@clisp.org>
15066         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15067         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15068         is in use.
15069         * tests/test-printf-posix2.c: Likewise.
15071 2019-03-10  Bruno Haible  <bruno@clisp.org>
15073         uninorm tests: Free allocated memory.
15074         * tests/uninorm/test-u32-normalize-big.h
15075         (struct normalization_test_file): Remove 'const' from allocated member.
15076         (free_normalization_test_file): New declaration.
15077         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15078         memory.
15079         (free_normalization_test_file): New function.
15080         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15081         'struct normalization_test_file' contents.
15082         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15083         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15084         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15086 2019-03-10  Bruno Haible  <bruno@clisp.org>
15088         di-set: Fix memory leak.
15089         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15090         not free().
15092 2019-03-10  Bruno Haible  <bruno@clisp.org>
15094         tests: Free allocated memory.
15095         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15096         * tests/test-astrxfrm.c (main): Free allocated memory.
15097         * tests/test-bitset.c (compare, check_attributes): Free allocated
15098         bitsets.
15099         * tests/test-filenamecat.c (main): Free allocated memory.
15100         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15101         * tests/test-freadptr.c (main): Likewise.
15102         * tests/test-freadptr2.c (main): Free allocated memory.
15103         * tests/test-freadseek.c (main): Likewise.
15104         * tests/test-gc-arcfour.c (main): Close allocated context.
15105         * tests/test-gc-arctwo.c (main): Likewise.
15106         * tests/test-gc-des.c (main): Close all allocated contexts.
15107         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15108         * tests/test-pipe-filter-ii1.c (main): Likewise.
15109         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15110         allocated file actions.
15111         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15112         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15113         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15114         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15115         * tests/test-strfmon_l.c (main): Free allocated locales.
15116         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15117         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15118         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15119         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15120         * tests/unistr/test-chr.h (main): Free input32.
15121         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15123 2019-03-10  Bruno Haible  <bruno@clisp.org>
15125         tests: Prepare for using valgrind.
15126         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15127         * tests/*/*.sh: Likewise.
15128         * tests/test-freadptr.c (main): Update accordingly.
15129         * tests/test-freadseek.c (main): Likewise.
15131 2019-03-09  Bruno Haible  <bruno@clisp.org>
15133         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15134         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15135         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15136         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15137         before exiting.
15139 2019-03-09  Jim Meyering  <meyering@fb.com>
15141         test-userspec.c: don't print NULL
15142         * tests/test-userspec.c (main): A test release of gcc,
15143         9.0.1 20190310, warned that this test would attempt to
15144         print a NULL pointer via a %s printf format.  Fix that
15145         and remove the unnecessary preceding "!diag" conjunct.
15146         Also add a comment.
15148 2019-03-03  Bruno Haible  <bruno@clisp.org>
15150         getloadavg: Write NULL for the null pointer.
15151         Reported by Michal Privoznik <mprivozn@redhat.com>.
15152         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15154 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15156         alloca, tsearch-tests: Write NULL for the null pointer.
15157         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15158         * tests/test-tsearch.c (mangle_tree): Likewise.
15160 2019-03-09  Bruno Haible  <bruno@clisp.org>
15162         strfmon_l: Fix -fsanitize=address finding.
15163         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15164         <string.h>.
15165         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15166         (directive_t, directives_t): New types.
15167         (fmon_parse): New function.
15168         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15169         format string. Consume 'long double' arguments in places where the
15170         format string indicates so.
15171         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15173 2019-03-09  Bruno Haible  <bruno@clisp.org>
15175         crypto/des: Fix undefined behaviour.
15176         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15177         shift operations on 'int'.
15179 2019-03-09  Bruno Haible  <bruno@clisp.org>
15181         Fix undefined behaviour.
15182         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15183         'unsigned int', to avoid shift operations on 'int'.
15184         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15185         * tests/test-count-leading-zeros.c (main): Use a random number that has
15186         as many bits as TYPE, not only 2*15 or 2*31 bits.
15187         * tests/test-count-trailing-zeros.c (main): Likewise.
15188         * tests/test-count-one-bits.c (main): Likewise.
15189         * tests/test-memmem.c: Don't include "null-ptr.h".
15190         (main): Use zerosize_ptr() instead of null_ptr().
15191         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15193 2019-03-08  Bruno Haible  <bruno@clisp.org>
15195         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15196         Reported by Jeffrey Walton <noloader@gmail.com>.
15197         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15198         invoke memset with a zero size.
15199         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15200         Likewise.
15201         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15202         Adjust accordingly.
15204 2019-03-08  Bruno Haible  <bruno@clisp.org>
15206         unistr/*, uniconv/*: Fix undefined behaviour.
15207         Reported by Jeffrey Walton <noloader@gmail.com>.
15208         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15209         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15210         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15211         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15213 2019-03-08  Bruno Haible  <bruno@clisp.org>
15215         unistr/u8-cmp: Fix undefined behaviour.
15216         Reported by Jeffrey Walton <noloader@gmail.com>.
15217         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15219 2019-03-08  Bruno Haible  <bruno@clisp.org>
15221         unictype/numeric: Fix undefined behaviour.
15222         Reported by Jeffrey Walton <noloader@gmail.com>.
15223         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15224         on shift overflow, caught by "gcc -fsanitize=undefined".
15225         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15226         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15227         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15229 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15231         git-version-gen: fix --version copyright year
15232         * build-aux/git-version-gen, build-aux/move-if-change (version):
15233         --version output copyright year is now taken from script year,
15234         so that it no longer needs to be updated by hand.
15236 2019-03-04  Bruno Haible  <bruno@clisp.org>
15238         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15239         This approach supports relocatable installation of shared libraries
15240         which depend on other shared libraries from the same package.
15241         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15242         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15243         wrapper around the original LIBTOOL.
15244         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15245         token '@loader_path' instead of '$ORIGIN'.
15246         * build-aux/libtool-reloc: New file.
15247         * modules/relocatable-prog (Files): Add it.
15248         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15249         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15250         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15251         Makefile.am, not in configure.ac.
15253 2019-03-04  Bruno Haible  <bruno@clisp.org>
15255         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15256         * build-aux/install-reloc: Revert change.
15257         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15259 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15261         nstrftime: support the ‘+’ flag
15262         * lib/nstrftime.c (add, __strftime_internal):
15263         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15264         (__strftime_internal): New arg ‘width’.  All uses changed.
15265         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15267 2019-02-24  Bruno Haible  <bruno@clisp.org>
15269         relocatable-prog: Improve verbose output.
15270         * build-aux/install-reloc (func_verbose): Escape characters that would
15271         be interpreted by the shell.
15273 2019-02-24  Bruno Haible  <bruno@clisp.org>
15275         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15276         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15277         "sys/stat.h".
15278         * lib/lstat.c: Likewise.
15279         * lib/fstat.c: Likewise.
15280         * lib/fstatat.c: Likewise.
15282 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15284         long-options: add parse_gnu_standard_options_only
15285         Discussed in https://bugs.gnu.org/33468 .
15287         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15288         (parse_gnu_standard_options_only): Add function to process
15289         the GNU default options --help and --version and fail for
15290         any other unknown long or short option. See
15291         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15292         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15293         * modules/long-options (depends-on): Add stdbool, exitfail.
15294         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15295         syntax-check rule, add new function name.
15297 2019-02-23  Bruno Haible  <bruno@clisp.org>
15299         relocatable-prog: Update documentation.
15300         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15301         the recent changes.
15303 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15305         nstrftime: tweak arg order
15306         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15307         All callers changed.  Suggested by TAMUKI Shoichi in:
15308         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15310 2019-02-23  Bruno Haible  <bruno@clisp.org>
15312         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15313         Reported by Paul Smith <psmith@gnu.org>.
15314         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15315         (func_relativize): New function, from gnulib-tool.
15316         Handle mode 'macosx' through invocations of 'otool' and
15317         'install_name_tool'.
15318         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15319         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15320         'install-reloc' invocation with mode 'macosx'.
15322 2019-02-23  Bruno Haible  <bruno@clisp.org>
15324         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15326         Hurd with glibc >= 2.27.
15328 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15330         nstrftime: merge glibc strftime changes
15331         This incorporates:
15332         2019-02-11 Fix a few whitespace arrangement inconsistencies
15333         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15334         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15335         2019-01-11 strftime: use the "L_" macro with character literals
15336         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15337         callers changed.  Default width of %Ey is now 2.  This is needed
15338         for proper handling of Japanese dates starting on 2019-05-01.
15340 2019-02-19  Bruno Haible  <bruno@clisp.org>
15342         relocatable-prog: Use $ORIGIN trick on more platforms.
15343         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15344         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15345         Solaris >= 10, Haiku. But don't use it on Android.
15346         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15347         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15349 2019-02-19  Bruno Haible  <bruno@clisp.org>
15351         progreloc: Speed up executable lookup on various platforms.
15352         * lib/progreloc.c: Include <errno.h>.
15353         (safe_read, full_read): New functions.
15354         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15355         prefer the information from the /proc file system to a PATH search.
15357 2019-02-19  Bruno Haible  <bruno@clisp.org>
15359         progreloc: Simplify code for Android.
15360         * lib/progreloc.c (executable_fd): Don't define on Android.
15361         (maybe_executable, find_executable): Don't use executable_fd on Android.
15363 2019-02-15  Bruno Haible  <bruno@clisp.org>
15365         gnulib-tool: Support --import with just a few tests, not --with-tests.
15366         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15367         'inctests' when generating files; use 'inctests' only for computing the
15368         transitive closure.
15370 2019-02-14  Bruno Haible  <bruno@clisp.org>
15372         gnulib-tool: Improve handling of multiple --local-dir options.
15373         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15374         options work.
15375         * gnulib-tool (func_path_prepend): Remove function.
15376         (func_path_foreach): Make IFS handling more robust.
15377         (local_gnulib_path): Collect --local-dir values using func_path_append,
15378         not func_path_prepend.
15379         (func_determine_path_separator): Make IFS handling more robust.
15380         (func_lookup_file_cb): New function.
15381         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15382         func_lookup_local_file. Apply the patches in the reverse order of their
15383         origin in $local_gnulib_path.
15384         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15385         * NEWS: Mention that the first --local-dir option is the one with
15386         highest priority.
15388 2019-02-10  Bruno Haible  <bruno@clisp.org>
15390         libtextstyle: New module.
15391         * m4/libtextstyle.m4: New file.
15392         * modules/libtextstyle: New file.
15394 2019-02-05  Bruno Haible  <bruno@clisp.org>
15396         declared.sh: Fix bug with variables of pointer type.
15397         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15398         before the symbol to be omitted if the preceding character is a '*'.
15400 2019-02-04  Bruno Haible  <bruno@clisp.org>
15402         Add script for running tests under valgrind.
15403         * build-aux/run-test: New file, from GNU libunistring.
15404         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15405         as well.
15407 2019-02-04  Bruno Haible  <bruno@clisp.org>
15409         declared.sh: Fix --version output.
15410         * build-aux/declared.sh (func_version): Update package name.
15412 2019-02-03  Bruno Haible  <bruno@clisp.org>
15414         Add script for determining the set of symbols to export from a library.
15415         * build-aux/declared.sh: New file, from GNU libunistring.
15416         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15417         Mention it.
15419 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15421         vla: add commentary about VLA_ELEMS
15422         * lib/vla.h (VLA_ELEMS): Add commentary,
15423         some inspired by Bruno Haible’s proposal in:
15424         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15426         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15427         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15428         assume the C99 signatures for strtod and strtold.  Programs that
15429         require stricter adherence to C99 should also use the strtod and
15430         strtold modules as needed, and we no longer need the
15431         HAVE_C99_STRTOLD macro.
15432         * NEWS: Mention this.
15433         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15434         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15435         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15436         (Files): Remove m4/c-strtod.m4.
15437         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15438         exists.
15440 2019-02-02  Bruno Haible  <bruno@clisp.org>
15442         fma: Improve code style.
15443         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15445 2019-02-02  Colin Watson  <cjwatson@debian.org>
15447         *-map tests: Fix compilation error.
15448         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15449         * tests/test-hash_map.c: Likewise.
15450         * tests/test-linkedhash_map.c: Likewise.
15452 2019-01-31  Bruno Haible  <bruno@clisp.org>
15454         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15455         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15456         GNULIB_defined_strtold_function): New macros.
15457         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15458         (STRTOD): Ignore HAVE_C99_STRTOLD.
15459         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15460         deemed buggy. But do use it on platforms where uselocale exists and is
15461         usable.
15462         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15463         deemed buggy. On platforms where uselocale exists and is usable, use
15464         uselocale and strtod/strtold.
15465         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15466         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15467         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15468         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15469         (Depends-on): Add strtod.
15470         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15471         (Depends-on): Add strtold.
15473 2019-01-31  Bruno Haible  <bruno@clisp.org>
15475         strtod, strtold: Use the locale's decimal point.
15476         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15477         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15478         (parse_number): Add a radixchar argument. Use it instead of '.'.
15479         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15480         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15481         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15482         * tests/test-strtod1.c: New file.
15483         * tests/test-strtod1.sh: New file.
15484         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15485         locale-fr.m4 and its dependencies.
15486         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15487         (Makefile.am): Arrange to compile test-strtod1.c and run
15488         test-strtod1.sh.
15489         * tests/test-strtold1.c: New file.
15490         * tests/test-strtold1.sh: New file.
15491         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15492         locale-fr.m4 and its dependencies.
15493         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15494         (Makefile.am): Arrange to compile test-strtold1.c and run
15495         test-strtold1.sh.
15497 2019-01-31  Bruno Haible  <bruno@clisp.org>
15499         strtod, strtold tests: Simplify tests.
15500         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15501         * tests/test-strtold.c (main): Likewise.
15503 2019-01-31  Bruno Haible  <bruno@clisp.org>
15505         strtod, strtold: Avoid unnecessary rounding errors.
15506         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15507         decimal to DOUBLE conversion.
15509 2019-01-31  Bruno Haible  <bruno@clisp.org>
15511         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15512         * lib/strtod.c (STRTOD): When there is an extra character after the
15513         exponent marker 'p', reparse the number.
15514         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15515         * doc/posix-functions/strtold.texi: Likewise.
15517 2019-01-29  Bruno Haible  <bruno@clisp.org>
15519         strtold: Add tests.
15520         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15521         * modules/strtold-tests: New file.
15523 2019-01-29  Bruno Haible  <bruno@clisp.org>
15525         strtold: New module.
15526         * lib/stdlib.in.h (strtold): New declaration.
15527         * lib/strtold.c: New file.
15528         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15529         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15530         USE_LDEXP): New macros.
15531         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15532         USE_LONG_DOUBLE.
15533         (underlying_strtod): Remove function. Replace with some macros.
15534         Re-add the code for a missing underlying function that was removed on
15535         2013-02-19.
15536         * m4/strtold.m4: New file.
15537         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15538         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15539         REPLACE_STRTOLD.
15540         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15541         REPLACE_STRTOLD.
15542         * modules/strtold: New file.
15543         * doc/posix-functions/strtold.texi: Document the new module.
15545 2019-01-29  Bruno Haible  <bruno@clisp.org>
15547         strtod: Fix compilation error on IRIX 6.5.
15548         * modules/strtod (Depends-on): Add 'math'.
15550 2019-01-28  Bruno Haible  <bruno@clisp.org>
15552         Fix build error when building a shared libunistring on Android.
15553         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15554         (main): Add 'volatile', to defeat a GCC optimization that would
15555         eliminate the reference.
15556         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15557         (main): Add 'volatile', to defeat a GCC optimization that would
15558         eliminate the reference.
15559         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15560         (main): Add 'volatile', to defeat a GCC optimization that would
15561         eliminate the reference.
15562         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15563         (main): Add 'volatile', to defeat a GCC optimization that would
15564         eliminate the reference.
15566 2019-01-27  Bruno Haible  <bruno@clisp.org>
15568         Avoid build errors due to wrong references between modules.
15569         * lib/uninorm/canonical-decomposition.c: Include
15570         "uninorm/decomposition-table.h", not "decomposition-table.h".
15571         * lib/uninorm/decomposition.c: Likewise.
15572         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15573         not "decompose-internal.h".
15574         * lib/uninorm/u16-normalize.c: Likewise.
15575         * lib/uninorm/u32-normalize.c: Likewise.
15576         * lib/uninorm/uninorm-filter.c: Likewise.
15577         * lib/uninorm/nfkc.c: Likewise.
15578         * lib/uninorm/nfkd.c: Likewise.
15579         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15580         "caseprop.h".
15581         * lib/unicase/u8-ct-totitle.c: Likewise.
15582         * lib/unicase/u8-prefix-context.c: Likewise.
15583         * lib/unicase/u8-suffix-context.c: Likewise.
15584         * lib/unicase/u16-casemap.c: Likewise.
15585         * lib/unicase/u16-ct-totitle.c: Likewise.
15586         * lib/unicase/u16-prefix-context.c: Likewise.
15587         * lib/unicase/u16-suffix-context.c: Likewise.
15588         * lib/unicase/u32-casemap.c: Likewise.
15589         * lib/unicase/u32-ct-totitle.c: Likewise.
15590         * lib/unicase/u32-prefix-context.c: Likewise.
15591         * lib/unicase/u32-suffix-context.c: Likewise.
15592         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15593         "unicasemap.h".
15594         * lib/unicase/u8-toupper.c: Likewise.
15595         * lib/unicase/u8-ct-tolower.c: Likewise.
15596         * lib/unicase/u8-ct-toupper.c: Likewise.
15597         * lib/unicase/u16-tolower.c: Likewise.
15598         * lib/unicase/u16-toupper.c: Likewise.
15599         * lib/unicase/u16-ct-tolower.c: Likewise.
15600         * lib/unicase/u16-ct-toupper.c: Likewise.
15601         * lib/unicase/u32-tolower.c: Likewise.
15602         * lib/unicase/u32-toupper.c: Likewise.
15603         * lib/unicase/u32-ct-tolower.c: Likewise.
15604         * lib/unicase/u32-ct-toupper.c: Likewise.
15605         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15606         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15607         * lib/unicase/u16-ct-casefold.c: Likewise.
15608         * lib/unicase/u32-ct-casefold.c: Likewise.
15610 2019-01-27  Bruno Haible  <bruno@clisp.org>
15612         gperf: Fix error when this module is required by some test module.
15613         * modules/gperf (Applicability): Set to 'all'.
15615 2019-01-27  Bruno Haible  <bruno@clisp.org>
15617         tmpfile: Add support for Android.
15618         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15619         works.
15620         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15621         Android.
15622         * modules/tmpfile (Depends-on): Add 'stdbool'.
15623         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15624         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15626 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15628         bitsetv: allow free on NULL.
15629         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15631 2019-01-27  Bruno Haible  <bruno@clisp.org>
15633         test-framework-sh: Improve maintainability.
15634         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15636 2019-01-27  Bruno Haible  <bruno@clisp.org>
15638         tests: Don't assume that /tmp exists.
15639         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15640         * tests/test-copy-acl-1.sh: Likewise.
15641         * tests/test-file-has-acl-1.sh: Likewise.
15642         * tests/test-copy-file-1.sh: Likewise.
15644 2019-01-27  Bruno Haible  <bruno@clisp.org>
15646         tests: Accommodate a shell that is not in /bin/sh.
15647         * tests/init.sh (setup_): Set srcdir and builddir.
15648         (BOURNE_SHELL): New variable.
15649         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15650         * modules/file-has-acl-tests (Depends-on): Likewise.
15651         * modules/copy-file-tests (Depends-on): Likewise.
15652         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15653         scripts through $BOURNE_SHELL.
15654         * tests/test-set-mode-acl-2.sh: Likewise.
15655         * tests/test-copy-acl-1.sh: Likewise.
15656         * tests/test-copy-acl-2.sh: Likewise.
15657         * tests/test-file-has-acl-1.sh: Likewise.
15658         * tests/test-file-has-acl-2.sh: Likewise.
15659         * tests/test-copy-file-1.sh: Likewise.
15660         * tests/test-copy-file-2.sh: Likewise.
15661         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15662         invoker.
15663         * tests/test-copy-acl.sh (builddir): Likewise.
15664         * tests/test-file-has-acl.sh (builddir): Likewise.
15665         * tests/test-copy-file.sh (builddir): Likewise.
15666         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15667         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15668         * tests/test-vc-list-files-git.sh: Likewise.
15670 2019-01-27  Bruno Haible  <bruno@clisp.org>
15672         tests: Fix some "unused variable" warnings.
15673         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15674         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15675         * tests/test-striconveh.c (main): Move some variable into the
15676         '#if HAVE_ICONV'.
15677         * tests/test-striconveha.c (main): Likewise.
15678         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15679         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15680         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15681         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15682         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15683         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15684         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15685         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15686         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15687         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15688         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15689         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15690         * tests/test-tsearch.c (main): Move some variable into the
15691         '#if HAVE_INITSTATE'.
15693 2019-01-27  Bruno Haible  <bruno@clisp.org>
15695         unigbrk/uc-grapheme-breaks: Fix build failure.
15696         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15697         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15699 2019-01-27  Bruno Haible  <bruno@clisp.org>
15701         mountlist: Merge two .m4 files.
15702         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15703         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15704         * m4/ls-mntd-fs.m4: Remove file.
15705         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15707 2019-01-27  Bruno Haible  <bruno@clisp.org>
15709         tests: Enable Linux specific tests on Android.
15710         * tests/test-flock.c (main): Treat Android like Linux.
15711         * tests/test-openat-safer.c (main): Likewise.
15713 2019-01-27  Bruno Haible  <bruno@clisp.org>
15715         relocatable-prog: Use Linux code on Android.
15716         * lib/progreloc.c: Treat Android like Linux.
15718 2019-01-26  Bruno Haible  <bruno@clisp.org>
15720         getloadavg: Add support for Android.
15721         * lib/getloadavg.c: Treat Android like Linux.
15723 2019-01-26  Bruno Haible  <bruno@clisp.org>
15725         vma-iter: Add support for Android.
15726         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15727         * lib/vma-iter.c: Treat Android like Linux.
15728         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15730 2019-01-26  Bruno Haible  <bruno@clisp.org>
15732         fts: Optimize on Android.
15733         * lib/fts.c: Treat Android like Linux.
15735 2019-01-26  Bruno Haible  <bruno@clisp.org>
15737         fts: Add support for Android.
15738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15739         defined by this module and the ones in libc.
15740         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15742 2019-01-26  Bruno Haible  <bruno@clisp.org>
15744         mountlist: Use Linux code on Android.
15745         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15746         (unescape_tab, read_file_system_list): Enable Linux code on Android
15747         as well.
15748         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15749         and endmntent.
15750         * modules/mountlist (Depends-on): Add 'getline'.
15752 2019-01-26  Bruno Haible  <bruno@clisp.org>
15754         localename tests: Fix test failure on Android.
15755         * modules/localename-tests (Depends-on): Add 'setlocale'.
15757 2019-01-26  Bruno Haible  <bruno@clisp.org>
15759         mountlist: Port better to Android.
15760         * lib/mountlist.c (MOUNTED): Redefine on Android.
15761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15762         Android.
15764 2019-01-26  Bruno Haible  <bruno@clisp.org>
15766         striconveh: Fix use of uninitialized iconv_t.
15767         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15768         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15769         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15771 2019-01-26  Bruno Haible  <bruno@clisp.org>
15773         nonblocking-socket-tests: Fix test failure on Android 4.3.
15774         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15775         also on Android.
15777 2019-01-26  Bruno Haible  <bruno@clisp.org>
15779         sh-filename: Add support for Android 4.3.
15780         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15782 2019-01-26  Bruno Haible  <bruno@clisp.org>
15784         ptsname_r: Work around bug on Android 4.3.
15785         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15786         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15787         correct.
15788         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15789         is defined, just fix the return value.
15790         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15791         The behaviour of musl libc is nothing to be "fixed", since it is
15792         compliant with the next POSIX standard.
15794 2019-01-26  Bruno Haible  <bruno@clisp.org>
15796         ttyname_r: Work around bug on Android 4.3.
15797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15798         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15799         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15800         * doc/posix-functions/ttyname.texi: Likewise.
15802 2019-01-25  Bruno Haible  <bruno@clisp.org>
15804         getprogname: Port to Android 4.3.
15805         * lib/getprogname.c (getprogname): On Android, take only the last
15806         component of __progname.
15808 2019-01-25  Bruno Haible  <bruno@clisp.org>
15810         wcrtomb: Work around bug on Android 4.3.
15811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15812         the C locale.
15813         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15814         which does not have the 'wctomb' function.
15815         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15816         * tests/test-wcrtomb.c (main): Accept argument '5'.
15817         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15819 2019-01-25  Bruno Haible  <bruno@clisp.org>
15821         setlocale: Work around bug on Android 4.3.
15822         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15823         the "C" locale.
15824         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15825         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15827 2019-01-24  Bruno Haible  <bruno@clisp.org>
15829         memchr: Work around bug on Android <= 5.0.
15830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15831         * doc/posix-functions/memchr.texi: Mention the Android bug.
15833 2019-01-24  Bruno Haible  <bruno@clisp.org>
15835         random: Fix compilation error on Android 4.3.
15836         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15837         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15838         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15839         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15840         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15842         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15843         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15844         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15845         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15846         REPLACE_INITSTATE, REPLACE_SETSTATE.
15847         * doc/posix-functions/random.texi: Correct the description of the
15848         situation on Android.
15849         * doc/posix-functions/srandom.texi: Likewise.
15850         * doc/posix-functions/rand.texi: Likewise.
15851         * doc/posix-functions/srand.texi: Likewise.
15853 2019-01-24  Bruno Haible  <bruno@clisp.org>
15855         mbtowc: Fix compilation error on Android 4.3.
15856         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15857         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15858         HAVE_MBTOWC.
15859         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15860         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15861         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15862         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15863         * doc/posix-functions/mbtowc.texi: Mention the change.
15865 2019-01-24  Bruno Haible  <bruno@clisp.org>
15867         fdatasync: Fix compilation error on Android 4.3.
15868         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15869         test whether fdatasync() exists.
15871 2019-01-24  Bruno Haible  <bruno@clisp.org>
15873         unlinkat: Fix compilation error on Android 4.3.
15874         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15875         also on Android.
15876         * doc/posix-functions/unlinkat.texi: Mention the issue.
15878 2019-01-24  Bruno Haible  <bruno@clisp.org>
15880         renameat: Fix compilation error on Android 4.3.
15881         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15882         * doc/posix-functions/renameat.texi: Mention the issue.
15884 2019-01-24  Bruno Haible  <bruno@clisp.org>
15886         fchownat: Fix compilation error on Android 4.3.
15887         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15888         use.
15889         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15890         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15891         * doc/posix-functions/fchownat.texi: Mention the issue.
15893 2019-01-23  Bruno Haible  <bruno@clisp.org>
15895         gnulib-tool: Support running testdirs on Android.
15896         * build-aux/test-driver.diff: New file.
15897         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15898         build-aux/test-driver after running automake.
15900 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15902         relocatable-prog: avoid warnings from Automake
15903         * modules/relocatable-prog: Don't declare PHONY dependencies in
15904         Automake conditionals.
15906 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15908         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15909         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15911 2019-01-23  Bruno Haible  <bruno@clisp.org>
15913         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15914         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15915         preceding -Wl,--as-needed option. Don't check whether the linker
15916         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15918 2019-01-23  Bruno Haible  <bruno@clisp.org>
15920         thread: Force linking with -lpthread, even when --as-needed is in use.
15921         Reported by Richard W.M. Jones <rjones@redhat.com> in
15922         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15923         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15925 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15926             Bruno Haible  <bruno@clisp.org>
15928         relocatable: avoid compiler warnings (-Wshadow)
15929         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15930         to avoid name collisions with global variables.
15932 2019-01-22  Bruno Haible  <bruno@clisp.org>
15934         vasnprintf: Don't use %n on Android.
15935         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15936         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15937         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15939 2019-01-22  Bruno Haible  <bruno@clisp.org>
15941         *printf: Support cross-compilation to Android.
15942         * m4/printf.m4: Add cross-compilation guesses for Android.
15944 2019-01-21  Bruno Haible  <bruno@clisp.org>
15946         diacrit: Mark deprecated.
15947         * modules/diacrit (Status, Notice): Mark as deprecated.
15948         * NEWS: Mention it.
15950 2019-01-20  Bruno Haible  <bruno@clisp.org>
15952         rintl: Override broken implementation on NetBSD.
15953         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15954         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15955         REPLACE_RINTL.
15956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15957         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15958         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15959         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15961 2019-01-20  Bruno Haible  <bruno@clisp.org>
15963         log10l: Work around inaccurate implementation on NetBSD.
15964         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15965         * lib/log10l.c: Comment out too simplistic override.
15966         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15968 2019-01-20  Bruno Haible  <bruno@clisp.org>
15970         logl: Work around inaccurate implementation on NetBSD.
15971         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15972         * lib/logl.c: Comment out unused code.
15973         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15975 2019-01-20  Bruno Haible  <bruno@clisp.org>
15977         expm1l: Work around inaccurate implementation on NetBSD.
15978         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15979         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15980         REPLACE_EXPM1L.
15981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15982         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15983         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15984         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15986 2019-01-20  Bruno Haible  <bruno@clisp.org>
15988         expl: Work around inaccurate implementation on NetBSD.
15989         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15990         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15991         REPLACE_EXPL.
15992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15993         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15994         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15995         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15997 2019-01-20  Bruno Haible  <bruno@clisp.org>
15999         exp2l: Work around inaccurate implementation on NetBSD.
16000         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16001         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16003 2019-01-20  Bruno Haible  <bruno@clisp.org>
16005         floor, floorl: Avoid autoconf warnings.
16006         * modules/floor (configure.ac): Use AC_REQUIRE.
16007         * modules/floorl (configure.ac): Likewise.
16009 2019-01-20  Bruno Haible  <bruno@clisp.org>
16011         Defeat current GCC optimizations in math autoconf tests.
16012         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16013         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16014         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16015         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16016         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16017         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16018         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16019         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16020         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16021         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16022         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16023         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16024         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16025         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16026         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16027         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16028         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16029         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16030         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16031         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16032         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16033         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16034         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16035         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16036         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16037         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16038         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16039         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16040         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16041         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16042         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16043         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16044         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16046         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16047         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16048         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16051 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16053         gettext: support disabling use of VLAs
16054         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16056 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16058         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16059         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16061 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16063         fcntl: Fix syntax error (regression from 2018-10-05).
16064         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16066 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16068         relocatable: improve documentation.
16069         * doc/relocatable-maint.texi (Supporting Relocation): For
16070         substitutions performed by config.status, we need more variables
16071         (for instance datarootdir defaults to '${prefix}/share' so we need
16072         prefix).
16074 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16076         backup: update dependencies
16077         * modules/backup-rename (Depends-on): It now depends on opendirat
16078         instead of opendir.  It also uses stdint, and xalloc-oversized.
16079         But no longer dirfd.
16080         * modules/backupfile (Depends-on): Add xalloc-oversized.
16082 2019-01-13  Bruno Haible  <bruno@clisp.org>
16084         getcwd: Fix test failure when building on a Linux 9p file system.
16085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16086         EINVAL from mkdir like ENAMETOOLONG.
16087         * tests/test-getcwd.c (test_long_name): Likewise.
16089 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16091         Fix typos found by codespell.
16092         * lib/*.[hc]: Fix typos in comments.
16093         * pygnulib/*.py: Fix typos in error messages and comments.
16095 2019-01-12  Bruno Haible  <bruno@clisp.org>
16097         doc: Fix documentation about container data types.
16098         Reported by Werner Lemberg <wl@gnu.org>.
16099         * doc/containers.texi (Container data types): Fix typo.
16101 2019-01-10  Bruno Haible  <bruno@clisp.org>
16103         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16104         Reported by Reuben Thomas <rrt@sc3d.org>.
16105         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16107 2019-01-06  Bruno Haible  <bruno@clisp.org>
16109         maintainer-makefile: Make the configure.ac section optional.
16110         * top/maint.mk (GREP, SED): Define if not defined.
16112 2019-01-06  Bruno Haible  <bruno@clisp.org>
16114         localename: Assume setlocale function.
16115         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16116         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16118 2019-01-06  Bruno Haible  <bruno@clisp.org>
16120         doc: Add documentation about container data types.
16121         * doc/containers.texi: New file.
16122         * doc/gnulib.texi (Particular Modules): Include it.
16124 2019-01-06  Bruno Haible  <bruno@clisp.org>
16126         doc: Update documentation about 'progname' module.
16127         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16128         title. Rewrite.
16129         * doc/gnulib.texi (Particular Modules): Update.
16131 2019-01-06  Bruno Haible  <bruno@clisp.org>
16133         doc: Document the xstdopen and *-safer modules.
16134         * doc/xstdopen.texi: New file.
16135         * doc/gnulib.texi (Particular Modules): Include it.
16137 2019-01-06  Bruno Haible  <bruno@clisp.org>
16139         xstdopen: Add tests.
16140         * tests/test-xstdopen.c: New file.
16141         * tests/test-xstdopen.sh: New file.
16142         * modules/xstdopen-tests: New file.
16144         xstdopen: New module.
16145         * lib/xstdopen.h: New file.
16146         * lib/xstdopen.c: New file.
16147         * modules/xstdopen: New file.
16149 2019-01-06  Bruno Haible  <bruno@clisp.org>
16151         stdopen: Fix compilation error with IRIX cc.
16152         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16154 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16156         xfreopen need not include stdio--.h
16157         * lib/xfreopen.c: Do not include stdio--.h.
16159         xfreopen need not depend on freopen-safer
16160         * modules/xfreopen (Depends-on):
16161         Depend on freopen, not freopen-safer.
16163         stdopen: modernize and simplify
16164         * lib/stdopen.c: Update copyright date
16165         Do not include sys/types.h; no longer needed these days.
16166         (stdopen): Use C99-style decl in loop.  Return int errno
16167         value, rather than just a bool.  Do not worry about fd mismatches,
16168         since the caller cares only if 0, 1, 2 are occupied.
16169         * lib/stdopen.h: No need to include <stdbool.h>.
16170         * m4/stdopen.m4: Remove.
16171         * modules/stdopen: New file.
16173         stdopen: copy from last use in coreutils
16174         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16175         New files, taken from their last commit in coreutils
16176         2007-07-23T12:35:58Z!jim@meyering.net
16177         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16179 2019-01-05  Bruno Haible  <bruno@clisp.org>
16181         argp: Don't pass an invalid argument to dgettext().
16182         Reported by He X <xw897002528@gmail.com>.
16183         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16184         dgettext().
16186 2019-01-05  Bruno Haible  <bruno@clisp.org>
16188         argp: Don't pass an invalid argument to dgettext().
16189         Reported by He X <xw897002528@gmail.com>.
16190         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16191         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16192         dgettext().
16194 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16196         stdioext: port to newer 32-bit Android
16197         Problem reported by Tom Yan in:
16198         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16199         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16200         (fp_) [__ANDROID__]: Use it.
16202 2019-01-04  Bruno Haible  <bruno@clisp.org>
16204         lock: Fix link error with --enable-threads=pth.
16205         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16206         Mark as weak.
16208 2019-01-04  Bruno Haible  <bruno@clisp.org>
16210         Fix link errors in unit tests.
16211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16212         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16213         * modules/array-map-tests (Makefile.am): Link test-array_map against
16214         libintl.
16215         * modules/array-set-tests (Makefile.am): Link test-array_set against
16216         libintl.
16217         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16218         libintl.
16219         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16220         libintl.
16221         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16222         against libintl.
16223         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16224         against libintl.
16226 2019-01-04  Bruno Haible  <bruno@clisp.org>
16228         Fix incorrect 'Link' sections.
16229         * modules/regex (Link): Mention the link requirement of module 'lock'.
16230         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16232 2019-01-04  Bruno Haible  <bruno@clisp.org>
16234         Fix some 'Link' sections.
16235         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16236         dependency.
16237         * modules/getaddrinfo (Link): Likewise.
16239 2019-01-04  Bruno Haible  <bruno@clisp.org>
16241         Remove redundant 'Link' sections.
16242         * modules/canon-host (Link): Remove section.
16243         * modules/timevar (Link): Likewise.
16245 2019-01-04  Bruno Haible  <bruno@clisp.org>
16247         Remove incorrect 'Link' sections.
16248         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16249         the dependencies instead.
16250         * modules/crypto/md5 (Link): Likewise.
16251         * modules/crypto/sha1 (Link): Likewise.
16252         * modules/crypto/sha256 (Link): Likewise.
16253         * modules/crypto/sha512 (Link): Likewise.
16254         * modules/faccessat (Link): Likewise.
16255         * modules/fdutimensat (Link): Likewise.
16256         * modules/iconv_open-utf (Link): Likewise.
16257         * modules/propername (Link): Likewise.
16258         * modules/qacl (Link): Likewise.
16259         * modules/unicodeio (Link): Likewise.
16260         * modules/utimecmp (Link): Likewise.
16261         * modules/utimensat (Link): Likewise.
16262         * modules/xstriconv (Link): Likewise.
16263         * modules/xstriconveh (Link): Likewise.
16265 2019-01-04  Bruno Haible  <bruno@clisp.org>
16267         gnulib-tool: New option --extract-recursive-link-directive.
16268         * gnulib-tool (func_usage): Document the new options
16269         --extract-recursive-dependencies, --extract-recursive-link-directive.
16270         (func_verify_module): Document output variables.
16271         (func_get_dependencies_recursively): New function.
16272         (func_get_link_directive_recursively): New function.
16273         Use them to implement the new options
16274         --extract-recursive-dependencies, --extract-recursive-link-directive.
16275         * doc/gnulib-tool.texi (Link-time requirements): New section.
16277 2019-01-04  Bruno Haible  <bruno@clisp.org>
16279         Clarify meaning of 'Link' section in module description.
16280         * doc/gnulib.texi (Module description): Clarify the meaning of the
16281         'Link' section versus the one of the dependencies.
16282         * NEWS: Mention the change.
16284 2019-01-04  Bruno Haible  <bruno@clisp.org>
16286         pselect: Fix module description.
16287         * modules/pselect (Link): Put one link option per line.
16289 2019-01-04  Bruno Haible  <bruno@clisp.org>
16291         cosl: Fix module description.
16292         * modules/cosl (Link): Fix typo.
16293         * modules/mathl (configure.ac): Likewise.
16295 2019-01-04  Bruno Haible  <bruno@clisp.org>
16297         c-xvasprintf: Fix module dependencies.
16298         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16300 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16302         bootstrap: die when some submodules are not initialized
16303         * build-aux/bootstrap: Make sure all submodules are initialized.
16305 2019-01-04  Bruno Haible  <bruno@clisp.org>
16307         bitsetv: Fix module dependencies.
16308         * lib/bitsetv.c: Include xalloc.h.
16309         * modules/bitsetv (Depends-on): Add 'xalloc'.
16311 2019-01-04  Bruno Haible  <bruno@clisp.org>
16313         xmemdup0: Remove redundant code.
16314         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16316 2019-01-04  Bruno Haible  <bruno@clisp.org>
16318         backupfile: Fix module dependencies.
16319         * modules/backupfile (Depends-on): Add 'xalloc'.
16321 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16323         bitset, crypto/gc: fix conflicts with Solaris 11
16324         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16325         avoid clash with Solaris 11 <sys/bitset.h>.
16326         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16327         with Solaris 11 <xorg/gc.h>.
16329 2019-01-04  Bruno Haible  <bruno@clisp.org>
16331         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16332         Reported by Andy Fiddaman <andy@omniosce.org>.
16333         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16335 2019-01-03  Eric Blake  <eblake@redhat.com>
16337         maintainer-makefile: fix typo in previous patch
16338         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16339         of Roman's work.
16341 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16343         maintainer-makefile: prefer $(GREP) over grep
16344         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16345         defined.
16346         * top/maint.mk: Use it everywhere.
16348         maintainer-makefile: split long argument lines
16349         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16350         it would be too long for exec limits on BSD.
16352 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16354         mkfifo: bring back HAVE_MKFIFO macro
16355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16356         Problem reported by Andrew Janke in:
16357         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16359 2018-12-21  Bruno Haible  <bruno@clisp.org>
16361         Assume Autoconf >= 2.63.
16362         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16363         versions < 2.60.
16365 2018-12-21  Bruno Haible  <bruno@clisp.org>
16367         memcmp: Mention the clang bug.
16368         * tests/test-memcmp.c: Add comment about a known test failure.
16369         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16371 2018-12-20  Jim Meyering  <meyering@fb.com>
16373         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16374         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16375           echo '123-x'|LC_ALL=C grep -E '.\bx'
16376         The goal is to revert the first, but reverting it requires to restore
16377         the function deleted in the second. I ran this to restore the deleted
16378         function:
16379           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16380             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16381             | patch -R -p1
16382         * lib/dfa.c (charclass_context): Restore deleted function.
16383         Reverting the primary commit removes this change:
16384         dfa: Simplify a building state
16385         * lib/dfa.c (build_state): Simplify a building state.
16387 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16389         version-etc: allow zero authors
16390         * lib/version-etc.c (version_etc_arn): If no authors are given,
16391         omit authorship info instead of dumping core.
16393 2018-12-19  Bruno Haible  <bruno@clisp.org>
16395         lchown tests: Be more permissive regarding errno values.
16396         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16397         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16398         alternative to ENOSYS.
16399         * modules/lchown-tests (Depends-on): Add 'errno'.
16400         * modules/fchownat-tests (Depends-on): Likewise.
16402 2018-12-18  Bruno Haible  <bruno@clisp.org>
16404         duplocale: Avoid test failure on AIX 7.
16405         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16406         (configure.ac): Invoke gt_FUNC_USELOCALE.
16407         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16408         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16409         works.
16411 2018-12-18  Bruno Haible  <bruno@clisp.org>
16413         localename: Fix test failure on AIX 7.
16414         Reported by Assaf Gordon in
16415         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16416         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16417         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16418         instead of ac_cv_func_uselocale.
16419         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16420         HAVE_USELOCALE.
16421         * lib/localename-table.h: Likewise.
16422         * lib/localename-table.c: Likewise.
16423         * tests/test-localename.c: Likewise.
16424         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16426 2018-12-18  Bruno Haible  <bruno@clisp.org>
16428         localename: Update comments regarding Cygwin.
16429         * lib/localename.c: Update comment.
16430         * doc/posix-functions/uselocale.texi: Update platforms list.
16431         * doc/posix-functions/newlocale.texi: Likewise.
16432         * doc/posix-functions/duplocale.texi: Likewise.
16433         * doc/posix-functions/freelocale.texi: Likewise.
16435 2018-12-16  Bruno Haible  <bruno@clisp.org>
16437         c-stack: Fix for Linux/sparc.
16438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16439         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16441 2018-12-16  Bruno Haible  <bruno@clisp.org>
16443         localename: Avoid test failure on some glibc systems.
16444         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16445         Unset environment variables that might disturb the first setlocale call,
16446         and verify that this setlocale call succeeds.
16448 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16450         random: Fix build error on native Windows (regression from 2018-06-21).
16451         * lib/random.c (__srandom, __initstate, __setstate, __random,
16452         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16453         to the symbols without '__' prefix.
16455 2018-12-16  Bruno Haible  <bruno@clisp.org>
16457         obstack, libc-config: Support HP-UX cc in C99 mode.
16458         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16459         compiler, even when in C99 mode.
16460         * lib/cdefs.h (__flexarr): Likewise.
16461         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16463 2018-12-16  Bruno Haible  <bruno@clisp.org>
16465         localename: Fix test failure on OpenBSD >= 6.2.
16466         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16467         locale system. Define HAVE_FAKE_LOCALES in this case.
16468         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16469         HAVE_USELOCALE.
16470         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16471         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16472         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16473         platforms list.
16474         * doc/posix-functions/newlocale.texi: Likewise.
16475         * doc/posix-functions/duplocale.texi: Update platforms list.
16476         * doc/posix-functions/freelocale.texi: Likewise.
16478 2018-12-16  Bruno Haible  <bruno@clisp.org>
16480         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16481         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16482         of the test, on platforms without <monetary.h>.
16484 2018-12-16  Bruno Haible  <bruno@clisp.org>
16486         localename: Update comments.
16487         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16489 2018-12-15  Jim Meyering  <meyering@fb.com>
16491         regex: fix indentation
16492         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16494 2018-12-15  Bruno Haible  <bruno@clisp.org>
16496         openat-safer tests: Avoid test failure on NetBSD 8.
16497         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16498         on Linux.
16500 2018-12-15  Jim Meyering  <meyering@fb.com>
16502         regex: work around a bug in glibc-2.27 and prior
16503         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16504         assertion for /0|()0|\1|0/.
16505         * tests/test-regex.c (main): Add the same test here.
16507 2018-12-15  Bruno Haible  <bruno@clisp.org>
16509         localename: Fix use of uninitialized shell variable.
16510         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16511         gt_cv_locale_solaris114 always before use. Remove assignment without
16512         effect.
16514 2018-12-15  Bruno Haible  <bruno@clisp.org>
16516         dfa tests: Avoid test failure on Alpine Linux.
16517         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16518         command found on Alpine Linux.
16520 2018-12-15  Jim Meyering  <meyering@fb.com>
16522         dfa: avoid new warnings from gcc
16523         These would prevent building with -Werror and a Dec snapshot of gcc.
16524         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16525         Rename each inner instance to "p".
16526         (charclass_context): Remove unused static function.
16528 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16530         mkdir-p: improve diagnostic for FUSE mounts
16531         Problem reported by Niklas Hambüchen in:
16532         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16533         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16534         errno to mkdir errno if the stat errno is likely more interesting.
16536 2018-12-14  Bruno Haible  <bruno@clisp.org>
16538         hash-map: Add tests.
16539         * tests/test-hash_map.c: New file.
16540         * modules/hash-map-tests: New file.
16542         linkedhash-map: Add tests.
16543         * tests/test-linkedhash_map.c: New file.
16544         * modules/linkedhash-map-tests: New file.
16546         array-map: Add tests.
16547         * tests/test-array_map.c: New file.
16548         * modules/array-map-tests: New file.
16550         xmap: New module.
16551         * lib/gl_xmap.h: New file.
16552         * lib/gl_xmap.c: New file.
16553         * modules/xmap: New file.
16555         hash-map: New module.
16556         * lib/gl_hash_map.h: New file.
16557         * lib/gl_hash_map.c: New file.
16558         * modules/hash-map: New file.
16560         linkedhash-map: New module.
16561         * lib/gl_linkedhash_map.h: New file.
16562         * lib/gl_linkedhash_map.c: New file.
16563         * lib/gl_anyhash1.h: Update comments.
16564         * lib/gl_anyhash2.h: Likewise.
16565         * modules/linkedhash-map: New file.
16567         array-map: New module.
16568         * lib/gl_array_map.h: New file.
16569         * lib/gl_array_map.c: New file.
16570         * modules/array-map: New file.
16572         map: New module.
16573         * lib/gl_map.h: New file.
16574         * lib/gl_map.c: New file.
16575         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16576         conflict with gl_map.h.
16577         * modules/map: New file.
16579 2018-12-13  Bruno Haible  <bruno@clisp.org>
16581         select tests: Avoid test failure on Cygwin.
16582         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16584 2018-12-13  Bruno Haible  <bruno@clisp.org>
16586         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16587         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16589 2018-12-13  Bruno Haible  <bruno@clisp.org>
16591         localeconv tests: Avoid test failure on Cygwin.
16592         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16593         'mon_grouping' tests.
16595 2018-12-11  Bruno Haible  <bruno@clisp.org>
16597         omap: Don't dispose the old value when the function returns it.
16598         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16599         here.
16600         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16601         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16602         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16603         here.
16605         array-omap, avltree-omap, rbtree-omap: Tweak style.
16606         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16607         false.
16608         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16610         rbtree-omap: Add tests.
16611         * tests/test-rbtree_omap.c: New file.
16612         * modules/rbtree-omap-tests: New file.
16614         avltree-omap: Add tests.
16615         * tests/test-avltree_omap.c: New file.
16616         * modules/avltree-omap-tests: New file.
16618         array-omap: Add tests.
16619         * tests/test-array_omap.c: New file.
16620         * modules/array-omap-tests: New file.
16622         xomap: New module.
16623         * lib/gl_xomap.h: New file.
16624         * lib/gl_xomap.c: New file.
16625         * modules/xomap: New file.
16627         rbtree-omap: New module.
16628         * lib/gl_rbtree_omap.h: New file.
16629         * lib/gl_rbtree_omap.c: New file.
16630         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16631         Parameterize.
16632         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16633         * modules/rbtree-omap: New file.
16634         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16635         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16637         avltree-omap: New module.
16638         * lib/gl_avltree_omap.h: New file.
16639         * lib/gl_avltree_omap.c: New file.
16640         * lib/gl_avltree_ordered.h: Code moved to here from
16641         lib/gl_avltree_oset.c. Parameterize.
16642         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16643         * lib/gl_anytree_omap.h: New file.
16644         * modules/avltree-omap: New file.
16645         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16646         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16648         array-omap: New module.
16649         * lib/gl_array_omap.h: New file.
16650         * lib/gl_array_omap.c: New file.
16651         * modules/array-omap: New file.
16653         omap: New module.
16654         * lib/gl_omap.h: New file.
16655         * lib/gl_omap.c: New file.
16656         * modules/omap: New file.
16658 2018-12-11  Bruno Haible  <bruno@clisp.org>
16660         hash-set, linkedhash-set: Reduce code duplication.
16661         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16662         lib/gl_anyhash_set1.h.
16663         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16664         lib/gl_anyhash_set2.h. Parameterize.
16665         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16666         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16667         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16668         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16669         * lib/gl_rbtreehash_list.c: Likewise.
16670         * lib/gl_linkedhash_list.c: Likewise.
16671         (hash_resize_after_add): Remove function.
16672         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16673         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16674         * gl_hash_set.c: Likewise.
16675         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16676         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16677         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16678         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16679         * modules/hash-set (Files, Makefile.am): Likewise.
16681 2018-12-11  Bruno Haible  <bruno@clisp.org>
16683         array-set: Optimize.
16684         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16685         outside the loop, not inside the loop.
16687 2018-12-11  Bruno Haible  <bruno@clisp.org>
16689         times: Fix tests.
16690         * tests/test-times.c (doublecmp): Implement a total order.
16692 2018-12-11  Bruno Haible  <bruno@clisp.org>
16694         array-set, linkedhash-set, hash-set: Fix tests.
16695         * tests/test-array_set.c (cmp_objects_in_array): New function.
16696         (check_equals): Use it.
16697         * tests/test-hash_set.c: Likewise.
16698         * tests/test-linkedhash_set.c: Likewise.
16700 2018-12-08  Bruno Haible  <bruno@clisp.org>
16702         Fix comments.
16703         * lib/gl_list.h (gl_list_free): Clarify what it does.
16704         * lib/gl_oset.h (gl_oset_free): Likewise.
16705         * lib/gl_set.h (gl_set_free): Likewise.
16706         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16707         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16708         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16709         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16711 2018-12-03  Bruno Haible  <bruno@clisp.org>
16713         hash-set: Add tests.
16714         * tests/test-hash_set.c: New file.
16715         * modules/hash-set-tests: New file.
16717         linkedhash-set: Add tests.
16718         * tests/test-linkedhash_set.c: New file.
16719         * modules/linkedhash-set-tests: New file.
16721         array-set: Add tests.
16722         * tests/test-array_set.c: New file.
16723         * modules/array-set-tests: New file.
16725         xset: New module.
16726         * lib/gl_xset.h: New file.
16727         * lib/gl_xset.c: New file.
16728         * modules/xset: New file.
16730         hash-set: New module.
16731         * lib/gl_hash_set.h: New file.
16732         * lib/gl_hash_set.c: New file.
16733         * modules/hash-set: New file.
16735         linkedhash-set: New module.
16736         * lib/gl_linkedhash_set.h: New file.
16737         * lib/gl_linkedhash_set.c: New file.
16738         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16739         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16740         * lib/gl_anyhash_primes.h: New file, extracted from
16741         lib/gl_anyhash_list2.h.
16742         * lib/gl_anyhash_list2.h: Include it.
16743         (primes, next_prime): Remove definitions.
16744         * modules/linkedhash-set: New file.
16745         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16746         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16747         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16748         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16749         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16750         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16752         array-set: New module.
16753         * lib/gl_array_set.h: New file.
16754         * lib/gl_array_set.c: New file.
16755         * modules/array-set: New file.
16757         set: New module.
16758         * lib/gl_set.h: New file.
16759         * lib/gl_set.c: New file.
16760         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16761         gl_set.h.
16762         * modules/set: New file.
16764 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16766         bison: don't force the Yacc mode
16767         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16768         errors when Bison features are used in the grammar file.  Some of
16769         these features (such as %expect) were flagged non-yacc recently.  Most
16770         of the time, -y is actually used to please Automake's ylwrap which
16771         expects the output to be y.tab.c.
16772         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16774 2018-12-01  Bruno Haible  <bruno@clisp.org>
16776         gnupload: Document short options.
16777         * build-aux/gnupload (usage): Document the short options.
16779 2018-11-28  Ben Elliston  <bje@gnu.org>
16781         gnupload: Support option -h as alias of --help.
16782         * build-aux/gnupload: Support -h.
16784 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16786         memrchr: port better to clang
16787         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16788         longword *, to pacify clang -Wcast-align (Bug#33544).
16790 2018-11-29  Eric Blake  <eblake@redhat.com>
16792         docs: mention printf %m considerations
16793         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16794         is not portable, and is easy enough to work around.
16795         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16796         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16797         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16798         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16799         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16800         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16801         * doc/posix-functions/printf.texi (printf): Likewise.
16802         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16803         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16804         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16805         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16806         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16807         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16808         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16809         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16810         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16811         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16812         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16813         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16815 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16817         bitset: rename ebitset/expandable.* as tbitset/table.*
16818         See
16819         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16820         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16821         * lib/bitset/table.h, lib/bitset/table.c: these.
16822         Rename all the ebitset* symbols as tbitset*.
16823         Adjust dependencies.
16825 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16827         bitset: check the operations
16828         * tests/test-bitset.c (bitset_random): New.
16829         Use it.
16830         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16832 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16834         bitset: properly use false/true instead of 0/1 for Booleans
16835         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16836         0/1, as Booleans.
16838 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16840         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16841         For consistency with the name of the file.
16842         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16843         * lib/bitset/stats.c, lib/bitset/vector.c
16844         (BITSET_VARRAY): Rename as...
16845         (BITSET_VECTOR): this.
16847 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16849         strerror_r-posix: memmove, not memcpy
16850         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16851         since the source and destination might overlap in the call
16852         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16853         Simplify.
16855 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16857         bitsetv: new module
16858         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16860 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16862         bitset: add tests and doc
16863         First stabs at providing a documentation and test for the bitset
16864         module.
16865         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16867 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16869         bitset: new module
16870         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16871         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16872         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16873         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16874         * lib/bitset/vector.h, modules/bitset:
16875         New.
16877 2018-11-23  Bruno Haible  <bruno@clisp.org>
16879         localename: Fix gettext test failures on mingw.
16880         * lib/localename.c (gl_locale_name_posix): Convert the result of
16881         gl_locale_name_environ to XPG syntax.
16883 2018-11-23  Karl Berry  <karl@freefriends.org>
16885         * config/srclistvars.txt,
16886         * config/srclist.txt: remove all gettext references;
16887         the gettext maintainers will sync as needed.
16889 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16891         mktime: add libc-config dependency
16892         I missed this when we synced from glibc.
16893         * modules/mktime (Depends-on): Add libc-config.
16895 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16897         longlong: fix comment typo
16898         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16900 2018-11-11  Bruno Haible  <bruno@clisp.org>
16902         havelib: Remove the need to include asm-underscore.m4.
16903         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16904         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16905         gl_HOST_CPU_C_ABI.
16906         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16907         (Depends-on): Remove host-cpu-c-abi.
16909 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16911         parse-datetime: simplify test for mktime failure
16912         * lib/parse-datetime.y (mktime_ok): Simplify.
16913         Remove args TZ and T; no longer needed.  Callers changed.
16915         posixtm: simplify test for mktime failure
16916         * lib/posixtm.c (posixtime): Simplify.
16918         nstrftime: simplify test for mktime failure
16919         * lib/nstrftime.c (__strftime_internal): Simplify.
16921 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16923         gnulib-common.m4: port _Noreturn to C++
16924         Problem reported by Akim Demaille in:
16925         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16926         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16927         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16928         version.
16929         * lib/_Noreturn.h: Match gnulib-common.
16931 2018-10-30  Bruno Haible  <bruno@clisp.org>
16933         gnu-make: Fix for NetBSD 8 'make'.
16934         Reported by Reuben Thomas in
16935         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16936         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16937         output, ignoring exit codes.
16939 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16941         maintainer-makefile: fix syntax-check rule for "same.h"
16942         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16943         for 'same_nameat', too.
16945 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16947         havelib: fix nested ‘configure’ chatter
16948         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16949         AC_CACHE_CHECK calls, which resulted in confusing output like
16950         “checking for the common suffixes of directories in the library
16951         search path... checking for 64-bit host... no lib,lib”.
16953         backupfile: tweak for better code
16954         * lib/backupfile.c: Sort include directives, and remove
16955         unnecessary <limits.h> include.
16956         (FALLTHROUGH): New macro, copied from other modules.
16957         (backupfile_internal): Use it to avoid code duplication.
16958         This lets GCC 8.2.1 generate better code by inlining the
16959         call to check_extension.
16961 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16963         backupfile: new dir_fd args
16964         New module opendirat with code taken from fts.
16965         Use this module to let backupfile use a directory file descriptor.
16966         * NEWS: Document the incompatible change.
16967         * lib/backup-find.c (find_backup_file_name):
16968         * lib/backup-rename.c (backup_file_rename):
16969         New arg DIR_FD.
16970         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16971         (SIZE_MAX): Remove.
16972         Include opendirat.h rather than dirent--.h.
16973         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16974         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16975         (backupfile_internal): New arg DIR_FD.  All callers changed.
16976         * lib/fts.c: Include opendirat.h.
16977         (opendirat): Move to opendirat.c.
16978         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16979         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16980         Add opendirat.
16981         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16982         Add opendirat.
16984 2018-10-23  Bruno Haible  <bruno@clisp.org>
16986         localename: Simplify support for per-thread locales on Solaris 11.4.
16987         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16988         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16989         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16990         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16991         specific code.
16992         * lib/localename-table.h: Update comments.
16993         * lib/localename-table.c: Update comments.
16994         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16995         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16996         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16997         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16998         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16999         HAVE_NAMELESS_LOCALES here.
17000         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17001         m4/intlsolaris.m4.
17002         * modules/gettext (Files): Likewise.
17004 2018-10-22  Bruno Haible  <bruno@clisp.org>
17006         std-gnu11: Support Autoconf versions < 2.64.
17007         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17008         when _AC_DO_LIMIT does not exist.
17010 2018-10-22  Bruno Haible  <bruno@clisp.org>
17012         Assume Autoconf >= 2.63.
17013         * DEPENDENCIES: Mention the requirement.
17015         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17016         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17017         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17018         * m4/onceonly.m4: Remove file.
17020         * m4/openmp.m4: Remove file.
17021         * modules/openmp (Files): Remove m4/openmp.m4.
17023         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17024         htmldir, dvidir, pdfdir, psdir, localedir.
17025         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17027         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17028         Autoconf < 2.60.
17029         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17030         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17032         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17033         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17034         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17036         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17037         exists.
17038         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17041         Autoconf < 2.61.
17043         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17044         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17045         Autoconf >= 2.52.
17047         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17048         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17049         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17051 2018-10-22  Bruno Haible  <bruno@clisp.org>
17053         Assume Automake >= 1.11.
17054         * m4/configmake.m4: Update comments.
17055         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17056         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17057         of 'eval'.
17058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17059         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17060         requires Automake >= 1.11.
17062 2018-10-22  Bruno Haible  <bruno@clisp.org>
17064         localename: Fix typo in comment.
17065         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17067 2018-10-22  Bruno Haible  <bruno@clisp.org>
17069         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17070         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17072 2018-10-21  Bruno Haible  <bruno@clisp.org>
17074         locale: Ease integration with GNU libintl.
17075         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17076         GNULIB_defined_freelocale): New macros.
17078 2018-10-21  Bruno Haible  <bruno@clisp.org>
17080         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17081         * lib/localename-table.h: New file, extracted from lib/localename.c.
17082         * lib/localename-table.c: Likewise.
17083         * lib/localename.c: Include localename-table.h.
17084         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17085         locale_hash_function instead of pointer_hash.
17086         * modules/localename (Files): Add lib/localename-table.h,
17087         lib/localename-table.c.
17088         (lib_SOURCES): Add localename-table.c.
17089         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17090         for Solaris 11.4 locale system only on Solaris. Test for it
17091         independently whether getlocalename_l exists.
17092         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17093         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17094         HAVE_NAMELESS_LOCALES.
17095         * modules/gettext (Files): Add m4/intlsolaris.m4.
17097 2018-10-21  Bruno Haible  <bruno@clisp.org>
17099         Small update from gettext.
17100         * m4/intl.m4: Update from gettext:
17101         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17102         mode on AIX.
17103         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17104         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17106 2018-10-16  Bruno Haible  <bruno@clisp.org>
17108         mountlist: Remove support for Cray with UNICOS 9.
17109         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17110         MOUNTED_LISTMNTENT.
17111         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17113 2018-10-16  Bruno Haible  <bruno@clisp.org>
17115         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17116         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17117         STAT_STATFS2_FS_DATA.
17118         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17120         MOUNTED_GETMNT.
17121         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17122         * lib/getloadavg.c (decstation): Remove definition and case.
17123         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17124         * lib/getgroups.c: Likewise.
17125         * doc/posix-functions/getgroups.texi: Likewise.
17126         * lib/time.in.h: Update comments.
17128 2018-10-16  Bruno Haible  <bruno@clisp.org>
17130         getloadavg: Remove support for ConvexOS.
17131         * lib/getloadavg.c: Remove convex case.
17133 2018-10-16  Bruno Haible  <bruno@clisp.org>
17135         getloadavg: Remove support for Sony NEWS.
17136         * lib/getloadavg.c: Remove sony_news case.
17138 2018-10-16  Bruno Haible  <bruno@clisp.org>
17140         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17141         * lib/fsusage.c: Remove _SEQUENT_ case.
17142         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17143         * lib/mountlist.c: Don't test for MNTTABNAME.
17144         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17145         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17146         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17147         * lib/stat-size.h: Don't mention the Sequent bug.
17148         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17150 2018-10-16  Bruno Haible  <bruno@clisp.org>
17152         fsusage: Remove support for AIX 3.
17153         * lib/fsusage.c: Remove code for AIX 3.
17154         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17156 2018-10-16  Bruno Haible  <bruno@clisp.org>
17158         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17159         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17160         * lib/fsusage.c: Remove code for AIX PS/2.
17161         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17162         * lib/getloadavg.c: Likewise.
17164 2018-10-16  Bruno Haible  <bruno@clisp.org>
17166         getloadavg: Remove support for HP-UX on m68k.
17167         * lib/getloadavg.c: Remove hp9000s300 case.
17169 2018-10-16  Bruno Haible  <bruno@clisp.org>
17171         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17172         * lib/fsusage.c: Remove DOLPHIN case.
17173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17174         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17176 2018-10-16  Bruno Haible  <bruno@clisp.org>
17178         getloadavg: Remove support for Alliant FX/2800.
17179         * lib/getloadavg.c: Remove alliant case.
17181 2018-10-16  Bruno Haible  <bruno@clisp.org>
17183         getloadavg: Remove support for tek4300.
17184         * lib/getloadavg.c: Remove tek4300 case.
17186 2018-10-16  Bruno Haible  <bruno@clisp.org>
17188         getloadavg: Remove support for Ardent.
17189         * lib/getloadavg.c: Remove ardent case.
17191 2018-10-16  Bruno Haible  <bruno@clisp.org>
17193         mountlist: Remove support for SVR2.
17194         Reported by Andrew Borodin <aborodin@vmail.ru> in
17195         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17196         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17197         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17198         MOUNTED_FREAD.
17200 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17202         libc-config: merge from glibc
17203         * lib/cdefs.h (__glibc_has_attribute): New macro.
17205         regex: depend on libc-config
17206         * modules/regex (Depends-on): Add libc-config.
17207         This is needed after the recent autoupdate from glibc.
17209 2018-10-14  Bruno Haible  <bruno@clisp.org>
17211         localename: Add support for per-thread locales on Solaris 11.4.
17212         * lib/locale.in.h (newlocale, freelocale): New declarations.
17213         (duplocale): Declare also when the 'localename' module requests it.
17214         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17215         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17216         (struniq): Update.
17217         (struct locale_categories_names, struct locale_hash_node): New types.
17218         (LOCALE_HASH_TABLE_SIZE): New constant.
17219         (locale_hash_table, locale_lock): New variables.
17220         (pointer_hash, get_locale_t_name): New functions.
17221         (newlocale, duplocale, freelocale): New overridden functions.
17222         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17223         * m4/intlsolaris.m4: New file.
17224         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17225         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17226         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17227         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17228         declared.
17229         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17230         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17231         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17232         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17233         * modules/localename (Files): Add intlsolaris.m4.
17234         (Depends-on): Add 'locale'.
17235         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17236         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17237         the signatures.
17239 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17241         timevar: use gethrxtime to get wall clock time
17242         clock_gettime is not portable.  gethrxtime takes the best available
17243         option to get the wall clock time, including clock_gettime (monotonic
17244         clock), and gettime (non monotonic).
17245         Also, using xtime_t instead of float preserves the precision.
17246         Suggested by Bruno Haible.
17247         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17248         * modules/timevar (Depends-on): We need gethrxtime.
17249         We no longer use times().
17250         (Link): Update.
17251         * lib/timevar.h (timevar_time_def): Use xtime_t.
17252         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17253         (timevar_print): Instead of checking whether the timings themselves
17254         are large enough for the timevar to be printed, check the percentages.
17256 2018-10-14  Bruno Haible  <bruno@clisp.org>
17258         wcsnrtombs: Work around Solaris 11.4 bug.
17259         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17260         macro.
17261         (gl_FUNC_WCSNRTOMBS): Invoke it.
17262         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17264 2018-10-14  Bruno Haible  <bruno@clisp.org>
17266         mbsnrtowcs: Work around Solaris 11.4 bug.
17267         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17268         macro.
17269         (gl_FUNC_MBSNRTOWCS): Invoke it.
17270         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17272 2018-10-14  Bruno Haible  <bruno@clisp.org>
17274         doc: Update for Solaris 11.4.
17275         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17276         mention Solaris 11.4.
17277         * m4/printf.m4: Update comments about Solaris.
17278         * m4/log.m4: Likewise.
17279         * m4/log10.m4: Likewise.
17280         * m4/logb.m4: Likewise.
17281         * m4/logbf.m4: Likewise.
17282         * m4/logbl.m4: Likewise.
17283         * m4/rename.m4: Likewise.
17284         * m4/wcrtomb.m4: Likewise.
17285         * m4/hostent.m4: Likewise.
17286         * m4/servent.m4: Likewise.
17288 2018-10-14  Bruno Haible  <bruno@clisp.org>
17290         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17291         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17292         pointer.
17293         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17294         pointer.
17295         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17296         pointer.
17297         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17298         pointer.
17299         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17300         pointer.
17302 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17304         bootstrap: fix wget command for po files.
17305         * build-aux/bootstrap (po_download_command_format): Fix comment,
17306         and adjust callers.
17308 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17310         timevar: improve the output format
17311         Suggested by Bruno Haible.
17312         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17313         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17314         wall, since its resolution is much higher.
17316 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17318         timevar: expect that getrusage is available.
17319         Don't keep both times and getrusage as backend: both are guaranteed by
17320         gnulib, a single one suffices.  Using getrusage is open to possibly
17321         tracking other types of resources in the future.
17322         * modules/timevar (Depends-on): Add getrusage.
17323         (configure.ac): Remove gl_TIMEVAR.
17324         (Files): Remove m4/timevar.m4.
17325         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17326         * lib/timevar.h (timevar_enabled): Clarify documentation.
17327         * lib/timevar.c: Remove all the code about times.
17328         Remove all the CPP guards about getrusage: expect it to be present
17329         (courtesy of gnulib).
17331 2018-10-12  Bruno Haible  <bruno@clisp.org>
17333         mountlist: Improve support for Solaris in 64-bit mode.
17334         Reported by David Wood <David.Wood@deshaw.com> in
17335         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17336         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17337         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17338         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17340 2018-10-12  Bruno Haible  <bruno@clisp.org>
17342         mountlist: Add support for Minix.
17343         Reported by Assaf Gordon in
17344         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17346         AC_CHECK_FUNCS to check for 'getmntinfo'.
17347         * lib/mountlist.c: Update comments.
17349 2018-10-12  Bruno Haible  <bruno@clisp.org>
17351         Make better use of Autoconf.
17352         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17353         * m4/manywarnings.m4: Likewise.
17354         * m4/manywarnings-c++.m4: Likewise.
17355         * m4/socklen.m4: Likewise.
17356         * m4/sockpfaf.m4: Likewise.
17357         * m4/stdarg.m4: Likewise.
17358         * m4/visibility.m4: Likewise.
17359         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17360         indentation.
17361         * m4/ls-mntd-fs.m4: Likewise.
17363 2018-10-11  Bruno Haible  <bruno@clisp.org>
17365         mountlist: Modernize platform lists.
17366         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17367         platforms, deemphasizing the obsolete ones.
17368         * lib/mountlist.c: Likewise.
17370 2018-10-11  Bruno Haible  <bruno@clisp.org>
17372         getprogname: Add support for 32-bit programs on HP-UX.
17373         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17374         try the similar functions 32-bit programs on 64-bit HP-UX.
17376 2018-10-11  Bruno Haible  <bruno@clisp.org>
17378         getprogname: Work around program name truncation when possible.
17379         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17380         possibly use pst_cmd instead.
17382 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17384         fts: cleanup after FTS_NOATIME removal
17385         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17386         (FTS_STOP): Shrink to minimal values.  We don’t need to
17387         worry about binary compatibility in Gnulib, and the old way
17388         of doing things had a hole in the user options that caused
17389         FTS_OPTIONMASK to not work as desired.
17391 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17393         fts: remove FTS_NOATIME
17394         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17395         We cannot guarantee that O_NOATIME works: e.g. openat fails
17396         with EPERM if the effective user ID of the caller does not match
17397         the owner of the file and the caller is not privileged.
17398         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17399         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17400         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17401         (FTS_OPTIONMASK): Adjust.
17402         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17403         (fd_ring_check): Likewise.
17405 2018-10-08  Bruno Haible  <bruno@clisp.org>
17407         csharpcomp*, csharpexec*: Remove support for pnet.
17408         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17409         HAVE_CSCC.
17410         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17411         Don't test HAVE_CSCC.
17412         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17413         (compile_csharp_class): Don't invoke it.
17414         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17415         HAVE_ILRUN.
17416         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17417         Don't test HAVE_ILRUN.
17418         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17419         (execute_csharp_program): Don't invoke it.
17420         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17421         any more.
17423 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17425         renameatu: prefer renameat2 to syscall
17426         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17427         Use renameat2 instead of syscall (Bug#32796).
17428         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17430 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17432         bootstrap, gnulib-tool: use https instead of insecure rsync
17433         * build-aux/bootstrap (download_po_files, po_download_command_format):
17434         Don't try using rsync; always use wget over https to fetch PO files.
17435         * gnulib-tool (func_import): Likewise.
17436         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17438 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17440         bootstrap, gnulib-tool: correct the translations wget command
17441         * build-aux/bootstrap (po_download_command_format2): Restrict
17442         recursion to a single level.
17443         * gnulib-tool (func_import): Likewise.
17444         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17446 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17448         doc: the gnulib snapshots are not maintained
17449         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17451 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17453         timevar: add to lib_SOURCES
17454         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17456 2018-10-07  Bruno Haible  <bruno@clisp.org>
17458         dirent: Update documentation.
17459         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17461 2018-10-05  Bruno Haible  <bruno@clisp.org>
17463         strpbrk: Make it possible to namespace the defined symbol.
17464         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17466 2018-10-05  Bruno Haible  <bruno@clisp.org>
17468         strcspn: Make it possible to namespace the defined symbol.
17469         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17471 2018-10-05  Bruno Haible  <bruno@clisp.org>
17473         raise: Make it possible to namespace the defined symbol.
17474         * lib/raise.c (raise): Undefine only after the replacement function has
17475         been defined.
17476         (raise): Renamed from rpl_raise.
17477         (raise_nothrow): Move to the end of the compilation unit.
17479 2018-10-05  Bruno Haible  <bruno@clisp.org>
17481         memcmp: Make it possible to namespace the defined symbol.
17482         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17484 2018-10-05  Bruno Haible  <bruno@clisp.org>
17486         explicit_bzero: Make it possible to namespace the defined symbol.
17487         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17488         glibc.
17490 2018-10-05  Bruno Haible  <bruno@clisp.org>
17492         mkdir-p: Depend on 'mkdir'.
17493         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17495 2018-10-05  Bruno Haible  <bruno@clisp.org>
17497         tempname: Depend on 'mkdir'.
17498         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17499         at <https://savannah.gnu.org/bugs/?33379>.
17500         * modules/tempname (Depends-on): Add 'mkdir'.
17502 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17504         timevar: rely on gnulib modules for time portability.
17505         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17506         * m4/timevar.m4: Don't check for clock_t and struct tms,
17507         guaranteed by gnulib.
17508         * lib/timevar.h: Use extern "C" protection.
17509         Include <stdio.h> for FILE.
17510         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17511         they are guaranteed by gnulib.
17512         Remove uses of clock as (now useless) fallback.
17514 2018-10-04  Bruno Haible  <bruno@clisp.org>
17516         sh-filename: New module.
17517         * m4/sh-filename.m4: New file.
17518         * modules/sh-filename: New file.
17519         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17520         "/bin/sh".
17521         * tests/test-posix_spawn1.c (main): Likewise.
17522         * tests/test-posix_spawn2.c (main): Likewise.
17523         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17524         is_envjavac_gcj43): Likewise.
17525         * lib/javaexec.c (execute_java_class): Likewise.
17526         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17527         * modules/posix_spawnp-tests (Depends-on): Likewise.
17528         * modules/javacomp (Depends-on): Likewise.
17529         * modules/javaexec (Depends-on): Likewise.
17531 2018-10-04  Bruno Haible  <bruno@clisp.org>
17533         spawn-pipe tests: Avoid test failure on native Windows.
17534         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17535         that fd 2 is closed.
17537 2018-10-04  Bruno Haible  <bruno@clisp.org>
17539         fcntl: Make it possible to namespace the defined symbol.
17540         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17541         been defined.
17542         (fcntl): Renamed from rpl_fcntl.
17543         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17544         from fcntl.
17545         (klibc_fcntl): Move to the end of the compilation unit.
17547 2018-10-02  Bruno Haible  <bruno@clisp.org>
17549         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17550         * tests/test-vasnprintf.c (test_function): Change the test added on
17551         2018-09-23 to check only the 18 most significant digits.
17553         vasnprintf tests: Avoid test failure on Cygwin.
17554         * tests/test-vasnprintf.c (test_function): Change the test added on
17555         2018-09-23 to check only the 42 most significant digits.
17557 2018-10-01  Bruno Haible  <bruno@clisp.org>
17559         mkostemp, mkostemps: Update documentation.
17560         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17561         * doc/glibc-functions/mkostemps.texi: Likewise.
17563 2018-10-01  Tom Tromey  <tom@tromey.com>
17565         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17566         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17567         on OS X.
17569 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17571         hmac-*: refactor to remove repetitive code
17572         * lib/hmac.c: A new parameterized single implementation.
17573         * lib/hmac-md5.c: Define parameters and include implementation.
17574         * lib/hmac-sha1.c: Likewise.
17575         * lib/hmac-sha256.c: Likewise.
17576         * lib/hmac-sha512.c: Likewise.
17577         * modules/crypto/hmac-md5: Reference the new implementation file.
17578         * modules/crypto/hmac-sha1: Likewise.
17579         * modules/crypto/hmac-sha256: Likewise.
17580         * modules/crypto/hmac-sha512: Likewise.
17581         * tests/test-hmac-md5.c: Refactor common code to a single function.
17582         * tests/test-hmac-sha1.c: Likewise.
17583         * tests/test-hmac-sha256.c: Likewise.
17584         * tests/test-hmac-sha512.c: Likewise.
17586 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17588         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17589         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17590         key length to that output by sha512, not the blocksize.
17591         Otherwise uninitialized data from the stack
17592         is used when computing the hash.
17593         * tests/test-hmac-sha512.c: Add a shortened key test case.
17594         Reported at https://github.com/coreutils/gnulib/pull/5
17596 2018-09-30  Bruno Haible  <bruno@clisp.org>
17598         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17599         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17600         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17601         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17602         'unsigned int' before comparison with an unsigned value.
17604 2018-09-30  Bruno Haible  <bruno@clisp.org>
17606         grantpt: Remove unnecessary dependency.
17607         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17609 2018-09-30  Bruno Haible  <bruno@clisp.org>
17611         timevar: Small tweaks.
17612         * lib/timevar.h: Fix comments. Add parameter names to function
17613         declarations.
17614         * lib/timevar.c: Include timevar.h immediately after config.h.
17615         * lib/timevar.def: Fix comments.
17616         * modules/timevar (Maintainer): List Akim Demaille.
17618 2018-09-30  Bruno Haible  <bruno@clisp.org>
17620         timevar: Include documentation in gnulib manual.
17621         * doc/timevar.texi: Change node and section name to 'Profiling of
17622         program phases'.
17623         In the code snippets, tweak the #includes and use GNU coding style.
17624         * doc/gnulib.texi: Include timevar.texi.
17626 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17628         timevar: import from Bison.
17629         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17630         New files.
17631         * lib/timevar.def: New file.
17632         * doc/timevar.texi: New file.
17634 2018-09-26  Bruno Haible  <bruno@clisp.org>
17636         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17637         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17638         * lib/javacomp.c (default_target_version): Likewise.
17640 2018-09-26  Bruno Haible  <bruno@clisp.org>
17642         javacomp-script, javacomp: Add support for Java 11.
17643         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17644         target-version 11.
17645         * lib/javaversion.h: Update comments.
17646         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17647         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17648         TARGET_VERSION_BOUND, target_version_index,
17649         corresponding_classfile_version): Accept source_version 11 and
17650         target_version 11.
17651         * lib/javacomp.h: Update comments accordingly.
17653 2018-09-23  Bruno Haible  <bruno@clisp.org>
17655         vasnprintf: Fix heap memory overrun bug.
17656         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17657         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17658         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17659         memory.
17660         * tests/test-vasnprintf.c (test_function): Add another test.
17662 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17664         maint: mktime.c now shared with glibc
17665         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17666         are now the same in Gnulib and glibc.
17668         mktime: fix _LIBC typo
17669         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17671 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17673         dfa: optimization for state merge
17674         * lib/dfa.c (merge2): New function.
17675         (merge_nfa_state): Use it.
17677 2018-09-18  Jim Meyering  <meyering@fb.com>
17679         dfa: trivial comment fix: s/is/if/
17680         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17682 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17684         dfa: use more-informative function name
17685         * lib/dfa.c (maybe_disable_superset_dfa):
17686         Rename from dfautf8noss.  Use change.
17688         dfa: tweak allocation performance
17689         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17690         Prefer ptrdiff_t for indexes some more.
17691         Use char for flags, as it’s wide enough.
17692         Allocate queue and flags together, with one malloc call.
17693         No need to use xnmalloc since the multiplication and
17694         addition cannot overflow (it’s already been checked by
17695         earlier allocation).  Prefer memset to open-coding.
17697         dfa: prune states as we go
17698         * lib/dfa.c (prune): Remove.
17699         dfa: reorder enum for efficiency
17700         (merge_nfa_state): Prune as we go instead of at the end.
17701         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17703         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17704         of the enumeration to make it easier for GCC to generate
17705         efficient code by using fewer comparisons to check for
17706         ranges of values.
17707         (atom): Take advantage of the reordering.
17709 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17711         dfa: optimize alternation in NFA
17712         Even when similar states exist in alternation, the DFA treats them
17713         as separate items, which may complicate the transition in NFA and
17714         cause slowdown.  This change assembles the states into one.  For
17715         example, ab|ac is changed into a(b|c).  This change speeds-up
17716         matching for many branched patterns.  For example, grep speeds up
17717         more than 30× in:
17719           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17720           time -p env LC_ALL=C grep -vf in in
17722         * lib/dfa.c (prune): New function.
17723         (merge_nfa_state): New function.  It merges similar NFA states.
17724         (dfaoptimize): New function.  It seeks merged and removed nodes.
17725         (dfaanalyze): Call new function.
17726         (dfautf8noss): Change name from dfaoptimize because of addition of new
17727         function.
17728         (dfacomp): Update caller.
17730         dfa: simplify initial state
17731         Simplifying the initial state enables easier optimization of the NFA.
17732         * lib/dfa.c (enum token): Add new element BEG.
17733         (prtok): Adjust due to adding element BEG.
17734         (dfaparse): Put BEG at a head of tokens.
17735         (state_index): Adjust due to adding element BEG.
17736         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17737         build initial state.
17738         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17740 2018-09-18  Bruno Haible  <bruno@clisp.org>
17742         file-has-acl: Fix test failure on Cygwin 2.9.
17743         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17744         * lib/acl-internal.h: Likewise.
17745         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17746         * lib/acl-internal.c: Update comments regarding Cygwin.
17747         * lib/acl_entries.c: Likewise.
17748         * lib/file-has-acl.c: Likewise.
17749         (file_has_acl): For Cygwin, use a different way to determine whether
17750         the "default" ACL of a directory is nontrivial.
17751         * lib/get-permissions.c: Update comments regarding Cygwin.
17752         * lib/set-permissions.c: Likewise.
17754 2018-09-18  Bruno Haible  <bruno@clisp.org>
17756         stat-time tests: Fix test failure on Cygwin.
17757         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17759 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17761         doc: OS X 10.11 lacked ns time functions
17762         According to <https://github.com/zeromq/libzmq/issues/2175>,
17763         nanosecond-resolution timestamp functions were introduced
17764         in macOS 10.12, so document the last version (OS X 10.11)
17765         where they were absent.
17767         gettime: nanotime never existed
17768         Problem reported by Bruno Haible in:
17769         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17770         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17771         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17773 2018-09-18  Bruno Haible  <bruno@clisp.org>
17775         doc: Update statement about target platforms.
17776         Reported by Simon Sobisch.
17777         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17778         restrictions on MSVC versions.
17780 2018-09-18  Bruno Haible  <bruno@clisp.org>
17782         posix_spawn tests: Fix link error on 64-bit Cygwin.
17783         * tests/test-posix_spawn1.c (environ): Remove declaration.
17784         * tests/test-posix_spawn2.c (environ): Likewise.
17785         * tests/test-posix_spawn3.c (environ): Likewise.
17786         * tests/test-posix_spawn4.c (environ): Likewise.
17787         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17788         * modules/posix_spawnp-tests (Depends-on): Likewise.
17790 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17792         timespec: new function current_timespec
17793         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17794         and don’t worry about it failing on a CLOCK_REALTIME arg.
17795         POSIX requires it to succeed and I don’t know of any
17796         counterexamples where the fallbacks would work.
17797         (current_timespec): New function, taken from Emacs.  It is more
17798         convenient than gettime, and can help register allocation.
17799         * lib/timespec.h: Include arg-nonnull.h.
17800         (current_timespec): New declaration.
17801         (gettime, settime): Declare args to be nonnull.
17802         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17804 2018-09-16  Bruno Haible  <bruno@clisp.org>
17806         setlocale: Improve locale handling on macOS 10.12 or newer.
17807         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17808         gl_locale_name_canonicalize.
17809         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17810         and LC_MESSAGES.
17811         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17813 2018-09-16  Bruno Haible  <bruno@clisp.org>
17815         Update list of locale names with scripts on macOS.
17816         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17817         match Mac OS X 10.13 and recent glibc.
17819 2018-09-16  Bruno Haible  <bruno@clisp.org>
17821         gettext: Use newer macOS APIs when possible.
17822         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17823         CFLocaleCopyPreferredLanguages.
17825 2018-09-16  Bruno Haible  <bruno@clisp.org>
17827         localename: Revisit macOS specific code.
17828         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17829         Fix comments about Mac OS X versions.
17831 2018-09-15  Bruno Haible  <bruno@clisp.org>
17833         setlocale: Improve support for locales not supported by libc.
17834         Reported by Dapeng Gao <peter@dpgao.cc> at
17835         <https://savannah.gnu.org/bugs/?54479>.
17836         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17837         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17838         to be set is not supported by libc: Emit warnings instead of failing.
17840 2018-09-15  Bruno Haible  <bruno@clisp.org>
17842         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17843         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17844         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17845         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17847         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17848         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17849         * doc/glibc-functions/strcasestr.texi: Likewise.
17851 2018-09-14  Bruno Haible  <bruno@clisp.org>
17853         doc: Fix bottom of top-level page.
17854         Reported by Akim Demaille <akim.demaille@gmail.com> in
17855         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17856         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17857         mode.
17858         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17859         accordingly.
17861 2018-09-12  Bruno Haible  <bruno@clisp.org>
17863         Add test case from a recent glibc bug.
17864         * tests/test-strstr.c (main): Add test of long needle.
17865         * tests/test-strcasestr.c (main): Likewise.
17866         * tests/test-c-strstr.c (main): Likewise.
17867         * tests/test-c-strcasestr.c (main): Likewise.
17868         * tests/test-memmem.c (main): Likewise.
17870 2018-09-12  Bruno Haible  <bruno@clisp.org>
17872         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17873         * tests/test-c-strstr.c (main): Add the same tests here as well.
17875 2018-09-12  Bruno Haible  <bruno@clisp.org>
17877         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17878         * tests/test-memmem.c (main): Free haystack.
17879         * tests/test-strcasestr.c (main): Likewise.
17880         * tests/test-c-strcasestr.c (main): Likewise.
17882 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17884         xstrtol: fix missing-TYPE_SIGNED typo
17885         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17887 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17889         timespec: fix resolution confusion
17890         In normal usage, clock resolution is given in seconds, but the
17891         code was mistakenly using inverse seconds and calling it
17892         “resolution”.  Fix this, partly by renaming two identifiers.
17893         The old names will be kept for a bit, to ease transition.
17894         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17895         New constants, replacing TIMESPEC_RESOLUTION and
17896         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17897         All uses changed.
17899 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17901         mktime: simplify in prep for glibc merge
17902         * lib/mktime.c, lib/timegm.c [_LIBC]:
17903         Include mktime-internal.h (a small file just for glibc)
17904         instead of using a typedef.
17906 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17908         intprops: minor clarification of code
17909         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17910         Use _GL_INT_CONVERT rather than reinventing it.
17912 2018-09-07  Bruno Haible  <bruno@clisp.org>
17914         Fix a comment.
17915         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17917 2018-09-07  Bruno Haible  <bruno@clisp.org>
17919         posix_spawn_file_actions_addchdir: Add tests.
17920         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17921         * tests/test-posix_spawn4.c: New file.
17922         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17924 2018-09-07  Bruno Haible  <bruno@clisp.org>
17926         posix_spawn_file_actions_addchdir: New module.
17927         Suggested by Eric Blake in
17928         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17929         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17930         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17931         union member 'chdir_action'.
17932         * lib/spawn_faction_addchdir.c: New file.
17933         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17934         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17935         HAVE_WORKING_POSIX_SPAWN.
17936         * lib/spawn_faction_adddup2.c: Likewise.
17937         * lib/spawn_faction_addopen.c: Likewise.
17938         * m4/posix_spawn_faction_addchdir.m4: New file.
17939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17940         'posix_spawn_file_actions_addchdir' is present and whether
17941         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17942         instead of HAVE_WORKING_POSIX_SPAWN.
17943         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17944         posix_spawn_file_actions_addchdir is declared.
17945         (gl_SPAWN_H_DEFAULTS): Initialize
17946         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17947         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17948         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17949         * modules/spawn (Makefile.am): Substitute
17950         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17951         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17952         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17953         * modules/posix_spawn_file_actions_addchdir: New file.
17954         * modules/posix_spawn_file_actions_addclose (Depends-on,
17955         configure.ac): Test also REPLACE_POSIX_SPAWN.
17956         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17957         configure.ac): Likewise.
17958         * modules/posix_spawn_file_actions_addopen (Depends-on,
17959         configure.ac): Likewise.
17960         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17961         signature.
17962         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17963         * doc/posix-functions/posix_spawnp.texi: Likewise.
17965 2018-09-06  Bruno Haible  <bruno@clisp.org>
17967         stddef: Override max_align_t on NetBSD 8.0/x86.
17968         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17969         the value of __alignof__ (max_align_t).
17970         * doc/posix-headers/stddef.texi: Mention the issue.
17972 2018-09-06  Bruno Haible  <bruno@clisp.org>
17974         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17975         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17976         system fcntl.
17977         * doc/posix-functions/fcntl.texi: Document the issue.
17979 2018-09-06  Bruno Haible  <bruno@clisp.org>
17981         count-trailing-zeros tests: Rely on limits-h module.
17982         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17983         definition.
17984         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17986 2018-09-06  Bruno Haible  <bruno@clisp.org>
17988         count-leading-zeros tests: Rely on limits-h module.
17989         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17990         definition.
17991         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17993 2018-09-06  Bruno Haible  <bruno@clisp.org>
17995         count-one-bits tests: Rely on limits-h module.
17996         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17997         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17999 2018-09-06  Bruno Haible  <bruno@clisp.org>
18001         xstrtoll: Rely on limits-h module.
18002         * lib/xstrtol.c: Don't include intprops.h.
18003         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18004         * modules/xstrtol (Depends-on): Remove 'intprops'.
18005         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18007 2018-09-06  Bruno Haible  <bruno@clisp.org>
18009         strtoll, strtoull: Rely on limits-h module.
18010         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18011         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18012         * modules/strtoll (Depends-on): Add limits-h.
18013         * modules/strtoull (Depends-on): Likewise.
18015 2018-09-06  Bruno Haible  <bruno@clisp.org>
18017         intprops tests: Fix compilation error with pre-C99 compiler.
18018         * tests/test-intprops.c (verify_stmt): New macro.
18019         (VERIFY, main): Use it.
18021 2018-09-06  Bruno Haible  <bruno@clisp.org>
18023         limits-h: Provide numerical limits macros.
18024         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18025         IRIX and for GCC.
18026         (WORD_BIT, LONG_BIT): Define.
18027         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18028         <limits.h> does not define LLONG_MAX or WORD_BIT.
18029         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18030         TYPE_MAXIMUM): New macros, from intprops.h.
18031         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18032         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18033         provides.
18035 2018-09-05  Bruno Haible  <bruno@clisp.org>
18037         fcntl: Don't access nonexistent optional argument.
18038         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18039         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18040         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18041         don't consume an argument. For actions that take an 'int' argument,
18042         consume an 'int' argument.
18044 2018-09-05  Eric Blake  <eblake@redhat.com>
18046         doc: mention environ pitfall
18047         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18048         environ is a glibc extension.
18050 2018-09-03  Bruno Haible  <bruno@clisp.org>
18052         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18053         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18054         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18055         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18056         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18057         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18059 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18061         mktime: fix unlikely race+overflow bug
18062         Problem reported by Alexandre Oliva in:
18063         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18064         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18065         to avoid an unlikely race if the compiler delays a load and
18066         if this cascades into a signed integer overflow.
18068 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18070         mktime, timegm: simplify glibc time64_t
18071         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18072         Now long int, not time_t, since long int is the longstanding type
18073         for this in glibc and there is no need to change it even if time_t
18074         becomes 64 bits - even int would do, though this would be a change
18075         to the glibc generated code.  When this change is merged into
18076         glibc, it should simplify the time_t vs time64_t situation.
18078         mktime, timegm: simplify merge to glibc
18079         Move code around to make a merge to glibc easier to audit.
18080         This should not change behavior.
18081         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18082         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18083         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18084         simplify later conditionals; default the others to zero.  In uses
18085         of these conditionals, explicitly spell out how _LIBC affects
18086         things, so it’s easier to review from a glibc viewpoint.
18087         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18088         compartmentalize tzset issues.  Move system-dependent tzsettish
18089         code here from mktime.
18090         (mktime): Move tzsettish code to my_tzset, and move
18091         localtime_offset to within mktime so that it doesn’t
18092         need a separate ifdef.
18094 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18096         intprops: avoid evaluation of some expressions
18097         This makes EXPR_SIGNED (e) easier to use, as it no longer
18098         evaluates the expression E.  Formerly, E was required to be free
18099         of side effects.
18100         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18101         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18102         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18104 2018-08-23  Bruno Haible  <bruno@clisp.org>
18106         getcwd: Add cross-compilation guesses.
18107         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18108         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18109         Based on a patch by Paul Eggert.
18110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18111         guesses for all GNU systems.
18113 2018-08-19  Bruno Haible  <bruno@clisp.org>
18115         glob-h: Formalize side effects from other modules.
18116         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18117         * m4/glob.m4 (gl_GLOB): Invoke it.
18119         fnmatch-h: Formalize side effects from other modules.
18120         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18123         limits-h: Formalize side effects from other modules.
18124         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18125         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18127 2018-08-19  Bruno Haible  <bruno@clisp.org>
18129         getpass: Move declaration to <unistd.h>.
18130         * lib/unistd.in.h (getpass): New declaration.
18131         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18132         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18133         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18134         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18135         On glibc systems, don't set REPLACE_GETPASS to 1.
18136         * modules/getpass (Depends-on): Add 'unistd'.
18137         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18138         (Include): Specify <unistd.h> instead of "getpass.h".
18139         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18140         (configure.ac): Sync with the configure.ac section of modules/getpass.
18141         (Include): Specify <unistd.h> instead of "getpass.h".
18142         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18143         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18144         REPLACE_GETPASS.
18145         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18146         REPLACE_GETPASS.
18147         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18148         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18149         and musl.
18150         * NEWS: Mention the change.
18152 2018-08-19  Bruno Haible  <bruno@clisp.org>
18154         glob: Fix over-optimization due to attribute __nonnull__.
18155         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18157 2018-08-19  Bruno Haible  <bruno@clisp.org>
18159         glob: Fix another compilation error when glob.h is not replaced.
18160         Reported by Reuben Thomas <rrt@sc3d.org> in
18161         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18162         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18163         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18165 2018-08-18  Bruno Haible  <bruno@clisp.org>
18167         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18168         Reported by Reuben Thomas <rrt@sc3d.org> in
18169         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18171         in config.h.
18173 2018-08-18  Bruno Haible  <bruno@clisp.org>
18175         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18176         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18177         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18178         Solution proposed by Eli Zaretskii.
18179         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18180         * lib/gettimeofday.c (GetProcAddress): Likewise.
18181         * lib/link.c (GetProcAddress): Likewise.
18182         * lib/physmem.c (GetProcAddress): Likewise.
18183         * lib/poll.c (GetProcAddress): Likewise.
18184         * lib/select.c (GetProcAddress): Likewise.
18185         * lib/stat-w32.c (GetProcAddress): Likewise.
18187 2018-08-18  Bruno Haible  <bruno@clisp.org>
18189         glob: Fix another compilation error when glob.h is not replaced.
18190         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18191         * lib/globfree.c: Include <libc-config.h>.
18193 2018-08-18  Bruno Haible  <bruno@clisp.org>
18195         glob: Fix compilation error when glob.h is not replaced.
18196         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18197         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18198         * lib/glob_pattern_p.c: Include <libc-config.h>.
18199         * modules/glob (Depends-on): Add libc-config.
18201 2018-08-18  Bruno Haible  <bruno@clisp.org>
18203         scratch_buffer: Add tests.
18204         * tests/test-scratch-buffer.c: New file.
18205         * modules/scratch_buffer-tests: New file.
18207 2018-08-18  Bruno Haible  <bruno@clisp.org>
18209         scratch_buffer: Fix include file.
18210         Reported by Reuben Thomas <rrt@sc3d.org> in
18211         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18212         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18213         double-inclusion guard.
18215 2018-08-18  Bruno Haible  <bruno@clisp.org>
18217         glob-h: Revert Paul Eggert's revert.
18218         * m4/glob_h.m4: Revert to previous state.
18219         * modules/glob-h: Likewise.
18221 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18223         glob-h: always build glob.h
18224         This works around a problem reported by Reuben Thomas in:
18225         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18226         This workaround always builds glob.h, even on platforms that
18227         do not need it; perhaps this could be improved someday.
18228         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18229         is always created now.
18230         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18232 2018-08-13  Bruno Haible  <bruno@clisp.org>
18234         monetary: Simplify m4 code.
18235         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18236         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18238 2018-08-13  Bruno Haible  <bruno@clisp.org>
18240         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18241         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18242         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18243         and by Paul J. Lucas <paul@lucasmail.org> in
18244         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18245         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18247 2018-08-11  Bruno Haible  <bruno@clisp.org>
18249         setlocale: Trivial simplification.
18250         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18252 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18254         verify: port 'assume' to traditional tools
18255         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18256         and other tools that use /*NOTREACHED*/ comments.
18258 2018-08-10  Bruno Haible  <bruno@clisp.org>
18260         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18261         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18262         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18263         'fnmatch-gnu' is in use.
18265 2018-08-07  Bruno Haible  <bruno@clisp.org>
18267         glob-h: Add tests.
18268         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18269         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18270         tests/test-glob-h.c.
18271         * modules/glob-h-tests: New file.
18272         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18273         conditions.
18274         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18275         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18277 2018-08-07  Bruno Haible  <bruno@clisp.org>
18279         glob-h: New module.
18280         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18281         replacements.
18282         * lib/glob.c: Include <config.h>.
18283         * m4/glob_h.m4: New file.
18284         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18285         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18286         REPLACE_GLOB_PATTERN_P as appropriate.
18287         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18288         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18289         * modules/glob-h: New file.
18290         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18291         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18292         lstat, sys_stat. Change conditions.
18293         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18294         REPLACE_GLOB_PATTERN_P. Set module indicator.
18295         (Makefile.am): Remove code that is moved to glob-h.
18296         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18297         * modules/posixcheck (Depends-on): Add glob-h.
18299 2018-08-06  Bruno Haible  <bruno@clisp.org>
18301         Force generation of substitute .h file when C++ support is enabled.
18302         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18303         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18304         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18305         FNMATCH_H to non-empty.
18306         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18307         ICONV_H to non-empty.
18308         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18309         MONETARY_H to non-empty.
18310         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18311         non-empty.
18313 2018-08-06  Bruno Haible  <bruno@clisp.org>
18315         fnmatch-h: Fix test compilation error on mingw (regression from today).
18316         * lib/fnmatch.in.h: Fix conditions.
18318 2018-08-06  Bruno Haible  <bruno@clisp.org>
18320         sys_resource: Relicense under LGPLv2+.
18321         John Malmberg's approval is in
18322         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18323         * modules/sys_resource (License): Change to LGPLv2+.
18325 2018-08-06  Bruno Haible  <bruno@clisp.org>
18327         fnmatch-h: Add tests.
18328         * tests/test-fnmatch-h.c: New file.
18329         * modules/fnmatch-h-tests: New file.
18330         * tests/test-fnmatch-h-c++.cc: New file.
18331         * modules/fnmatch-h-c++-tests: New file.
18333 2018-08-06  Bruno Haible  <bruno@clisp.org>
18335         fnmatch-h: New module.
18336         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18337         replacements.
18338         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18339         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18340         'posixcheck' warning.
18341         * m4/fnmatch_h.m4: New file.
18342         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18343         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18344         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18345         as appropriate.
18346         * modules/fnmatch-h: New file.
18347         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18348         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18349         conditions.
18350         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18351         indicator.
18352         (Makefile.am): Remove code that is moved to fnmatch-h.
18353         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18354         REPLACE_FNMATCH.
18355         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18356         * modules/posixcheck (Depends-on): Add fnmatch-h.
18358 2018-08-06  Bruno Haible  <bruno@clisp.org>
18360         Enable more C++ tests.
18361         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18362         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18363         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18364         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18365         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18367 2018-08-06  Bruno Haible  <bruno@clisp.org>
18369         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18370         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18371         getopt.h.
18372         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18374 2018-08-05  Bruno Haible  <bruno@clisp.org>
18376         utime-h: Generate header file when module 'posixcheck' is in use.
18377         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18378         UTIME_H to non-empty.
18380 2018-08-05  Bruno Haible  <bruno@clisp.org>
18382         monetary: Generate header file when module 'posixcheck' is in use.
18383         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18384         use, set MONETARY_H to non-empty.
18386 2018-08-05  Bruno Haible  <bruno@clisp.org>
18388         iconv-h: Generate header file when module 'posixcheck' is in use.
18389         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18390         set ICONV_H to non-empty.
18392 2018-08-05  Bruno Haible  <bruno@clisp.org>
18394         Optimize the "checking whether ... is declared without a macro" checks.
18395         Suggested by Paul Eggert in
18396         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18397         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18398         Gnulib module 'posixcheck' is not in use.
18400 2018-08-05  Bruno Haible  <bruno@clisp.org>
18402         iconv-h: Enable 'posixcheck' warnings.
18403         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18404         iconv_open.
18405         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18407 2018-08-05  Bruno Haible  <bruno@clisp.org>
18409         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18410         * m4/extern-inline.m4: Add more comments.
18411         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18412         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18413         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18415 2018-08-04  Bruno Haible  <bruno@clisp.org>
18417         New module 'posixcheck'.
18418         * modules/posixcheck: New file.
18419         * m4/posixcheck.m4: New file.
18420         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18421         (Which modules?): Reference it.
18423 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18425         dfa: fix memory leak
18426         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18428 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18430         ieee754-h: new module
18431         It looks like Emacs can use this for some NaN processing.
18432         Emacs uses it only on double NaNs so it should be safe.
18433         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18434         * config/srclist.txt: Mention ieee754.h in a comment.
18435         * doc/glibc-headers/ieee754.texi (ieee754.h):
18436         Gnulib now has a substitute that should work
18437         except for long double and for non-IEEE platforms.
18438         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18439         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18441 2018-07-27  Bruno Haible  <bruno@clisp.org>
18443         iswcntrl: Mention minor problem on macOS.
18444         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18446 2018-07-26  Colin Watson  <cjwatson@debian.org>
18448         bootstrap, gnulib-tool: fix translations rsync
18449         Previously, we created files such as $pobase/Makefile.in.in and then the
18450         subsequent rsync would immediately delete them.
18451         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18452         non-.po files in target directory when rsyncing translations.
18453         * gnulib-tool (func_import): Likewise.
18454         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18456 2018-07-25  Jim Meyering  <meyering@fb.com>
18458         bootstrap: reinstate definition fo gnulib_mk.
18459         That variable is used at least by cppi.
18460         * build-aux/bootstrap (gnulib_mk): Restore definition.
18461         This reverts the deletion from v0.1-1844-gc66dba9ba.
18463 2018-07-23  Bruno Haible  <bruno@clisp.org>
18465         doc: For module names, use texinfo markup @code{} or @samp{}.
18466         * doc/alloca.texi: Mark gnulib module names with @code.
18467         * doc/alloca-opt.texi: Likewise.
18468         * doc/quote.texi: Likewise.
18469         * doc/posix-functions/freopen.texi: Likewise.
18470         * doc/posix-functions/open.texi: Likewise.
18471         * doc/posix-functions/readlink.texi: Likewise.
18472         * doc/posix-functions/readlinkat.texi: Likewise.
18473         * doc/posix-functions/stdout.texi: Likewise.
18474         * doc/posix-functions/stderr.texi: Likewise.
18475         * doc/posix-functions/unlink.texi: Likewise.
18476         * doc/posix-functions/unlinkat.texi: Likewise.
18477         * doc/posix-functions/utime.texi: Likewise.
18478         * doc/posix-functions/utimensat.texi: Likewise.
18479         * doc/posix-functions/utimes.texi: Likewise.
18480         * doc/posix-headers/stdint.texi: Likewise.
18481         * doc/glibc-functions/futimesat.texi: Likewise.
18482         * doc/glibc-functions/lutimes.texi: Likewise.
18483         * doc/glibc-functions/memmem.texi: Likewise.
18485 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18487         doc: Avoid some overfull lines in the TeX output.
18488         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18489         @example.
18490         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18491         newline before the long URL.
18492         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18493         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18494         Add line breaks in code snippets.
18496 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18498         hard-locale: simplify by removing hard-locale.m4
18499         * m4/hard-locale.m4: Remove.
18500         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18501         (configure.ac): Do not call gl_HARD_LOCALE.
18503         gnulib-tool: limit line length for git send-email
18504         * gnulib-tool (func_import): Break actioncmd log line
18505         into multiple lines.
18507 2018-07-16  Bruno Haible  <bruno@clisp.org>
18509         ffs: Ensure declaration on mingw.
18510         Reported by Daniel P. Berrangé <berrange@redhat.com>
18511         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18512         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18513         also declared.
18515 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18517         regex-tests: add dependency
18518         * modules/regex-tests (Depends-on): Add gettext-h.
18519         This is needed given the recent changes to regex,
18520         which no longer depends on gettext-h.
18522 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18524         regex: now in sync with glibc
18525         * config/srclist.txt: Gnulib and glibc regex code
18526         are synchronized again.
18528 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18530         renameatu: rename from renameat2
18531         It's looking like Glibc will add a renameat2 function
18532         that is incompatible with Gnulib renameat2; see:
18533         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18534         To help avoid future confusion, rename renameat2 to something else.
18535         Use the name 'renameatu', as the Gnulib function is close to the
18536         Glibc function.  Perhaps someday there will also be a renameat2
18537         Gnulib module, which mimicks the future glibc renameat2, but that
18538         can wait as nobody seems to need such a module now.
18539         * NEWS: Mention this.
18540         * lib/renameatu.c: Rename from lib/renameat2.c.
18541         * lib/renameatu.h: Rename from lib/renameat2.h.
18542         * modules/renameatu: Rename from modules/renameat2.
18543         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18544         All uses of "renameat2" in identifiers or file name
18545         changed to "renameatu", except for two instances in
18546         lib/renameatu.c that deal with the Linux kernel's
18547         renameat2 syscall.
18549 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18551         gnulib-tool: minor tweaks for --gnu-make
18552         * gnulib-tool: Do not allow --gnu-make in test modes,
18553         since they all require automake.
18554         (func_emit_lib_Makefile_am): Don’t emit automake comment
18555         if --gnu-make.
18557         regex: work around conditional-dependencies glitch
18558         * modules/regex (Depends-on): Add langinfo.
18559         Without this change, I had problems building an experimental
18560         version of GNU Emacs.  The symptom of the bug was a message
18561         ‘./configure: line 12726: test: =: unary operator expected’.
18562         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18563         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18564         was unset.  Although gl_FUNC_NL_LANGINFO has
18565         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18566         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18567         --conditional-dependencies sometimes arranges for the
18568         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18569         code.  Since the regex code includes <langinfo.h> it should be
18570         depending on the langinfo module anyway, and this happens to work
18571         around the bug, so install that as a workaround for now.  To
18572         reproduce the original problem, run the following shell script on
18573         the version of Gnulib just before this patch was installed.
18574                 rm -fr foo
18575                 mkdir foo
18576                 cat >foo/configure.ac <<'EOF'
18577                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18578                 gl_EARLY
18579                 gl_INIT
18580                 AC_OUTPUT
18581                 EOF
18582                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18583                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18584                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18585                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18586                 cd foo
18587                 aclocal -I m4
18588                 autoconf
18589                 ./configure --with-included-regex
18591 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18593         wchar: fix bug when checking for ‘inline’
18594         I discovered this when looking into using the regex module
18595         with Emacs.
18596         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18597         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18598         conftest1.c and conftest2.c but these files were not created.
18599         As far as I can see, this check never worked and nobody reported
18600         it until now, which is a bit worrisome.
18602 2018-06-30  Jim Meyering  <meyering@fb.com>
18604         bootstrap: s/--option val/--option=val/
18605         * build-aux/bootstrap (gnulib_tool_options): Change the
18606         spelling of "--option val" pairs to "--option=val", for
18607         aesthetics, and also so that this file no longer triggers
18608         a common help2man syntax-check warning when copied into
18609         projects like grep, gzip, etc.
18611 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18613         manywarnings: omit -Wswitch-default
18614         This should make things more consistent, as we already ignore
18615         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18616         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18617         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18618         Add -Wswitch-default.
18619         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18620         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18621         Remove -Wswitch-default.
18623         regex: revert most trimming
18624         Problems reported by Bruno Haible in:
18625         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18626         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18627         and wctype back in.  lock because regex users shouldn’t
18628         need to know that regex needs locking, and the rest because
18629         gnulib-tool should ordinarily ignore them anyway.
18631 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18633         regex: trim module dependencies
18634         * modules/regex (Depends-on): Remove gettext-h and lock,
18635         since the regex code should work OK without these modules,
18636         and Emacs uses it that way.  Also remove memcmp, memmove,
18637         and wctype, as these modules are obsolete and should not be
18638         needed any more.
18640 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18642         regex: glibc does not use intprops.h
18643         Maybe we can talk glibc into using intprops.h someday, but
18644         now doesn’t seem to be a good time.
18645         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18646         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18647         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18649 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18651         regex: port to recently proposed glibc regex merge
18652         This patch is inspired by Adhemerval Zanella's recent proposal
18653         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18654         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18655         the glibc side, without keeping Gnulib portable.
18656         * lib/regex.h: Fix a problem with glibc installed-header checking,
18657         as follows:
18658         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18659         (_Restrict_arr_): Prefer __restrict_arr if defined,
18660         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18661         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18662         (build_wcs_upper_buffer, build_upper_buffer)
18663         (re_string_translate_buffer, re_string_context_at):
18664         Move decls here from lib/regex_internal.h, for glibc internal tests.
18665         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18666         glibc BZ #18496.
18667         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18668         -Wunused-value.
18669         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18670         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18671         (bitset_mask): Now static inline, and without any __attribute__
18672         ((unused)) decoration, for glibc internal tests.
18674 2018-06-25  Bruno Haible  <bruno@clisp.org>
18676         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18677         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18678         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18679         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18680         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18681         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18682         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18683         / -lthread / -lpth does not get optimized away by a preceding
18684         --as-needed option.
18686 2018-06-25  Bruno Haible  <bruno@clisp.org>
18688         Continue to use spaces for indentation, not tabs.
18689         * MODULES.html.sh: Untabify.
18690         * doc/regex.texi: Likewise.
18691         * lib/acl-internal.c: Likewise.
18692         * lib/dfa.c: Likewise.
18693         * lib/exclude.c: Likewise.
18694         * lib/exclude.h: Likewise.
18695         * lib/get-permissions.c: Likewise.
18696         * lib/gettimeofday.c: Likewise.
18697         * lib/parse-datetime.y: Likewise.
18698         * lib/pselect.c: Likewise.
18699         * lib/set-permissions.c: Likewise.
18700         * lib/time.in.h: Likewise.
18701         * m4/canonicalize.m4: Likewise.
18702         * m4/gc.m4: Likewise.
18703         * m4/gnulib-common.m4: Likewise.
18704         * m4/pthread_sigmask.m4: Likewise.
18705         * m4/vararrays.m4: Likewise.
18706         * tests/test-digest.h: Likewise.
18707         * tests/test-fcntl-h.c: Likewise.
18708         * tests/test-timespec.c: Likewise.
18709         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18711 2018-06-25  Bruno Haible  <bruno@clisp.org>
18713         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18714         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18716         -Wjump-misses-init.
18718 2018-06-25  Jim Meyering  <meyering@fb.com>
18720         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18721         * lib/acl-internal.h (free_permission_context): Remove that
18722         attribute directive.  Otherwise, it would provoke this from GCC 9:
18723         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18724           returning 'void' [-Werror=attributes]
18726 2018-06-24  Jim Meyering  <meyering@fb.com>
18728         parse-datetime: accommodate gcc-4.8.5
18729         Bruno Haible reported the build failure in
18730         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18731         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18732         on declaration of new local.
18734 2018-06-24  Bruno Haible  <bruno@clisp.org>
18736         af_alg: Fail in continuable manner on Linux/powerpc64le.
18737         Reported by Assaf Gordon <assafgordon@gmail.com>
18738         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18739         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18740         byte send() as the first round.
18742 2018-06-24  Bruno Haible  <bruno@clisp.org>
18744         af_alg: Fix state of stream after sendfile() succeeds.
18745         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18746         the stream is correctly positioned afterwards.
18747         * modules/crypto/af_alg (Depends-on): Add fflush.
18748         * tests/test-digest.h (test_digest_on_files): Verify that after the
18749         operation the stream is positioned at end of file.
18751 2018-06-24  Jim Meyering  <meyering@fb.com>
18753         canon-host: take GCC9's advice rather than ignoring warning
18754         Pádraig Brady suggested not to ignore this GCC9 advice.
18755         * lib/canon-host.c: Undo preceding change.
18756         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18758         parse-datetime.y: avoid spurious GCC 9 warning
18759         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18760         a function local prior to the first "goto fail".  The prior use would
18761         evoke this:
18762         parse-datetime.y: In function 'parse_datetime2':
18763         parse-datetime.y:1791:19: error: jump skips variable initialization \
18764           [-Werror=jump-misses-init]
18765         parse-datetime.y:2385:2: note: label 'fail' defined here
18766         parse-datetime.y:188:43: note: '({anonymous})' declared here
18767         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18769         canon-host.c: avoid spurious GCC 9 warning
18770         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18772         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18773         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18774         * m4/manywarnings.m4: Remove them.
18775         Otherwise, building coreutils, I would see this:
18776         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18777         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18778         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18779           which is also used by default
18780         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18782 2018-06-24  Bruno Haible  <bruno@clisp.org>
18784         af_alg tests: Add another test.
18785         * tests/test-digest.h (test_digest_on_files): Also check a large file
18786         with a skipped header.
18787         * tests/test-md5.c: Include macros.h.
18788         * tests/test-sha1.c: Likewise.
18789         * tests/test-sha256.c: Likewise.
18790         * tests/test-sha512.c: Likewise.
18791         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18792         * modules/crypto/sha1-tests (Files): Likewise.
18793         * modules/crypto/sha256-tests (Files): Likewise.
18794         * modules/crypto/sha512-tests (Files): Likewise.
18796 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18798         maint: clarify comments about sticky EOF
18799         * lib/af_alg.c: Be more direct that we can't
18800         assume stickiness of EOF for portability reasons.
18801         * lib/md5.c: Clarify that this isn't just a glibc issue.
18802         * lib/sha1.c: Likewise.
18803         * lib/sha256.c: Likewise.
18804         * lib/sha512.c: Likewise.
18806 2018-06-24  Bruno Haible  <bruno@clisp.org>
18808         af_alg: Comment and style improvements.
18809         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18810         (afalg_buffer, afalg_stream): Improve comments.
18812 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18814         af_alg: disable kernel hash functions by default
18815         All the kernel routines were seen to be significantly slower
18816         with these relatively recent components on an i3-2310M system:
18817           kernel-4.10.6-200.fc25.x86_64
18818           openssl-1.0.2m-1.fc25.x86_64
18819         sha1 was nearly twice as slow in the kernel for example.
18820         Further considerations why this should not be the default, at:
18821         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18823         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18824         * m4/gl-openssl.m4: Tweak accordingly.
18826 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18828         af_alg: avoid hangs when reading from streams
18829         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18830         and thus avoid doing a fread() when feof() is set.
18831         * lib/md5.c: Ensure feof() is called before fread().
18832         * lib/sha1.c: Likewise.
18833         * lib/sha256.c: Likewise.
18834         * lib/sha512.c: Likewise.
18836 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18838         af_alg: fix error handling when hash not returned
18839         * lib/af_alg.c (afalg_stream): Handle the case where we've
18840         successfully written data to the kernel in the read/write loop,
18841         but the kernel doesn't respond with the hash.
18843 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18845         libc-config: merge from glibc
18846         * lib/cdefs.h (__inline, __restrict):
18847         Copy from current glibc.  This fixes glibc bug 17721,
18848         which Gnulib had already fixed in a different way.
18849         (__nonnull): Lessen the distance from glibc by using the
18850         glibc definition inside an ‘#ifndef __nonnull’.
18851         (__attribute_nonstring__): New macro, copied from
18852         current glibc.
18853         * lib/libc-config.h (__attribute_nonstring__): New undef.
18854         (__restrict): Remove; workaround no longer needed.
18855         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18856         support more compilers than the glibc __inline can.
18858 2018-06-24  Bruno Haible  <bruno@clisp.org>
18860         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18861         * lib/mbrtowc.c (enc_t): New enum type.
18862         (locale_enc, locale_enc_cached): New functions.
18863         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18864         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18865         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18866         instead.
18867         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18868         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18869         * modules/wcwidth (configure.ac): Invoke it.
18871 2018-06-24  Bruno Haible  <bruno@clisp.org>
18873         wchar-single: Fix test failure in wcwidth tests.
18874         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18875         skip the tests in the C locale.
18877 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18879         crypto: mention --without-linux-crypto in --with-openssl --help
18880         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18881         routines take precedence in --with-openssl help output.
18883 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18885         wchar-single: a new module to enable optimizations in wchar replacements
18886         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18887         GNULIB_WCHAR_SINGLE is enabled.
18888         * lib/wcwidth.c (wcwidth): Likewise.
18890 2018-06-23  Bruno Haible  <bruno@clisp.org>
18892         libc-config: Fix conflict with FreeBSD include files.
18893         * lib/cdefs.h (__nonnull): Remove definition.
18894         * lib/libc-config.h (__nonnull): Remove undefinition.
18896 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18898         random_r: do not crash if state is unaligned
18899         Problem reported by Bruce Korb in:
18900         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18901         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18902         with 'cc -O2 -xmemalign=8s'.
18903         * lib/random_r.c: Include string.h, for memcpy.
18904         (get_int32, set_int32): New functions.
18905         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18906         Use them to avoid assumption that state pointer is aligned.
18907         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18908         * tests/test-random_r.c (test_failed): New function.
18909         (main): Use it, to test for alignment bugs.
18911         random_r: omit unnecessary include
18912         * lib/random_r.c: Do not include limits.h.
18914         random, random_r: merge from glibc
18915         * lib/random.c, lib/random_r.c:
18916         Include libc-config.h if !_LIBC, not config.h unilaterally.
18917         * lib/random.c:
18918         Do not include stdint.h or time.h; not needed.
18919         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18920         (unsafe_state): Rename from generator.  All uses changed.
18921         Use C99-style initializers.
18922         (__random, __srandom, __initstate, __setstate): Rename from
18923         non-underscored version, but define it to non-underscored version
18924         on Gnulib.  Add a lock.
18925         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18926         Likewise.
18927         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18928         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18929         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18930         (__random_r): Use uint32 to fix glibc bug 17343.
18931         * modules/random, modules/random_r (Depends-on): Add libc-config.
18932         Depend on stdint only if $HAVE_RANDOM = 0.
18934 2018-06-19  Jim Meyering  <meyering@fb.com>
18936         README-release: also run any check-very-expensive tests
18937         * top/README-release: Adjust instructions so they run the
18938         check-very-expensive tests when there is such a target.
18940 2018-06-18  Bruno Haible  <bruno@clisp.org>
18942         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18943         * m4/pthread_rwlock_rdlock.m4: Add comment.
18944         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18945         are reader-preferring in glibc.
18946         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18947         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18949 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18951         crypto: use byteswap
18952         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18953         * lib/sm3.c: Include <byteswap.h>.
18954         (SWAP): Use its macros rather than reinventing the wheel.
18955         * modules/crypto/md4, modules/crypto/md5-buffer:
18956         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18957         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18958         (Depends-on): Add byteswap.
18960 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18962         gendocs.sh: fix support for legacy --texi2html
18963         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18964         to the default makeinfo invocation.
18965         Reported by Bruce Korb
18967 2018-06-17  Bruno Haible  <bruno@clisp.org>
18969         gettext po infrastructure: Update from current gettext git.
18970         Reported by Akim Demaille <akim@lrde.epita.fr>.
18971         * build-aux/po/Makefile.in.in: Update from current gettext git.
18972         * build-aux/po/remove-potcdate.sin: Likewise.
18973         * config/srclist.txt: Temporarily disable sync for these files.
18975 2018-06-17  Bruno Haible  <bruno@clisp.org>
18977         getloadavg: Return 0 on Windows without Cygwin.
18978         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18980 2018-06-17  Paul Smith  <psmith@gnu.org>
18982         getloadavg: Allow building on Windows without Cygwin
18983         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18984         * m4/getloadavg.m4: Check for unistd.h.
18986 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18988         Port crypto/af_alg to GCC 4.8.4
18989         Problem reported by Peter Simons in:
18990         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18991         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18993 2018-05-27  Colin Watson  <cjwatson@debian.org>
18995         bootstrap: document source fetching in --help
18996         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18998 2018-04-09  Colin Watson  <cjwatson@debian.org>
19000         bootstrap: allow non-submodule control of gnulib
19001         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19002         bootstrap.conf when fetching gnulib using "git clone" or via
19003         GNULIB_SRCDIR.
19005 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19007         crypto: omit stream ops Emacs doesn’t need
19008         * lib/md5.c (md5_stream):
19009         * lib/sha1.c (sha1_stream):
19010         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19011         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19012         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19013         defined.  Emacs needs this, as it does not use the stream
19014         operations and doesn’t need all the af_alg stuff we’ve recently
19015         added.  Perhaps a similar change is needed to the other crypto
19016         modules, but this patch changes only those needed for Emacs.
19017         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19018         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19019         New modules, used by Emacs.
19020         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19021         * modules/crypto/sha512: Rewrite to depend on the new modules.
19023 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19025         fts: avoid a memory leak edge case
19026         * lib/fts.c (fts_open): Set an appropriate fts_level
19027         so that an immediate fts_close() will free the allocation.
19028         * tests/test-fts.c (fts_dealloc): Add a test case which
19029         will trigger under valgrind or address sanitizer.
19030         Fixes https://bugs.gnu.org/31439
19032 2018-05-20  Bruno Haible  <bruno@clisp.org>
19034         wcwidth tests: Fix link error.
19035         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19036         $(LIBUNISTRING).
19038 2018-05-20  Bruno Haible  <bruno@clisp.org>
19040         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19041         * modules/regex (Files): Add m4/glibc21.m4.
19043 2018-05-20  Bruno Haible  <bruno@clisp.org>
19045         localcharset: Optimize.
19046         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19047         platforms where these don't matter. This reduces the table size,
19048         which in turn reduces the lookup time.
19050 2018-05-19  Bruno Haible  <bruno@clisp.org>
19052         localcharset: Map the locale encodings found in newer OSes.
19053         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19054         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19055         IRIX 6.5, Minix 3.3.
19056         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19058 2018-05-19  Bruno Haible  <bruno@clisp.org>
19060         localcharset: Move mapping tables into the code. Use a binary search.
19061         * lib/localcharset.h: Document the GNU canonical names for character
19062         encodings here.
19063         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19064         relocatable.h, configmake.h.
19065         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19066         macros.
19067         (charset_aliases): Remove variable.
19068         (get_charset_aliases): Remove function.
19069         (struct table_entry): New type.
19070         (alias_table, locale_table): New constants.
19071         (locale_charset): Use the alias_table or locale_table to get the
19072         canonicalized encoding name.
19073         * lib/config.charset: Remove file.
19074         * lib/ref-add.sin: Remove file.
19075         * lib/ref-del.sin: Remove file.
19076         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19077         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19078         * modules/localcharset (Notice): Remove.
19079         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19080         glibc21.m4.
19081         (Depends-on): Remove configmake.
19082         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19083         (Makefile.am): Simplify.
19084         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19086 2018-05-19  Bruno Haible  <bruno@clisp.org>
19088         localcharset: Add a manual test.
19089         * tests/test-localcharset.c: New file.
19090         * modules/localcharset-tests: New file.
19092 2018-05-19  Bruno Haible  <bruno@clisp.org>
19094         localcharset: Remove support for obsolete platforms.
19095         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19096         Mac OS X 10.2. Comment out dubious entry for Solaris.
19098 2018-05-19  Jim Meyering  <meyering@fb.com>
19100         gnupload: adjust comment
19101         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19102         more likely we'll remove the just-added code in a year or two.
19104 2018-05-19  Bruno Haible  <bruno@clisp.org>
19106         gnupload: Fix "gpg-agent is not available in this session" error.
19107         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19109 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19111         crypto/af_alg: fix --help
19112         * m4/af_alg.m4: Avoid spurious newline in --help output.
19114 2018-05-13  Bruno Haible  <bruno@clisp.org>
19116         nl_langinfo: Fix compilation error on Android.
19117         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19118         INT_CURR_SYMBOL, etc. only if these items are defined.
19120 2018-05-13  Bruno Haible  <bruno@clisp.org>
19122         truncate: Fix compilation error on Android.
19123         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19124         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19125         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19126         HAVE_TRUNCATE.
19127         * modules/truncate: Likewise.
19128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19129         not HAVE_TRUNCATE.
19130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19131         HAVE_TRUNCATE.
19132         * doc/posix-functions/truncate.texi: Mention the issue.
19134 2018-05-13  Bruno Haible  <bruno@clisp.org>
19136         pthread: Fix compilation error on Android.
19137         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19138         recursive inclusion of this file.
19140 2018-05-13  Bruno Haible  <bruno@clisp.org>
19142         posix_spawn: Fix compilation error on Android.
19143         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19144         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19145         (posix_spawn_file_actions_t): Consider also the case
19146         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19148 2018-05-13  Bruno Haible  <bruno@clisp.org>
19150         tsearch: Move from K&R C to ANSI C.
19151         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19153 2018-05-13  Bruno Haible  <bruno@clisp.org>
19155         tsearch: Fix compilation error on Android.
19156         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19157         is 0.
19158         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19159         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19160         GNULIB_defined_tsearch is true.
19161         (twalk): Define only if GNULIB_defined_twalk is true.
19162         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19163         is 0.
19164         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19165         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19166         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19168 2018-05-13  Bruno Haible  <bruno@clisp.org>
19170         imaxdiv: Fix compilation error on Android.
19171         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19172         is not defined.
19173         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19174         HAVE_DECL_IMAXDIV, is 0.
19175         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19176         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19178 2018-05-13  Bruno Haible  <bruno@clisp.org>
19180         Support selective inclusion mechanism of recent mingw.org header files.
19181         Reported by Eli Zaretskii <eliz@gnu.org>.
19182         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19183         __need_ssize_t, or __need_time_t is defined, just include the system's
19184         <sys/types.h>.
19185         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19186         include the system's <locale.h>.
19188 2018-05-13  Bruno Haible  <bruno@clisp.org>
19190         Avoid compilation error due to 'mmap' on Android.
19191         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19192         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19193         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19194         Undefine on Android.
19196 2018-05-13  Bruno Haible  <bruno@clisp.org>
19198         Add cross-compilation guesses for Linux systems without glibc.
19199         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19201         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19202         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19203         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19204         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19205         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19206         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19207         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19208         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19209         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19210         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19211         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19212         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19213         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19214         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19215         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19216         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19218 2018-05-13  Bruno Haible  <bruno@clisp.org>
19220         getpagesize: Fix compilation error on Android.
19221         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19222         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19223         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19224         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19225         HAVE_GETPAGESIZE accordingly.
19226         * modules/getcwd (Files): Add m4/getpagesize.m4.
19228 2018-05-13  Bruno Haible  <bruno@clisp.org>
19230         tcgetsid: Fix compilation error on Android.
19231         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19232         AC_CHECK_FUNC.
19234 2018-05-13  Bruno Haible  <bruno@clisp.org>
19236         getpass: Fix configure test for Android.
19237         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19238         AC_CHECK_FUNC.
19240 2018-05-13  Bruno Haible  <bruno@clisp.org>
19242         ffs: Fix compilation error on Android.
19243         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19245 2018-05-13  Bruno Haible  <bruno@clisp.org>
19247         mkfifo: Fix compilation error on Android.
19248         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19249         AC_CHECK_FUNC.
19251 2018-05-13  Bruno Haible  <bruno@clisp.org>
19253         c-strtod: Fix configure test for Android.
19254         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19255         AC_CHECK_FUNC.
19257 2018-05-13  Bruno Haible  <bruno@clisp.org>
19259         random: Fix compilation error on Android.
19260         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19261         AC_CHECK_FUNC.
19263 2018-05-13  Bruno Haible  <bruno@clisp.org>
19265         grantpt: Fix compilation error on Android.
19266         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19267         AC_CHECK_FUNC.
19269 2018-05-13  Bruno Haible  <bruno@clisp.org>
19271         stdioext: Fix compilation errors with newer Android headers.
19272         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19273         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19274         fallbacks for Android.
19275         * lib/fpending.c: Update comments.
19276         * lib/fpurge.c: Likewise.
19277         * lib/freadable.h: Likewise.
19278         * lib/freadable.c: Likewise.
19279         * lib/freadahead.c: Likewise.
19280         * lib/freading.h: Likewise.
19281         * lib/freadptr.c: Likewise.
19282         * lib/fseterr.c: Likewise.
19283         * lib/fwritable.h: Likewise.
19284         * lib/fwritable.c: Likewise.
19285         * lib/fwriting.h: Likewise.
19286         * lib/fwriting.c: Likewise.
19288 2018-05-13  Bruno Haible  <bruno@clisp.org>
19290         doc: Add info about Android versions 2.0 to 8.1.
19291         * doc/**/*.texi: Add info about functions in all released versions of
19292         Bionic.
19294 2018-05-12  Bruno Haible  <bruno@clisp.org>
19296         fseeko: On mingw, don't use the hidden function _fseeki64.
19297         Reported by Eli Zaretskii <eliz@gnu.org>.
19298         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19299         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19301 2018-05-12  Bruno Haible  <bruno@clisp.org>
19303         glob: Choose 'dirent_type' in a way that works better on mingw.
19304         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19305         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19307 2018-05-12  Bruno Haible  <bruno@clisp.org>
19309         execute, spawn-pipe: Avoid warning about redefining 'close'.
19310         Reported by Eli Zaretskii <eliz@gnu.org>.
19311         * lib/execute.c: Undefine 'close' before redefining it.
19312         * lib/spawn-pipe.c: Likewise.
19314 2018-05-12  Bruno Haible  <bruno@clisp.org>
19316         nanosleep: Avoid test failure on mingw when it has nanosleep.
19317         Reported by Eli Zaretskii <eliz@gnu.org>.
19318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19319         If it does not exist, use a simpler test program that does not call
19320         alarm().
19322 2018-05-10  Bruno Haible  <bruno@clisp.org>
19324         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19325         Reported by Devin Hussey <husseydevin@gmail.com>.
19326         Based on a patch by Paul Eggert.
19327         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19328         as witness of libpthread.
19329         * lib/glthread/cond.h (pthread_in_use): Likewise.
19330         * lib/glthread/thread.h (pthread_in_use): Likewise.
19331         * lib/glthread/tls.h (pthread_in_use): Likewise.
19333 2018-05-10  Bruno Haible  <bruno@clisp.org>
19335         cond tests: Fix compilation error on Solaris.
19336         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19337         macro.
19339 2018-05-10  Bruno Haible  <bruno@clisp.org>
19341         doc: Add partial info about Android 4.3.
19342         * doc/*-functions/*.texi: Add info about functions that were added
19343         to Bionic between Android 4.3 and Android 9.0.
19345 2018-05-10  Bruno Haible  <bruno@clisp.org>
19347         doc: Add info about Android 9.0.
19348         * doc/**/*.texi: Add info about functions and headers in Bionic from
19349         Android 9.0.
19351 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19353         af_alg: fix my typo in afalg_buffer
19354         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19355         (afalg_stream): Simplify and avoid the need for a runtime test
19356         at the end.
19358         af_alg: recover better from crypto failures
19359         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19360         input stream is seekable, by repositioning the stream back to
19361         where it was, possibly by just calling sendfile with an offset
19362         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19363         cases, which lets our callers try again with user-mode code.
19364         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19365         instead of on fflush and lseek.
19367         af_alg: distiguish I/O errors better
19368         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19369         not -EIO, if it’s OK for the caller to try again with user-mode code.
19370         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19371         some other error number) if fflush fails, as the caller should not
19372         try again that case.
19374         af_alg: avoid gotos
19375         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19376         gotos, as they were a source of unreliability and made the code a
19377         bit harder to follow.
19379         af_alg: don’t leak file descriptors into children
19380         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19381         This code should be compiled only on recent GNU/Linux platforms
19382         so we shouldn’t have to also depend on the accept4 module.
19384         af_alg: coalesce socket creation
19385         * lib/af_alg.c (alg_socket): New function.
19386         (afalg_buffer, afalg_stream): Use it.  This avoids some
19387         code duplication and gotos.
19389         af_alg: fix file descriptor leak
19390         * lib/af_alg.c (afalg_stream): Close leak.
19392         af_alg: Pacify --enable-gcc-warnings on GCC 8
19393         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19394         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19396 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19398         af_alg: Pacify --enable-gcc-warnings
19399         Problem reported by Assaf Gordon in:
19400         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19401         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19402         gcc -Wjump-misses-init.
19403         * lib/sha512.c (shaxxx_stream): Now static.
19405 2018-05-06  Bruno Haible  <bruno@clisp.org>
19407         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19408         * lib/af_alg.h (afalg_buffer): New declaration.
19409         * lib/af_alg.c (afalg_buffer): New function.
19411 2018-05-06  Bruno Haible  <bruno@clisp.org>
19413         af_alg: Avoid warnings.
19414         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19415         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19417 2018-05-06  Bruno Haible  <bruno@clisp.org>
19419         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19420         * tests/bench-digest.h: New file.
19421         * tests/bench-md5.c: New file.
19422         * tests/bench-sha1.c: New file.
19423         * tests/bench-sha224.c: New file.
19424         * tests/bench-sha256.c: New file.
19425         * tests/bench-sha384.c: New file.
19426         * tests/bench-sha512.c: New file.
19427         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19428         tests/bench-digest.h.
19429         (Depends-on): Add getrusage, gettimeofday.
19430         (Makefile.am): Add variables to build bench-md5.
19431         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19432         tests/bench-digest.h.
19433         (Depends-on): Add getrusage, gettimeofday.
19434         (Makefile.am): Add variables to build bench-sha1.
19435         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19436         tests/bench-sha256.c, tests/bench-digest.h.
19437         (Depends-on): Add getrusage, gettimeofday.
19438         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19439         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19440         tests/bench-sha512.c, tests/bench-digest.h.
19441         (Depends-on): Add getrusage, gettimeofday.
19442         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19444 2018-05-06  Bruno Haible  <bruno@clisp.org>
19446         af_alg: Fix a resource leak.
19447         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19448         New local variable 'result'.
19450 2018-05-06  Bruno Haible  <bruno@clisp.org>
19452         af_alg: Fix bug with streams that are not at position 0.
19453         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19454         assume that the stream is positioned at position 0.
19455         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19456         of the stream.
19457         * lib/md5.h (md5_stream): Likewise.
19458         * lib/sha1.h (sha1_stream): Likewise.
19459         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19460         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19461         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19463         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19464         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19465         stream that is not positioned at the beginning.
19467 2018-05-06  Bruno Haible  <bruno@clisp.org>
19469         af_alg: Add configure option to enable/disable use of Linux crypto API.
19470         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19471         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19472         USE_LINUX_CRYPTO_API.
19473         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19474         * lib/af_alg.c: Likewise.
19476 2018-05-06  Bruno Haible  <bruno@clisp.org>
19478         Followup to 'af_alg: New module.'.
19479         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19480         * modules/crypto/sha1 (Depends-on): Likewise.
19481         * modules/crypto/sha256 (Depends-on): Likewise.
19482         * modules/crypto/sha512 (Depends-on): Likewise.
19484 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19486         crypto/{md5,sha1,sha256,sha512}: simplify
19487         * lib/md5.c (md5_stream):
19488         * lib/sha1.c (sha1_stream):
19489         * lib/sha256.c (shaxxx_stream):
19490         Simplify, partly by assuming C99.
19491         * lib/sha256.c (shaxxx_stream):
19492         New function, which implements both sha256 and sha224.
19493         Simplify, partly by assuming C99.
19494         (sha256_stream, sha224_stream):
19495         Use it to avoid code duplication, removing a FIXME.
19496         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19497         Likewise.
19499         af_alg: Improve comments.
19500         * lib/af_alg.h: Use imperatives and tighten up wording.
19502 2018-05-05  Bruno Haible  <bruno@clisp.org>
19504         af_alg: Improve comments.
19505         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19507 2018-05-05  Bruno Haible  <bruno@clisp.org>
19509         af_alg: New module.
19510         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19511         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19512         * lib/md5.c: Include "af_alg.h" unconditionally.
19513         (md5_stream): Invoke afalg_stream unconditionally.
19514         * lib/sha1.c: Include "af_alg.h" unconditionally.
19515         (sha1_stream): Invoke afalg_stream unconditionally.
19516         * lib/sha256.c: Include "af_alg.h" unconditionally.
19517         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19518         * lib/sha512.c: Include "af_alg.h" unconditionally.
19519         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19520         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19521         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19522         * modules/crypto/af_alg: New file.
19523         * modules/crypto/md5 (Files): Remove files that are now in the
19524         'crypto/af_alg' module.
19525         (Depends-on): Add crypto/af_alg.
19526         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19527         (Makefile.am): Don't mention af_alg.c here.
19528         * modules/crypto/sha1 (Files): Remove files that are now in the
19529         'crypto/af_alg' module.
19530         (Depends-on): Add crypto/af_alg.
19531         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19532         (Makefile.am): Don't mention af_alg.c here.
19533         * modules/crypto/sha256 (Files): Remove files that are now in the
19534         'crypto/af_alg' module.
19535         (Depends-on): Add crypto/af_alg.
19536         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19537         (Makefile.am): Don't mention af_alg.c here.
19538         * modules/crypto/sha512 (Files): Remove files that are now in the
19539         'crypto/af_alg' module.
19540         (Depends-on): Add crypto/af_alg.
19541         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19542         (Makefile.am): Don't mention af_alg.c here.
19544 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19546         crypto tests: pacify GCC
19547         * tests/test-digest.h (test_digest_on_files):
19548         Don’t assume digest size fits in int (!).
19550         af_alg: minor style improvements
19551         * lib/af_alg.c (afalg_stream): Prefer C99 style
19552         decl-after-statement, since we’re already assuming C99.  Clarify
19553         by strengthening the bind test and omit unnecessary assignment.
19555 2018-05-05  Bruno Haible  <bruno@clisp.org>
19557         af_alg: Fix bug on empty files.
19558         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19559         stream is empty.
19561 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19563         sys-limits.h: new file for crypto and safe I/O
19564         * lib/af_alg.c: Include sys-limits.h.
19565         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19566         (afalg_stream): Also reject negative sizes for sendfile; they
19567         should not happen and the code is a bit cleaner and faster this way.
19568         * lib/safe-read.c: Include sys-limits.h.
19569         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19570         * lib/sys-limits.h: New file, with values and commentary derived
19571         from the old safe-read.c and from GNU Emacs sysdep.c.
19572         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19573         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19574         Add lib/sys-limits.h to Files section.
19576 2018-05-05  Bruno Haible  <bruno@clisp.org>
19578         af_alg: Improve function signature.
19579         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19580         * lib/af_alg.c (afalg_stream): Likewise.
19581         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19583 2018-05-05  Bruno Haible  <bruno@clisp.org>
19585         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19586         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19587         * modules/crypto/sha1 (Depends-on): Likewise.
19588         * modules/crypto/sha256 (Depends-on): Likewise.
19589         * modules/crypto/sha512 (Depends-on): Likewise.
19591 2018-05-05  Bruno Haible  <bruno@clisp.org>
19593         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19594         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19595         * modules/crypto/sha1 (Depends-on): Likewise.
19596         * modules/crypto/sha256 (Depends-on): Likewise.
19597         * modules/crypto/sha512 (Depends-on): Likewise.
19599 2018-05-05  Bruno Haible  <bruno@clisp.org>
19601         af_alg: Add documentation.
19602         * lib/af_alg.h: Add comments.
19604 2018-05-05  Bruno Haible  <bruno@clisp.org>
19606         sha512: Add tests.
19607         * tests/test-sha512.c: New file.
19608         * modules/crypto/sha512-tests: New file.
19610 2018-05-05  Bruno Haible  <bruno@clisp.org>
19612         sha256: Add tests.
19613         * tests/test-sha256.c: New file.
19614         * modules/crypto/sha256-tests: New file.
19616 2018-05-05  Bruno Haible  <bruno@clisp.org>
19618         sha1 tests: Add test for sha1_stream.
19619         * tests/test-sha1.c: Include test-digest.h.
19620         (main): Invoke test_digest_on_files on 'sha1_stream'.
19621         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19623 2018-05-05  Bruno Haible  <bruno@clisp.org>
19625         md5 tests: Add test for md5_stream.
19626         * tests/test-digest.h: New file.
19627         * tests/test-md5.c: Include test-digest.h.
19628         (main): Invoke test_digest_on_files on 'md5_stream'.
19629         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19631 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19633         md5sum: Use AF_ALG when available.
19634         * lib/md5.c: Include af_alg.h.
19635         (md5_stream): Use afalg_stream when available.
19636         * modules/crypto/md5 (Files): Add the af_alg files.
19637         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19638         (Makefile.am): Add af_alg.c.
19640 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19642         sha512sum: Use AF_ALG when available.
19643         * lib/sha512.c: Include af_alg.h.
19644         (sha512_stream, sha384_stream): Use afalg_stream when available.
19645         * modules/crypto/sha512 (Files): Add the af_alg files.
19646         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19647         (Makefile.am): Add af_alg.c.
19649 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19651         sha256sum: Use AF_ALG when available.
19652         * lib/sha256.c: Include af_alg.h.
19653         (sha256_stream, sha224_stream): Use afalg_stream when available.
19654         * modules/crypto/sha256 (Files): Add the af_alg files.
19655         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19656         (Makefile.am): Add af_alg.c.
19658 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19660         sha1sum: Use AF_ALG when available.
19661         * lib/af_alg.h: New file.
19662         * lib/af_alg.c: New file.
19663         * lib/sha1.c: Include af_alg.h.
19664         (sha1_stream): Use afalg_stream when available.
19665         * m4/linux-if-alg.m4: New file.
19666         * modules/crypto/sha1 (Files): Add the new files.
19667         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19668         (Makefile.am): Add af_alg.c.
19670 2018-05-05  Bruno Haible  <bruno@clisp.org>
19672         all: Replace more http URLs by https URLs.
19673         * lib/localename.c: Use https: URL.
19674         * lib/timespec.h: Likewise.
19676 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19678         maint: port more modules to GCC 8
19679         * lib/dirname.h (base_name):
19680         * lib/exclude.h (new_exclude):
19681         * lib/xstrndup.h (xstrndup):
19682         Add malloc attribute.
19683         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19684         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19685         This pacifies GCC 8.
19686         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19687         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19689 2018-05-03  Bruno Haible  <bruno@clisp.org>
19691         Simplify code. Drop support for Borland C++ on Windows.
19692         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19693         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19694         'defined _WIN32'.
19695         * lib/canonicalize-lgpl.c: Likewise.
19696         * lib/classpath.c: Likewise.
19697         * lib/clean-temp.c: Likewise.
19698         * lib/csharpexec.c: Likewise.
19699         * lib/ctime.c: Likewise.
19700         * lib/dosname.h: Likewise.
19701         * lib/dup2.c: Likewise.
19702         * lib/errno.in.h: Likewise.
19703         * lib/error.c: Likewise.
19704         * lib/euidaccess.c: Likewise.
19705         * lib/execute.c: Likewise.
19706         * lib/fcntl.in.h: Likewise.
19707         * lib/fcntl.c: Likewise.
19708         * lib/filename.h: Likewise.
19709         * lib/findprog.c: Likewise.
19710         * lib/flock.c: Likewise.
19711         * lib/fopen.c: Likewise.
19712         * lib/freopen.c: Likewise.
19713         * lib/fstat.c: Likewise.
19714         * lib/fsync.c: Likewise.
19715         * lib/gc-gnulib.c: Likewise.
19716         * lib/get-rusage-data.c: Likewise.
19717         * lib/getaddrinfo.c: Likewise.
19718         * lib/getdelim.c: Likewise.
19719         * lib/getdtablesize.c: Likewise.
19720         * lib/gethostname.c: Likewise.
19721         * lib/getlogin.c: Likewise.
19722         * lib/getlogin_r.c: Likewise.
19723         * lib/getopt.c: Likewise.
19724         * lib/getpagesize.c: Likewise.
19725         * lib/getpass.c: Likewise.
19726         * lib/getrusage.c: Likewise.
19727         * lib/gettimeofday.c: Likewise.
19728         * lib/glob.c: Likewise.
19729         * lib/inttypes.in.h: Likewise.
19730         * lib/isapipe.c: Likewise.
19731         * lib/javaexec.c: Likewise.
19732         * lib/link.c: Likewise.
19733         * lib/localcharset.c: Likewise.
19734         * lib/localename.h: Likewise.
19735         * lib/localename.c: Likewise.
19736         * lib/localtime.c: Likewise.
19737         * lib/lseek.c: Likewise.
19738         * lib/mbsinit.c: Likewise.
19739         * lib/mkdir.c: Likewise.
19740         * lib/msvc-nothrow.h: Likewise.
19741         * lib/nanosleep.c: Likewise.
19742         * lib/nl_langinfo.c: Likewise.
19743         * lib/nonblocking.c: Likewise.
19744         * lib/nproc.c: Likewise.
19745         * lib/open.c: Likewise.
19746         * lib/openpty.c: Likewise.
19747         * lib/pathmax.h: Likewise.
19748         * lib/pipe-filter-aux.c: Likewise.
19749         * lib/pipe-filter-gi.c: Likewise.
19750         * lib/pipe-filter-ii.c: Likewise.
19751         * lib/pipe.c: Likewise.
19752         * lib/pipe2.c: Likewise.
19753         * lib/poll.c: Likewise.
19754         * lib/popen.c: Likewise.
19755         * lib/posix_openpt.c: Likewise.
19756         * lib/printf-parse.c: Likewise.
19757         * lib/progreloc.c: Likewise.
19758         * lib/putenv.c: Likewise.
19759         * lib/read.c: Likewise.
19760         * lib/relocatable.c: Likewise.
19761         * lib/rename.c: Likewise.
19762         * lib/same-inode.h: Likewise.
19763         * lib/secure_getenv.c: Likewise.
19764         * lib/select.c: Likewise.
19765         * lib/sethostname.c: Likewise.
19766         * lib/setlocale.c: Likewise.
19767         * lib/sigaction.c: Likewise.
19768         * lib/sigprocmask.c: Likewise.
19769         * lib/sleep.c: Likewise.
19770         * lib/spawn-pipe.h: Likewise.
19771         * lib/spawn-pipe.c: Likewise.
19772         * lib/spawni.c: Likewise.
19773         * lib/stat-time.h: Likewise.
19774         * lib/stat-w32.c: Likewise.
19775         * lib/stat.c: Likewise.
19776         * lib/stdio.in.h: Likewise.
19777         * lib/stdio-impl.h: Likewise.
19778         * lib/stdio-read.c: Likewise.
19779         * lib/stdio-write.c: Likewise.
19780         * lib/stdlib.in.h: Likewise.
19781         * lib/strerror_r.c: Likewise.
19782         * lib/strftime-fixes.c: Likewise.
19783         * lib/sys_stat.in.h: Likewise.
19784         * lib/sys_types.in.h: Likewise.
19785         * lib/sys_wait.in.h : Likewise.
19786         * lib/system-quote.h: Likewise.
19787         * lib/system-quote.c: Likewise.
19788         * lib/tmpdir.c: Likewise.
19789         * lib/tzset.c: Likewise.
19790         * lib/uname.c: Likewise.
19791         * lib/unistd.in.h: Likewise.
19792         * lib/utime.in.h: Likewise.
19793         * lib/utime.c: Likewise.
19794         * lib/utimecmp.c: Likewise.
19795         * lib/utimens.c: Likewise.
19796         * lib/vasnprintf.c: Likewise.
19797         * lib/vma-iter.h: Likewise.
19798         * lib/vma-iter.c: Likewise.
19799         * lib/wait-process.c: Likewise.
19800         * lib/wcsftime.c: Likewise.
19801         * lib/wctype.in.h: Likewise.
19802         * lib/write.c: Likewise.
19803         * tests/nap.h: Likewise.
19804         * tests/test-cloexec.c: Likewise.
19805         * tests/test-dup-safer.c: Likewise.
19806         * tests/test-dup2.c: Likewise.
19807         * tests/test-dup3.c: Likewise.
19808         * tests/test-fcntl.c: Likewise.
19809         * tests/test-get-rusage-data.c: Likewise.
19810         * tests/test-getaddrinfo.c: Likewise.
19811         * tests/test-getlogin.h: Likewise.
19812         * tests/test-isatty.c: Likewise.
19813         * tests/test-localename.c: Likewise.
19814         * tests/test-mbrtowc-w32.c: Likewise.
19815         * tests/test-nonblocking.c: Likewise.
19816         * tests/test-nonblocking-pipe-main.c: Likewise.
19817         * tests/test-nonblocking-socket-main.c: Likewise.
19818         * tests/test-nonblocking-socket.h: Likewise.
19819         * tests/test-pipe.c: Likewise.
19820         * tests/test-pipe2.c: Likewise.
19821         * tests/test-poll.c: Likewise.
19822         * tests/test-pthread_sigmask1.c: Likewise.
19823         * tests/test-select.h: Likewise.
19824         * tests/test-sethostname2.c: Likewise.
19825         * tests/test-sigprocmask.c: Likewise.
19826         * tests/test-spawn-pipe-child.c: Likewise.
19827         * tests/test-stat-time.c: Likewise.
19828         * tests/test-system-quote-main.c: Likewise.
19829         * tests/test-utimens-common.h: Likewise.
19830         * tests/test-wcrtomb-w32.c: Likewise.
19831         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19832         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19833         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19834         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19835         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19836         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19837         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19838         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19839         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19840         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19841         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19842         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19843         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19844         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19845         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19846         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19848 2018-05-02  Bruno Haible  <bruno@clisp.org>
19850         localename: Fix test failures on mingw.
19851         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19852         native Windows.
19853         (gl_locale_name_posix): Move code specific to native Windows here.
19854         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19855         Accept result without charset suffix, as it appears on mingw.
19857 2018-04-28  Paul Smith  <psmith@gnu.org>
19859         bootstrap: Avoid gnulib operations if not needed
19860         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19861         Set $gnulib_extra_files early so it can be overridden in .conf.
19862         Remove redundant --import flag from $gnulib_tool_options.
19863         Set $use_gnulib to false if no gnulib modules or files are needed.
19864         If $use_gnulib is false, don't do anything related to gnulib.
19865         A lot of this is just whitespace (indentation) changes.
19867 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19869         manywarnings: port to GCC 8.0
19870         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19871         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19872         fact that the GCC help message now mentions operands for
19873         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19874         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19875         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19876         and -Wunused-const-variable.
19877         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19878         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19879         -Wmissing-attributes, -Wmultistatement-macros,
19880         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19881         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19883 2018-04-24  Bruno Haible  <bruno@clisp.org>
19885         sys_socket: Make SO_REUSEPORT available across platforms.
19886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19887         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19888         * doc/posix-headers/sys_socket.texi: Mention the issue.
19889         * tests/test-poll.c (SO_REUSEPORT): Remove.
19890         * tests/test-select.h: Include <sys/socket.h>.
19891         (SO_REUSEPORT): Remove.
19892         * modules/select-tests (Depends-on): Add 'sys_socket'.
19894 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19896         localcharset: short-circuit the search for an alias on a Mac
19897         * lib/localcharset.c (get_charset_aliases): Add a tautological
19898         UTF-8 entry to speed up the search for this case.
19899         Most machines default to a UTF-8 locale nowadays, so begin the
19900         list of aliases with a dummy UTF-8 entry so it will be found
19901         immediately and a time-consuming search through the rest of
19902         the list is avoided.
19904 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19906         fts: add comment
19907         * lib/fts.c (fts_build): Explain why ==, not >.
19908         See remark by Bernhard Voelker in:
19909         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19911         fts: fix bug in find across filesystems
19912         This fixes a bug I introduced last summer.
19913         Problem reported by Kamil Dudka in:
19914         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19915         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19916         (leaf_optimization):
19917         New arg for file descriptor.  All callers changed.
19918         (fts_build): Check for whether inodes should be sorted
19919         before closing the directory.
19921 2018-04-07  Bruno Haible  <bruno@clisp.org>
19923         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19924         Reported by Genki Sky <sky@genki.is>.
19925         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19926         version 0.9.10 or newer.
19927         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19928         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19929         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19930         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19931         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19933 2018-04-07  Bruno Haible  <bruno@clisp.org>
19935         execute: Update comment.
19936         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19938 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19940         fts: treat CIFS like NFS
19941         Problem reported by Kamil Dudka in:
19942         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19943         * lib/fts.c (S_MAGIC_CIFS): New macro.
19944         (dirent_inode_sort_may_be_useful, leaf_optimization):
19945         Treat CIFS like NFS.
19947 2018-03-28  Bruno Haible  <bruno@clisp.org>
19949         c-stack: Fix possible build failure on some platforms.
19950         * lib/c-stack.c (die): Define whenever this function is referenced.
19952 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19954         time_rz: fix workaround for Mac OS X 10.6 infloop
19955         Problems reported by Charles A. Roelli (Bug#27736#117).
19956         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19957         Also, discard output, which clutters the 'configure' log.
19959 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19961         havelib: port to Solaris 10 /bin/sh
19962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19963         instead of '! test EXPR'.
19965 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19967         time_rz: work around Mac OS X 10.6 infloop
19968         * doc/posix-functions/localtime.texi:
19969         * doc/posix-functions/localtime_r.texi: Mention the bug.
19970         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19971         better to fix localtime and localtime_r instead, but that would be
19972         more work and is not needed to fix the Emacs problem.
19973         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19975 2018-03-24  Jim Meyering  <meyering@fb.com>
19977         test-version-etc.sh: don't use diff directly: use init.sh's compare
19978         We'd rather not sacrifice readable "diff -u" output even for
19979         "diff -c" output (not supported by busybox) or for even less
19980         readable ed-style "diff" output.  So use init.sh's compare function
19981         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19982         Remove "./" from invocation of test-version-etc, so we use path.
19983         And s/diff/compare/.
19984         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19985         to get init.sh.
19986         Prompted by Eric Blake's comments in
19987         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19989 2018-03-24  Bruno Haible  <bruno@clisp.org>
19991         javacomp-script, javacomp: Add support for Java 10.
19992         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19993         target-version 10.
19994         * lib/javaversion.h: Update comments.
19995         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19996         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19997         TARGET_VERSION_BOUND, target_version_index,
19998         corresponding_classfile_version): Accept source_version 10 and
19999         target_version 10.
20000         * lib/javacomp.h: Update comments accordingly.
20002 2018-03-24  Bruno Haible  <bruno@clisp.org>
20004         javacomp-script, javacomp: Update comments.
20005         * m4/javacomp.m4: Update comments regarding gcj.
20006         * lib/javacomp.h: Likewise.
20008 2018-03-24  Bruno Haible  <bruno@clisp.org>
20010         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20011         * lib/javaversion.h: Update comments.
20012         * lib/javacomp.h: Likewise.
20013         * lib/javacomp.c (default_target_version, source_version_index,
20014         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20015         "1.9".
20016         (TARGET_VERSION_BOUND): Bump to 9.
20017         (target_version_index, corresponding_classfile_version): Recognize "9"
20018         instead of "1.9".
20019         (get_source_version_for_javac): New function.
20020         (is_envjavac_nongcj_usable, is_javac_usable): Add
20021         source_version_for_javac argument.
20022         (compile_java_class): Determine and pass source_version_for_javac.
20023         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20024         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20025         appropriate.
20027 2018-03-23  Jim Meyering  <meyering@fb.com>
20029         test-version-etc.sh: port to diff without -c
20030         * tests/test-version-etc.sh: Don't use diff's -c option.
20031         This caused spurious test failure on Alpine Linux, which
20032         uses busybox's diff. Reported by Assaf Gordon in
20033         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20035 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20037         c-stack: port to recent GCC build
20038         Problem reported by The Fireplace (Bug#30913).
20039         * lib/c-stack.c (die): Define only if used.
20041 2018-03-20  Bruno Haible  <bruno@clisp.org>
20043         euidaccess: Port to native Windows.
20044         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20045         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20047 2018-03-19  Bruno Haible  <bruno@clisp.org>
20049         javacomp: Add support for Java 7, 8, 9.
20050         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20051         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20052         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20053         and target_version 1,7, 1.8, 1.9.
20054         * lib/javacomp.h: Update comments accordingly.
20056 2018-03-19  Bruno Haible  <bruno@clisp.org>
20058         javacomp-script: Add support for Java 9.
20059         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20060         target-version 1.9.
20062 2018-03-16  Bruno Haible  <bruno@clisp.org>
20064         glob: Don't compile replacements on recent glibc systems.
20065         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20066         REPLACE_GLOB is 0, include the system's <glob.h> and use
20067         _GL_CXXALIAS_SYS.
20068         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20069         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20070         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20071         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20072         Remove snippet/warn-on-use.
20073         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20074         (Makefile.am): Create glob.h always. Update list of substitutions in
20075         glob.h. Don't depend on $(WARN_ON_USE_H).
20077 2018-03-16  Bruno Haible  <bruno@clisp.org>
20079         glob: Fix link error on native Windows.
20080         * modules/glob (Depends-on): Add 'lstat'.
20082 2018-03-15  Bruno Haible  <bruno@clisp.org>
20084         glob: Fix compilation error in C++ mode.
20085         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20087 2018-03-15  Bruno Haible  <bruno@clisp.org>
20089         host-cpu-c-abi: Support for RISC-V CPU.
20090         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20091         riscv32 and riscv64 ABIs.
20092         References:
20093         https://github.com/riscv/riscv-toolchain-conventions
20094         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20095         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20097 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20099         fflush: be more paranoid about libio.h change
20100         Suggested by Eli Zaretskii in:
20101         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20102         * lib/fbufmode.c (fbufmode):
20103         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20104         (disable_seek_optimization, rpl_fflush):
20105         * lib/fpending.c (__fpending):
20106         * lib/fpurge.c (fpurge):
20107         * lib/freadable.c (freadable):
20108         * lib/freadahead.c (freadahead):
20109         * lib/freading.c (freading):
20110         * lib/freadptr.c (freadptr):
20111         * lib/freadseek.c (freadptrinc):
20112         * lib/fseeko.c (fseeko):
20113         * lib/fseterr.c (fseterr):
20114         * lib/fwritable.c (fwritable):
20115         * lib/fwriting.c (fwriting):
20116         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20118 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20120         maint: write-file-hooks -> before-save-hook
20121         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20122         it's time to use the recommended replacement.
20123         Problem reported by Glenn Morris in:
20124         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20125         * build-aux/announce-gen, build-aux/bootstrap:
20126         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20127         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20128         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20129         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20130         * build-aux/update-copyright, build-aux/useless-if-before-free:
20131         * build-aux/vc-list-files:
20132         Update hook usage for files where Gnulib is the canonical source.
20134 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20136         binary-io: pacify gcc -Wunused-parameter
20137         Problem reported by Reuben Thomas in:
20138         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20139         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20140         Use _GL_UNUSED where appropriate.
20142         fflush: adjust to glibc 2.28 libio.h removal
20143         Problem reported by Daniel P. Berrangé in:
20144         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20145         * lib/fbufmode.c (fbufmode):
20146         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20147         (disable_seek_optimization, rpl_fflush):
20148         * lib/fpending.c (__fpending):
20149         * lib/fpurge.c (fpurge):
20150         * lib/freadable.c (freadable):
20151         * lib/freadahead.c (freadahead):
20152         * lib/freading.c (freading):
20153         * lib/freadptr.c (freadptr):
20154         * lib/freadseek.c (freadptrinc):
20155         * lib/fseeko.c (fseeko):
20156         * lib/fseterr.c (fseterr):
20157         * lib/fwritable.c (fwritable):
20158         * lib/fwriting.c (fwriting):
20159         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20160         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20161         Define if not already defined.
20163 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20165         environ: fix link error on 32-bit Cygwin
20166         Problem reported for GNU Emacs by Ken Brown in:
20167         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20168         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20170 2018-02-24  Bruno Haible  <bruno@clisp.org>
20172         mbrtowc tests: Fix regression on glibc.
20173         Reported by Bernhard Voelker.
20174         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20176 2018-02-24  Bruno Haible  <bruno@clisp.org>
20178         striconveha, uniconv/*: Avoid test failures on musl libc.
20179         * tests/iconvsupport.c: New file.
20180         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20181         does not support the ISO-2022-JP-2 encoding.
20182         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20183         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20184         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20185         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20186         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20187         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20188         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20189         (Makefile.am): Link test-striconveha with iconvsupport.o.
20190         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20191         tests/iconvsupport.c.
20192         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20193         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20194         tests/iconvsupport.c.
20195         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20196         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20197         tests/iconvsupport.c.
20198         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20199         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20200         tests/iconvsupport.c.
20201         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20202         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20203         tests/iconvsupport.c.
20204         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20205         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20206         tests/iconvsupport.c.
20207         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20209 2018-02-24  Bruno Haible  <bruno@clisp.org>
20211         localename: Add support for musl libc.
20212         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20213         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20214         on Linux platforms which define NL_LOCALE_NAME.
20216 2018-02-24  Bruno Haible  <bruno@clisp.org>
20218         mbrtowc tests: Don't make assumptions about the charset the C locale.
20219         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20220         particular mapping in the C locale.
20222 2018-02-24  Bruno Haible  <bruno@clisp.org>
20224         ptsname_r: Don't expect that this function sets errno.
20225         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20226         from ptsname_r().
20227         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20229 2018-02-23  Bruno Haible  <bruno@clisp.org>
20231         xmalloca: pacify gcc -Wbad-function-cast
20232         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20234 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20236         nl_langinfo: pacify gcc -Wunused-function
20237         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20238         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20239         this case.  Without this change, I got a diagnostic when building
20240         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20242         same: pacify gcc -Wunused-variable
20243         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20244         Omit unused variable.
20246         malloca: pacify gcc -Wbad-function-cast
20247         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20248         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20249         To pacify GCC, I had to cast alloca’s result to some type other
20250         than void * before casting that to uintptr_t.
20252 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20254         utimecmp: new function utimecmpat
20255         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20256         Do not include utimens.h.
20257         (utimecmpat): New function, generalizing utimecmp.
20258         (utimecmp): Now a thin layer around utimecmpat.
20259         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20260         utimensat instead of on lstat and utimens.
20262         same: new function same_nameat
20263         * lib/same.c: Include fcntl.h.
20264         * lib/same.c (same_nameat): New function, generalizing same_name.
20265         (same_name): Now a thin layer around same_nameat.
20266         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20267         * modules/same (Depends-on): Depend on fstatat, openat.
20269 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20271         warnings: Add support for Objective C.
20272         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20273         macro.
20275 2018-02-17  Bruno Haible  <bruno@clisp.org>
20277         lock: Fix test-once1 crash on FreeBSD11.
20278         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20279         'pthread_create', not 'pthread_cancel'.
20281 2018-02-17  Bruno Haible  <bruno@clisp.org>
20283         lock: Add test of gl_once.
20284         * tests/test-once.c: New file.
20285         * modules/lock-tests (Files): Add it.
20286         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20288 2018-02-17  Bruno Haible  <bruno@clisp.org>
20290         thread: Fix compilation error on IRIX.
20291         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20292         needed; include it outside the C++ extern "C" {} block.
20293         * doc/posix-headers/pthread.texi: Mention the problem with
20294         pthread_atfork on IRIX.
20296 2018-02-04  Bruno Haible  <bruno@clisp.org>
20298         nl_langinfo: Override the system's nl_langinfo() when needed.
20299         Reported by Jim Meyering.
20300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20301         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20303 2018-02-04  Bruno Haible  <bruno@clisp.org>
20305         signal-h, monetary, strings: Fix build failure in some cases.
20306         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20307         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20308         as delimiter in sed command, not '|'.
20309         * modules/monetary (Makefile.am): Likewise.
20310         * modules/strings (Makefile.am): Likewise.
20312 2018-02-03  Jim Meyering  <meyering@fb.com>
20314         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20315         * top/maint.mk (sc_file_system): Don't complain about
20316         "/proc/filesystems".
20318 2018-02-03  Bruno Haible  <bruno@clisp.org>
20320         stdlib: Fix compilation error on OpenIndiana.
20321         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20322         <sys/time.h>.
20323         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20324         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20326 2018-02-03  Bruno Haible  <bruno@clisp.org>
20328         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20329         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20330         and use $EGREP instead of 'grep -E'.
20331         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20332         'grep -E'.
20334 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20336         malloca: Add a compile-time verification.
20337         * lib/malloca.c (small_t): Verify that it is wide enough.
20338         * modules/malloca (Depends-on): Add verify.
20340 2018-02-02  Bruno Haible  <bruno@clisp.org>
20342         malloca: Add an argument check.
20343         Suggested by Paul Eggert.
20344         * lib/malloca.c (freea): Check against an invalid argument.
20346 2018-02-02  Bruno Haible  <bruno@clisp.org>
20348         localename: Add support for OpenIndiana.
20349         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20350         Solaris 11 variants with uselocale() but without getlocalename_l().
20352 2018-02-02  Bruno Haible  <bruno@clisp.org>
20354         malloca, xmalloca: Make multithread-safe.
20355         Reported by Florian Weimer <fweimer@redhat.com>.
20356         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20357         * lib/malloca.h (malloca): In the stack allocation case, return a
20358         pointer that is a multiple of 2 * sa_alignment_max.
20359         (sa_increment): Remove enum item.
20360         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20361         a pointer that is a multiple of 2 * sa_alignment_max.
20362         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20363         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20364         HASH_TABLE_SIZE, mmalloca_results): Remove.
20365         (small_t): New type.
20366         (mmalloca, free): Rewritten.
20367         * lib/malloca.valgrind: Remove file.
20368         * modules/malloca (Files): Remove it.
20369         (Depends-on): Remove verify.
20371 2018-01-31  Bruno Haible  <bruno@clisp.org>
20373         environ: Fix link error on 64-bit Cygwin.
20374         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20375         __declspec(dllimport) attribute.
20376         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20378 2018-01-30  Bruno Haible  <bruno@clisp.org>
20380         get-rusage-data: Add support for Minix 3.
20381         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20383 2018-01-30  Bruno Haible  <bruno@clisp.org>
20385         vma-iter: Add support for Minix 3.
20386         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20387         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20389 2018-01-27  Bruno Haible  <bruno@clisp.org>
20391         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20392         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20394         _HPUX_ALT_XOPEN_SOCKET_API.
20395         * modules/accept (Depends-on): Add 'extensions'.
20396         * modules/getpeername (Depends-on): Likewise.
20397         * modules/getsockname (Depends-on): Likewise.
20398         * modules/getsockopt (Depends-on): Likewise.
20399         * modules/recvfrom (Depends-on): Likewise.
20400         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20401         * doc/posix-functions/getpeername.texi: Likewise.
20402         * doc/posix-functions/getsockname.texi: Likewise.
20403         * doc/posix-functions/getsockopt.texi: Likewise.
20404         * doc/posix-functions/recvfrom.texi: Likewise.
20406 2018-01-27  Bruno Haible  <bruno@clisp.org>
20408         getsockname tests: More tests.
20409         * tests/test-getsockname.c (open_server_socket): New function, mostly
20410         copied from test-poll.c.
20411         (main): Check that getsockname fills in addr.
20412         * modules/getsockname-tests (Depends-on): Add the necessary
20413         dependencies.
20414         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20416 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20418         manywarnings: fix maintainer comment
20419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20420         it does not mistakenly think that ‘-1)’ is an option.
20422 2018-01-26  Bruno Haible  <bruno@clisp.org>
20424         langinfo: Fix last commit.
20425         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20426         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20428 2018-01-24  Bruno Haible  <bruno@clisp.org>
20430         langinfo, nl_langinfo: Add support for alternative month names.
20431         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20432         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20433         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20434         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20435         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20436         * doc/posix-functions/nl_langinfo.texi: Likewise.
20438 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20440         Merge strftime.c changes from glibc
20441         This incorporates:
20442         2017-11-14 [BZ #10871] Implement alternative month names
20443         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20444         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20445         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20446         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20447         Use locale_t, not __locale_t.
20448         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20449         (__strftime_internal): Add support for alternate months.
20451 2018-01-23  Bruno Haible  <bruno@clisp.org>
20453         doc: Mention another prerequisite for using Gnulib.
20454         Reported at <https://stackoverflow.com/questions/48378214/>.
20455         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20456         AC_CONFIG_HEADERS.
20458 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20460         build: GuixSD doesn't have /bin/bash
20461         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20463 2018-01-21  Bruno Haible  <bruno@clisp.org>
20465         Avoid test failures on Microsoft Windows Subsystem for Linux.
20466         * tests/test-fcntl.c (main): Allow a different errno.
20467         * tests/test-rename.h (test_rename): Likewise.
20468         * tests/test-renameat.c (main): Likewise.
20469         * tests/test-renameat2.c (main): Likewise.
20471 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20473         filenamecat: make base a suffix of result
20474         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20475         (mfile_name_concat): Always make BASE a suffix of the result, as
20476         cp expects this.  To implement this, separate with '.' instead of
20477         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20478         * tests/test-filenamecat.c (main): Adjust tests to match
20479         current behavior.  Check that BASE_IN_RESULT points to
20480         a copy of BASE and is a suffix of the resultk, and that DIR
20481         is a prefix of the result that is no longer than the prefix
20482         indicated by BASE_IN_RESULT.
20484 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20486         update-copyright: Handle use of ©
20487         * build-aux/update-copyright ($circle_c_re): Update regex to
20488         handle use of © in headers.
20490 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20492         Fix -Wundef warning in user-included header lib/cdefs.h.
20493         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20495 2018-01-04  Bruno Haible  <bruno@clisp.org>
20497         pthread_sigmask: Avoid compilation error on mingw.
20498         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20499         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20500         macro.
20502 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20504         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20505         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20506         Suggested by Bob Proulx (Bug#29968).
20507         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20509 2018-01-02  Eric Blake  <eblake@redhat.com>
20511         stat-time: silence -Wunused-parameter regression
20512         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20513         Prefer attribute over cast-to-void.
20514         (stat_time_normalize): Mark st as potentially unused.
20516 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20518         test-framework-sh: avoid netstat
20519         Problem reported by Kristýna Streitová (Bug#29947).
20520         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20521         deprecated on SuSE and it's not that important anyway.
20523 2018-01-01  Jim Meyering  <meyering@fb.com>
20525         update-copyright: add code to handle more special cases
20526         After running "make update-copyright" this year, five files
20527         required additional manual changes.  Automate those adjustments
20528         for next year.
20529         * Makefile (_year_and_prev): Define.
20530         (update-copyright): Add perl commands to induce this year's post-
20531         update-copyright adjustments.
20533 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20535         version-etc: new year
20536         * build-aux/gendocs.sh (version):
20537         * doc/gendocs_template:
20538         * doc/gendocs_template_min:
20539         * doc/gnulib.texi:
20540         * lib/version-etc.c (COPYRIGHT_YEAR):
20541         Update copyright dates by hand in templates and the like.
20543         maint: fix 'make update-copyright'
20544         * Makefile (update-copyright): Adjust to 2016-11-23 change
20545         to config/srclist-update, which changed the format of srclist.txt.
20547 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20549         chdir-safer: remove this module
20550         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20551         * NEWS: Document removal.
20552         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20553         * modules/chdir-safer: Remove these files.
20555 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20557         Add cross-compilation results for GNU/Hurd.
20558         * m4/calloc.m4: Add GNU/Hurd guess.
20559         * m4/cbrtl.m4: Likewise.
20560         * m4/ceil.m4: Likewise.
20561         * m4/ceilf.m4: Likewise.
20562         * m4/ceill.m4: Likewise.
20563         * m4/chown.m4: Likewise.
20564         * m4/duplocale.m4: Likewise.
20565         * m4/exp2l.m4: Likewise.
20566         * m4/expm1.m4: Likewise.
20567         * m4/fchdir.m4: Likewise.
20568         * m4/floor.m4: Likewise.
20569         * m4/floorf.m4: Likewise.
20570         * m4/fmod.m4: Likewise.
20571         * m4/fmodf.m4: Likewise.
20572         * m4/fmodl.m4: Likewise.
20573         * m4/getcwd.m4: Likewise.
20574         * m4/getgroups.m4: Likewise.
20575         * m4/gettimeofday.m4: Likewise.
20576         * m4/hypot.m4: Likewise.
20577         * m4/hypotf.m4: Likewise.
20578         * m4/hypotl.m4: Likewise.
20579         * m4/link-follow.m4: Likewise.
20580         * m4/link.m4: Likewise.
20581         * m4/linkat.m4: Likewise.
20582         * m4/log.m4: Likewise.
20583         * m4/log10.m4: Likewise.
20584         * m4/log10f.m4: Likewise.
20585         * m4/log1p.m4: Likewise.
20586         * m4/log1pf.m4: Likewise.
20587         * m4/log1pl.m4: Likewise.
20588         * m4/log2.m4: Likewise.
20589         * m4/log2f.m4: Likewise.
20590         * m4/logf.m4: Likewise.
20591         * m4/lstat.m4: Likewise.
20592         * m4/malloc.m4: Likewise.
20593         * m4/mbrlen.m4: Likewise.
20594         * m4/mbrtowc.m4: Likewise.
20595         * m4/mkdir.m4: Likewise.
20596         * m4/mkfifo.m4: Likewise.
20597         * m4/mknod.m4: Likewise.
20598         * m4/mkstemp.m4: Likewise.
20599         * m4/modf.m4: Likewise.
20600         * m4/modff.m4: Likewise.
20601         * m4/modfl.m4: Likewise.
20602         * m4/printf.m4: Likewise.
20603         * m4/pselect.m4: Likewise.
20604         * m4/ptsname.m4: Likewise.
20605         * m4/putenv.m4: Likewise.
20606         * m4/readlink.m4: Likewise.
20607         * m4/realloc.m4: Likewise.
20608         * m4/remainder.m4: Likewise.
20609         * m4/remainderf.m4: Likewise.
20610         * m4/remainderl.m4: Likewise.
20611         * m4/rmdir.m4: Likewise.
20612         * m4/round.m4: Likewise.
20613         * m4/roundf.m4: Likewise.
20614         * m4/roundl.m4: Likewise.
20615         * m4/select.m4: Likewise.
20616         * m4/setenv.m4: Likewise.
20617         * m4/signbit.m4: Likewise.
20618         * m4/sleep.m4: Likewise.
20619         * m4/stat.m4: Likewise.
20620         * m4/strerror.m4: Likewise.
20621         * m4/strtok_r.m4: Likewise.
20622         * m4/symlink.m4: Likewise.
20623         * m4/symlinkat.m4: Likewise.
20624         * m4/trunc.m4: Likewise.
20625         * m4/truncf.m4: Likewise.
20626         * m4/truncl.m4: Likewise.
20627         * m4/tzset.m4: Likewise.
20628         * m4/ungetc.m4: Likewise.
20629         * m4/usleep.m4: Likewise.
20630         * m4/wcwidth.m4: Likewise.
20632 2017-12-28  Bruno Haible  <bruno@clisp.org>
20634         gnulib-tool: Make --conditional-dependencies work better.
20635         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20636         * gnulib-tool (Options): Don't reject the combination of
20637         --conditional-dependencies with --with-tests.
20638         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20639         Don't reference $modules.
20640         (func_import, func_create_testdir): Pass it.
20642 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20644         regex: use re_malloc etc. consistently
20645         Problem and original patch reported by Arnold Robbins in:
20646         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20647         * lib/regcomp.c (re_comp):
20648         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20649         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20651 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20652             Paul Eggert  <eggert@cs.ucla.edu>
20654         glob: Silence warning about void pointer arithmetic.
20655         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20656         arithmetic.
20658 2017-12-15  Bruno Haible  <bruno@clisp.org>
20660         spawn-pipe: Silence a clang warning.
20661         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20662         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20663         in this file.
20665 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20667         explicit_bzero: port to macOS + Clang 9.0.0
20668         Problem reported by Marcus Johnson (Bug#29658).
20669         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20670         Don’t use asm.
20672 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20674         doc: Improve explanation of supporting relocatable libraries.
20675         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20676         properly how to build the relocatable module for
20677         libraries. (Method and example code from Bruno Haible.)
20679 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20681         doc: Use better texinfo tags in a few cases.
20682         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20683         instead of @samp in a few places.
20685 2017-12-11  Bruno Haible  <bruno@clisp.org>
20687         unistr/base: Update comment.
20688         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20690 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20692         test-faccessat.c: unlink temp file to avoid subsequent test failure
20693         * tests/test-faccessat.c: Remove the file to avoid failure
20694         to open the file on subsequent runs due to being created
20695         with no permissions.
20697 2017-12-10  Bruno Haible  <bruno@clisp.org>
20699         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20700         * doc/gnulib-tool.texi (Modified build rules): New node.
20702 2017-12-10  Bruno Haible  <bruno@clisp.org>
20704         doc: Tweak wording.
20705         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20706         "binaries".
20708 2017-12-05  Sam Steingold  <sds@gnu.org>
20709             Bruno Haible  <bruno@clisp.org>
20711         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20712         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20713         AC_EGREP_CPP pattern.
20715 2017-12-03  Bruno Haible  <bruno@clisp.org>
20717         all: Replace more http URLs by https URLs.
20718         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20719         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20720         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20721         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20723 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20725         Port better to CentOS 5
20726         Problems reported by Tom G. Christensen in:
20727         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20728         * doc/glibc-functions/strverscmp.texi (strverscmp):
20729         Document strverscmp bug with glibc 2.9 and earlier.
20730         * doc/posix-functions/tzset.texi (tzset):
20731         Document that TZ with angle brackets is POSIX-2001 and later.
20732         * tests/test-nstrftime.c: Include unistd.h.
20733         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20734         (TZ): Use it to skip tests with angle brackets in TZ,
20735         for older systems.
20737         stat: add missing module dependencies
20738         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20739         Add stat-time.
20741 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20743         stat: fix compilation failure on macOS Sierra
20744         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20745         https://savannah.gnu.org/bugs/?52546
20746         * lib/stat.c: Add missing include of stat-time.h.
20748 2017-11-28  Jim Meyering  <meyering@fb.com>
20750         test-faccessat.c: correct BASE definition to avoid parallel test failure
20751         * tests/test-faccessat.c (BASE): Define using this file's name, not
20752         that of test-lstat.c.  Using the latter caused this test to fail
20753         sometimes when run concurrently with test-lstat.
20755 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20757         unicase: fix VPATH build
20758         * modules/unicase/special-casing (Makefile.am): Ensure that the
20759         base directory is created when generating
20760         unicase/special-casing.h.
20762 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20764         libunistring: update to Unicode 9.0.0
20765         * lib/gen-uni-tables.c (fill_properties): Recognize
20766         Sentence_Terminal and Prepended_Concatenation_Mark.
20767         (is_property_default_ignorable_code_point): Exclude U+08E2.
20768         (fill_arabicshaping): Allow missing whitespace when parsing;
20769         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20770         (output_blocks): Increase the element size of the level1 table to
20771         accommodate more blocks.
20772         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20773         Update each class according to the standard.
20774         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20775         E_Base_GAZ characters.
20776         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20777         Glue_After_Zwj, and E_Base_GAZ characters.
20778         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20779         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20780         enum value.
20781         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20782         value.
20783         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20784         LBP_ZWJ, LBP_EB, and LBP_EM.
20785         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20786         enum value.
20787         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20788         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20789         declaration.
20790         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20791         (uniwbrk_table): Implement WB14.
20792         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20793         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20794         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20795         uc-is-grapheme-break.
20796         * modules/unigbrk/uc-grapheme-breaks: New module.
20797         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20798         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20799         enum value.
20800         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20801         * lib/unigbrk/u-grapheme-breaks.h: New file.
20802         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20803         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20804         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20805         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20806         29.
20807         * tests/unigbrk/test-uc-gbrk-prop.c
20808         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20809         GBP_GAZ, and GBP_EBG.
20810         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20811         * tests/unigbrk/test-uc-is-grapheme-break.c
20812         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20813         GBP_GAZ, and GBP_EBG.
20814         (main): Skip unsupported rules involving 3 or more characters,
20815         namely GB10, GB12, and GB13.
20816         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20817         * all generated files under lib/uni* and tests/uni*: Regenerate.
20818         * all the affected modules: Bump version.
20820 2017-11-26  Bruno Haible  <bruno@clisp.org>
20822         strfmon_l: Fix compilation error with glibc 2.5.
20823         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20824         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20825         * lib/monetary.in.h: Include also <locale.h>.
20827 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20829         posixtm: remove PDS_LEADING_YEAR
20830         This changes the API slightly, in a hopefully-innocuous way.
20831         Without this change the code had undefined behavior when a
20832         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20833         Problem reported by Pádraig Brady in:
20834         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20835         * NEWS: Mention this.
20836         * lib/posixtm.c (posix_time_parse): Treat the absence of
20837         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20838         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20839         present, but define it as zero, for compatibility with existing
20840         source code).  All other PDS_* values moved up.
20841         * tests/test-posixtm.c (LY): New macro.
20842         (T): Use it.  Do not expect a particular numeric encoding
20843         for PDS_CENTURY etc.
20845 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20847         stat: work around Solaris bug with tv_nsec < 0
20848         * doc/posix-functions/fstat.texi (fstat):
20849         * doc/posix-functions/fstatat.texi (fstatat):
20850         * doc/posix-functions/lstat.texi (lstat):
20851         * doc/posix-functions/stat.texi (stat):
20852         Mention Solaris 11 bug.
20853         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20854         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20855         * lib/lstat.c (rpl_lstat):
20856         * lib/stat.c (rpl_stat):
20857         Normalize resulting timestamps.
20858         * lib/fstatat.c (normal_fstatat): New function.
20859         (rpl_fstatat): Use it.
20860         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20861         (stat_time_normalize): New function.
20862         * m4/fstat.m4 (gl_FUNC_FSTAT):
20863         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20864         * m4/lstat.m4 (gl_FUNC_LSTAT):
20865         * m4/stat.m4 (gl_FUNC_STAT):
20866         Replace on Solaris.
20867         * modules/fstat (Depends-on):
20868         * modules/fstatat (Depends-on):
20869         Add stat-time.
20870         * modules/stat-time (Depends-on): Add errno, intprops.
20872 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20874         regex: merge from glibc
20875         * lib/regcomp.c (init_word_char): Add comments.
20877 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20879         regex: merge from glibc
20880         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20881         * lib/regex_internal.h (internal_function): Remove.
20882         All uses removed.
20884 2017-11-20  Bruno Haible  <bruno@clisp.org>
20886         crypto/gc-sm3: Fix buffer overrun.
20887         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20888         Reported by Coverity.
20890 2017-11-12  Jim Meyering  <meyering@fb.com>
20892         maint: shorten https://lists.gnu.org/archive/html/... links
20893         Each /archive/html/ part can be replace with /r/.
20894         Run this to induce the change:
20895         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20896         * ChangeLog: Perform that substitution.
20897         * Makefile: Likewise.
20898         * STATUS-libposix: Likewise.
20899         * build-aux/bootstrap: Likewise.
20900         * doc/maintain.texi: Likewise.
20901         * gnulib-tool: Likewise.
20902         * lib/allocator.h: Likewise.
20903         * lib/argp-ba.c: Likewise.
20904         * lib/argp-pv.c: Likewise.
20905         * lib/canon-host.c: Likewise.
20906         * lib/canonicalize-lgpl.c: Likewise.
20907         * lib/float.in.h: Likewise.
20908         * lib/fstat.c: Likewise.
20909         * lib/getdelim.c: Likewise.
20910         * lib/getprogname.c: Likewise.
20911         * lib/glthread/thread.h: Likewise.
20912         * lib/intprops.h: Likewise.
20913         * lib/mbsrtowcs-state.c: Likewise.
20914         * lib/safe-read.c: Likewise.
20915         * lib/signal.in.h: Likewise.
20916         * lib/stat.c: Likewise.
20917         * lib/stdbool.in.h: Likewise.
20918         * lib/stdio-impl.h: Likewise.
20919         * lib/stdio.in.h: Likewise.
20920         * lib/sysexits.in.h: Likewise.
20921         * lib/timespec.h: Likewise.
20922         * lib/wcsrtombs-state.c: Likewise.
20923         * m4/alloca.m4: Likewise.
20924         * m4/extern-inline.m4: Likewise.
20925         * m4/fstatat.m4: Likewise.
20926         * m4/gnulib-common.m4: Likewise.
20927         * m4/lib-ignore.m4: Likewise.
20928         * m4/printf.m4: Likewise.
20929         * m4/regex.m4: Likewise.
20930         * m4/stat-size.m4: Likewise.
20931         * m4/std-gnu11.m4: Likewise.
20932         * m4/stdbool.m4: Likewise.
20933         * m4/sys_types_h.m4: Likewise.
20934         * m4/threadlib.m4: Likewise.
20935         * m4/vararrays.m4: Likewise.
20936         * pygnulib/GLImport.py: Likewise.
20937         * tests/test-exp.h: Likewise.
20938         * tests/test-exp2.h: Likewise.
20939         * tests/test-expm1.h: Likewise.
20940         * tests/test-fflush2.c: Likewise.
20941         * tests/test-getopt_long.h: Likewise.
20942         * tests/test-intprops.c: Likewise.
20943         * tests/test-log.h: Likewise.
20944         * tests/test-log10.h: Likewise.
20945         * tests/test-log1p.h: Likewise.
20946         * tests/test-log2.h: Likewise.
20947         * tests/test-printf-posix.h: Likewise.
20948         * tests/test-regex.c: Likewise.
20949         * tests/test-snprintf-posix.h: Likewise.
20950         * tests/test-sprintf-posix.h: Likewise.
20951         * tests/test-stdalign.c: Likewise.
20952         * tests/test-stdbool.c: Likewise.
20953         * tests/test-vasnprintf-posix.c: Likewise.
20954         * tests/test-vasprintf-posix.c: Likewise.
20955         * top/maint.mk: Likewise.
20957 2017-11-12  Bruno Haible  <bruno@clisp.org>
20959         faccessat: Make the last change more robust.
20960         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20961         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20963 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20965         faccessat: port to macOS (Bug#29231)
20966         macOS faccessat has the same bug that lstat does: if the file
20967         name ends in '/' it ignores the trailing slash.
20968         Problem reported for Emacs by Vincent Zhang.
20969         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20970         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20971         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20972         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20973         Include "unistd.h" after defining it.
20974         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20975         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20976         Handle in the usual way.
20977         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20978         lstat dereferences symlinks, since faccessat is likely to
20979         have the same problem.
20980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20981         * modules/faccessat (Depends-on): Add fstatat.
20982         Depend if REPLACE_FACCESSAT is 1, too.
20983         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20984         * modules/faccessat-tests (Depends-on): Add symlink.
20985         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20986         * tests/test-faccessat.c (main): Test for the bug.
20988 2017-11-11  Bruno Haible  <bruno@clisp.org>
20990         getprogname: Fix compilation error on IRIX.
20991         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20992         'namesize'.
20994 2017-11-11  Bruno Haible  <bruno@clisp.org>
20996         year2038: Tweak last patch.
20997         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20999 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21001         year2038: be more insistent about 64-bit time_t
21002         Applications requiring access to arbitrary files should not be
21003         built with 32-bit time_t on hosts that have 64-bit timestamps,
21004         as this can lead to real trouble at runtime.
21005         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21006         Check on all systems, not just MinGW.  Use a heuristic involving
21007         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21008         output a failure or just a warning, to make it more likely that
21009         builders will select 64-bit time_t.
21011 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21013         havelib: fix typo in previous change
21014         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21016         Don’t use AC_EGREP_CPP if affected by CFLAGS
21017         * m4/float_h.m4 (gl_FLOAT_H):
21018         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21019         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21020         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21021         * m4/year2038.m4 (gl_YEAR2038):
21022         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21023         likely to be affected by the choice of CFLAGS, since CFLAGS are
21024         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21025         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21027         fstatat: pacify GCC on unusual platform
21028         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21029         Omit, as it’s unused in this case.
21031 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21033         timespec: prefer ‘assume’ to ‘assure’
21034         This avoids some runtime tests.  The rest of the module makes
21035         similar assumptions and there is little point to testing here.
21036         * lib/timespec.h: Include verify.h instead of assure.h.
21037         (timespec_cmp): Use ‘assume’, not ‘assure’.
21038         Also, remove an unnecessary cast to ‘int’, as lots of other
21039         code in this module now causes -Wconversion to complain, and
21040         this is a problem with -Wconversion not with the code.
21042         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21044         Port recent gnulib-tool change to Dash
21045         * gnulib-tool (func_create_testdir): Don't assume that the shell
21046         retokenizes after expanding "$@" inside the call to
21047         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21049 2017-10-27  Jim Meyering  <meyering@fb.com>
21051         timespec.h: use "assure" to avoid a spurious warning
21052         * lib/timespec.h: Include "assure.h" and use it to help
21053         gcc7's -Wstrict-overflow avoid a false positive warning
21054         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21055         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21056         * modules/timespec (Depends-on): Add assure.
21058 2017-10-29  Bruno Haible  <bruno@clisp.org>
21060         Avoid several test failures with traditional locales on Haiku.
21061         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21062         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21063         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21064         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21065         LOCALE_ZH_CN=none.
21067 2017-10-29  Bruno Haible  <bruno@clisp.org>
21069         strerror_r-posix: Fix behaviour and test failure on Haiku.
21070         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21071         are positive. Work around return value 0 instead of ERANGE on Haiku.
21072         For unknown error numbers, use a format string consistent with perror().
21073         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21074         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21075         are positive.
21077 2017-10-29  Bruno Haible  <bruno@clisp.org>
21079         get-rusage-data: Avoid crash on Haiku.
21080         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21082 2017-10-29  Bruno Haible  <bruno@clisp.org>
21084         get-rusage-as: Avoid crash on Haiku.
21085         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21087 2017-10-29  Bruno Haible  <bruno@clisp.org>
21089         ilogbl: Ensure replacement on Haiku.
21090         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21091         REPLACE_ILOGBL if ilogbl does not work.
21092         (gl_FUNC_ILOGBL_WORKS): New macro.
21093         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21095         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21096         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21097         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21099 2017-10-29  Bruno Haible  <bruno@clisp.org>
21101         expl: Ensure replacement on Haiku.
21102         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21103         zero.
21104         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21106 2017-10-29  Bruno Haible  <bruno@clisp.org>
21108         math: Fix test failure on Haiku.
21109         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21110         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21111         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21112         * doc/posix-headers/math.texi: Mention the Haiku problem.
21114 2017-10-29  Bruno Haible  <bruno@clisp.org>
21116         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21117         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21118         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21120 2017-10-29  Bruno Haible  <bruno@clisp.org>
21122         crypto/*: Verify that the header file is self-contained.
21123         * tests/test-gc-*.c: Include the module's header file immediately after
21124         <config.h>.
21125         * tests/test-hmac-*.c: Likewise.
21126         * tests/test-arcfour.c: Likewise.
21127         * tests/test-arctwo.c: Likewise.
21128         * tests/test-des.c: Likewise.
21129         * tests/test-md2.c: Likewise.
21130         * tests/test-md4.c: Likewise.
21131         * tests/test-md5.c: Likewise.
21132         * tests/test-rijndael.c: Likewise.
21133         * tests/test-sha1.c: Likewise.
21134         * tests/test-sm3.c: Likewise.
21136 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21137             Bruno Haible  <bruno@clisp.org>
21139         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21140         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21142 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21144         New module: crypto/gc-sm3
21145         * lib/gc.h: Declare SM3-related stuffs.
21146         * lib/gc-gnulib.c: Support sm3 in internal functions.
21147         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21148         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21149         * modules/crypto/gc-sm3: Define gc-sm3 module.
21150         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21151         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21152         * MODULES.html.sh: List gc-sm3 module.
21154 2017-10-29  Bruno Haible  <bruno@clisp.org>
21156         random, random_r: Mention different prototypes on Haiku.
21157         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21158         * doc/glibc-functions/random_r.texi: Likewise.
21159         * doc/glibc-functions/initstate_r.texi: Likewise.
21160         * doc/glibc-functions/setstate_r.texi: Likewise.
21162 2017-10-28  Bruno Haible  <bruno@clisp.org>
21164         posix_spawn: Avoid spurious message in configure output.
21165         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21166         'cmp' command.
21168 2017-10-28  Bruno Haible  <bruno@clisp.org>
21170         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21171         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21172         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21174 2017-10-28  Bruno Haible  <bruno@clisp.org>
21176         ioctl: Override non-POSIX declaration on Haiku.
21177         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21178         * lib/sys_ioctl.in.h: Add comment about Haiku.
21179         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21180         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21182 2017-10-28  Bruno Haible  <bruno@clisp.org>
21184         crypto/sm3: Add overview documentation to the .h file.
21185         * lib/sm3.h: Add comments.
21187 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21189         New module: crypto/sm3
21190         This new module can be used to compute SM3 message digest of files or
21191         memory blocks according to the specification GM/T 004-2012
21192         Cryptographic Hash Algorithm SM3, published by State Cryptography
21193         Administration, China.
21194         The official SM3 cryptographic hash algorithm specification is
21195         available at
21196         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21197         * lib/sm3.h: Declare the APIs of sm3 module.
21198         * lib/sm3.c: Implement SM3 hash algorithm.
21199         * m4/sm3.m4: m4 file for sm3 module.
21200         * modules/crypto/sm3: Define sm3 module.
21201         * tests/test-sm3.c: Implement SM3 test case.
21202         * modules/crypto/sm3-tests: Define sm3 test module.
21203         * MODULES.html.sh: List sm3 module.
21205 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21207         gc-libgcrypt: fix undefined enum type in switch statement
21208         Resolve the following build failure:
21209         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21210         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21211         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21212              case 0:
21213              ^~~~
21214         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21215         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21217 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21219         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21220         Resolve the following build failure:
21221         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21222         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21223         in signedness [-Werror=pointer-sign]
21224             digest = gcry_md_read (ctx->gch, 0);
21225                    ^
21226         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21228 2017-10-26  Bruno Haible  <bruno@clisp.org>
21230         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21231         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21232         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21234 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21236         glob: fix another heap buffer overflow
21237         Problem reported by Tim Rühsen in:
21238         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21239         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21241 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21243         quotearg: pacify compiler re unsigned
21244         * lib/quotearg.c (quotearg_n_options):
21245         Rewrite to avoid diagnostic from overly-picky compiler.
21246         Problem reported by Sami Kerola in:
21247         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21249         glob: fix heap buffer overflow
21250         * lib/glob.c (glob): Fix off-by-one error introduced into
21251         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21252         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21253         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21254         Fix suggested by Bruno Haible.
21256 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21258         glob: pacify fuzzer for mempcpy
21259         Problem reported by Tim Rühsen in:
21260         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21261         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21263 2017-10-12  Bruno Haible  <bruno@clisp.org>
21265         doc: Fix syntax error (regression from 2017-10-03).
21266         * doc/posix-functions/strncpy.texi: Fix syntax error.
21268 2017-10-12  Bruno Haible  <bruno@clisp.org>
21270         doc: Update for Solaris 11.3.
21271         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21272         mention Solaris 11.3.
21273         * m4/log2.m4: Fix comments.
21274         * m4/log2f.m4: Likewise.
21275         * m4/printf.m4: Update comments.
21276         * m4/rename.m4: Likewise.
21277         * m4/strncat.m4: Likewise.
21279         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21281 2017-10-10  Bruno Haible  <bruno@clisp.org>
21283         doc: Improve doc about ioctl.
21284         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21285         prototype.
21287 2017-10-09  Bruno Haible  <bruno@clisp.org>
21289         wcwidth: Don't use obsolete syntax of 'test'.
21290         Reported by Eric Blake.
21291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21292         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21294 2017-10-09  Bruno Haible  <bruno@clisp.org>
21296         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21297         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21298         and Daniel P. Berrange <berrange@redhat.com>.
21299         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21300         on glibc systems. The getopt-pfx-core.h file declares exactly what
21301         unistd.h needs, nothing more.
21303 2017-10-08  Bruno Haible  <bruno@clisp.org>
21305         vma-iter: Improve support for FreeBSD.
21306         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21307         vma_iterate.
21308         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21310 2017-10-08  Bruno Haible  <bruno@clisp.org>
21312         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21313         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21315 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21317         test-framework-sh: Fix 'invalid path dir' error.
21318         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21319         separator between a drive letter and directory parts.
21320         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21321         treated as an invalid path dir.
21322         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21323         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21324         instead of hard coded ':'.
21326 2017-10-07  Bruno Haible  <bruno@clisp.org>
21328         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21329         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21330         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21331         (rof_open): On Linux, do multiple read() calls and make sure
21332         MIN_LEFTOVER bytes are left when read() returns.
21334 2017-10-07  Bruno Haible  <bruno@clisp.org>
21336         vma-iter: Improve support for GNU/Hurd.
21337         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21338         API, not the /proc file system.
21340 2017-10-07  Bruno Haible  <bruno@clisp.org>
21342         test-framework-sh: Don't require bash on Windows and OS/2.
21343         Reported by KO Myung-Hun.
21344         * tests/test-init.sh: Use 'shopt' only when running in bash.
21346 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21348         wcwidth: check a macro version of wcwidth () as well
21349         * lib/wchar.in.h: Revert commit from 2016-01-14.
21350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21352 2017-10-06  Bruno Haible  <bruno@clisp.org>
21354         getopt-posix: Clarify copyright header.
21355         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21356         * lib/getopt-pfx-core.h: Likewise.
21357         * lib/getopt-pfx-ext.h: Likewise.
21358         * lib/getopt-cdefs.in.h: Likewise.
21360 2017-10-03  Bruno Haible  <bruno@clisp.org>
21362         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21363         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21364         gl_HOST_CPU_C_ABI.
21366 2017-10-03  Bruno Haible  <bruno@clisp.org>
21368         doc: warn about misuse of strncpy and wcsncpy.
21369         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21370         memory allocation.
21371         * doc/posix-functions/wcscpy.texi: Likewise.
21372         * doc/posix-functions/strncpy.texi: Describe what this function is not
21373         useful for.
21374         * doc/posix-functions/wcsncpy.texi: Likewise.
21376 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21378         fsuage: fix typo in previous change
21379         * lib/fsusage.c: Remove stray include of full-read.h.
21380         Problem reported by Sam Steingold for macOS (Bug#28669).
21382 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21384         fsusage: remove SVR2 support
21385         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21386         and its code was getting in the way of use of this module by
21387         Emacs, which has its own ‘read’ function anyway.
21388         * lib/fsusage.c: Do not include sys/filsys.h.
21389         (get_fs_usage): Remove SVR2-specific code.
21390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21391         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21392         * modules/fsusage (Depends-on): Do not depend on full-read.
21394         Simplify autoupdate of licenses
21395         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21396         place.
21398 2017-10-01  Bruno Haible  <bruno@clisp.org>
21400         vma-iter: Add support for GNU/Hurd.
21401         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21402         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21404 2017-09-30  Bruno Haible  <bruno@clisp.org>
21406         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21407         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21408         fail when module 'largefile' is in use.
21409         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21410         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21411         Don't test HAVE_SYS_PROCFS_H.
21413 2017-09-30  Bruno Haible  <bruno@clisp.org>
21415         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21416         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21417         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21418         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21420 2017-09-30  Bruno Haible  <bruno@clisp.org>
21422         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21423         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21424         scope of local variables.
21426 2017-09-28  Bruno Haible  <bruno@clisp.org>
21428         string: code style
21429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21430         substitutable variables.
21431         * modules/string (Makefile.am): Likewise.
21433 2017-09-26  Bruno Haible  <bruno@clisp.org>
21435         uniname/uniname-tests: Tighten code.
21436         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21437         local variables into one.
21439 2017-09-26  Bruno Haible  <bruno@clisp.org>
21441         vma-iter: Improvements for Linux and BSD platforms.
21442         - Add support for DragonFly BSD.
21443         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21444         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21445         Read the entire file into memory in a single system call.
21446         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21447         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21449 2017-09-26  Bruno Haible  <bruno@clisp.org>
21451         vma-iter: Provide the protection flags on FreeBSD.
21452         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21453         skip three fields between the addresses and the protection flags.
21455 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21457         glob: remove bogus extern decl
21458         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21459         extern declaration.  Problem reported by Adhemerval Zanella in:
21460         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21462 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21464         uniname/uniname-tests: integer overflow fix
21465         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21466         Check for integer overflow.
21468         duplocale-tests: fix unlikely crash
21469         * tests/test-duplocale.c (get_locale_dependent_values):
21470         Don’t crash with absurdly long month names.
21472         maint: fix overflow checking in nap.h
21473         * modules/chown-tests:
21474         * modules/fchownat-tests, modules/fdutimensat-tests:
21475         * modules/futimens-tests, modules/lchown-tests:
21476         * modules/stat-time-tests, modules/utime-tests:
21477         * modules/utimens-tests, modules/utimensat-tests:
21478         Depend on intprops.
21479         * tests/nap.h: Include intprops.h.
21480         (diff_timespec): Handle overflow properly.
21482         sys_types: update URL
21483         * m4/sys_types_h.m4: Use https: URL.
21485         parse-datetime: fix dependency
21486         * modules/parse-datetime (Depends-on): Depend
21487         on nstrftime, not strftime.
21489         parse-datetime, posixtm: avoid uninit access
21490         * lib/parse-datetime.y (parse_datetime2):
21491         * lib/posixtm.c (posixtime):
21492         Do not access uninitialized storage, even though the resulting
21493         value is never used.
21495 2017-09-25  Bruno Haible  <bruno@clisp.org>
21497         vma-iter: Improvements for BSD platforms.
21498         - Add support for GNU/kFreeBSD.
21499         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21500         - Speed up on OpenBSD.
21501         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21502         (vma_iterate_bsd): New function.
21503         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21504         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21505         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21506         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21508 2017-09-23  Bruno Haible  <bruno@clisp.org>
21510         strfmon_l: New module.
21511         * modules/strfmon_l: New file.
21512         * lib/strfmon_l.c: New file.
21513         * m4/strfmon_l.m4: New file.
21514         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21515         * modules/strfmon_l-tests: New file.
21516         * tests/test-strfmon_l.c: New file.
21518         monetary: New module.
21519         * modules/monetary: New file.
21520         * lib/monetary.in.h: New file.
21521         * m4/monetary_h.m4: New file.
21522         * doc/posix-headers/monetary.texi: Mention the new module.
21523         * modules/monetary-tests: New file.
21524         * tests/test-monetary.c: New file.
21525         * modules/monetary-c++-tests: New file.
21526         * tests/test-monetary-c++.cc: New file.
21527         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21529 2017-09-23  Bruno Haible  <bruno@clisp.org>
21531         duplocale tests: Fix test crash on Linux/x86.
21532         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21533         locale from the current thread before freeing it.
21535 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21537         mktime: port to OpenVMS
21538         Problem reported by John E. Malmberg in:
21539         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21540         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21542 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21544         manywarnings: port to GCC on 64-bit MS-Windows
21545         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21546         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21547         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21549 2017-09-13  Bruno Haible  <bruno@clisp.org>
21551         all: Replace many more http URLs by https URLs. Update stale URLs.
21552         * users.txt: Remove mention of 'newts'.
21553         * lib/localename.c: Update comment about LANG_SOTHO.
21555 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21557         all: Replace many http URLs by https URLs.
21559 2017-09-12  Bruno Haible  <bruno@clisp.org>
21561         doc: Prefer https URLs where possible.
21562         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21563         * doc/ld-output-def.texi: Remove unavailable URL.
21565 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21567         maintainer-makefile: FTP -> HTTPS
21568         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21569         of FTP, which is planned to be decommissioned on 2017-11-01.
21571 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21573         libc-config: Fix __GNUC_PREREQ macro.
21574         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21575         __GNUC_MINOR.
21577 2017-09-09  Bruno Haible  <bruno@clisp.org>
21579         gnulib-tool: Simplify commit from 2015-08-20.
21580         * gnulib-tool (func_add_or_update): Remove local variable
21581         is_binary_file.
21583 2017-09-08  Bruno Haible  <bruno@clisp.org>
21585         stddef: Avoid conflict with system-defined max_align_t.
21586         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21587         Reported by Werner Lemberg <wl@gnu.org> in
21588         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21589         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21590         (max_align_t): Define as a macro.
21591         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21592         definitions of rpl_max_align_t in different copies of gnulib-generated
21593         <stddef.h>.
21595 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21597         libc-config: port to MSVC
21598         Problems reported by Gisle Vanem in:
21599         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21600         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21601         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21602         * m4/__inline.m4: New file.
21603         * modules/libc-config (Files): Add it.
21604         (Depends-on): Use it.
21606         glob: Use enum for __glob_pattern_type result
21607         From a patch proposed by Adhemerval Zanella in:
21608         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21609         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21610         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21611         * lib/glob_internal.h (__glob_pattern_type):
21612         * lib/glob.c (glob):
21613         * lib/glob_pattern_p.c (__glob_pattern_p):
21614         Use them.
21616         glob: fix for use in glibc
21617         Problem reported by Adhemerval Zanella in:
21618         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21619         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21620         Do not redefine if _LIBC.
21622 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21624         glob: fix bugs with long login names
21625         Problem reported by Adhemerval Zanella in:
21626         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21627         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21628         (glob): Use the same scratch buffer for both getlogin_r and
21629         getpwnam_r.  Don’t require preallocation of the login name.  This
21630         simplifies storage allocation, and corrects the handling of
21631         long login names.
21633 2017-09-02  Bruno Haible  <bruno@clisp.org>
21635         dirent: Update doc.
21636         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21638 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21640         glob: fix getpwnam_r errno typo
21641         * lib/glob.c (glob): Fix longstanding misuse of errno after
21642         getpwnam_r, which returns an error number rather than setting
21643         errno.
21645         glob: fix typo in recent change
21646         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21647         Fix recently-introduced typo.
21649 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21651         glob: don't save and restore errno unnecessarily
21652         * lib/glob.c (glob): Don't save and restore errno
21653         merely because we have getpwnam_r.
21655         glob: don't assume getpwnam_r
21656         * lib/glob.c (glob): Port recent patches to platforms
21657         lacking getpwnam_r.
21659         scratch_buffer: don’t use private glibc API
21660         Suggested by Florian Weimer in:
21661         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21662         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21663         * lib/scratch_buffer_grow.c: Rename to
21664         lib/malloc/scratch_buffer_grow.c.
21665         * lib/scratch_buffer_grow_preserve.c: Rename to
21666         lib/malloc/scratch_buffer_grow_preserve.c.
21667         * lib/scratch_buffer_set_array_size.c: Rename to
21668         lib/malloc/scratch_buffer_set_array_size.c.
21669         * lib/scratch_buffer.h: New file.
21670         * modules/scratch_buffer (Files, Makefile.am):
21671         Adjust to source-file renaming.
21673 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21675         glob: use scratch_buffer instead of extend_alloca
21676         Much of the lib/glob.c part of this patch comes from a glibc patch
21677         proposed by Adhemerval Zanella in:
21678         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21679         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21680         included via glob.h, does this for us now.
21681         (__set_errno): Remove, as libc-config does this for us now.
21682         Include <scratch_buffer.h>.
21683         (GETPW_R_SIZE_MAX): Remove.
21684         (glob): Use struct scratch_buffer instead of extend_alloca.
21685         * lib/glob.in.h: Include libc-config.h rather than
21686         including <sys/cdefs.h> conditionally.
21687         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21688         (__glibc_unlikely, __restrict, weak_alias):
21689         Remove, as libc-config does this for us now.
21690         * m4/glob.m4 (gl_PREREQ_GLOB):
21691         Remove sys/cdefs.h tests; no longer needed.
21692         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21693         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21695         scratch_buffer: new module
21696         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21697         * lib/scratch_buffer_grow_preserve.c:
21698         * lib/scratch_buffer_set_array_size.c:
21699         New files, copied from glibc with very minor changes that can be
21700         copied back.
21701         * modules/scratch_buffer: New file.
21703         libc-config: new module
21704         * MODULES.html.sh: Add libc-config.
21705         * lib/cdefs.h: New file, copied from the GNU C Library with very
21706         minor changes that can be copied back.
21707         * lib/libc-config.h, modules/libc-config: New files.
21709 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21711         glob: match dangling symlinks
21712         This fixes a bug I inadvertently introduced to Gnulib when I
21713         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21714         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21715         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21716         * doc/posix-functions/glob.texi: Update list of affected platforms.
21717         * lib/glob.c (__lstat64): New macro.
21718         (is_dir): New function.
21719         (glob, glob_in_dir): Match symlinks even if they are dangling.
21720         (link_stat, link_exists_p): Remove.  All uses removed.
21721         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21722         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21723         * modules/glob-tests (Depends-on): Add symlink.
21724         * tests/test-glob.c: Include errno.h, unistd.h.
21725         (BASE): New macro.
21726         (main): Test dangling symlinks, if symlinks are supported.
21728         glob, backupfile: inode 0 is a valid inode number
21729         * doc/posix-functions/readdir.texi (readdir):
21730         * doc/posix-headers/dirent.texi (dirent.h):
21731         Document more readdir portability issues.
21732         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21733         (numbered_backup): Don’t treat inode 0 any differently from
21734         other inode values.
21735         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21736         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21737         All uses removed.
21738         * modules/glob (Depends-on): Remove d-ino.
21740         glob: simplify symlink detection
21741         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21742         uint8_t, as C99 does not require uint8_t.
21743         (struct readdir_result): Use it.  Do not define skip_entry unless
21744         it is needed; this saves a byte on platforms lacking d_ino.
21745         (readdir_result_type, readdir_result_skip_entry):
21746         New functions, replacing ...
21747         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21748         ... these functions, which were removed.  This makes the callers
21749         easier to read.  All callers changed.
21750         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21752 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21754         fts-tests: tag as a longrunning-test so not included by default
21755         * modules/fts-tests: This test takes about 20s on current systems,
21756         and uses about 285M of space on ext4.
21758 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21760         renameat2: fix compilation on alpine linux
21761         * m4/renameat.m4: Check for <linux/fs.h> presence.
21762         * lib/renameat2.h: Only include <linux/fs.h> if present.
21763         Reported by Assaf Gordon on Alpine Linux.
21765 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21767         glob: try to port recent changes to MS-Windows
21768         Problem reported by Bruno Haible in:
21769         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21770         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21771         * lib/glob.in.h (__glob_pattern_p): ... to here.
21773 2017-08-24  Eric Blake  <eblake@redhat.com>
21775         warnings: fix compilation with old autoconf
21776         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21777         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21778         AC_DEFUN.
21779         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21780         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21782 2017-08-24  Bruno Haible  <bruno@clisp.org>
21784         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21785         * modules/glob (Depends-on): Add c99.
21787 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21789         glob: fix typo that broke platforms lacking d_ino
21790         This typo also hurt performance on GNU/Linux and similar hosts.
21791         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21792         in previous change.
21794 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21796         glob: merge from glibc with Zanella glob changes
21797         Merge glob from glibc, with changes for glob proposed
21798         by Adhemerval Zanella in the thread starting here:
21799         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21800         plus some fixes for this merge.
21801         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21802         New files, ported from glibc.
21803         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21804         with __restrict.
21805         (__size_t): Remove.  All uses replaced by size_t.
21806         (size_t): Define by defining __need_size_t and including <stddef.h>.
21807         This should work even in non-glibc platforms, where any name
21808         pollution is OK.
21809         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21810         (struct stat64): Don’t worry about __GLOB_GNULIB.
21811         (glob, globfree, glob_pattern_p): Remove macros for
21812         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21813         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21814         but set errno.
21815         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21816         removed since the glibc behavior works on null pointers.
21817         Do not include stdio.h; old SunOS is irrelevant now.
21818         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21819         Include glob_internal.h.
21820         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21821         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21822         worked only coincidentally.
21823         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21824         Remove macros; now done in glob.in.h.
21825         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21826         (glob): Properly initialize glob structure with
21827         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21828         Remove old code using SHELL since Bash no longer
21829         uses this.
21830         (glob, prefix_array): Separate MS code better.
21831         (glob, glob_in_dir): Use C99 decls before statements when glibc
21832         does.
21833         (glob_in_dir): Remove old Amiga and VMS code.
21834         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21835         separate files.
21836         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21837         (__glibc_unlikely):
21838         Move here from glob.c.
21839         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21840         (weak_alias): New macro.
21841         (__size_t): Remove.  All uses replaced by size_t.
21842         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21843         * modules/glob (Files): Add +lib/glob_internal.h,
21844         lib/glob_pattern_p.c, lib/globfree.c.
21845         (Depends-on): Remove snippet/arg-nonnull.
21847 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21849         glob: port to clang's Undefined Sanitizer
21850         Problem reported by Tim Rühsen in:
21851         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21852         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21853         (glob_in_dir): Do not rely on undefined behavior in accessing
21854         struct members beyond their bounds.  Use a flexible array member
21855         instead.
21857 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21859         vc-list-files: port to Solaris 10
21860         * build-aux/vc-list-files: Don't assume test -e works.
21862 2017-08-21  Karl Berry  <karl@freefriends.org>
21864         * doc/posix-functions/srandom.texi (srandom): typo }.
21866 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21868         git-version-gen: port to Solaris 10
21869         Problem reported by Dagobert Michelsen in:
21870         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21871         * build-aux/git-version-gen (v_from_git):
21872         Use expr instead of shell substitution.
21874 2017-08-19  Bruno Haible  <bruno@clisp.org>
21876         host-cpu-c-abi: Improve detection of MIPS ABI.
21877         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21878         _MIPS_SIM.
21880 2017-08-17  Bruno Haible  <bruno@clisp.org>
21882         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21883         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21885 2017-08-17  Bruno Haible  <bruno@clisp.org>
21887         float: Fix LDBL_MIN value on FreeBSD/x86.
21888         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21890 2017-08-17  Bruno Haible  <bruno@clisp.org>
21892         random: Fix test compilation failure on Cygwin 1.5.25.
21893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21894         HAVE_DECL_SETSTATE.
21895         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21896         declared.
21897         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21898         HAVE_DECL_SETSTATE.
21899         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21900         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21901         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21902         * doc/posix-functions/random.texi: Likewise.
21903         * doc/posix-functions/setstate.texi: Likewise.
21904         * doc/posix-functions/srandom.texi: Likewise.
21906 2017-08-16  Bruno Haible  <bruno@clisp.org>
21908         stdnoreturn: Fix test compilation failure on Cygwin.
21909         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21910         <stdnoreturn.h> replacement.
21911         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21912         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21914 2017-08-16  Bruno Haible  <bruno@clisp.org>
21916         thread: Fix conflict with pthread_sigmask module.
21917         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21918         it's defined as a macro.
21919         * modules/thread (Depends-on): Add pthread_sigmask.
21921 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21923         rename: port better to NetBSD
21924         * doc/posix-functions/rename.texi (rename): NetBSD 7
21925         does not have the link-count bug.
21926         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21927         broken merely because rename ("a", "b") removes "a" when the two
21928         names are hard links to the same file.
21930 2017-08-16  Bruno Haible  <bruno@clisp.org>
21932         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21933         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21934         the target file names with '$(srcdir)/'.
21935         * modules/unicase/locale-language (Makefile.am): Likewise.
21936         * modules/unicase/special-casing (Makefile.am): Likewise.
21937         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21938         * modules/unictype/category-byname (Makefile.am): Likewise.
21939         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21940         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21941         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21942         * modules/unictype/property-byname (Makefile.am): Likewise.
21943         * modules/unictype/scripts (Makefile.am): Likewise.
21944         * modules/uninorm/composition (Makefile.am): Likewise.
21946 2017-08-16  Bruno Haible  <bruno@clisp.org>
21948         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21949         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21950         value for OpenBSD.
21952 2017-08-16  Bruno Haible  <bruno@clisp.org>
21954         rename, renameat: Update doc regarding NetBSD.
21955         * doc/posix-functions/rename.texi: Clarify that when using
21956         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21957         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21958         version.
21960 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21962         renameat2: port better to macOS
21963         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21965         futimens: don’t assume struct timespec layout
21966         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21967         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21968         * tests/test-fdutimensat.c (main):
21969         * tests/test-futimens.h (test_futimens):
21970         * tests/test-lutimens.h (test_lutimens):
21971         * tests/test-utimens.h (test_utimens):
21972         * tests/test-utimensat.c (main):
21973         Don’t assume that struct timespec is a two-member structure in
21974         tv_sec, tv_nsec order.  Although this is true on all platforms we
21975         know about, POSIX does not guarantee it.
21977         rename: document+test NetBSD rename
21978         Test failure reported by Bruno Haible in:
21979         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21980         This is an area where NetBSD is better-behaved than POSIX,
21981         so allow the NetBSD behavior in tests.
21982         * doc/posix-functions/rename.texi:
21983         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21984         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21986 2017-08-15  Bruno Haible  <bruno@clisp.org>
21988         renameat: Ensure declaration in <stdio.h> on NetBSD.
21989         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21990         * doc/posix-functions/renameat.texi: Mention this problem.
21992 2017-08-15  Bruno Haible  <bruno@clisp.org>
21994         duplocale: Work around NetBSD 7.0 bug.
21995         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21996         * lib/duplocale.c: Add comment about NetBSD problem.
21997         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21999 2017-08-15  Bruno Haible  <bruno@clisp.org>
22001         duplocale tests: Verify use with *_l functions.
22002         * modules/duplocale-tests (configure.ac): Test for uselocale and
22003         some *_l functions.
22004         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22005         from main.
22006         (get_locale_dependent_values_from, test_with_locale_parameter): New
22007         functions.
22008         (main): Test both test_with_uselocale and test_with_locale_parameter.
22010 2017-08-15  Bruno Haible  <bruno@clisp.org>
22012         extensions: Enable NetBSD specific extensions.
22013         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22015 2017-08-14  Bruno Haible  <bruno@clisp.org>
22017         open, openat: Update doc about O_CLOEXEC.
22018         * doc/posix-functions/open.texi: More concrete list of platforms.
22019         * doc/posix-functions/openat.texi: Likewise.
22021 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22023         open: support O_CLOEXEC
22024         * NEWS, doc/posix-functions/open.texi:
22025         * doc/posix-functions/openat.texi: Document this.
22026         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22027         (GNULIB_defined_O_CLOEXEC): New symbol.
22028         * lib/open.c: Include cloexec.h.
22029         (open): Support O_CLOEXEC.
22030         * lib/openat.c: Include cloexec.h.
22031         (rpl_openat): Support O_CLOEXEC.
22032         * lib/popen-safer.c: Do not include cloexec.h.
22033         (open_noinherit): Remove.
22034         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22035         * lib/save-cwd.c: Do not include cloexec.h.
22036         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22037         * m4/open-cloexec.m4: New file.
22038         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22039         Replace 'open' if O_CLOEXEC is not present.
22040         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22041         Replace 'openat' if O_CLOEXEC is not present.
22042         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22043         * modules/open (Files): Add m4/open-cloexec.m4.
22044         (Depends-on): Depend on cloexec if replacing 'open'.
22045         * modules/openat (Files): Add m4/open-cloexec.m4.
22046         (Depends-on): Depend on cloexec if replacing openat.
22047         * modules/popen-safer (Depends-on): Remove cloexec.
22048         * modules/save-cwd (Depends-on): Remove cloexec, and add
22049         fd-safer-flag and 'open'.
22051 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22053         reallocarray: minor fixes
22054         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22055         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22056         * modules/reallocarray (License): Change from GPL to LGPL.
22057         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22058         Indent properly and don't use tabs.
22060 2017-08-13  Darshit Shah  <darnir@gnu.org>
22062         reallocarray: New module
22063         reallocarray is a new function in glibc 2.26 to safely allocate an array
22064         of memory locations with integer overflow protection.
22065         * MODULES.html.sh: Add reallocarray.
22066         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22067         * lib/reallocarray.c: New file to implement module reallocarray.
22068         * lib/stdlib.in.h: Add function declarations for reallocarray.
22069         * m4/reallocarray.m4: New file.
22070         * m4/stdlib_h.m4: Declare reallocarray.
22071         * modules/reallocarray: New file.
22072         * modules/reallocarray-test: New file.
22073         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22074         * tests/test-reallocarray.c: New test.
22076 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22078         dirent-safer: fix cloexec race
22079         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22080         (opendir_safer): Use F_DUPFD_CLOEXEC.
22081         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22082         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22083         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22084         instead of dup_safer.
22086         fts: fix cloexec races
22087         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22088         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22089         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22090         (fd_ring_check): Set cloexec flag on new file descriptors.
22091         (fts_build, fd_ring_check): While we’re at it, make sure the
22092         resulting file descriptor is not 0, 1, or 2, since that is easy.
22094 2017-08-11  Bruno Haible  <bruno@clisp.org>
22096         fts tests: Fix link error.
22097         Reported by Tom G. Christensen in
22098         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22099         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22101 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22103         fts: port recent changes to CentOS 6
22104         Problem reported by Tom G. Christensen in:
22105         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22106         * lib/fts.c (fsword): New type.
22107         (struct dev_type, filesystem_type): Use it.
22108         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22109         Also, check for f_type only if fstatfs and sys/vfs.h work.
22111 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22113         tempname: do not depend on secure_getenv
22114         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22115         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22116         * modules/tempname (Depends-on): Remove secure_getenv.
22118 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22120         extensions: add _OPENBSD_SOURCE
22121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22123 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22124             Bruno Haible  <bruno@clisp.org>
22126         manywarnings: Add support for C++.
22127         * build-aux/g++-warning.spec: New file.
22128         * m4/manywarnings-c++.m4: New file.
22129         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22130         redirects to manywarnings-c++.m4.
22131         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22133 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22135         git-version-gen: another fix for tags with "-"
22136         * build-aux/git-version-gen: Improve fix for tags containing "-".
22137         Suggested by Markus Armbruster in:
22138         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22140 2017-08-06  Bruno Haible  <bruno@clisp.org>
22142         warnings, manywarnings: Add support for multiple languages, not just C.
22143         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22144         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22145         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22146         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22147         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22148         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22149         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22150         of the current language. If C++ is the current language, modify
22151         WARN_CXXFLAGS instead of WARN_CFLAGS.
22152         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22153         gl_MANYWARN_ALL_GCC.
22154         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22156 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22158         git-version-gen: Fix for tags containing '-'
22160         Really old versions of git-describe (before v1.5.0, Feb 2007)
22161         don't have the number of commits in their long format output,
22162         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22163         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22164         recognizes both patterns, and normalizes the old format to the new one.
22166         Unfortunately, this normalization code gets confused when the tag
22167         contains '-'.  Reproducer:
22169             $ git-tag -m test v0.2-rc1
22170             $ build-aux/git-version-gen .tarball-version; echo
22171             build-aux/git-version-gen: WARNING: git rev-list failed
22172             UNKNOWN
22174         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22175         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22176         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22178         * git-version-gen: We could perhaps drop support for versions from
22179         more than a decade ago.  But tightening the pattern match is easy
22180         enough, so do that.  Still breaks when you use version tags ending in
22181         something matching -g????, but you arguably get what you deserve then.
22183 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22185         valgrind-tests: use ls, and cache
22186         * m4/valgrind-tests.m4: Test ls, not bash.
22187         Problem reported by Reuben Thomas.
22188         Also, cache the result so that it can be overridden.
22190 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22192         manywarnings: port to 64-bit GCC builds of Emacs
22193         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22194         object size rather than hardwiring 2147483647.  This is needed to
22195         build GNU Emacs, which has one conditional (and used
22196         only-in-theory) call to malloc with a literal greater than
22197         2147483647.
22199 2017-08-04  Bruno Haible  <bruno@clisp.org>
22201         Relax the license of some modules with no runtime code.
22202         * modules/std-gnu11 (License): Set to 'unlimited'.
22203         * modules/c99 (License): Likewise.
22204         Reported by Reuben Thomas <rrt@sc3d.org>.
22205         * modules/d-ino (License): Set to 'LGPL'.
22206         * modules/host-os (License): Likewise.
22207         * modules/longlong (License): Likewise.
22209 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22211         renameat2: port to RHEL 7 + NFS
22212         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22213         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22214         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22216 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22218         renameat2: port to non-renameat platforms
22219         Problem reported for MSVC-2015 by Gisle Vanem in:
22220         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22221         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22222         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22224 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22226         manywarnings: port to 32-bit GCC bug
22227         Problem reported by Pino Toscano in:
22228         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22229         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22230         not 2**63 - 1, to work around the following GCC bug:
22231         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22233 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22235         backupfile: new function to validate backup suffix
22236         * lib/backupfile.c (set_simple_backup_suffix): New function.
22237         (backupfile_internal): Use it.
22239         canonicalize: fix EOVERFLOW commentary
22240         Problem reported by Bruno Haible in:
22241         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22242         * lib/canonicalize.c (canonicalize_filename_mode):
22243         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22245         Don't interpret EOVERFLOW to mean nonexistence
22246         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22247         may be EOVERFLOW; this is likely more useful than reporting the
22248         stat errno.
22249         * lib/glob.c (link_stat): Rename from link_exists2_p and
22250         return -1/0 instead of 0/1.  Caller changed.
22251         * lib/glob.c (link_exists_p):
22252         * lib/renameat2.c (rename_noreplace, renameat2):
22253         * lib/tempname.c (try_nocreate):
22254         If errno == EOVERFLOW then the directory entry exists, so do not
22255         act as if it does not exist.
22257         backup-rename: new module
22258         It is like backupfile, except it avoids some race conditions,
22259         and it does not output to stderr or exit.
22260         * MODULES.html.sh: Add backup-rename.
22261         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22262         * modules/backup-rename: New files.
22263         * lib/backupfile.c: Turn this into an internals file, which
22264         contains code common to backupfile and backup_rename.  Include
22265         backupfile-internal.h instead of backupfile.h.  Do not include
22266         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22267         renameat2.h and fcntl.h.
22268         (BACKUP_NOMEM): New constant.
22269         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22270         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22271         (backupfile_internal): Rename from find_backup_file_name.
22272         Support new arg RENAME.
22273         (backup_args, backup_types, get_version, xget_version):
22274         Move to lib/backup-find.c.
22275         * lib/backupfile.h (backup_file_rename): New decl.
22276         * modules/backupfile (Files): Add lib/backup-internal.h,
22277         lib/backup-find.c.
22278         (Depends-on): Add dirfd, fcntl, renameat2.
22279         (lib_SOURCES): Add backup-find.c.
22281         renameat2: port better to older Solaris
22282         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22283         Add goto to use a label, to silence picky compilers.
22285         fts-tests: port to gcc -Wwrite-strings
22286         * tests/test-fts.c (base, base_d): New static vars.
22287         (argv, remove_tree, main): Use them.
22289 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22291         relocatable-lib{,-lgpl}: improve documentation
22292         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22293         Various other updates.
22295 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22296             Bruno Haible  <bruno@clisp.org>
22298         relocatable-lib{,-lgpl}: add Valgrind suppressions
22299         * lib/relocatable.valgrind: New file.
22300         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22301         * modules/relocatable-lib-lgpl: Likewise.
22303 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22305         relocatable: Make the license on the sources the GPL.
22306         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22307         LGPL, which was a special case so that the relocatable source files
22308         could be used without gnulib-tool, to GPL. They can still be used under
22309         the LGPL, using the --lgpl option to gnulib-tool.
22311 2017-07-30  Bruno Haible  <bruno@clisp.org>
22313         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22314         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22315         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22316         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22317         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22319 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22321         faccessat: document AT_SYMLINK_NOFOLLOW issue
22322         * doc/posix-functions/faccessat.texi: Modernize platform list.
22323         Document AT_SYMLINK_NOFOLLOW limitation.
22325         renameat2: port to Solaris 10
22326         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22327         with AT_SYMLINK_NOFOLLOW (which is not portable).
22328         (renameat): Undef before using, to avoid endless recursion when
22329         the replacement renameat calls renameat2 which calls the
22330         replacement renameat.
22331         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22332         * modules/renameat2 (Depends-on): Remove faccessat.
22333         * modules/renameat-tests (test_renameat_LDADD):
22334         * modules/renameat2-tests (test_renameat2_LDADD):
22335         Remove $(LIB_EACCESS).
22337         renameat2: new module
22338         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22339         useful to have access to its RENAME_NOREPLACE flag.
22340         * MODULES.html.sh (func_all_modules): Add renameat2.
22341         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22342         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22343         * lib/renameat.c (renameat): Move most of the implementation
22344         to renameat2, and just call renameat2.
22345         * modules/renameat (Files): Remove lib/at-func2.c.
22346         (Depends-on): Depend only on renameat2.
22347         (Include): Remove <fcntl.h>.
22348         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22349         since renameat (via renameat2) might use faccessat.
22351 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22353         vc-list-files: Adjust the script to support git worktrees
22354         * build-aux/vc-list-files: Require existence, not directory.
22356 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22358         doc: bring MODULES.html.sh up to date
22359         Somehow a few months ago we stopped updating MODULES.html.sh.
22360         I don’t recall explicitly deciding this, so I updated it now.
22361         Alternatively I suppose we could remove it.
22362         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22363         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22364         truncate, utime, utime-h, windows-stat-inodes,
22365         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22367 2017-07-26  Jim Meyering  <meyering@fb.com>
22369         fprintftime: fix build-break caused by recent renaming
22370         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22371         "strftime.c".
22372         * modules/fprintftime: Depend directly on nstrftime.
22374 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22376         regex: work with GCC7's -Werror=implicit-fallthrough=
22377         * lib/regex_internal.h (FALLTHROUGH): New macro.
22378         * lib/regcomp.c (peek_token_bracket, parse_expression):
22379         * lib/regexec.c (check_node_accept): Use it.
22381 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22383         fts: simplify fts_build
22384         * lib/fts.c (fts_build): Simplify, and be lazier about
22385         calling leaf_optimization.
22387         fts: three levels of leaf optimization
22388         * lib/fts.c (enum leaf_optimization): New type with three values.
22389         (S_MAGIC_AFS): New macro.  Sort them.
22390         (leaf_optimization): Rename from leaf_optimization_applies, and
22391         return enum leaf_optimization instead of bool.  All uses changed.
22392         Add cases for unknown type and for AFS.
22393         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22395         fts: cache dirent_inode_sort_may_be_useful too
22396         * lib/fts.c (struct dev_type): New struct.
22397         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22398         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22399         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22400         Now takes FTSENT const *, not int.  All uses changed.  Use
22401         filesystem_type to cache.
22402         (link_count_optimize_ok): Remove.  Caller changed to use
22403         leaf_optimization_applies, which now uses shared cache.
22405         fts: introduce MIN_DIR_NLINK
22406         * lib/fts.c (MIN_DIR_NLINK): New constant.
22407         Use it instead of 2, whenever we are talking about link counts.
22409         fts: nlink_t signedness fixups
22410         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22411         so that root need not be a special case later.
22412         (fts_read): Remove now-redundant test for fts_level.
22413         Do not assume that nlink_t is signed.
22414         (fts_build): Remove useless decrement of nlinks.
22415         (fts_stat): Avoid unlikely signed integer overflow later, if
22416         nlink_t is signed.
22418         fts-tests: new module
22419         * modules/fts-tests, tests/test-fts.c: New files.
22421 2017-07-23  Bruno Haible  <bruno@clisp.org>
22423         Rename module 'strftime' to 'nstrftime'.
22424         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22425         * lib/nstrftime.c: Renamed from lib/strftime.c.
22426         * modules/nstrftime: Renamed from modules/strftime.
22427         (Files, Makefile.am): Update.
22428         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22429         Fix comment.
22430         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22431         (Files, Makefile.am): Update.
22432         * modules/strftime: New file, an obsolete indirection.
22433         * doc/posix-functions/strftime.texi: Update reference.
22434         * config/srclist.txt: Update info.
22435         * NEWS: Mention the change.
22437 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22439         malloca: Silence a warning from clang's memory sanitizer.
22440         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22441         (freea): Use it.
22443 2017-07-18  Bruno Haible  <bruno@clisp.org>
22445         host-cpu-c-abi: Fix detection of MIPS ABI.
22446         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22447         ABI, not the CPU instruction set.
22449 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22451         explicit_bzero: new module
22452         The explicit_bzero function has been added to glibc.
22453         This module is intended to supports its use in GNU programs.
22454         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22455         * m4/explicit_bzero.m4, modules/explicit_bzero:
22456         New files.
22457         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22458         * lib/string.in.h (explicit_bzero): Declare.
22459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22460         * modules/string (string.h): Substitute its vars.
22462 2017-07-16  Bruno Haible  <bruno@clisp.org>
22464         threadlib: Support static linking.
22465         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22466         set gl_cv_have_weak to 'no'.
22468 2017-07-16  Bruno Haible  <bruno@clisp.org>
22470         unicase/locale-language: Fix link dependencies.
22471         * modules/unicase/locale-language (Link): New section.
22472         * modules/unicase/locale-language-tests (Makefile.am): Link
22473         test-locale-language program with $(LIBTHREAD).
22475 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22477         sys_socket: Add support for OpenVMS.
22478         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22479         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22481 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22483         sys_resource: Add support for OpenVMS.
22484         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22485         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22487 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22488             Bruno Haible  <bruno@clisp.org>
22490         math: Add support for OpenVMS.
22491         * lib/math.in.h [__VMS]: Include <fp.h>.
22492         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22494 2017-07-15  Bruno Haible  <bruno@clisp.org>
22496         getdtablesize: Add minimal support for OpenVMS.
22497         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22498         * modules/getdtablesize (Description): Fix.
22499         * lib/getdtablesize.c: Fix comment.
22500         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22501         getdtablesize() function, even though the test fails.
22502         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22503         limitation on OpenVMS.
22505 2017-07-13  Bruno Haible  <bruno@clisp.org>
22507         Revisit cross-compilation guesses.
22508         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22510 2017-07-13  Bruno Haible  <bruno@clisp.org>
22512         Improve cross-compilation guesses for native Windows.
22513         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22514         Windows.
22515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22516         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22517         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22518         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22519         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22520         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22521         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22522         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22523         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22524         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22525         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22526         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22527         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22528         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22529         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22530         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22531         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22533         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22534         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22535         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22536         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22537         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22538         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22539         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22540         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22541         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22542         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22543         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22544         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22545         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22547         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22548         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22549         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22550         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22551         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22552         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22553         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22554         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22555         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22557         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22558         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22559         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22560         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22561         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22562         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22563         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22564         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22565         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22566         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22567         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22568         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22569         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22570         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22571         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22572         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22573         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22574         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22576         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22577         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22578         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22579         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22581         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22582         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22583         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22584         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22585         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22586         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22587         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22588         * m4/regex.m4 (gl_REGEX): Likewise.
22589         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22590         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22591         gl_FUNC_REMAINDERF_WORKS): Likewise.
22592         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22593         gl_FUNC_REMAINDERL_WORKS): Likewise.
22594         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22595         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22596         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22597         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22598         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22599         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22600         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22601         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22602         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22604         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22605         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22606         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22607         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22609         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22610         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22612         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22613         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22614         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22615         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22616         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22617         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22618         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22619         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22620         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22621         Likewise.
22622         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22623         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22624         Windows. Enable also on Autoconf 2.70.
22625         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22626         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22627         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22628         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22629         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22630         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22631         for native Windows.
22632         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22633         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22635 2017-07-13  Bruno Haible  <bruno@clisp.org>
22637         Improve cross-compilation guesses for native Windows.
22638         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22639         Windows.
22640         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22641         memchr.m4.
22642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22644 2017-07-13  Bruno Haible  <bruno@clisp.org>
22646         Improve cross-compilation guesses for native Windows.
22647         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22648         native Windows.
22649         (gl_FUNC_FFLUSH): Update accordingly.
22650         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22651         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22653 2017-07-11  Bruno Haible  <bruno@clisp.org>
22655         More systematic m4 quoting and indentation.
22656         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22657         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22658         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22660         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22661         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22662         gl_WINSIZE_IN_PTEM): Likewise.
22663         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22664         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22665         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22666         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22667         Correct indentation.
22668         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22669         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22670         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22671         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22672         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22673         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22675 2017-07-10  Bruno Haible  <bruno@clisp.org>
22677         round, roundf: Avoid compiler warning in configure test.
22678         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22679         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22681 2017-07-10  Bruno Haible  <bruno@clisp.org>
22683         getlogin tests: Avoid #ifdefs when sharing code between modules.
22684         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22685         * modules/getlogin-tests (Files): Likewise. Remove
22686         tests/test-getlogin_r.c.
22687         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22688         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22689         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22690         getlogin().
22692 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22694         getlogin: don’t assume one name per uid
22695         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22696         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22697         (ttyname): Remove test.
22698         * modules/getlogin_r-tests (ttyname): Remove test.
22699         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22700         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22701         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22702         getlogin rather than getlogin_r.  This avoids code duplication.
22703         (main): Use isatty and fstat rather than ttyname and stat.
22704         Use getpwnam instead of getpwuid, to be portable to test platforms
22705         that have multiple login names for the same uid.
22707 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22708             Bruno Haible  <bruno@clisp.org>
22710         glob: Fix more memory leaks.
22711         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22712         returning.
22713         Reported by Tim Rühsen.
22715 2017-07-10  Bruno Haible  <bruno@clisp.org>
22717         Make sure $host and $host_os are defined when used.
22718         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22719         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22720         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22721         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22722         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22723         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22724         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22725         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22726         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22727         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22728         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22729         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22730         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22731         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22732         m4_ifdef block.
22734 2017-07-09  Bruno Haible  <bruno@clisp.org>
22736         *printf: Fix cross-compilation guess for Solaris.
22737         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22738         2010-12-21.
22740 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22741             Bruno Haible  <bruno@clisp.org>
22743         vasnprintf: port to macOS 10.13
22744         Problem reported by comex in:
22745         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22746         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22748 2017-07-06  Bruno Haible  <bruno@clisp.org>
22750         imaxdiv tests: Fix logic.
22751         * tests/test-imaxdiv.c (main): Use == instead of =.
22752         Reported by Coverity.
22754 2017-07-06  Bruno Haible  <bruno@clisp.org>
22756         uninorm/filter: Fix use-after-free bug.
22757         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22758         sortbuf == filter->sortbuf invariant.
22759         Reported by Coverity.
22761 2017-07-06  Bruno Haible  <bruno@clisp.org>
22763         glob: Fix more memory leaks.
22764         * lib/glob.c (glob): Free dirname before returning.
22765         Reported by Coverity and Tim Rühsen.
22767 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22769         parse-datetime: fix uninit var bug
22770         Reported by Bruno Haible in:
22771         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22772         * lib/parse-datetime.y (parse_datetime2): Do not use
22773         uninitialized.
22775 2017-07-05  Bruno Haible  <bruno@clisp.org>
22777         doc: Update for MSVC 14.
22778         * doc/posix-headers/*.texi: Add info about MSVC 14.
22779         * doc/posix-functions/*.texi: Likewise.
22780         * doc/pastposix-functions/*.texi: Likewise.
22781         * doc/glibc-headers/*.texi: Likewise.
22782         * doc/glibc-functions/*.texi: Likewise.
22784 2017-07-05  Bruno Haible  <bruno@clisp.org>
22786         sched: Fix build failure on native Windows (regression from 2017-06-19).
22787         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22789 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22791         stdioext: Port to OpenVMS.
22792         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22793         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22794         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22795         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22796         * lib/fpurge.c (fpurge): Likewise.
22797         * lib/freadable.c (freadable): Likewise.
22798         * lib/freadahead.c (freadahead): Likewise.
22799         * lib/freading.c (freading): Likewise.
22800         * lib/freadptr.c (freadptr): Likewise.
22801         * lib/freadseek.c (freadseek): Likewise.
22802         * lib/fseeko.c (fseeko): Likewise.
22803         * lib/fseterr.c (fseterr): Likewise.
22804         * lib/fwritable.c (fwriteable): Likewise.
22805         * lib/fwriting.c (fwriting): Likewise.
22807 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22809         glob: Declare variables at the very start of their scope.
22810         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22811         its separate scope, so the functions will compile on Haiku.
22813 2017-07-01  Bruno Haible  <bruno@clisp.org>
22815         logbl: Work around a glibc bug on PowerPC64LE.
22816         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22817         numbers.
22818         * doc/posix-functions/logbl.texi: Update.
22820 2017-06-29  Bruno Haible  <bruno@clisp.org>
22822         stat, fstat: Compile stat-w32.c only on platforms that need it.
22823         Suggested by Paul Eggert.
22824         * modules/stat (configure.ac): Request stat-w32.o only on native
22825         Windows.
22826         * modules/fstat (configure.ac): Likewise.
22828 2017-06-25  Bruno Haible  <bruno@clisp.org>
22830         stat: Improve last change.
22831         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22833 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22835         stat: port to xlc 12.01
22836         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22837         12.01 complains "Compilation unit is empty."
22839 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22841         xalloc-oversized: port to icc
22842         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22843         __builtin_mul_overflow if ICC is defined, as this results in
22844         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22845         20170213.
22847 2017-06-19  Bruno Haible  <bruno@clisp.org>
22849         classpath: Avoid including config.h twice, as it produces warnings.
22850         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22851         * lib/classpath.h: Conditionalize the include of config.h.
22853 2017-06-19  Bruno Haible  <bruno@clisp.org>
22854             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22856         sched: Fix compilation failure on OpenVMS.
22857         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22858         test whether <pthread.h> exists and defines struct sched_param.
22859         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22861 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22863         diffseq: port to GCC 7 with --enable-gcc-warnings
22864         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22865         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22866         not complain about big_snake being defined but not used.
22868 2017-06-15  Bruno Haible  <bruno@clisp.org>
22870         gettext-h: Update theoretical condition for use of variable size arrays.
22871         Reported by Paul Eggert.
22872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22873         to include the theoretical condition for availability of variable size
22874         arrays, if we could trust the value of __STDC_VERSION__.
22876 2017-06-12  Bruno Haible  <bruno@clisp.org>
22878         Relicense some modules under LGPLv2+.
22879         Daiki Ueno's approval is in
22880         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22881         * modules/uniwidth/base (License): Change to LGPLv2+.
22882         * modules/uniwidth/width (License): Likewise.
22884 2017-06-11  Bruno Haible  <bruno@clisp.org>
22886         localename: Fix test failure on DragonFly BSD.
22887         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22888         like FreeBSD.
22890 2017-06-11  Bruno Haible  <bruno@clisp.org>
22892         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22893         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22894         * lib/float.in.h: Likewise.
22895         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22897 2017-06-11  Bruno Haible  <bruno@clisp.org>
22899         gnulib-tool: Clean up after autotools.
22900         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22901         useless directory left over by the Autotools.
22903 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22905         getopt-posix: port to glibc 2.25.90
22906         Problem reported by Daniel P. Berrange in:
22907         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22908         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22909         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22910         #undef if __GETOPT_PREFIX is defined.
22912 2017-06-11  Bruno Haible  <bruno@clisp.org>
22914         strtod-obsolete: Fix license.
22915         * modules/strtod-obsolete (License): Change to LGPL.
22917 2017-06-10  Jim Meyering  <meyering@fb.com>
22919         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22920         * lib/savewd.c (FALLTHROUGH): Define.
22921         (savewd_save, savewd_restore): Use this, rather than a comment,
22922         whenever one switch case falls through into the next.
22924 2017-06-08  Bruno Haible  <bruno@clisp.org>
22926         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22927         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22928         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22929         case.
22931 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22933         doc: remove robots, add prereqs
22934         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22935         builds.  Simon's robot site does not seem to be up, so remove
22936         mentions of it for now.
22938 2017-06-08  Bruno Haible  <bruno@clisp.org>
22940         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22941         * gnulib-tool (func_symlink_target): New function, extracted from
22942         func_symlink.
22943         (func_symlink, func_symlink_if_changed): Use it.
22945 2017-06-08  Bruno Haible  <bruno@clisp.org>
22947         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22948         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22950 2017-06-07  Bruno Haible  <bruno@clisp.org>
22952         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22953         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22954         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22955         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22956         override, pass 2 arguments to getcwd, not 3.
22958 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22960         same-inode: port better to VMS 8.2 and later
22961         Problem reported by John E. Malmberg in:
22962         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22963         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22964         Use the usual POSIX definition.
22965         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22967 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22969         error: fix POSIX violation for va_end
22970         Problem reported by Bruno Haible in:
22971         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22972         * lib/error.c (error_tail): Do not call va_end here.
22973         (error, error_at_line): Call it here instead.
22975 2017-05-28  Bruno Haible  <bruno@clisp.org>
22977         c-strtod: Make it usable in C++ mode.
22978         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22980 2017-05-25  Jim Meyering  <meyering@fb.com>
22982         quotearg: fix compilation failure due to FALLTHROUGH misuse
22983         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22984         macro back to /* fall through */ comment.  The macro can apply only
22985         to a following case statement.  Reported by Assaf Gordon.
22987 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22989         intprops: port to recent icc
22990         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22991         but does not support __builtin_add_overflow etc.
22992         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22993         Define to 0.
22995 2017-05-23  Karl Berry  <karl@freefriends.org>
22997         * config/srclist.txt (iconv.m4): sync broken, comment out
22998         until (hopefully) the next gettext release.
23000 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23002         Remove repeated words in comments.
23004 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23006         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23007         quotearg.c: Reinstate this instance which is significant
23008         when the if branch is not taken.
23010 2017-05-21  Bruno Haible  <bruno@clisp.org>
23012         gnulib-tool: Add options to create hard links.
23013         * gnulib-tool (func_usage): Document options --hardlink,
23014         --local-hardlink, --more-hardlinks.
23015         (func_symlink): Renamed from func_ln.
23016         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23017         (func_hardlink): New function.
23018         (copymode, lcopymode): New variables.
23019         (symbolic, lsymbolic): Remove variables.
23020         (Options): Implement options --hardlink, --local-hardlink,
23021         --more-hardlinks.
23022         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23023         (func_add_file, func_update_file): Update invocation of
23024         func_should_link. Invoke func_hardlink when appropriate.
23025         (func_import): Update comments.
23026         (func_create_testdir): Update invocation of func_should_link. Invoke
23027         func_hardlink when appropriate.
23028         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23029         the hard links on git.
23031 2017-05-20  Bruno Haible  <bruno@clisp.org>
23033         argp: Simplify bit manipulation.
23034         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23035         on a signed integer type.
23037 2017-05-20  Bruno Haible  <bruno@clisp.org>
23039         Avoid wrong configure results with gcc -fsanitize=address.
23040         This completes the work done on 2016-02-06 on this topic.
23041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23042         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23044         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23045         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23046         returning.
23047         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23048         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23049         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23050         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23051         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23052         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23053         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23054         free allocated memory before returning.
23055         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23056         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23057         objects before returning.
23058         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23059         returning.
23061 2017-05-20  Bruno Haible  <bruno@clisp.org>
23063         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23064         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23066 2017-05-20  Bruno Haible  <bruno@clisp.org>
23068         argp, tsearch tests: Fix file list.
23069         * modules/argp-tests (Files): Add tests/macros.h.
23070         * modules/tsearch-tests (Files): Likewise.
23072 2017-05-20  Bruno Haible  <bruno@clisp.org>
23074         getopt-posix tests: Remove redundant include.
23075         * tests/test-getopt.h: Don't include "macros.h". It's already included
23076         by tests/test-getopt-main.h.
23078 2017-05-19  Jim Meyering  <meyering@fb.com>
23080         dfa: two small simplifications
23081         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23083 2017-05-18  Jim Meyering  <meyering@fb.com>
23085         fallthrough: update for GCC 7/8
23086         * lib/quotearg.c (FALLTHROUGH): New macro.
23087         Use it whenever one switch case falls through into the next,
23088         replacing "/* Fall through */" comments.  This exposed one
23089         instance of an unwarranted "fall through" comment: unwarranted
23090         because it preceded a "goto" label not a case statement.
23091         * lib/freopen-safer.c (freopen_safer): Likewise.
23092         * lib/fts.c (leaf_optimization_applies): Likewise.
23093         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23094         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23095         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23096         tests/macros.h for the definition.
23097         * tests/test-argp.c (group1_parser): Likewise.
23098         * tests/test-getopt.h (getopt_loop): Likewise.
23100 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23102         argp: fix shift bug
23103         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23104         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23106         argp: fix pointer-subtraction bug
23107         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23108         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23109         See the thread containing Bruno Haible’s report in:
23110         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23112 2017-05-19  Bruno Haible  <bruno@clisp.org>
23114         printf-posix tests: Avoid test failure with "gcc --coverage".
23115         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23116         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23117         than 5000000.
23118         * tests/test-fprintf-posix2.c (main): Likewise.
23120 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23122         closeout: don’t close stderr when sanitizing
23123         * NEWS: Document this.
23124         * lib/closeout.c (__has_feature): New macro, if not already defined.
23125         (SANITIZE_ADDRESS): New constant.
23126         (close_stdout): Don’t close stderr if sanitizing addresses.
23128 2017-05-19  Bruno Haible  <bruno@clisp.org>
23130         get-rusage-data tests: Avoid failure on Linux/glibc.
23131         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23132         on glibc systems.
23134 2017-05-18  Bruno Haible  <bruno@clisp.org>
23136         localename: Include necessary header files on Cygwin.
23137         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23138         where NL_LOCALE_NAME is defined.
23140 2017-05-18  Bruno Haible  <bruno@clisp.org>
23142         gettext: Update macros from gettext git.
23143         * m4/intldir.m4: Require Autoconf >= 2.60.
23144         * m4/progtest.m4: Fix typos in copyright notice.
23146 2017-05-18  Bruno Haible  <bruno@clisp.org>
23148         copy-file tests: Fix link error (regression from 2017-05-01).
23149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23150         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23151         $(LIB_CLOCK_GETTIME).
23153 2017-05-18  Bruno Haible  <bruno@clisp.org>
23155         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23156         (regression from 2017-02-13).
23157         * lib/unicase/special-casing.in.h: Renamed from
23158         lib/unicase/special-casing.h.
23159         * modules/unicase/special-casing (Files): Add
23160         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23161         (Makefile.am): Add rule for generating unicase/special-casing.h.
23162         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23163         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23164         not "special-casing.h".
23165         * lib/unicase/u*.c: Likewise.
23167 2017-05-17  Bruno Haible  <bruno@clisp.org>
23169         README: Don't ask people to read a TeXinfo file.
23170         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23171         * README: Tell people how to read the HTML formatted manual.
23173 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23175         parse-datetime: Fix memleak
23176         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23177         localtime_rz() failure.
23179 2017-05-16  Bruno Haible  <bruno@clisp.org>
23181         javacomp: Fix handle leak.
23182         Found by Coverity.
23183         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23185 2017-05-16  Bruno Haible  <bruno@clisp.org>
23187         relocate: Make it easier to reclaim allocated memory.
23188         * lib/relocatable.h (relocate2): New declaration/macro.
23189         * lib/relocatable.c (relocate2): New function.
23190         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23191         relocate2 function.
23192         * lib/localcharset.c (relocate2): Define fallback.
23193         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23194         allocated memory.
23195         * lib/javaversion.c (relocate2): Define fallback.
23196         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23197         allocated memory.
23199 2017-05-16  Bruno Haible  <bruno@clisp.org>
23201         relocate: Simplify EMX specific code.
23202         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23203         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23205 2017-05-16  Bruno Haible  <bruno@clisp.org>
23207         sigpipe tests: Fix file list.
23208         * modules/sigpipe-tests (Files): Add tests/macros.h.
23210 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23212         manywarnings: update for GCC 7
23213         * build-aux/gcc-warning.spec:
23214         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23215         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23216         requires a non-comment fallthrough attribute.  This is a bit
23217         cleaner than the comment versions.
23218         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23219         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23220         Use it whenever one switch case falls through into the next.
23221         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23222         Use FALLTHROUGH macro.
23224 2017-05-15  Bruno Haible  <bruno@clisp.org>
23226         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23227         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23228         @ALLOCA@, not @LTALLOCA@.
23230 2017-05-15  Bruno Haible  <bruno@clisp.org>
23232         sys_select: Avoid "was expanded before it was required" warning.
23233         * modules/sys_select (configure.ac): Require, not invoke,
23234         gl_HEADER_SYS_SELECT.
23236 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23238         gnulib-tool: improve GNU Make debugging
23239         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23240         Report autoconf diagnostics when it fails, in the output makefile.
23242 2017-05-14  Bruno Haible  <bruno@clisp.org>
23244         stat-time tests: Improve comment.
23245         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23247 2017-05-14  Bruno Haible  <bruno@clisp.org>
23249         same-inode: Adapt for windows-stat-inodes.
23250         * lib/same-inode.h: Include <sys/types.h>.
23251         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23252         * modules/same-inode (Depends-on): Add sys_types.
23254 2017-05-14  Bruno Haible  <bruno@clisp.org>
23256         windows-stat-inodes: New module.
23257         * m4/windows-stat-inodes.m4: New file.
23258         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23259         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23260         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23261         (_GL_WINDOWS_STAT_INODES): New macro.
23262         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23263         (GetFileInformationByHandleExFunc): New variable.
23264         (initialize): Initialize it.
23265         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23266         st_ino appropriately.
23267         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23268         a fallback, because it does not provide st_dev and st_ino values.
23269         * modules/fstat (Depends-on): Add 'verify'.
23270         * modules/windows-stat-inodes: New file.
23271         * doc/windows-stat-inodes.texi: New file.
23272         * doc/gnulib.texi: Include it.
23273         * doc/posix-headers/sys_stat.texi: Mention the new module.
23275 2017-05-14  Bruno Haible  <bruno@clisp.org>
23277         stat-time tests: Workaround for native Windows.
23278         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23279         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23280         New variables.
23281         (initialize_filenames): New function.
23282         (main): Invoke it.
23283         (cleanup, prepare_test): Update.
23285 2017-05-14  Bruno Haible  <bruno@clisp.org>
23287         stat-time: Adapt for windows-stat-timespec.
23288         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23289         entire st_ctim field.
23291 2017-05-13  Jim Meyering  <meyering@fb.com>
23293         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23294         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23295         file that uses the assume macro, claiming that verify.h is unused.
23297 2017-05-13  Bruno Haible  <bruno@clisp.org>
23299         Use symbolic values for _WIN32_WINNT.
23300         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23301         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23303 2017-05-13  Bruno Haible  <bruno@clisp.org>
23305         year2038: New module.
23306         * m4/year2038.m4: New file.
23307         * modules/year2038: New file.
23308         * doc/year2038.texi: New file.
23309         * doc/gnulib.texi: Include it.
23311 2017-05-13  Bruno Haible  <bruno@clisp.org>
23313         largefile: Simplify.
23314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23315         of _GL_WINDOWS_64_BIT_ST_SIZE.
23317 2017-05-13  Bruno Haible  <bruno@clisp.org>
23319         largefile: Improve and document.
23320         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23321         the mingw headers already define 'stat' appropriately.
23322         * modules/largefile (Description): Clarify.
23323         * doc/largefile.texi: New file.
23324         * doc/gnulib.texi: Include it.
23325         * doc/posix-headers/sys_types.texi: Update.
23327 2017-05-13  Bruno Haible  <bruno@clisp.org>
23329         truncate: New module.
23330         * lib/unistd.in.h (truncate): New declaration.
23331         * lib/truncate.c: New file.
23332         * m4/truncate.m4: New file.
23333         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23334         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23335         REPLACE_TRUNCATE.
23336         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23337         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23338         * modules/truncate: New file.
23339         * tests/test-unistd-c++.cc (truncate): Test signature.
23340         * doc/posix-functions/truncate.texi: Mention the new module.
23342         * tests/test-truncate.c: New file.
23343         * modules/truncate-tests: New file.
23345 2017-05-13  Bruno Haible  <bruno@clisp.org>
23347         windows-stat-timespec: New module.
23348         * modules/windows-stat-timespec: New file.
23349         * m4/windows-stat-timespec.m4: New file.
23350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23351         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23352         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23353         fields st_atim, st_mtim, st_ctim.
23354         (st_atime, st_mtime, st_ctime): Define as macros.
23355         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23356         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23357         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23358         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23359         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23360         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23361         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23362         FILETIME to 'struct timespec', not 'time_t'.
23363         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23364         FILETIME to 'struct timespec', not 'time_t'.
23365         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23366         _GL_WINDOWS_STAT_TIMESPEC.
23367         * doc/windows-stat-timespec.texi: New file.
23368         * doc/gnulib.texi: Include it.
23370 2017-05-13  Bruno Haible  <bruno@clisp.org>
23372         windows-stat-override: New module.
23373         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23374         definition. Define GNULIB_defined_struct_stat.
23375         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23376         link error if this symbol is used and the corresponding module is not
23377         in use.
23378         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23379         GNULIB_OVERRIDES_STRUCT_STAT.
23380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23381         GNULIB_OVERRIDES_STRUCT_STAT.
23382         * modules/sys_stat (Makefile.am): Substitute
23383         GNULIB_OVERRIDES_STRUCT_STAT.
23384         * modules/windows-stat-override: New file.
23386 2017-05-13  Bruno Haible  <bruno@clisp.org>
23388         fstat: Fix module dependency conditions.
23389         * modules/fstat (Depends-on): Fix typo.
23391 2017-05-13  Bruno Haible  <bruno@clisp.org>
23393         stat, fstat: Complete removal of old native Windows code.
23394         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23395         * lib/fstat.c: Likewise.
23396         * lib/stat-w32.c: Likewise.
23398 2017-05-13  Bruno Haible  <bruno@clisp.org>
23400         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23401         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23403 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23405         getopt-posix: port to mingw
23406         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23407         Problem reported by Daniel P. Berrage in:
23408         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23410 2017-05-11  Bruno Haible  <bruno@clisp.org>
23412         gettimeofday: Increase precision on mingw.
23413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23414         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23415         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23416         GetSystemTimePreciseAsFileTime based implementation always.
23417         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23418         mingw.
23420 2017-05-11  Bruno Haible  <bruno@clisp.org>
23422         poll: Fix confusion between SOCKETs and FDs on native Windows.
23423         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23424         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23426 2017-05-11  Bruno Haible  <bruno@clisp.org>
23428         doc: Clarify doc about socket functions on native Windows.
23429         This reworks doc that was added on 2008-09-29.
23430         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23431         clearer wording.
23432         * doc/posix-functions/accept.texi: Use clearer wording.
23433         * doc/posix-functions/bind.texi: Likewise.
23434         * doc/posix-functions/connect.texi: Likewise.
23435         * doc/posix-functions/getpeername.texi: Likewise.
23436         * doc/posix-functions/getsockname.texi: Likewise.
23437         * doc/posix-functions/getsockopt.texi: Likewise.
23438         * doc/posix-functions/ioctl.texi: Likewise.
23439         * doc/posix-functions/listen.texi: Likewise.
23440         * doc/posix-functions/recv.texi: Likewise.
23441         * doc/posix-functions/recvfrom.texi: Likewise.
23442         * doc/posix-functions/send.texi: Likewise.
23443         * doc/posix-functions/sendto.texi: Likewise.
23444         * doc/posix-functions/setsockopt.texi: Likewise.
23445         * doc/posix-functions/shutdown.texi: Likewise.
23446         * doc/posix-functions/socket.texi: Likewise.
23448 2017-05-10  Bruno Haible  <bruno@clisp.org>
23450         poll: Fix link error on native Windows.
23451         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23453 2017-05-10  Bruno Haible  <bruno@clisp.org>
23455         time: Fix missing initialization of HAVE_TIMEZONE_T.
23456         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23457         here...
23458         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23459         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23460         gl_HEADER_SYS_TIME_H_DEFAULTS.
23461         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23462         (configure.ac): Remove useless quoting.
23464 2017-05-10  Bruno Haible  <bruno@clisp.org>
23466         Implement a way to opt out from MSVC support, part 2.
23467         * modules/msvc-inval (Include): Document recommended idiom.
23468         * modules/msvc-nothrow (Include): Likewise.
23470         Implement a way to opt out from MSVC support.
23471         This is useful for Emacs.
23472         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23473         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23474         * lib/error.c: Likewise.
23475         * lib/fcntl.c: Likewise.
23476         * lib/flock.c: Likewise.
23477         * lib/fstat.c: Likewise.
23478         * lib/fsync.c: Likewise.
23479         * lib/ioctl.c: Likewise.
23480         * lib/isapipe.c: Likewise.
23481         * lib/lseek.c: Likewise.
23482         * lib/nonblocking.c: Likewise.
23483         * lib/poll.c: Likewise.
23484         * lib/select.c: Likewise.
23485         * lib/sockets.h: Likewise.
23486         * lib/sockets.c: Likewise.
23487         * lib/stdio-read.c: Likewise.
23488         * lib/stdio-write.c: Likewise.
23489         * lib/utimens.c: Likewise.
23490         * lib/w32sock.h: Likewise.
23491         * lib/w32spawn.h: Likewise.
23492         * tests/test-cloexec.c: Likewise.
23493         * tests/test-dup-safer.c: Likewise.
23494         * tests/test-dup2.c: Likewise.
23495         * tests/test-dup3.c: Likewise.
23496         * tests/test-fcntl.c: Likewise.
23497         * tests/test-pipe.c: Likewise.
23498         * tests/test-pipe2.c: Likewise.
23499         * lib/ftruncate.c: Likewise.
23500         (chsize_nothrow): Renamed from chsize.
23501         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23502         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23503         * lib/close.c: Likewise.
23504         * lib/dup.c: Likewise.
23505         * lib/fclose.c: Likewise.
23506         * lib/raise.c: Likewise.
23507         * tests/test-fgetc.c: Likewise.
23508         * tests/test-fputc.c: Likewise.
23509         * tests/test-fread.c: Likewise.
23510         * tests/test-fwrite.c: Likewise.
23511         * lib/getdtablesize.c: Likewise.
23512         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23513         * lib/isatty.c: Don't include msvc-inval.h if
23514         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23515         Include <io.h> as an alternative to msvc-nothrow.h.
23516         * lib/read.c: Likewise.
23517         * lib/write.c: Likewise.
23518         * lib/dup2.c: Likewise.
23519         (dup2_nothrow): New function.
23520         (ms_windows_dup2): Use it.
23521         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23522         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23523         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23524         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23525         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23526         * m4/read.m4 (gl_FUNC_READ): Likewise.
23527         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23528         * doc/windows-without-msvc.texi: New file.
23529         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23530         section.
23532 2017-05-10  Bruno Haible  <bruno@clisp.org>
23534         wait-process: Adjust native Windows support.
23535         * lib/wait-process.c: Use the usual condition for recognizing a native
23536         Windows platform.
23538 2017-05-10  Bruno Haible  <bruno@clisp.org>
23540         doc: New chapter "Native Windows Support".
23541         * doc/gnulib.texi (Native Windows Support): New chapter.
23542         * doc/windows-libtool.texi: Small wording changes.
23543         * doc/windows-sockets.texi: Small wording and formatting changes.
23545 2017-05-10  Bruno Haible  <bruno@clisp.org>
23547         doc: Move section "Library version handling".
23548         * doc/gnulib.texi: Move section "Library version handling"
23549         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23551 2017-05-10  Bruno Haible  <bruno@clisp.org>
23553         doc: Move section "Running self-tests under valgrind".
23554         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23555         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23557 2017-05-10  Bruno Haible  <bruno@clisp.org>
23559         doc: New chapter "Build Infrastructure Modules".
23560         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23562 2017-05-10  Bruno Haible  <bruno@clisp.org>
23564         Prepare for reordering sections in the manual.
23565         * doc/gnulib.texi: Move several sections to separate files. Include
23566         these files.
23567         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23568         * doc/obsolete.texi: Likewise.
23569         * doc/extra-tests.texi: Likewise.
23570         * doc/transversal.texi: Likewise.
23571         * doc/namespace.texi: Likewise.
23572         * doc/check-version.texi: Likewise.
23573         * doc/windows-sockets.texi: Likewise.
23574         * doc/windows-libtool.texi: Likewise.
23575         * doc/licenses-texi.texi: Likewise.
23576         * doc/build-automation.texi: Likewise.
23577         * doc/c-locale.texi: Likewise.
23579 2017-05-10  Bruno Haible  <bruno@clisp.org>
23581         Fix instructions how to update manual on www.gnu.org.
23582         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23584 2017-05-09  Bruno Haible  <bruno@clisp.org>
23586         tzset: Expand comment about TZ problem on native Windows.
23587         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23588         Paul Eggert.
23589         * lib/ctime.c (rpl_ctime): Likewise.
23590         * lib/localtime.c (rpl_localtime): Likewise.
23591         * lib/mktime.c (mktime): Likewise.
23592         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23593         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23595 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23597         intprops: don’t depend on ‘verify’
23598         Problem reported by Ævar Arnfjörð Bjarmason in:
23599         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23600         * lib/intprops.h: Do not include verify.h, and move compile-time
23601         checks from here ...
23602         * tests/test-intprops.c (main): ... to here, if they’re not here
23603         already.  Check widths of other standard integer types.
23604         * modules/intprops (Depends-on): Remove ‘verify’.
23606 2017-05-07  Bruno Haible  <bruno@clisp.org>
23608         utimens: On native Windows, support 100ns resolution also if fd < 0.
23609         * lib/utime.in.h: Include <time.h>.
23610         (_gl_utimens_windows): New declaration.
23611         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23612         (utime): Invoke it.
23613         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23614         instead of utime.
23615         * modules/utime (Depends-on): Add 'time'.
23617 2017-05-07  Bruno Haible  <bruno@clisp.org>
23619         utimens: Improve error code on native Windows.
23620         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23621         error code EACCES, not EINVAL.
23623 2017-05-07  Bruno Haible  <bruno@clisp.org>
23625         utime: Handle more Windows error codes.
23626         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23627         Based on explanations by Billy O'Neal.
23629 2017-05-05  Bruno Haible  <bruno@clisp.org>
23631         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23632         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23633         union.
23634         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23635         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23636         value of cipher->IV.
23638 2017-05-05  Bruno Haible  <bruno@clisp.org>
23640         wctype-h-c++-tests: Update.
23641         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23643 2017-05-05  Bruno Haible  <bruno@clisp.org>
23645         wchar-c++-tests: Update.
23646         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23648 2017-05-05  Bruno Haible  <bruno@clisp.org>
23650         utime-h-c++-tests: New module.
23651         * tests/test-utime-h-c++.cc: New file.
23652         (utime): Declare, missing since 2017-04-30.
23653         * modules/utime-h-c++-tests: New file.
23655 2017-05-05  Bruno Haible  <bruno@clisp.org>
23657         unistd-c++-tests: Update.
23658         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23659         (read): Declare, missing since 2011-04-15.
23660         (sethostname): Declare, missing since 2011-12-03.
23662 2017-05-05  Bruno Haible  <bruno@clisp.org>
23664         time-c++-tests: Update.
23665         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23666         (localtime, gmtime): Declare, missing since 2017-04-30.
23667         (ctime): Declare, missing since 2017-04-30.
23668         (strftime): Declare, missing since 2017-04-30.
23669         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23670         2015-07-24.
23672 2017-05-05  Bruno Haible  <bruno@clisp.org>
23674         sys_resource-c++-tests: New module.
23675         * tests/test-sys_resource-c++.cc: New file.
23676         (getrusage): Declare, missing since 2012-04-13.
23677         * modules/sys_resource-c++-tests: New file.
23679 2017-05-05  Bruno Haible  <bruno@clisp.org>
23681         strings-c++-tests: New module.
23682         * tests/test-strings-c++.cc: New file.
23683         (ffs): Declare, missing since 2011-07-12.
23684         * modules/strings-c++-tests: New file.
23686 2017-05-05  Bruno Haible  <bruno@clisp.org>
23688         string-c++-tests: Update.
23689         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23690         (ffsll): Declare, missing since 2011-07-15.
23692 2017-05-05  Bruno Haible  <bruno@clisp.org>
23694         stdlib-c++-tests: Update.
23695         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23696         2011-10-18.
23697         (ptsname_r): Declare, missing since 2011-11-07.
23698         (qsort_r): Declare, missing since 2014-08-29.
23699         (random, srandom, initstate, setstate): Declare, missing since
23700         2012-01-14.
23701         (secure_getenv): Declare, missing since 2013-02-05.
23703 2017-05-05  Bruno Haible  <bruno@clisp.org>
23705         stdio-c++-tests: Update.
23706         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23708 2017-05-05  Bruno Haible  <bruno@clisp.org>
23710         signal-h-c++-tests: Update.
23711         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23713 2017-05-05  Bruno Haible  <bruno@clisp.org>
23715         math-c++-tests: Update.
23716         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23717         (fma): Declare, missing since 2011-10-17.
23718         (fmal): Declare, missing since 2011-10-17.
23720 2017-05-05  Bruno Haible  <bruno@clisp.org>
23722         locale-c++-tests: Update.
23723         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23724         2012-03-25.
23726 2017-05-05  Bruno Haible  <bruno@clisp.org>
23728         inttypes-c++-tests: New module.
23729         * tests/test-inttypes-c++.cc: New file.
23730         (strtoimax): Declare, missing since 2012-01-05.
23731         (strtoumax): Declare, missing since 2012-01-05.
23732         * modules/inttypes-c++-tests: New file.
23734 2017-05-05  Bruno Haible  <bruno@clisp.org>
23736         dirent-c++-tests: Update.
23737         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23738         (rewinddir): Declare, missing since 2011-09-13.
23739         (dirfd): Declare, missing since 2010-03-08.
23741 2017-05-04  Bruno Haible  <bruno@clisp.org>
23743         argp: Fix mistake in 2017-04-23 commit.
23744         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23745         assume that strerror_r returns 'int', not 'char *'.
23747 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23749         argp: Fix typo.
23750         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23752 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23754         utimens: port to Emacs + MS-Windows
23755         Skip the new MS-Windows-specific code if Emacs.
23756         * lib/utimens.c [EMACS_CONFIGUATION]:
23757         Avoid new MS-Windows-specific code.
23758         (USE_SETFILETIME): New macro.
23759         (fdutimens): Use it.
23761 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23763         tzset: update doc for TZ problems on MS-Windows
23764         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23765         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23766         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23767         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23768         * doc/posix-functions/wcsftime.texi:
23769         Mention some issues with TZ under MS-Windows.
23771 2017-05-01  Bruno Haible  <bruno@clisp.org>
23773         copy-file: Fix build error on mingw.
23774         * modules/copy-file (Depends-on): Add 'close'.
23776 2017-05-01  Bruno Haible  <bruno@clisp.org>
23778         tzset: Work around TZ problem on native Windows.
23779         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23780         Windows, set REPLACE_TZSET to 1.
23781         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23782         invoke '_tzset' instead of 'tzset'.
23783         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23785         * modules/time_rz (Depends-on): Add tzset.
23786         * lib/time_rz.c (tzset): Remove fallback definition.
23787         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23789 2017-05-01  Bruno Haible  <bruno@clisp.org>
23791         mktime: Fix dependencies.
23792         * modules/mktime (Depends-on): Add 'time'.
23794 2017-05-01  Bruno Haible  <bruno@clisp.org>
23796         New module 'localtime-buffer', split off from module 'gettimeofday'.
23797         * lib/localtime-buffer.h: New file.
23798         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23799         * lib/time.in.h (tzset): New declaration.
23800         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23801         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23802         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23803         moved to lib/localtime-buffer.c or lib/tzset.c.
23804         * m4/localtime-buffer.m4: New file.
23805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23806         HAVE_TZSET, REPLACE_TZSET.
23807         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23808         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23809         gl_LOCALTIME_BUFFER_NEEDED.
23810         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23811         since 2007-01-18.
23812         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23813         tzset.
23814         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23815         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23816         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23817         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23818         * modules/localtime-buffer: New file.
23819         * modules/time (Depends-on): Remove 'gettimeofday'.
23820         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23821         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23822         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23823         (Files): Add lib/tzset.c.
23824         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23825         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23826         gl_TIME_MODULE_INDICATOR.
23827         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23829 2017-05-01  Bruno Haible  <bruno@clisp.org>
23831         copy-file: Preserve sub-second time stamps.
23832         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23833         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23834         transport the time stamps from the original file to the destination
23835         file.
23836         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23837         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23838         utime-h.
23840 2017-05-01  Bruno Haible  <bruno@clisp.org>
23842         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23843         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23844         also on MSVC.
23845         Reported by Eli Zaretskii <eliz@gnu.org>.
23847 2017-05-01  Bruno Haible  <bruno@clisp.org>
23849         wchar: Fix compilation error with the original mingw.org mingw.
23850         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23851         <stddef.h> instead.
23852         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23853         gl_WCTYPE_H.
23854         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23855         gl_TYPE_WINT_T_PREREQ instead.
23856         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23857         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23858         Reported by Eli Zaretskii <eliz@gnu.org>.
23860 2017-04-30  Bruno Haible  <bruno@clisp.org>
23862         utimecmp: Add support for native Windows.
23863         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23865 2017-04-30  Bruno Haible  <bruno@clisp.org>
23867         utimens: Add support for native Windows.
23868         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23869         (fdutimens): Provide a native Windows implementation, like utime.c with
23870         added tv_nsec support.
23871         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23872         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23874 2017-04-30  Bruno Haible  <bruno@clisp.org>
23876         wcsftime: New module.
23877         * lib/wchar.in.h (wcsftime): New declaration.
23878         * lib/wcsftime.c: New file.
23879         * m4/wcsftime.m4: New file.
23880         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23881         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23882         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23884         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23885         * modules/wcsftime: New file.
23886         * doc/posix-functions/wcsftime.texi: Mention the new module.
23888 2017-04-30  Bruno Haible  <bruno@clisp.org>
23890         strftime-fixes: New module.
23891         * lib/time.in.h (strftime): New declaration.
23892         * lib/strftime-fixes.c: New file.
23893         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23894         (gl_FUNC_STRFTIME): Remove macro.
23895         * m4/strftime-fixes.m4: New file.
23896         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23897         REPLACE_STRFTIME.
23898         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23899         REPLACE_STRFTIME.
23900         * modules/strftime-fixes: New file.
23901         * doc/posix-functions/strftime.texi: Mention the new module.
23903 2017-04-30  Bruno Haible  <bruno@clisp.org>
23905         mktime: Work around TZ problem on native Windows.
23906         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23907         from the native Windows workaround.
23908         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23909         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23910         'guessing no'.
23911         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23912         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23913         NEED_MKTIME_WINDOWS.
23914         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23915         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23916         NEED_MKTIME_INTERNAL.
23917         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23918         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23919         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23920         not REPLACE_MKTIME.
23921         * doc/posix-functions/mktime.texi: Mention the native Windows
23922         workaround.
23924 2017-04-30  Bruno Haible  <bruno@clisp.org>
23926         localtime: New module.
23927         * lib/time.in.h (localtime): Declare also if requested by module
23928         'localtime'.
23929         * lib/localtime.c: New file.
23930         * m4/localtime.m4: New file.
23931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23932         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23933         * modules/localtime: New file.
23934         * doc/posix-functions/localtime.texi: Mention the new module.
23936 2017-04-30  Bruno Haible  <bruno@clisp.org>
23938         ctime: New module.
23939         * lib/time.in.h (ctime): New declaration.
23940         * lib/ctime.c: New file.
23941         * m4/ctime.m4: New file.
23942         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23943         REPLACE_CTIME.
23944         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23945         * modules/ctime: New file.
23946         * doc/posix-functions/ctime.texi: Mention the new module.
23948 2017-04-30  Bruno Haible  <bruno@clisp.org>
23950         gettimeofday: Provide higher resolution on native Windows.
23951         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23952         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23953         (initialize): Initialize it.
23954         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23955         'struct timeval'. Don't use _ftime().
23956         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23957         <sys/timeb.h> and _ftime.
23959 2017-04-30  Bruno Haible  <bruno@clisp.org>
23961         Document the problem with the Cygwin environment variable TZ.
23962         * doc/posix-functions/tzset.texi: Add note about TZ.
23963         * doc/posix-functions/ctime.texi: Likewise.
23964         * doc/posix-functions/localtime.texi: Likewise.
23965         * doc/posix-functions/mktime.texi: Likewise.
23966         * doc/posix-functions/strftime.texi: Likewise.
23967         * doc/posix-functions/wcsftime.texi: Likewise.
23968         * doc/pastposix-functions/ftime.texi: Likewise.
23970 2017-04-30  Bruno Haible  <bruno@clisp.org>
23972         utime-tests: New module.
23973         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23974         * tests/test-utimens-common.h: Include <sys/stat.h>.
23975         * modules/utime-tests: New file.
23977 2017-04-29  Bruno Haible  <bruno@clisp.org>
23979         utime: New module.
23980         * lib/utime.in.h: Add comment for snippets.
23981         (utime): New declaration.
23982         * lib/utime.c: New file.
23983         * m4/utime.m4: New file.
23984         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23985         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23986         REPLACE_UTIME.
23987         * modules/utime-h (Depends-on): Add snippets.
23988         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23989         Insert snippets.
23990         * modules/utime: New file.
23991         * doc/posix-functions/utime.texi: Mention the new module.
23993 2017-04-29  Bruno Haible  <bruno@clisp.org>
23995         utime-h: Modernize handling of 'struct utimbuf'.
23996         * lib/utime.in.h: Include next <utime.h> if it exists.
23997         (utimbuf): Define to _utimbuf on native Windows.
23998         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23999         Set UTIME_H on native Windows.
24000         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24001         * modules/utime-h (Depends-on): Add include_next.
24002         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24003         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24005         * lib/utimens.c (utimbuf): Remove fallback definition.
24006         * m4/utimens.m4 (gl_UTIMENS): Don't require
24007         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24008         * m4/utimbuf.m4: Remove file.
24009         * modules/utimens (Files): Remove m4/utimbuf.m4.
24011 2017-04-29  Bruno Haible  <bruno@clisp.org>
24013         Make use of module 'utime-h'.
24014         * modules/copy-file (Depends-on): Add utime-h.
24015         * lib/copy-file.c: Assume that <utime.h> exists.
24016         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24018         * modules/utimens (Depends-on): Add utime-h.
24019         * lib/utimens.c: Assume that <utime.h> exists.
24021 2017-04-29  Bruno Haible  <bruno@clisp.org>
24023         utime-h: New module.
24024         * m4/utime_h.m4: New file.
24025         * lib/utime.in.h: New file.
24026         * modules/utime-h: New file.
24027         * doc/posix-headers/utime.texi: Mention the new module.
24029         * tests/test-utime-h.c: New file.
24030         * modules/utime-h-tests: New file.
24032 2017-04-30  Bruno Haible  <bruno@clisp.org>
24034         Fix a few typos.
24035         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24036         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24037         * doc/posix-functions/fstat.texi: Fix a plural typo.
24038         * doc/posix-functions/stat.texi: Likewise.
24039         * m4/include_next.m4: Update comments.
24041 2017-04-29  Bruno Haible  <bruno@clisp.org>
24043         error: Fix mistake in 2017-04-23 commit.
24044         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24045         assume that strerror_r returns 'int', not 'char *'.
24047 2017-04-29  Bruno Haible  <bruno@clisp.org>
24049         stat: Fix time_t values and other problems on native Windows platforms.
24050         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24051         implementations of stat().
24052         * lib/stat.c: Include filename.h instead of dosname.h. Include
24053         malloca.h, stat-w32.h.
24054         (is_unc_root): New function.
24055         (rpl_stat): New implementation for native Windows. Remove
24056         REPLACE_FUNC_STAT_DIR code.
24057         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24058         Don't define REPLACE_FUNC_STAT_DIR.
24059         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24060         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24061         (Depends-on): Remove dosname. Add filename, malloca.
24062         (configure.ac): Also compile lib/stat-w32.c.
24064 2017-04-29  Bruno Haible  <bruno@clisp.org>
24066         fstat: Fix time_t values on native Windows platforms.
24067         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24068         * lib/stat-w32.h: New file.
24069         * lib/stat-w32.c: New file.
24070         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24071         stat-w32.h instead.
24072         (fstat_nothrow): Remove function.
24073         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24074         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24075         always.
24076         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24077         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24078         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24079         (configure.ac): Also compile lib/stat-w32.c.
24081 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24083         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24084         Problem reported by Assaf Gordon and Gavin Smith in:
24085         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24086         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24087         #define this, too.
24089 2017-04-29  Bruno Haible  <bruno@clisp.org>
24091         strerror_r-posix: Fixes for MSVC 14.
24092         * lib/strerror_r.c: Include <stdarg.h>.
24093         (strerror_r): Provide error messages for errno values 100...140.
24094         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24096 2017-04-28  Bruno Haible  <bruno@clisp.org>
24098         noreturn: New module.
24099         * lib/noreturn.h: New file.
24100         * modules/noreturn: New file.
24101         * tests/test-noreturn.c: New file.
24102         * modules/noreturn-tests: New file.
24103         * tests/test-noreturn-c++.cc: New file.
24104         * modules/noreturn-c++-tests: New file.
24106 2017-04-27  Bruno Haible  <bruno@clisp.org>
24108         wctype-h: Fix compilation error with the original mingw.org mingw.
24109         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24110         HAVE_CRTDEFS_H.
24111         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24112         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24113         <stddef.h> instead.
24114         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24116 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24118         nap.h: Fix compilation on non windows platforms
24119         * tests/nap.h: Move misplaced endif.
24121 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24122         and Paul Eggert  <eggert@cs.ucla.edu>
24124         time_rz: fix heap buffer overflow vulnerability
24125         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24126         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24127         whether there is enough buffer space available, thus avoiding
24128         the problematic promotion of signed to unsigned causing an invalid
24129         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24130         the start of the buffer.
24131         * tests/test-parse-datetime.c (main): Add a test case written by
24132         Paul Eggert, which overwrites enough of the heap so that
24133         standard glibc will fail with "free(): invalid pointer"
24134         without the patch applied.
24136 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24138         xalloc: add missing integer overflow check
24139         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24140         overflow when P is null.
24142 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24144         parse-datetime: make it standalone
24145         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24146         (_GL_ATTRIBUTE_FORMAT): New macro.
24147         These are needed to get './gnulib-tool --test parse-datetime' to work.
24149 2017-04-23  Bruno Haible  <bruno@clisp.org>
24151         nap.h: Port to native Windows.
24152         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24153         use nap_fd instead. On native Windows, close and reopen nap_fd.
24154         (nap_works): Don't compare the ctimes, because on native Windows, these
24155         are the creation times.
24156         (nap): Update.
24158 2017-04-23  Bruno Haible  <bruno@clisp.org>
24160         nap.h: Fix logic.
24161         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24163 2017-04-23  Bruno Haible  <bruno@clisp.org>
24165         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24166         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24167         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24168         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24169         * lib/argp-help.c (__argp_failure): Likewise.
24171 2017-04-23  Bruno Haible  <bruno@clisp.org>
24173         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24174         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24175         * lib/strerror_r.c: Likewise.
24177 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24179         Target a C99 subset, not a C89 subset
24180         For many years Gnulib has targeted C89 and has resisted using C99
24181         features, as some Gnulib-using programs still wanted to target
24182         C89.  As this no longer seems to be the case, relax the porting
24183         requirements to allow some C99 features.  This is merely a change
24184         to the documentation, to give other Gnulib developers a chance to
24185         weigh in on the topic.
24186         * doc/extern-inline.texi (extern inline):
24187         * doc/gnulib-readme.texi (Portability guidelines):
24188         * doc/gnulib-tool.texi (Initial import):
24189         * doc/gnulib.texi (Header files):
24190         Modernize to talk about C99 and C11 instead of C89 and C99.
24191         * doc/gnulib-readme.texi (Portability guidelines):
24192         Now a section, not merely a subsection, so that it
24193         can be split up.  Modernize a bit.
24194         (C language versions, C99 features assumed)
24195         (C99 features avoided):
24196         New sections.
24198 2017-04-23  Bruno Haible  <bruno@clisp.org>
24200         doc: New section "Modules that modify the way other modules work".
24201         * doc/gnulib.texi (Modules that modify the way other modules work): New
24202         section.
24204 2017-04-23  Bruno Haible  <bruno@clisp.org>
24206         stat-time: Update comments.
24207         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24208         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24209         Windows.
24211 2017-04-01  Bruno Haible  <bruno@clisp.org>
24213         glob: Fix more memory leaks.
24214         * lib/glob.c (glob): Free allocated memory before returning.
24215         Reported by Coverity via Tim Rühsen.
24217 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24219         poll: improve fast check for out-of-range NFD
24220         * lib/poll.c: Do not include intprops.h.
24221         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24222         * modules/poll (Depends-on): Remove intprops.
24224         ftoastr: cite a newer paper
24225         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24226         instead of Loitsch 2010.
24228 2017-04-22  Bruno Haible  <bruno@clisp.org>
24230         poll: Enable argument check also in the Windows implementation.
24231         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24232         Reported by Paul Eggert.
24234 2017-04-22  Bruno Haible  <bruno@clisp.org>
24236         getlogin_r: Work around bug in Mac OS X 10.12.
24237         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24238         bug.
24239         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24240         given size minus 1, call getlogin_r a second time, on a larger buffer.
24241         * modules/getlogin_r (Depends-on): Add malloca.
24242         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24244 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24246         parse-datetime: fix %z and prefer signed int
24247         %z problem reported by Pádraig Brady in:
24248         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24249         While fixing it, I decided to prefer signed ints to size_t, as
24250         they are less error-prone (e.g., ubsan catches overflow).
24251         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24252         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24253         counts, since signed integers make for better debugging.
24254         (date): Don’t assume %z works in printf formats.
24255         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24256         sizes of buffers known to be small, e.g., because we’re using snprintf.
24257         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24259 2017-04-22  Bruno Haible  <bruno@clisp.org>
24261         *printf: Work around rounding bug on Mac OS X.
24262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24263         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24264         Mac OS X and FreeBSD.
24265         * doc/glibc-functions/*printf.texi: Likewise.
24267 2017-04-22  Bruno Haible  <bruno@clisp.org>
24269         vasnprintf tests: Avoid warnings.
24270         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24271         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24272         test.
24274 2017-04-22  Bruno Haible  <bruno@clisp.org>
24276         sys_file tests: Avoid warning.
24277         * tests/test-sys_file.c (main): Add a default clause to the switch
24278         statement.
24280 2017-04-22  Bruno Haible  <bruno@clisp.org>
24282         sethostname: Update doc.
24283         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24284         Mac OS X.
24286 2017-04-22  Bruno Haible  <bruno@clisp.org>
24288         quotearg tests: Avoid warnings.
24289         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24290         false.
24292 2017-04-22  Bruno Haible  <bruno@clisp.org>
24294         poll: Enable argument check.
24295         * lib/poll.c: Include intprops.h.
24296         (poll): Check value of nfd correctly.
24297         * modules/poll (Depends-on): Add intprops.
24299 2017-04-22  Bruno Haible  <bruno@clisp.org>
24301         get-rusage-data: Avoid warnings on Mac OS X.
24302         * lib/get-rusage-data.c: On Mac OS X, don't define
24303         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24304         (get_rusage_data) [Mac OS X]: Just return 0.
24306 2017-04-22  Bruno Haible  <bruno@clisp.org>
24308         xbinary-io: Fix build error.
24309         * modules/xbinary-io (Depends-on): Add gettext-h.
24310         * lib/xbinary-io.c: Include gettext.h and define _().
24311         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24312         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24314 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24316         parse-datetime: overflow and debug cleanups
24317         This long patch was triggered by this bug report from Ruediger Meier:
24318         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24319         I fixed the bug he noted, then found some others nearby, and then
24320         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24321         up some of the code to follow GNU standards while I was at it.
24322         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24323         use c_isdigit.
24324         (EPOCH_YEAR): Remove; unused.
24325         (TM_YEAR_BASE): Now an enum rather than a macro.
24326         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24327         time zone offset, since timezones now are in terms of seconds and
24328         not minutes.
24329         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24330         appropriate.  Verify that intmax_t is wide enough.
24331         (time_overflow, time_zone_str): New functions, used to deal
24332         more reliably with overflow.
24333         (dbg_printf): Add printf attribute, to help catch integer width errors.
24334         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24335         (%union, to_hour, yylex, parse_datetime2):
24336         Use intmax_t instead of long int and/or long_time_t.
24337         All uses changed.
24338         (DBGBUFSIZE): Move earlier.
24339         (relative_time, set_hhmmss, parser_control):
24340         Just use int for nanoseconds and for time zones; that’s wide enough.
24341         (parser_control): Use bool for members like year_seen that can
24342         be booleans instead of counters.  All uses changed.
24343         Remove debug_default_input_timezone; no longer needed.
24344         All uses removed.
24345         (apply_relative_time): Return a bool overflow flag.
24346         All uses changed to check for overflow.
24347         (apply_relative_time, zone, date, relunit, relunit_snumber)
24348         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24349         Check for integer overflow portably.
24350         (str_days): Use just int for N, as it’s wide enough.
24351         Prefer 2D char arrays to arrays of char * when it looks like
24352         2D is a win on typical platforms.
24353         Prefer snprintf to strncpy/strncat, for simplicity;
24354         all buffers are smaller than INT_MAX so this is safe.
24355         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24356         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24357         as this is not true on x32.  Output "." before any nanoseconds.
24358         (debug_print_current_time, parse_datetime2):
24359         Output local zones using a more-consistent format.
24360         (debug_print_current_time, date, parse_datetime2):
24361         (main) [TEST]:
24362         Don’t assume time_t is the same width as long.
24363         (print_rel_part): New function, replacing ...
24364         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24365         (debug_print_relative_time): Use bool for boolean.
24366         (local_zone): dsts_seen now counts only tDST instances.
24367         (date): Fix printf of size_t to use %z.  Do not assume numeric
24368         tokens have negative values merely because the context suggests
24369         a syntax with "-" separating tokens.
24370         (time_zone_hhmm): Return bool success indicator, which checks for
24371         overflow.  Store result into PC->time_zone instead.  All callers
24372         changed.
24373         (tm_year_str): New function.  Return a bool success indicator and
24374         store the result into a buffer.  All callers changed.  Output the
24375         numerically correct string even if adding 1900 to the year would
24376         overflow.
24377         (to_tm_year): New function, replacing the old to_year.  All
24378         callers changed.
24379         (tm_diff): Sync with glibc.
24380         (lookup_word): Use to_uchar instead of doing it by hand.
24381         (TZBUFSIZE): Now local to the only function that needs it.
24382         (debug_strfdatetime): Simplify now that time zones are int seconds.
24383         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24384         (get_effective_timezone): Remove.  All uses removed.
24385         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24386         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24387         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24388         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24389         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24390         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24391         * modules/parse-datetime (Depends-on): Add inttypes.
24393 2017-04-21  Bruno Haible  <bruno@clisp.org>
24395         gettext-h: Avoid -Wundef warning.
24396         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24397         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24398         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24400 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24402         error: Avoid "function declaration isn't a prototype" warning.
24403         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24405 2017-04-21  Bruno Haible  <bruno@clisp.org>
24407         vasnprintf: Fix for MSVC 14.
24408         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24409         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24410         of !HAVE_SNPRINTF_RETVAL_C99.
24412 2017-04-21  Bruno Haible  <bruno@clisp.org>
24414         mbrtowc tests: Fix test failures on MSVC 14.
24415         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24416         behaviour for invalid input.
24418 2017-04-21  Bruno Haible  <bruno@clisp.org>
24420         mbsinit: Fix for MSVC 14.
24421         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24422         implementation that is in sync with mbrtowc.c. On other platforms, use
24423         an adequate ad-hoc implementation.
24425 2017-04-21  Bruno Haible  <bruno@clisp.org>
24427         Fix test-mbrtowc5.sh failure on native Windows.
24428         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24429         "C".
24431 2017-04-21  Bruno Haible  <bruno@clisp.org>
24433         Avoid accidental use of native Windows APIs on Cygwin.
24434         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24435         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24436         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24438 2017-04-20  Bruno Haible  <bruno@clisp.org>
24440         Remove red warnings from the generated MODULES.html.
24441         * modules/fcntl (Description): Disambiguate function references.
24442         * modules/getcwd-lgpl (Description): Likewise.
24443         * modules/hostent (Description): Likewise.
24444         * modules/servent (Description): Likewise.
24445         * modules/tempname (Description): Likewise.
24447 2017-04-20  Bruno Haible  <bruno@clisp.org>
24449         verify tests: Fix spurious failure with parallel make.
24450         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24451         EXTRA_PROGRAMS.
24452         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24453         * tests/test-verify-try.c: New file.
24454         * modules/verify-tests (Files): Add it.
24455         (EXTRA_PROGRAMS): Add test-verify-try.
24456         (MOSTLYCLEANFILES): Update accordingly.
24457         Reported by Adam James Stewart <ajstewart@anl.gov>.
24459 2017-04-18  Bruno Haible  <bruno@clisp.org>
24461         vma-iter: Fix compilation error on Solaris 7.
24462         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24463         like on IRIX, OSF/1.
24464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24466 2017-04-18  Bruno Haible  <bruno@clisp.org>
24468         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24469         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24470         included.
24471         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24472         <sys/procfs.h>.
24473         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24474         <sys/procfs.h> cannot be included.
24475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24477 2017-04-18  Bruno Haible  <bruno@clisp.org>
24479         getopt-gnu: Add comments.
24480         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24481         * modules/getopt-gnu (configure.ac): Likewise.
24483 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24485         regex: port better to Solaris 10
24486         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24487         gettext, and this causes a double #define.
24488         Problem reported by Gavin Smith in:
24489         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24490         * lib/regex_internal.h (gettext): #undef before #defining.
24492 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24494         intprops: improve comments
24495         * lib/intprops.h: Improve and shorten commentary.
24496         For the record, if we ever run into a pedantic compiler that
24497         behaves differently from GCC when converting an out-of-range value
24498         to a signed integer, we can work around the problem with something
24499         like the following code, where UCT is the signed counterpart of T
24500         (UCT is sometimes narrower than UT) and all callers are changed
24501         accordingly:
24502         #if __SUNPRO_C <= 0x5120
24503         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24504            ((t) ((ut) (a) op (ut) (b)))
24505         #else
24506         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24507            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24508             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24509                + TYPE_MINIMUM (t)) \
24510             : (t) (uct) ((ut) (a) op (ut) (b)))
24511         #endif
24513 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24515         intprops: try to avoid tickling similar bugs
24516         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24517         needs to be the same width as T; it can be wider.
24518         Change callers so that UT is at least as wide as unsigned int,
24519         as I suspect that this is less likely to run into compiler bugs.
24521         intprops: port to Oracle Studio 12.3 x86
24522         Problem reported by Gavin Smith in:
24523         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24524         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24525         Convert unsigned to signed via the usual rather than the standard way,
24526         to avoid a compiler bug in Oracle Studio 12.3 x86.
24528 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24530         getopt: prefer - to _ in new file names
24531         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24532         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24533         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24534         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24535         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24536         All uses changed.
24538         getopt: port recent getopt changes to macOS
24539         Problem reported by Harald Maier (Bug#26398).
24540         The macOS C compiler uses __nonnull for its own purposes and that
24541         clashes with glibc's __nonnull.
24542         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24543         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24544         * lib/getopt_core.h (getopt):
24545         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24546         Use _GL_ARG_NONNULL, not __nonnull.
24547         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24548         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24549         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24550         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24552 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24554         getopt-gnu: omit some duplicate code
24555         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24556         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24557         gnulib-tool already does this.
24558         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24559         getopt-posix, which we depend on.
24561         getopt-posix: use angle-bracket include
24562         * lib/getopt1.c: Include <config.h>, not "config.h".
24564 2017-04-06  Zack Weinberg  <zackw@panix.com>
24566         getopt: annotate files with relationship to glibc
24568         As the final act in this patchset, adjust the message at the top of
24569         each file to indicate which files are synced with glibc.  (This has
24570         already been done for most of the headers.)
24572         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24573         Mention in top-of-file boilerplate that these files are shared
24574         between glibc and gnulib.
24577         getopt: split up getopt.in.h and eliminate __need_getopt
24579         Over in glibc, all of the __need macros are being phased out in favor
24580         of small headers that declare only the necessary components, as this
24581         is much simpler and less prone to bugs.  As getopt is shared with
24582         glibc, gnulib needs to do the same for __need_getopt.
24584         __need_getopt is misnamed; what it really means is "we want only the
24585         getopt features specified in POSIX, not the GNU extensions".  glibc
24586         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24587         these files can be shared verbatim with gnulib.  The portability
24588         wrapper, on the other hand, they have renounced altogether; glibc's
24589         getopt.h will no longer be shared with gnulib at all.  In exchange,
24590         certain glibc-specific quirks (having to do with __posix_getopt) no
24591         longer need appear in gnulib's headers at all.
24593         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24594         splits up the current gnulib-side portability wrapper into three
24595         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24596         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24597         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24598         unistd.in.h just use them.  All new files are clearly marked with
24599         whether they are shared with glibc.
24601         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24602         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24603         with glibc, and ...
24604         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24605         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24606         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24607         instead of defining __need_getopt and including the full getopt.h.
24609         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24610         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24611         * modules/getopt-posix (Files): Add new headers and sort list.
24612         (Depends-on): No longer need snippet/arg-nonnull.
24613         (Makefile.am): Generate getopt_cdefs.h.
24616         getopt: better handling of ambiguous options
24618         glibc's getopt uses alloca to construct a linked list of possibilities
24619         for an "ambiguous" long option.  In gnulib, malloc should be used
24620         instead.  Providing for both cases complicates things a fair bit.
24622         This patch rewrites ambiguous-option handling to use a boolean vector
24623         instead of a linked list.  There is then only one allocation that
24624         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24625         and in gnulib we define __libc_use_alloca to always be false, so we
24626         don't need ifdefs in the middle of the function.  This should also be
24627         slightly more efficient in the normal case of long options being fully
24628         spelled out -- I think most people aren't even aware they _can_
24629         sometimes abbreviate long options.
24631         One interesting consequence is that the list of possibilities is now
24632         printed in exactly the order they appear in the list of long options,
24633         instead of the first possibility being shuffled to the end.
24635         (The patch looks bigger than it really is because there's a fair bit
24636         of reindentation and code rearrangement.)
24638         * lib/getopt.c: When used standalone, define __libc_use_alloca
24639         as always false and alloca to abort if called.
24640         (process_long_option): Rewrite handling of ambiguous long options
24641         to use a single boolean vector, not a linked list; use
24642         __libc_use_alloca to decide whether to allocate this using alloca.
24645         getopt: refactor long-option handling
24647         There were two copies of the bulk of the code to handle long options.
24648         Now there is only one.
24650         This change temporarily removes the logic to avoid using alloca when
24651         standalone; the next patch in the series will restore it.
24653         * lib/getopt.c (process_long_option): New function split out
24654         from _getopt_internal_r.
24655         (_getopt_internal_r): Replace both copies of the long-option
24656         processing code with calls to process_long_option.
24659         getopt: tidy up _getopt_initialize a bit
24661         _getopt_data.__posixly_correct is completely redundant to
24662         _getopt_data.__ordering, and some work that logically belongs in
24663         _getopt_initialize was being done by _getopt_internal_r, making the
24664         code harder to understand.
24666         As a side effect, getenv will no longer be called if the first
24667         character of the options string is '+' or '-', which is probably a
24668         Good Thing.  (Perhaps we should have a flag character that
24669         specifically asks for the permutation behavior?)
24671         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24672         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24673         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24676         getopt: merge from glibc: repetition reduction
24678         The definitions of the entry point functions 'getopt' and
24679         '__posix_getopt' can be made substantially less repetitive with a
24680         helper macro.
24682         While I was merging the const-correctness changes from gnulib into
24683         glibc I noticed there are still some unnecessary casts in
24684         _getopt_internal_r.
24686         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24687         a macro.  Consistently cast 'argv' to 'char **' when calling
24688         _getopt_internal.
24689         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24692         getopt: clean up error reporting
24694         getopt can print a whole bunch of error messages, and when used
24695         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24696         cancellation point and getopt isn't, and also applying fprintf to a
24697         stream in wide-character mode is not allowed.  So every single error
24698         reporting case has an #ifdef _LIBC block in which it calls internal
24699         libc functions instead.  The counterpart patch series in glibc makes
24700         it possible to simplify all of that down to a set of #defines at the
24701         top of the file; core code is written as if it is safe to just call
24702         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24703         call any *other* stdio functions.)
24705         * lib/getopt.c: When _LIBC is defined, define fprintf to
24706         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24707         to _IO_funlockfile.  When neither _LIBC nor
24708         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24709         funlockfile as no-ops.
24710         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24711         standalone error-printing code can now be used for libc as well.
24712         Add an flockfile/funlockfile pair around one case where the error
24713         message is printed in several chunks.  Don't use fputc.
24716         getopt: fix fencepost error in ambiguous-W-option handling
24718         getopt_long contains an undocumented (AFAICT) feature in which, if you
24719         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24720         treated as equivalent to '--foo'.  This is implemented with a partial
24721         second copy of the code for handling long options, and that code
24722         increments optind one too many times when recovering from an ambiguous
24723         abbreviated option, which can cause the main loop to walk past the end
24724         of argv and crash.
24726         I discovered this while writing a test case that tries to exercise all
24727         of getopt's error reporting paths; I wouldn't be surprised to learn
24728         that this feature is never used by real applications.
24730         * lib/getopt.c (_getopt_internal_r): Don't increment
24731         d->optind a second time when reporting ambiguous -W options.
24734         getopt: clean up getopt.c and getopt1.c file headers
24736         In getopt.c, there is no need to include wchar.h at all, and it is
24737         safe nowadays to assume that stdlib.h does declare getenv (several
24738         other gnulib modules make this assumption).
24740         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24741         by using "" inclusions consistently, and there is no actual need to
24742         include stdlib.h (except in the #ifdef TEST block, where it should be
24743         unconditional), nor to provide a backup definition of NULL at all.
24745         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24746         Move inclusion of stdlib.h to #ifdef TEST block and make
24747         unconditional.  Do not define NULL.
24748         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24749         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24750         * modules/getopt-gnu, modules/getopt-posix: Don't call
24751         gl_PREREQ_GETENV.
24754         getopt: harmonize comments with glibc
24756         The comments explaining how the behavior of 'getopt' varies depending
24757         on whether it's the standalone version and whether there are special
24758         characters at the beginning of the options string were inconsistent
24759         between gnulib and glibc, and also out of sync with the code.
24761         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24764         getopt: remove USE_NONOPTION_FLAGS
24766         getopt includes code to parse an environment variable named
24767         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24768         in decimal); but all of it has been #ifdefed out since 2001, with no
24769         official way to turn it back on.
24771         According to commentary in glibc's config.h.in, bash version 2.0
24772         set this environment variable to indicate argv elements that were
24773         the result of glob expansion and therefore should not be treated
24774         as options, but the feature was "disabled later" because "it
24775         caused problems".  According to bash's CHANGES file, "later" was
24776         release 2.01; it gives no more detail about what the problems
24777         were.
24779         Version 2.0 of bash was released on the last day of 1996, and version
24780         2.01 in June of 1997.  Twenty years later, I think it is safe to
24781         assume that this environment variable isn't coming back.
24783         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24784         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24785         __libc_argc and __libc_argv externs, which were only used by
24786         #ifdef USE_NONOPTION_FLAGS blocks.
24789         getopt: tabify, in preparation for merge with glibc
24791         glibc sticks to the GNU default of indenting with a mix of
24792         8-column tabs and spaces; make the gnulib copy match.
24794         getopt.h is not included because it is *not* going to be merged in its
24795         present form.
24797         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24799 2017-04-02  Bruno Haible  <bruno@clisp.org>
24801         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24802         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24803         like it was done in modules/relocatable-lib on 2011-05-21 and in
24804         modules/relocatable-prog on 2011-08-15.
24805         Reported by Reuben Thomas <rrt@sc3d.org>.
24807 2017-03-31  Bruno Haible  <bruno@clisp.org>
24809         glob: Fix invalid free() call.
24810         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24811         static storage to home_dir.
24812         Reported by Coverity via Tim Rühsen.
24814 2017-03-31  Bruno Haible  <bruno@clisp.org>
24816         glob: Fix memory leaks.
24817         * lib/glob.c (glob): Free allocated memory before returning.
24818         Reported by Coverity via Tim Rühsen.
24820 2017-03-31  Bruno Haible  <bruno@clisp.org>
24822         md5, sha1, sha256, sha512: Add comments regarding correctness.
24823         * lib/md5.h (buflen): Add comments regarding range.
24824         * lib/sha1.h (buflen): Likewise.
24825         * lib/sha256.h (buflen): Likewise.
24826         * lib/sha512.h (buflen): Likewise.
24827         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24828         * lib/sha1.c (sha1_process_bytes): Likewise.
24829         * lib/sha256.c (sha256_process_bytes): Likewise.
24830         * lib/sha512.c (sha512_process_bytes): Likewise.
24831         Reported by Coverity via Tim Rühsen.
24833 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24835         getopt: merge from glibc
24836         This does not change anything substantial; it merely simplifies
24837         hypothetical merges back to glibc.
24838         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24839         Change copyright notice to match what is in glibc.
24840         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24841         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24842         __open_memstream rather than open_memstream and __glibc_likely
24843         instead of __builtin_expect.
24844         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24846 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24848         dfa: make [0-9] faster in non-C locales
24849         Problem reported by John P. Linderman (Bug#26193).
24850         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24851         If both ends of the range are ASCII digits, do not worry about
24852         multi-character collating sequences and the like.  Be consistent
24853         about using isalpha as a precondition for setbit_case_fold_c.
24855 2017-03-19  Bruno Haible  <bruno@clisp.org>
24857         lock: Fix compilation error with HP-UX IA64 cc.
24858         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24859         weak on non-glibc platforms.
24861 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24863         stdalign: tweak version# and test for HP-UX IA64
24864         Problems reported by Bruno Haible in:
24865         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24866         * lib/stdalign.in.h (_Alignas):
24867         * m4/stdalign.m4 (gl_STDALIGN_H):
24868         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24869         used octal (as that is how they document it), but it is decimal in
24870         practice now and the ancient implementations no longer matter.
24871         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24873 2017-03-19  Bruno Haible  <bruno@clisp.org>
24875         vma-iter: Add support for Solaris.
24876         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24877         approach.
24878         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24879         * lib/get-rusage-as.c: Update comment about Solaris.
24880         * lib/get-rusage-data.c: Likewise.
24882 2017-03-19  Bruno Haible  <bruno@clisp.org>
24884         vma-iter: Prefer HP-UX specific API on HP-UX.
24885         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24886         * lib/vma-iter.h: Update.
24887         Just in case HP-UX ever implements mquery().
24889 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24891         stdalign: restore previous behavior for HP-UX IA64
24892         See Bruno Haible's email in:
24893         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24894         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24895         * lib/stdalign.in.h (_Alignas):
24896         Assume the '061200' applies to Itanium, not to PA-RISC.
24897         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24899 2017-03-17  Bruno Haible  <bruno@clisp.org>
24901         stat-time, timespec: Support use of the header files in C++ mode.
24902         * lib/stat-time.h: Add "C" linkage declaration.
24903         * lib/timespec.h: Likewise.
24905 2017-03-17  Bruno Haible  <bruno@clisp.org>
24907         stdalign: Make it work with HP-UX cc.
24908         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24909         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24910         for HP-UX cc.
24912 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24914         flexmember: try to detect HP-UX 11.31 cc bug
24915         Problem reported by Bruno Haible in:
24916         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24917         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24918         Attempt to detect bug in HP-UX 11.31 cc.
24920 2017-03-16  Bruno Haible  <bruno@clisp.org>
24922         stdint: Fix test compilation failure with HP-UX 11 cc.
24923         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24924         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24925         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24926         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24928 2017-03-14  Bruno Haible  <bruno@clisp.org>
24930         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24931         * gnulib-tool (func_modules_transitive_closure_separately): If
24932         testsrelated_modules ends up with no "real" modules, aside from
24933         modules with applicability 'all', set it to empty.
24935 2017-03-14  Bruno Haible  <bruno@clisp.org>
24937         vma-iter: Add support for HP-UX.
24938         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24939         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24940         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24941         * lib/get-rusage-as.c: Update comment about HP-UX.
24942         * lib/get-rusage-data.c: Likewise.
24943         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24945 2017-03-14  Bruno Haible  <bruno@clisp.org>
24947         limits-h: Make it work with HP-UX cc.
24948         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24949         defined.
24951 2017-03-14  Bruno Haible  <bruno@clisp.org>
24953         Fix test failures on DragonFlyBSD.
24954         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24955         * tests/test-select.h (test_bad_fd): Likewise.
24956         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24958 2017-03-14  Bruno Haible  <bruno@clisp.org>
24960         freadahead: Silence warning on DragonFlyBSD.
24961         * lib/freadahead.c (__sreadahead): Declare ourselves.
24963 2017-03-14  Bruno Haible  <bruno@clisp.org>
24965         vma-iter: Add comment about AIX.
24966         * lib/vma-iter.c: Add comment about why this module is not implemented
24967         on AIX.
24969 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24971         snippets: move unadjusted snippet sources to lib
24972         Problem reported by Michal Privoznik in:
24973         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24974         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24975         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24976         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24977         * lib/unused-parameter.h: Rename from
24978         build-aux/snippet/unused-parameter.h.
24979         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24980         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24981         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24982         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24983         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24984         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24985         Adjust to file renamings.
24987 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24989         gnulib-tool: don't automatically distribute files from top/
24990         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24991         not distribute top/README-release by default, don't distribute files
24992         from top/ unconditionally.
24993         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24994         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24996 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24998         gnulib-tool: fix typo in comment output
24999         * gnulib-tool (func_import): Fix typo with previous change.
25001         snippets: work around GNU Make 3.82 VPATH
25002         When using 'gnulib-tool --gnu-make' on Emacs, and building
25003         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25004         an out-of-source (VPATH) build failed because the sans-copyright
25005         snippet file was not built before the file that used it.
25006         Presumably this is some sort of VPATH thing.  Work around the
25007         problem by using the original snippet, i.e., don’t bother to
25008         remove its copyright notice.
25009         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25010         Don’t assume Automake in comments.  Omit long-incorrect comment.
25011         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25012         (MOSTLYCLEANFILES):
25013         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25014         (MOSTLYCLEANFILES):
25015         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25016         (MOSTLYCLEANFILES):
25017         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25018         (MOSTLYCLEANFILES):
25019         Remove.
25020         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25021         * modules/snippet/c++defs (CXXDEFS_H):
25022         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25023         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25024         Don’t bother to remove the copyright notice; just use the
25025         original snippet as-is.
25027 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25029         gnulib-tool: minor --gnu-make fixups
25030         * gnulib-tool (func_emit_lib_Makefile_am):
25031         Remove useless code that was a blind alley during implementation.
25032         Problem reported by Thien-Thi Nguyen in:
25033         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25034         (func_import): Note the "--gnu-make" option in the output comment.
25036 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25038         gnulib-tool: new option --gnu-make
25039         This is for applications like GNU Emacs that use GNU Make
25040         features instead of Automake.
25041         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25042         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25043         Do not assume Automake.
25044         * gnulib-tool (func_determine_path_separator)
25045         (func_modules_transitive_closure, func_update_file)
25046         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25047         (func_import): Add support for --gnu-make.
25049 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25051         gnulib-common.m4: avoid aclocal.m4 bloat
25052         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25053         Hide AM_PROG_AR from aclocal, so that aclocal does not
25054         install irrelevant macro definitions into aclocal.m4.
25056 2017-03-10  Bruno Haible  <bruno@clisp.org>
25058         vma-iter: Let callers know about error.
25059         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25060         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25062 2017-03-05  Bruno Haible  <bruno@clisp.org>
25064         Fix value of LD for 64-bit compilers on AIX.
25065         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25066         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25068 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25070         dtotimespec: simplify
25071         * lib/dtotimespec.c (dtotimespec): Simplify.
25073 2017-03-04  Bruno Haible  <bruno@clisp.org>
25075         test-calloc-gnu: Reenable test also for GCC 7.
25076         * tests/test-calloc-gnu.c (eight): New function.
25077         (main): Don't skip test; use eight() instead.
25079 2017-03-04  Jim Meyering  <meyering@fb.com>
25081         test-calloc-gnu: port to GCC7
25082         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25083         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25084         and newer would detect that at compilation time.
25086 2017-03-04  Bruno Haible  <bruno@clisp.org>
25088         tests: Avoid compiler warning about uses of null_ptr.
25089         * tests/null-ptr.h: New file.
25090         * tests/test-canonicalize.c: Include null-ptr.h.
25091         (null_ptr): Remove function.
25092         * tests/test-canonicalize-lgpl.c: Likewise.
25093         * tests/test-memmem.c: Likewise.
25094         * tests/test-ptsname_r.c: Likewise.
25095         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25096         * modules/canonicalize-lgpl-tests: Likewise.
25097         * modules/memmem-tests: Likewise.
25098         * modules/ptsname_r-tests: Likewise.
25099         Reported by Jim Meyering.
25101 2017-03-03  Bruno Haible  <bruno@clisp.org>
25103         doc: Mention Mac OS X deficiencies regarding semaphores.
25104         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25105         * doc/posix-functions/sem_destroy.texi: Likewise.
25106         * doc/posix-functions/sem_getvalue.texi: Likewise.
25108 2017-03-03  Bruno Haible  <bruno@clisp.org>
25110         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25111         Reported by Assaf Gordon <assafgordon@gmail.com> via
25112         Pádraig Brady <P@draigBrady.com>.
25113         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25114         semaphores.
25115         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25116         (atomic_int_semaphore): New macro.
25118 2017-02-28  Bruno Haible  <bruno@clisp.org>
25120         perror tests: Tweak for z/OS.
25121         Reported by Daniel Richard G. <skunk@iskunk.org>.
25122         * tests/test-perror.sh: Don't fail z/OS style perror output.
25124 2017-02-26  Bruno Haible  <bruno@clisp.org>
25126         nproc: Refactor large function.
25127         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25128         from num_processors.
25129         (num_processors): In this function, only deal with OMP.
25131 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25133         nproc: adjust handling of OpenMP environment variables
25134         to match the return value from omp_get_num_threads(), i.e.:
25135          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25136          - Treat 0 as an invalid value and ignore
25137         Also remove the call to omp_get_num_threads() because
25138         it's ineffective without the omp pragmas in place.
25139         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25140         so that it can be ignored.
25141         (num_processors): Honor OMP_THREAD_LIMIT even without
25142         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25143         variable being checked, from the previous recent commit.
25145 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25147         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25148         * lib/nproc.c (parse_omp_threads): A new function refactored
25149         from num_processors() to support parsing both of the
25150         above environment variables.
25151         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25152         to accurately reflect the current OpenMP nesting level.
25153         Also support the OMP_THREAD_LIMIT environment variable
25154         to limit the max value determined from OMP_NUM_THREADS.
25155         * modules/nproc: Depend on minmax header.
25156         Suggested by Oliver Heimlich.
25158 2017-02-25  Bruno Haible  <bruno@clisp.org>
25160         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25161         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25163 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25165         ftoastr: port to -Wdouble-promotion
25166         Work around -Wdouble-promotion false alarm in recent GCCs.
25167         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25168         (ftoastr_snprintf, FTOASTR): Use it.
25170 2017-02-21  Bruno Haible  <bruno@clisp.org>
25172         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25173         Reported by Rene Saavedra <rennes@openmailbox.org> in
25174         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25175         * lib/glthread/lock.h: On glibc systems without
25176         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25177         implementation of rwlocks.
25178         * lib/glthread/lock.c: Likewise.
25180 2017-02-20  Bruno Haible  <bruno@clisp.org>
25182         lock tests: Fix build failure on z/OS.
25183         Reported by Daniel Richard G. <skunk@iskunk.org>.
25184         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25185         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25186         exist.
25188 2017-02-19  Bruno Haible  <bruno@clisp.org>
25190         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25191         This helps when CC=clang.
25192         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25193         of /usr/bin/gcc.
25195         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25196         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25198 2017-02-19  Bruno Haible  <bruno@clisp.org>
25200         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25201         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25202         --with-tests --single-configure is specified.
25204 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25206         users.txt: Update links, use HTTPS where possible
25207         * users.txt: Updated to HTTPS where possible,
25208         fixed some links to new locations.
25210 2017-02-16  Bruno Haible  <bruno@clisp.org>
25212         xbinary-io: Fix inlining.
25213         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25215 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25217         xbinary-io: rename from xsetmode
25218         This patch is taken from suggestions by Bruno Haible in:
25219         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25220         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25221         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25222         not ENOTTY, when it is an inappropriate device.
25223         * lib/binary-io.h (SET_BINARY): Resurrect.
25224         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25225         (xset_binary_mode_error): Rename from xsetmode_error.
25226         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25227         (xset_binary_mode): Rename from xsetmode.
25228         All uses changed.
25229         * modules/xbinary-io: Rename from modules/xsetmode.
25230         Update file names.
25231         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25232         * NEWS: Update to match revised behavior.
25234 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25236         tests: Adjust to recent SET_BINARY change
25237         * tests/test-binary-io.c (main):
25238         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25239         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25240         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25241         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25243         xsetmode: new module
25244         This is to fix a problem noted by Eric Blake.
25245         Code was using xfreopen to change files to binary mode, but this
25246         fails for stdout when in append mode.  Such code should use
25247         xsetmode instead.
25248         * NEWS: Document incompatible changes to binary-io module.
25249         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25250         New function.
25251         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25252         (set_binary_mode): New function, which also checks for tty.
25253         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25255 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25257         headers: fix begin-end typos
25258         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25259         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25261         selinux-h: port to PGI 16.10
25262         * lib/se-selinux.in.h: Don't assume that include_next skips over
25263         duplicate -I DIR options.
25265         argp: port to PGI 16.10
25266         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25268 2017-02-13  Darshit Shah  <darnir@gnu.org>
25270         unicase: Update function protoype to match definition.
25271         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25272         uses 'size_t' as the datatype for the 'len' parameter in the functions
25273         it generates. Update the prototype specified here to match the newly
25274         generated function.
25276 2017-02-12  Bruno Haible  <bruno@clisp.org>
25278         times test: Avoid gcc warnings on Linux/x32.
25279         * tests/test-times.c (main): Really cast printf arguments from clock_t
25280         to 'long int'.
25282 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25284         glob: port better to emscripten
25285         Problem reported by Bruno Haible in:
25286         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25287         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25289 2017-02-11  Bruno Haible  <bruno@clisp.org>
25291         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25292         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25293         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25294         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25295         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25296         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25297         Distinguish hppa64 from hppa.
25299 2017-02-10  Bruno Haible  <bruno@clisp.org>
25301         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25302         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25303         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25304         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25306 2017-02-09  Bruno Haible  <bruno@clisp.org>
25308         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25309         * doc/gnulib.texi (Libtool and Windows): Recommend
25310         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25311         Reported by Reuben Thomas <rrt@sc3d.org>.
25313 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25315         stddef-tests: port to SIZE_MAX <= INT_MAX
25316         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25317         Do not assume that INT_MAX < SIZE_MAX.
25319 2017-02-01  Bruno Haible  <bruno@clisp.org>
25321         lock tests: Fix link error.
25322         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25325 2017-01-31  Bruno Haible  <bruno@clisp.org>
25327         lock: Fix link error (regression from 2017-01-05).
25328         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25329         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25330         pthread_rwlockattr_destroy weak.
25331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25333 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25335         Port to PGI 16.10 x86-64
25336         This patch fixes one real bug in gl_anylinked_list2.h, along with
25337         some minor glitches that are not bugs.  It does not silence PGI’s
25338         thousands of bogus warnings when compiling test-intprops.c.
25339         Fortunately, the warnings do not cause a failure.
25340         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25341         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25342         My goodness, PGI goes back a long ways - this predates C89!
25343         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25344         For example, ASYNCSAFE (const void *) should expand to
25345         ‘const void *volatile’, not to ‘volatile const void *’.
25346         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25347         * lib/verify.h (verify) [!__GNUC__]:
25348         Use shorter albeit meaningless string to bypass silly compiler limits.
25349         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25350         * tests/nan.h (NaNf, NaNd, NaNl):
25351         Use static functions to avoid misguided compiler diagnostics.
25352         Is there some reason we don’t use static functions on all platforms?
25354 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25356         parse-datetime: handle timezones reentrantly
25357         This API change was prompted by a report by Pádraig Brady in:
25358         https://bug.debian.org/851934#10
25359         To help fix the bug, make parse_datetime2 more reentrant.
25360         * NEWS: Document this incompatible change.
25361         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25362         Add two arguments, the timezone and the timezone name.
25363         All callers changed.  If TZ="..." is specified, use it for
25364         calculating defaults.
25365         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25366         this code should be usable in a library.
25367         (mktime_ok, get_effective_timezone):
25368         Accept timezone arg too.  All callers changed.
25369         (get_tz): Remove.
25370         (get_effective_timezone): Check for failures.
25372 2017-01-20  Eric Blake  <eblake@redhat.com>
25374         localename: port to cygwin 2.6
25375         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25376         Cygwin.
25377         * modules/localename (Depends-on): Add extensions, since
25378         NL_LOCALE_NAME() is not visible without it.
25380 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25382         parse-datetime: fix dependence on AC_PROG_SED
25383         * modules/parse-datetime: Use `sed` directly like all other modules.
25384         Reported by J William Piggott
25386 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25388         intprops: update doc URLs
25389         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25391 2017-01-16  Bruno Haible  <bruno@clisp.org>
25393         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25394         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25395         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25396         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25397         distinguish s390 and s390x.
25398         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25399         * NEWS: Mention the change regarding 'armel'.
25401 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25403         localeinfo: case_folded_counterparts and WEOF
25404         * NEWS: Document this.
25405         * lib/localeinfo.c (case_folded_counterparts):
25406         First arg is now wint_t, not wchar_t.  This generalizes the
25407         function to also work on WEOF, where it returns 0.
25409         dfa: port to gcc -fsanitize=undefined
25410         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25411         as this runs afoul of gcc -fsanitize=undefined.
25413 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25415         strftime: %z is -00 if unknown
25416         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25417         the caller's responsibility to set 'negative_number'.  All uses changed.
25418         (__strftime_internal): Put '-' before a zero UTC offset if the time
25419         zone abbreviation starts with "-", which is the recently-introduced
25420         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25421         * tests/test-strftime.c: Test for this.
25423 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25425         dfa: port to older GCC
25426         Problem reported by Assaf Gordon in:
25427         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25428         * modules/c99: New module.  This merely attempts to use the latest
25429         C version, which should be enough to solve this particular problem.
25430         The idea is to document which Gnulib modules assume C99 or later.
25431         * modules/dfa (Depends-on): Add it.
25433 2017-01-10  Bruno Haible  <bruno@clisp.org>
25435         Update DEPENDENCIES.
25436         * DEPENDENCIES: List only https URLs. Update recommended version for
25437         autoconf, automake, gperf.
25439 2017-01-10  Jim Meyering  <meyering@fb.com>
25441         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25442         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25443         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25445 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25447         dfa: minor simplification with emptyset
25448         * lib/dfa.c (build_state): Simplify by using emptyset.
25450 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25452         dfa: shrink constraints from 4 bits to 3
25453         * lib/dfa.c (newline_constraint, letter_constraint)
25454         (other_constraint, prev_newline_dependent)
25455         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25456         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25457         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25458         Constraints need only 3 bits, not 4.  Using smaller integers
25459         shrinks the code a bit and makes grep a tad faster on x86-64.
25461         dfa: omit unnecessary ptrdiff_t check
25462         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25463         overflow, since xnmalloc does that now.
25465         dfa: omit unnecessary allocation
25466         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25467         an all-zero follow set works just fine.
25469         dfa: omit unused local
25470         * lib/dfa.c (build_state): Fix up recent change.
25472         maint: remove stray .texi files
25473         Although these were superseded by other files like
25474         doc/posix-functions/ctime.texi, the old files were not removed.
25475         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25477 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25479         getprogname: fix port to IRIX
25480         * lib/getprogname.c (getprogname) [__sgi]:
25481         Don't dump core if malloc returns NULL.
25483         dfa: fix reallocation bug when matching newlines
25484         Problem reported for sed by S. Gilles (Bug#25390).
25485         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25486         (dfastate): Reallocate before moving any newline transition ...
25487         (build_state): ... instead of reallocating here, where it is too late.
25489 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25491         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25492         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25494 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25496         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25497         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25499 2017-01-07  Bruno Haible  <bruno@clisp.org>
25501         stdioext: Port to Minix 3.2 and newer.
25502         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25503         * lib/fseeko.c (fseeko): Likewise.
25504         Reported by Nelson Beebe via Paul Eggert.
25506 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25508         getprogname: port to IRIX
25509         * lib/getprogname.c (getprogname): Port to IRIX.
25510         Based on an idea by Bastien Roucariès at:
25511         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25512         via code from Bruno Haible at:
25513         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25515         localename-tests: port to NetBSD 7
25516         Problem reported by Nelson H. F. Beebe.
25517         * tests/test-localename.c:
25518         Test newlocale and uselocale only if both exist.
25520         glob, intprops, xalloc: work around Clang bug
25521         Work around LLVM bug 16404, which is still not fixed.
25522         https://llvm.org/bugs/show_bug.cgi?id=16404
25523         Problem reported by Nelson H. F. Beebe.
25524         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25525         Remove.
25526         * lib/glob.c (size_add_wrapv):
25527         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25528         * lib/xalloc-oversized.h (xalloc_oversized):
25529         Do not use overflow builtins if Clang.
25531         dfa: fix 'return' typo
25532         Problem reported by Nelson H. F. Beebe.
25533         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25535 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25537         parse-datetime: fix generated paths for coverage files
25538         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25539         within parse-datetime.c, so that gcc generates appropriate .gcno
25540         files, allowing lcov to proceed without error.  Previously it
25541         would error trying to find "lib/lib/parse-datetime.y".
25543 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25545         maint.mk: support parallel execution of coverage
25546         * top/maint.mk (coverage): Run dependencies serially,
25547         thus supporting parallel processing of each one,
25548         particularly build-coverage, which builds and runs tests.
25550 2017-01-05  Bruno Haible  <bruno@clisp.org>
25552         lock tests: Prefer semaphore over mutex.
25553         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25554         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25555         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25556         Suggested by Torvald Riegel <triegel@redhat.com>.
25558 2017-01-05  Bruno Haible  <bruno@clisp.org>
25560         lock: Provide guarantee to avoid writer starvation for rwlocks.
25561         The rationale is: 1) Read-preferring read-write locks are prone to
25562         writer starvation if the number of reader threads multiplied by the
25563         percentage of time they have the lock held is too high. 2) Write-
25564         preferring read-write locks are the only reliable way to avoid this.
25565         3) There have been reports of 'test-lock' hanging on glibc systems
25566         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25567         and glibc indeed implements read-preferring rwlocks by default, see
25568         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25569         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25570         * m4/pthread_rwlock_rdlock.m4: New file.
25571         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25572         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25573         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25574         of rwlock initialization on glibc systems without
25575         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25576         of rwlocks altogether on non-glibc systems without
25577         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25578         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25579         * lib/glthread/lock.c [USE_POSIX_THREADS]
25580         (glthread_rwlock_init_for_glibc): New function.
25581         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25582         comment.
25583         [USE_PTH_THREADS]: New implementation of rwlocks.
25584         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25585         readers.
25586         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25587         (Depends-on): Add 'extensions'.
25588         * tests/test-rwlock1.c: New file.
25589         * lock-tests (Files): Add it.
25590         (Depends-on): Add usleep.
25591         (Makefile.am): Add test-rwlock1 to the tests.
25593 2017-01-05  Bruno Haible  <bruno@clisp.org>
25595         thread: Fix pth port.
25596         * lib/glthread/thread.h (pth_init): Declare weak.
25597         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25598         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25599         function.
25601 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25603         parse-datetime: fix debug message on lone year number
25604         Input dates such as
25605           date -d "Apr 11 22:59:00 2011"
25606         are parsed as date (Apr 11, with default year 2016), then time, then a
25607         number (2011). Based on the combination of previously seen tokens,
25608         'digits_to_date_time' determines 2011 to be a year value.
25609         This fixes the debug messages to correctly show the updated year.
25610         Before:
25611             $ date --debug -d 'Apr 11 22:59:00 2011'
25612             date: parsed date part: (Y-M-D) 2016-04-11
25613             date: parsed time part: 22:59:00
25614             date: parsed number part: today/this/now
25615         After:
25616             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25617             date: parsed date part: (Y-M-D) 2016-04-11
25618             date: parsed time part: 22:59:00
25619             date: parsed number part: year: 2011
25620         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25621         'debug_year_seen' member fields.
25622         (digits_to_date_time): Update 'year_seen' as needed.
25623         (debug_print_current_time): Inform about year updates.
25624         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25626         parse-datetime: fix local timezone debug messages
25627         "Local timezones" are strings that affect only DST relative to the
25628         default timezone. The debug messages in parse-datetime.y printed
25629         wrong information when encountering local timezones.
25630         Examples:
25631         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25632              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25633              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25634         When the default timezone relates to the zone strings, EET/EEST are
25635         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25636         value (0/1, respectively):
25637              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25638              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25639         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25640         was seen, inform about DST change, don't print actual timezone.
25641         (debug_strfdatetime): If local timezone was seen, use default timezone
25642         (and adjust as needed) instead of using incorrect timezone.
25643         (parse_datetime2): Use correct time-zone source string, and adjust
25644         default timezone as needed.
25646         parse-datetime: add debug warning about DST changes
25647         Incorrect date arithmetic due to daylight saving time (DST) are a
25648         common (false) bug report in coreutils.
25649         Detect two such cases and print a warning:
25650         1. year/month/day adjustments (performed on 'struct tm'),
25651            where 'mktime' returns a different isdst value.
25652         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25653            where the result of 'localtime(3)' on the value will return a
25654            different isdst value.
25655         Note: DST changes could be harmless or unnoticeable.
25656         Examples (with 'TZ=America/New_York'):
25657         Unnoticeable: result is 2016-Dec-14
25658            $ date -d '2016-06-15 EDT + 6 months' +%b
25659            Dec
25660         Unnoticeable: result is 2016-Dec-15 11:00:00
25661            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25662            2016-12-15
25663         This is unexpected:
25664            $ date -d '2016-06-01 EDT + 6 months' +%F
25665            2016-11-30
25666         The new debug warnings will show:
25667            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25668            ...
25669            date: warning: daylight saving time changed after date adjustment
25670            ...
25671         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25672         print an appropriate warning message.
25674         parse-datetime: add debug warning about date arithmetic
25675         Date arithmetic are done directly on the fields of 'struct tm',
25676         which can result in invalid dates. Normalization with 'mktime(3)'
25677         will then produce a different date - which might cause unexpected
25678         results.
25679         Examples:
25680           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25681           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25682         Note that date normalization is not inherently wrong and not rejected,
25683         as it has legitimate uses:
25684           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25685         If the user asked to adjust months but 'mday' changed,
25686         or user asked to adjust years but 'month' changed - warn about it.
25687             $ ./src/date --debug -d '2016-10-31 - 1 month'
25688             ...
25689             date: warning: when adding relative months/years, \
25690                            it is recommended to specify the 15th of the month
25691             ...
25692             date: warning: month/year adjustment resulted in shifted dates:
25693             date:      adjusted Y M D: 2016 09 31
25694             date:    normalized Y M D: 2010 10 01
25695             ...
25696         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25697         a warning message. Improve recommendation of when to use 15 of the
25698         month or noon for date arithmetic.
25700         parse-datetime: fix debug message of relative part after timezone
25701         Relative part (e.g '+8 days') after a timezone string was not
25702         reported (was only reported after a timezone number). Due to the
25703         parser's structure, timezone strings with numbers were handled
25704         separately.
25705         before:
25706              # Timezone number + relative part: OK
25707              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25708              ...
25709              date: parsed relative part: -8 day(s)
25710              # Timezone string + relative part: missing
25711              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25712              [ missing message ]
25713         After: messages are printed in both cases.
25714         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25716         parse-datetime: fix incorrect debug message on lone number
25717         A lone number is an absolute value, not a relative time part.
25718         before:
25719            $ date --debug -d '20130101'
25720            date: parsed number part: today/this/now
25721         After:
25722            $ ./src/date --debug -d '20130101'
25723            date: parsed number part: (Y-M-D) 2013-01-01
25724         * lib/parse-datetime.y ('item'/'number' tokens): Call
25725         'debug_print_current_time' instead of 'debug_print_relative_time'.
25727 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25729         doc: modernize for C11 etc.
25730         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25731         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25732         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25734         dfa: prefer functions to FETCH_WC macro
25735         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25736         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25737         wint_t result into DFA->lex.wctok instead of to a separate arg.
25738         All callers changed.  Move more local decls closer to where
25739         they're used.
25741         dfa: narrow more local var scopes
25742         * lib/dfa.c: Move more local decls to be more local.
25744         dfa: remove duplicate assignment
25745         Problem reported by Bruno Haible in:
25746         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25747         * lib/dfa.c (parse_bracket_exp): Simplify.
25749 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25751         dfa: simplify constraint-dependency checking
25752         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25753         (prev_other_constraint): Remove.
25754         (prev_newline_dependent, prev_letter_dependent):
25755         Simplify, to avoid an unnecessary bitwise AND operation.
25757         dfa: prefer functions and constants to macros
25758         * lib/dfa.c: Prefer constants to macros where either will do.
25759         (streq, isasciidigit, newline_constraint)
25760         (letter_constraint, other_constraint, succeeds_in_context)
25761         (prev_newline_constraint, prev_letter_constraint)
25762         (prev_other_constraint, prev_newline_dependent)
25763         (prev_letter_dependent, accepting, accepts_in_context):
25764         Now static functions instead of function-like macros.
25765         Use lower-case names accordingly.  All uses changed.
25767         dfa: narrow more local var scopes
25768         * lib/dfa.c: Move some more local decls down to nearer where
25769         they're needed.
25771 2016-12-31  Jim Meyering  <meyering@fb.com>
25773         dfa: narrow the scope of many local variables
25774         * lib/dfa.c: Now that we are no longer constrained to c89, move
25775         declarations of many variables (often indices) "down" into the
25776         scope(s) where used or to the point of definition.  This is a
25777         no-semantic-change diff.
25779 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25781         version-etc: new year
25782         * build-aux/gendocs.sh (version):
25783         * doc/gendocs_template:
25784         * doc/gendocs_template_min:
25785         * doc/gnulib.texi:
25786         * lib/version-etc.c (COPYRIGHT_YEAR):
25787         Update copyright dates by hand in templates and the like.
25788         * all files: Run 'make update-copyright'.
25790 2016-12-31  Eric Blake  <eblake@redhat.com>
25792         do-release-commit-and-tag: avoid shell syntax error
25793         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25794         contain spaces when rebasing.
25796         maint.mk: hoist gnulib_dir definition earlier
25797         * top/maint.mk (gnulib_dir): Move near top of file.
25799 2016-12-31  Jim Meyering  <meyering@fb.com>
25801         maint.mk: do not always evaluate intprops-related shell
25802         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25803         using gnulib_dir undefined (gnulib_dir is defined later in the
25804         file, which will be fixed separately), and besides, there is no
25805         need to incur the cost of this shell invocation for every single
25806         use of this .mk file.  Reported by Eric Blake in
25807         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25809 2016-12-30  Jim Meyering  <meyering@fb.com>
25811         maint.mk: improve sc_prohibit_intprops_without_use
25812         * top/maint.mk (_intprops_names): Don't hard-code the list of
25813         symbol names.  Instead, derive it on the fly.
25815 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25817         dfa: shorten sbit, success
25818         * lib/dfa.c (struct regex_syntax.sbit):
25819         (struct dfa.success): Use char, not int, for array elements, since
25820         they are all in the range 0..7.
25822         dfa: simplify multibyte_prop etc.
25823         This follows up on a change made when dfa.c was in grep, namely grep
25824         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25825         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25826         That earlier simplification allows for some more simplification
25827         and trimming down here.
25828         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25829         (struct lexer_state): New mamber brack.
25830         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25831         since they must be in the range 0..3 now.
25832         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25833         the brack member now supersedes them.
25834         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25835         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25836         (dfaparse): Remove unnecessary initializations of already-0 storage.
25837         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25838         (dfassbuild): No need to clear sup->mbcsets.
25840         dfa: minor performance tweak
25841         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25843         dfa: wrap charclass inside a struct
25844         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25845         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25846         about 5% faster, where list.txt is generated by 'aspell dump
25847         master | head -n 100000 >list.txt'.  See Bug#22239.
25848         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25849         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25850         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25851         Adjust to this, e.g., by using charclass * rather than charclass.
25852         All callers changed as needed.
25853         (copyset): Remove.  All uses changed to simple assignment.
25854         (parse_bracket_exp): Use zeroset instead of memset.
25856 2016-12-30  Jim Meyering  <meyering@fb.com>
25858         maint.mk: update list of intprops.h symbol names
25859         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25860         This avoids a false failure of the sc_prohibit_intprops_without_use
25861         rule in grep.
25863 2016-12-29  Eric Blake  <eblake@redhat.com>
25865         getopt: fix parallel test failure
25866         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25867         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25868         * tests/test-getopt-main.h (main): Use different file names
25869         in case test-getopt-gnu and test-getopt-posix run in parallel.
25871 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25873         xalloc: x2nrealloc check for ptrdiff_t overflow
25874         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25875         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25877 2016-12-24  Bruno Haible  <bruno@clisp.org>
25879         lock test: Fix performance problem on multi-core machines.
25880         * tests/test-lock.c (USE_VOLATILE): New macro.
25881         (struct atomic_int): New type.
25882         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25883         functions.
25884         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25885         as 'struct atomic_int'.
25886         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25887         reclock_checker_thread, test_recursive_lock): Use the new functions.
25888         Reported by Eric Blake in
25889         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25890         and by Pádraig Brady in
25891         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25893 2016-12-19  Bruno Haible  <bruno@clisp.org>
25895         vma-iter: Fix endless loop on 64-bit Windows.
25896         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25897         'unsigned long'.
25899 2016-12-19  Bruno Haible  <bruno@clisp.org>
25901         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25903         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25904         Invoke gt_TYPE_WINT_T instead.
25905         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25906         * modules/stdint (Files): Add m4/wint_t.m4.
25907         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25908         * modules/wctype-h (Makefile.am): Likewise.
25909         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25910         not only on MSVC.
25911         * lib/wctype.in.h (wint_t): Likewise.
25913 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25915         getopt-posix-tests: fix Makefile typo
25916         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25917         Fix typo: the last ‘_’ was missing in the name.
25918         I suspect that the typo explains this build failure:
25919         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25920         although I can’t reproduce the problem on Solaris 10 sparc.
25922 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25924         dfa: improve worst-case 'replace' performance
25925         See my note in Bug#22357#71.
25926         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25927         (merge_constrained): New function, which is like
25928         the old 'merge' function, except with a new argument C2.
25929         Simplify the body by avoiding the need for different sections
25930         of code depending on whether one input is exhausted.
25931         (merge): Use the new function.
25932         (delete): Return the constraint of the deleted position,
25933         not the entire position.  Caller changed.
25934         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25936 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25938         dfa: performance improvement for removal of epsilon closure
25939         See Bug#22357#32.
25940         * lib/dfa.c (delete): Use binary search to find deleted index.
25941         (replace): New function.  It replaces a position with the followed set.
25942         (epsclosure): Replace it with a new algorithm.  Update caller.
25944 2016-12-18  Bruno Haible  <bruno@clisp.org>
25946         Split tests for getopt-posix and getopt-gnu.
25947         * tests/test-getopt-posix.c: New file.
25948         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25949         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25950         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25951         GNULIB_TEST_GETOPT_GNU.
25952         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25953         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25954         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25955         * modules/getopt-gnu-tests: New file.
25956         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25958 2016-12-18  Bruno Haible  <bruno@clisp.org>
25960         posix-modules: Add options for specific platforms.
25961         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25962         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25963         Invoke func_tmpdir. Filter out the excludes.
25965 2016-12-18  Bruno Haible  <bruno@clisp.org>
25967         getopt: Fix link error for users of getopt() in <unistd.h>.
25968         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25969         __need_getopt is defined. Undefine all macros before defining them.
25970         * modules/getopt (Include): Clarify that including <unistd.h> is also
25971         OK.
25972         * tests/test-getopt.c: Add comment.
25974 2016-12-17  Bruno Haible  <bruno@clisp.org>
25976         getaddrinfo tests: Avoid compilation error on MSVC.
25977         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25978         getaddrinfo on native Windows.
25980 2016-12-17  Bruno Haible  <bruno@clisp.org>
25982         getlogin, getlogin_r: Fix link errors on MSVC.
25983         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25984         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25985         (Link): New section.
25986         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25987         (configure.ac): Require gl_LIB_GETLOGIN.
25988         (Link): New section.
25989         * NEWS: Mention the new link requirements.
25990         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25991         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25993 2016-12-17  Bruno Haible  <bruno@clisp.org>
25995         Un-deprecate the 'progname' module.
25996         * NEWS: Describe the appropriate use-cases of 'progname' versus
25997         'getprogname'. Based on discussion summary at
25998         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26000 2016-12-17  Bruno Haible  <bruno@clisp.org>
26002         Reorganize NEWS a bit.
26003         * NEWS: Move some not so important changes away from section
26004         "Important Notes".
26006 2016-12-17  Bruno Haible  <bruno@clisp.org>
26008         tanhf: Avoid redefinition error on MSVC.
26009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26010         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26011         may be defined as an inline function.
26012         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26013         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26015 2016-12-17  Bruno Haible  <bruno@clisp.org>
26017         tanf: Avoid redefinition error on MSVC.
26018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26019         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26020         may be defined as an inline function.
26021         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26022         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26024 2016-12-17  Bruno Haible  <bruno@clisp.org>
26026         sqrtf: Avoid redefinition error on MSVC.
26027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26028         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26029         may be defined as an inline function.
26030         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26031         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26033 2016-12-17  Bruno Haible  <bruno@clisp.org>
26035         sinhf: Avoid redefinition error on MSVC.
26036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26037         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26038         may be defined as an inline function.
26039         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26040         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26042 2016-12-17  Bruno Haible  <bruno@clisp.org>
26044         sinf: Avoid redefinition error on MSVC.
26045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26046         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26047         may be defined as an inline function.
26048         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26049         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26051 2016-12-17  Bruno Haible  <bruno@clisp.org>
26053         logf: Avoid redefinition error on MSVC.
26054         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26055         may be defined as an inline function.
26057 2016-12-17  Bruno Haible  <bruno@clisp.org>
26059         log10l: Avoid redefinition error on MSVC.
26060         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26061         may be defined as an inline function.
26063 2016-12-17  Bruno Haible  <bruno@clisp.org>
26065         log10f: Avoid redefinition error on MSVC.
26066         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26067         may be defined as an inline function.
26069 2016-12-17  Bruno Haible  <bruno@clisp.org>
26071         hypotl: Avoid redefinition error on MSVC.
26072         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26073         may be defined as an inline function.
26075 2016-12-17  Bruno Haible  <bruno@clisp.org>
26077         hypotf: Avoid redefinition error on MSVC.
26078         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26079         may be defined as an inline function.
26081 2016-12-17  Bruno Haible  <bruno@clisp.org>
26083         fmodl: Avoid redefinition error on MSVC.
26084         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26085         may be defined as an inline function.
26087 2016-12-17  Bruno Haible  <bruno@clisp.org>
26089         fmodf: Avoid redefinition error on MSVC.
26090         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26091         may be defined as an inline function.
26093 2016-12-17  Bruno Haible  <bruno@clisp.org>
26095         expf: Avoid redefinition error on MSVC.
26096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26097         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26098         may be defined as an inline function.
26099         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26100         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26102 2016-12-17  Bruno Haible  <bruno@clisp.org>
26104         coshf: Avoid redefinition error on MSVC.
26105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26106         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26107         may be defined as an inline function.
26108         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26109         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26111 2016-12-17  Bruno Haible  <bruno@clisp.org>
26113         cosf: Avoid redefinition error on MSVC.
26114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26115         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26116         may be defined as an inline function.
26117         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26118         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26120 2016-12-17  Bruno Haible  <bruno@clisp.org>
26122         atan2f: Avoid redefinition error on MSVC.
26123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26124         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26125         may be defined as an inline function.
26126         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26127         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26129 2016-12-17  Bruno Haible  <bruno@clisp.org>
26131         atanf: Avoid redefinition error on MSVC.
26132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26133         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26134         may be defined as an inline function.
26135         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26136         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26138 2016-12-17  Bruno Haible  <bruno@clisp.org>
26140         asinf: Avoid redefinition error on MSVC.
26141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26142         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26143         may be defined as an inline function.
26144         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26145         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26147 2016-12-17  Bruno Haible  <bruno@clisp.org>
26149         acosf: Avoid redefinition error on MSVC.
26150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26151         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26152         may be defined as an inline function.
26153         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26154         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26156 2016-12-17  Bruno Haible  <bruno@clisp.org>
26158         Avoid redefinition errors on MSVC.
26159         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26160         the function may be defined as an inline function.
26161         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26162         the function may be defined as an inline function.
26164 2016-12-17  Bruno Haible  <bruno@clisp.org>
26166         Avoid redefinition errors on MSVC.
26167         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26168         * lib/unistd.in.h: Include <stdio.h> when necessary.
26170 2016-12-17  Bruno Haible  <bruno@clisp.org>
26172         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26173         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26174         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26175         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26176         WINT_MAX.
26178 2016-12-17  Bruno Haible  <bruno@clisp.org>
26180         Avoid autoconf warning.
26181         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26182         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26184 2016-12-17  Bruno Haible  <bruno@clisp.org>
26186         fpending: Revert workaround against Emacs bug.
26187         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26188         The Emacs bug is fixed by Eli Zaretskii in
26189         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26191 2016-12-17  Bruno Haible  <bruno@clisp.org>
26193         getlogin_r tests: Port to mingw.
26194         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26195         regression introduced on 2014-05-19.
26197 2016-12-17  Bruno Haible  <bruno@clisp.org>
26199         getlogin: Port to newer mingw.
26200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26201         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26202         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26203         HAVE_GETLOGIN.
26204         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26205         HAVE_GETLOGIN.
26206         * doc/posix-functions/getlogin.texi: Mention the issue.
26207         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26208         regression introduced on 2014-05-14.
26210 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26212         builtin-expect: improve port to IBM XL C
26213         Problem reported for z/OS by Daniel Richard G. in:
26214         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26215         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26216         Test for <builtins.h> directly.
26218         builtin-expect: port to IBM XL C
26219         Problem reported for z/OS by Daniel Richard G. in:
26220         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26221         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26222         Also allow __builtin_expect defined via a standard include file.
26224         regex: fix dependency
26225         Problem reported by Bruno Haible in:
26226         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26227         * modules/regex: Depend on builtin-expect.
26229         builtin-expect: new module
26230         Fix fnmatch to use it.
26231         Problem reported for z/OS by Daniel Richard G.
26232         * lib/fnmatch.c (__builtin_expect):
26233         * lib/glob.c (__builtin_expect):
26234         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26235         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26236         * lib/scandir.c (__builtin_expect):
26237         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26238         Remove macro; config.h now does this.
26239         * lib/gl_anytreehash_list1.h (add_to_bucket):
26240         * lib/regex_internal.h (BE):
26241         Assume __builtin_expect.
26242         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26243         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26244         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26245         * modules/scandir, modules/strstr-simple:
26246         Depend on builtin-expect.
26248 2016-12-15  Bruno Haible  <bruno@clisp.org>
26250         init.sh: Add possibility to not delete temporary files.
26251         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26252         to yes, don't erase the temporary directory.
26254 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26256         regex: fix integer-overflow bug in never-used code
26257         Problem reported by Clément Pit–Claudel in:
26258         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26259         * lib/regex_internal.h: Include intprops.h.
26260         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26261         behavior on integer overflow.
26262         * modules/regex (Depends-on): Add intprops.
26264         fpending: fix port to MinGW on Emacs
26265         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26266         Problem reported by Eli Zaretskii in:
26267         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26268         Is Plan 9 still a valid porting target, anyway?
26270 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26272         safe-alloc: use xalloc-oversized
26273         * lib/safe-alloc.c: Include xalloc-oversized.h.
26274         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26275         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26277         xalloc: do not exceed PTRDIFF_MAX
26278         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26279         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26280         bytes have pointer-subtraction problems.
26282         malloca: do not exceed PTRDIFF_MAX
26283         * lib/malloca.h: Include xalloc-oversized.
26284         (nmalloca): Use xalloc_oversized instead of rolling our own.
26285         * modules/malloca (Depends-on):
26286         * modules/relocatable-prog-wrapper (Depends-on):
26287         Add xalloc-oversized.
26289         quotearg: pacify GCC better
26290         * modules/quotearg (Depends-on): Add minmax, stdint.
26291         * lib/quotearg.c: Include minmax.h, stdint.h.
26292         (nslots): Now int, as there seems little point to going to extra
26293         work merely to support the INT_MAX slot, which nobody ever uses.
26294         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26295         and to catch (mostly-theoretical) ptrdiff_t problems too.
26296         This can be done via one comparison.
26298 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26300         xalloc-oversized: check for PTRDIFF_MAX too
26301         This avoids undefined behavior when subtracting pointers to
26302         objects containing more than PTRDIFF_MAX bytes.
26303         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26304         Also return 1 if the result would exceed PTRDIFF_MAX>
26305         * modules/xalloc-oversized (Depends-on):
26306         Add stdint.
26308         dfa: fix glitches in previous commit
26309         Sorry, I don't know how I managed to commit the wrong version.
26310         * lib/dfa.c (MIN): Move up.
26311         (xpalloc): Now static.
26313         dfa: fix some unlikely integer overflows
26314         I found these while reviewing the recent Coverity-related fix.
26315         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26316         size_t for object counts.  Using ptrdiff_t is the style typically
26317         used in Emacs; although it wastes a sign bit as sizes can never be
26318         negative, it makes -fsanitize=undefined more likely to catch
26319         integer overflows in index calculation, and nowadays the upside is
26320         typically more important than the downside.  Although perhaps the
26321         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26322         of dfa.c already does, since it uses state_num which is signed),
26323         that is a bigger change and is not needed to fix the bugs I found.
26324         * lib/dfa.c: Include stdint.h and intprops.h.
26325         (TOKEN_MAX): New macro.
26326         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26327         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26328         (realloc_trans_if_necessary, free_mbdata):
26329         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26330         This is safe because xpalloc checks that the sizes do not exceed
26331         either SIZE_MAX or PTRDIFF_MAX.
26332         (xpalloc): New function, mostly taken from Emacs.
26333         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26334         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26335         (charclass_index): Check for integer overflow in computing
26336         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26337         added to it later.
26338         (alloc_position_set): Check for integer overflow.  On typical
26339         platforms this check has zero overhead, since the constant
26340         expression is false.
26341         (realloc_trans_if_necessary):
26342         Remove assertion, which I hope Coverity no longer needs.
26344         * modules/dfa (Depends-on): Add intprops, stdint.
26346 2016-12-12  Jim Meyering  <meyering@fb.com>
26348         dfa: add an assertion to avoid coverity false positive
26349         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26350         warned that "newalloc1 - 2" could overflow.
26352 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26354         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26355         * dfa.h (DFA_CASE_FOLD): Remove.
26356         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26358 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26360         link: fix test to declare use of rename()
26361         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26362         -Werror=implicit-function-declaration
26364 2016-12-12  Bruno Haible  <bruno@clisp.org>
26366         fpending: Port to native Windows with MSVC.
26367         * lib/fpending.c: Include stdio-impl.h.
26368         (__fpending): Include all known implementations. Err out if it's not
26369         ported.
26370         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26371         * modules/fpending (Files): Add lib/stdio-impl.h.
26372         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26374 2016-12-12  Bruno Haible  <bruno@clisp.org>
26376         stdioext: Port to native Windows with MSVC.
26377         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26378         (struct _gl_real_FILE): New type.
26379         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26380         Windows.
26381         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26382         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26383         other SystemV derived implementations.
26384         * lib/fpurge.c (fpurge): Likewise.
26385         * lib/freadable.c (freadable): Likewise.
26386         * lib/freadahead.c (freadahead): Likewise.
26387         * lib/freading.c (freading): Likewise.
26388         * lib/freadptr.c (freadptr): Likewise.
26389         * lib/freadseek.c (freadptrinc): Likewise.
26390         * lib/fseeko.c (fseeko): Likewise.
26391         * lib/fseterr.c (fseterr): Likewise.
26392         * lib/fwritable.c (fwritable): Likewise.
26393         * lib/fwriting.c (fwriting): Likewise.
26394         Reported by Gisle Vanem <gvanem@yahoo.no>.
26396 2016-12-11  Jim Meyering  <meyering@fb.com>
26398         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26399         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26400         to work with most shells, but not with the one provided by many
26401         Solaris 10 systems, so running configure with such a /bin/sh evokes
26402         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26403         Reported by Assaf Gordon in
26404         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26406 2016-12-10  Bruno Haible  <bruno@clisp.org>
26408         threadlib: Optimize out runtime test on Solaris >= 10.
26409         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26410         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26411         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26413 2016-12-10  Bruno Haible  <bruno@clisp.org>
26415         stdint: Update doc about Solaris 9.
26416         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26418 2016-12-09  Bruno Haible  <bruno@clisp.org>
26420         c-ctype tests: Fix link error on Solaris 9.
26421         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26422         Reported at <https://savannah.gnu.org/bugs/?46827>.
26424 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26426         dfa: fix performance bug that recomputes trans
26427         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26428         25 on-demand changes.  The bug caused build_state to reset all
26429         d->trans elements to -2 even when d->trans was already non-null.
26430         Use C99 style decls after statements in this function.
26432         same-inode: port to MinGW
26433         Here st_ino is always 0, so change the definition of SAME_INODE so
26434         that 1 means the two files are the same, 0 with st_ino != 0 means
26435         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26436         reported by Bruno Haible (Bug#25146).
26437         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26438         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26440 2016-12-04  Bruno Haible  <bruno@clisp.org>
26442         javacomp-script: Support Java 7 and 8.
26443         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26444         target-version 1.7, 1.8.
26446 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26448         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26449         GPLv2" rewriting.
26451 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26453         * gnulib-tool (func_import): Adhere to the license guideline when
26454         rewriting the license text to "LGPLv3+ or GPLv2":
26455         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26457 2016-12-02  Bruno Haible  <bruno@clisp.org>
26459         localcharset: Avoid theoretical buffer overrun.
26460         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26461         return value from setlocale if it would lead to a buffer overrun.
26463 2016-12-01  Bruno Haible  <bruno@clisp.org>
26465         Relicense some modules under LGPLv2+.
26466         Kevin Cernekee's approval is in
26467         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26468         * modules/fseterr (License): Change to LGPLv2+.
26469         * modules/mbchar (License): Likewise.
26470         * modules/mbiter (License): Likewise.
26471         * modules/mbsnlen (License): Likewise.
26472         * modules/wcwidth (License): Likewise.
26474 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26476         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26477         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26478         OS/2 kLIBC.
26480 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26482         alphasort, scandir: Port to OS/2 kLIBC
26483         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26484         declaration.
26485         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26487 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26489         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26490         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26491         with '/@unixroot'.
26493 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26495         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26496         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26497         OS/2 kLIBC unless TCPV40HDRS is defined.
26499 2016-11-29  Jim Meyering  <meyering@fb.com>
26501         dfa: avoid new infinite loop
26502         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26503         * lib/dfa.c (dfastate): When constructing a new state table, we could
26504         initially declare that we had found a match, and later find that
26505         constraints eliminate that possibility, yet continue to use the
26506         now stale "matched" indicator.  That would lead to an infinite loop.
26507         The solution is to update "matched" when necessary.
26508         Introduced by commit v0.1-983-g403adf1.
26510 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26512         dfa: avoid match middle in multibyte character
26513         * lib/dfa.c (transit_state): If fails in matching single byte characters
26514         on a state including period expression in non-UTF8 multibyte locales,
26515         skip trailing bytes.
26516         (dfa_supported): Revert previous change.
26518 2016-11-27  Jim Meyering  <meyering@fb.com>
26520         dfa: avoid false match in non-UTF8 multibyte locales
26521         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26522         as "not supported" so that callers will resort to using regex-based
26523         matcher.  This will surely hurt performance, but correctness trumps
26524         performance here, and the affected locales are less and less relevant,
26525         these days.  See grep's bug report https://bugs.gnu.org/24975.
26527 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26529         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26530         * lib/ptsname_r.c: Include the appropriate headers.
26531         [__sun]: Delete sys/sysmacros.h include.
26532         [_AIX || __osf__]: Likewise.
26533         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26535 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26537         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26538         * lib/md4.c (md4_process_bytes): The existing define is made internal
26539         in recent versions of glibc, so also use this new public define.
26540         * lib/md5.c (md5_process_bytes): Likewise.
26541         * lib/sha1.c (sha1_process_bytes): Likewise.
26542         * lib/sha256.c (sha256_process_bytes): Likewise.
26543         * lib/sha512.c (sha512_process_bytes): Likewise.
26545 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26547         maint: use a more standard return from mbrtowc test
26548         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26549         from the test program as this often indicates an
26550         unhandled case in the test program.
26551         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26552         (gl_MBRTOWC_SANITYCHECK): Likewise.
26553         (gl_MBRTOWC_NULL_ARG2): Likewise.
26554         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26556 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26558         freopen: work around glibc bug with closed fd
26559         Work around glibc bug#15589, where freopen mishandles the case
26560         where stdin etc. are already closed.
26561         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26562         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26563         instead of __need_FILE, as the latter does not work with glibc.
26564         Include <fcntl.h>, for open flags.
26565         (rpl_freopen): Work around glibc bug.
26566         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26567         * modules/freopen (Depends-on): Add fcntl-h.
26568         * tests/test-freopen.c (main): Test for bug.
26570 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26572         fnmatch: fix typo introduced on 2016-08-17
26573         This fixes the port to non-GCC compilers that lack __builtin_expect.
26574         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26576         dfa: simplify with new function fillset
26577         * lib/dfa.c (fillset): New function.
26578         Use it for clarity when applicable.
26580         dfa: fix glitches with on-demand states
26581         Also, adjust commentary to better match new code.
26582         Some of these glitches predate the recent change.
26583         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26584         only non-initial states.
26585         (dfastate): Rename locals to better match new roles.
26586         Move them into nested scopes if this is easy.
26587         Omit unnecessary calls to zeroset.
26588         Simplify test for whether to throw in the positions of state 0.
26589         Omit C99-ism (decl after statement) since Gawk still wants C89.
26590         (build_state): Omit unnecessary test and assignment.
26591         Fix some confusion that counted transition tables inaccurately
26592         and could cause a memory leak.
26593         (dfaexec_main): Redo to make it clearer to the compiler that
26594         -1 and -2 are the only negative state numbers here.
26596 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26598         dfa: addition of new state on demand
26599         * src/dfa.c (dfastate): Add argument UC, the current input character.
26600         Fill only a group including the character in transition table.
26601         (realloc_trans_if_necessary): Add the dummy state which means that a
26602         transition table is assigned but the next state is not assigned.
26603         (build_state): Return the next state.  All callers updated.
26604         (transit_state_singlebyte): If we get the dummy state,
26605         fill the transition table.
26606         (dfaexec_main): Handle the dummy state.
26607         (free_mbdata, dfafree): Consider the dummy state.
26609 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26611         srclist: sync with released gettext
26612         * config/srclist.txt: Set "release" option to the files under
26613         $GETTEXT.
26615 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26617         srclist: add "release" option
26618         * config/srclist.txt: Change the format so that the first column
26619         of each line points to the top-level directory of the source
26620         archive.
26621         * config/srclist-update: Accept "release" option that checks files
26622         from the most recently tagged revision in the source archive.
26624 2016-11-21  Bruno Haible  <bruno@clisp.org>
26626         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26627         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26628         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26629         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26630         Inline and remove member function 'rpl ()' of the wrapper struct.
26632 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26634         dfa: fix logic typo
26635         Problem reported by Stephane Chazelas (Bug#24973).
26636         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26637         non-simple locales like fr_FR to be treated as simple.
26639 2016-11-20  Jim Meyering  <meyering@fb.com>
26641         fix test driver leaks: exclude, malloc, realloc
26642         * tests/test-exclude.c (main): Fix trivial leak.
26643         * tests/test-malloc-gnu.c (main): Likewise.
26644         * tests/test-realloc-gnu.c (main): Likewise.
26645         With these changes, grep's tests are now leak free.
26646         I.e., running them with ASAN elicits no failure:
26647           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26648             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26650 2016-11-11  Bruno Haible  <bruno@clisp.org>
26652         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26653         * modules/libunistring: (License): Change from LGPL to
26654         "LGPLv3+ or GPLv2".
26655         * modules/libunistring-optional: Likewise.
26656         * modules/unicase/*: Likewise.
26657         * modules/uniconv/*: Likewise.
26658         * modules/unictype/*: Likewise.
26659         * modules/unigbrk/*: Likewise.
26660         * modules/unilbrk/*: Likewise.
26661         * modules/uniname/*: Likewise.
26662         * modules/uninorm/*: Likewise.
26663         * modules/unistdio/*: Likewise.
26664         * modules/unistr/*: Likewise.
26665         * modules/uniwbrk/*: Likewise.
26666         * modules/uniwidth/*: Likewise.
26668 2016-11-12  Bruno Haible  <bruno@clisp.org>
26670         Relicense some modules under LGPLv2+.
26671         Paul Eggert's approval is in
26672         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26673         Eric Blake's approval is in
26674         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26675         Ludovic Courtès's approval is in
26676         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26677         * modules/isnand-nolibm (License): Change to LGPLv2+.
26678         * modules/isnanf-nolibm (License): Likewise.
26679         * modules/isnanl-nolibm (License): Likewise.
26681 2016-11-19  Bruno Haible  <bruno@clisp.org>
26683         Relicense some modules under LGPLv2+.
26684         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26685         modules/vasnprintf.
26686         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26687         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26688         All other significant changes to the files in lib/ of these modules
26689         are from me.
26690         * modules/memcmp2 (License): Change to LGPLv2+.
26691         * modules/amemxfrm (License): Likewise.
26692         * modules/fpieee (License): Likewise.
26693         * modules/fpucw (License): Likewise.
26694         * modules/frexp-nolibm (License): Likewise.
26695         * modules/frexpl-nolibm (License): Likewise.
26696         * modules/printf-frexp (License): Likewise.
26697         * modules/printf-frexpl (License): Likewise.
26698         * modules/printf-safe (License): Likewise.
26699         * modules/signbit (License): Likewise.
26701 2016-11-17  Bruno Haible  <bruno@clisp.org>
26703         Enable Unicode decoder safety unconditionally.
26704         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26705         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26706         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26707         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26708         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26709         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26710         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26711         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26712         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26713         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26714         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26715         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26716         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26717         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26718         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26719         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26720         * lib/unistr/u32-next.c (u32_next): Likewise.
26721         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26722         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26723         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26724         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26725         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26726         CONFIG_UNICODE_SAFETY tests unconditionally.
26727         * tests/unistr/test-u32-mblen.c (main): Likewise.
26728         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26729         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26730         * tests/unistr/test-u32-next.c (main): Likewise.
26731         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26732         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26733         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26734         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26735         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26736         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26737         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26738         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26739         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26740         * lib/unistr/u16-check.c (u16_check): Update comment.
26741         * NEWS: Mention the changes that callers should be aware of.
26743 2016-11-19  Bruno Haible  <bruno@clisp.org>
26745         relocatable-prog-wrapper: Fix breakage on Cygwin.
26746         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26747         (Depends-on): Remove intprops.
26748         * lib/relocwrapper.c: Update dependency tree.
26749         (strerror): Undefine.
26750         * build-aux/install-reloc (func_create_wrapper): Do not compile
26751         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26753 2016-11-19  Bruno Haible  <bruno@clisp.org>
26755         strerror: Make it compile in C++ mode.
26756         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26758 2016-11-15  Pedro Alves  <palves@redhat.com>
26760         sys_time: add gnulib::timeval for C++
26761         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26762         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26763         timeval macro.
26765 2016-11-14  Pedro Alves  <palves@redhat.com>
26767         snippet/c++defs: fix real-floating arg functions in C++ mode
26768         Also, define isfinite, isinf, isnan, signbit in the gnulib
26769         namespace instead of in the global namespace.
26770         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26771         (_GL_END_NAMESPACE): New.
26772         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26773         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26774         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26775         instead of in the global namespace.
26776         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26777         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26778         of in the global namespace.
26780 2016-11-13  Jim Meyering  <meyering@fb.com>
26782         strftime: don't use __THROW
26783         Each use of __THROW would provoke this from gcc-7-to-be:
26785           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26786             on unit local functions [-Wattributes]
26787           static int iso_week_days (int, int) __THROW;
26788           ^~~~~~
26789         * lib/strftime.c (__THROW): Don't define.
26790         Remove each use of __THROW.
26791         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26792         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26794 2016-11-14  Paul Eggert  <eggert@union>
26796         obstack: port to gcc -fcheck-pointer-bounds
26797         Problem found by 'make check' failure on bleeding-edge coreutils
26798         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26799         6.2.0-5ubuntu12), configured via "./configure
26800         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26801         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26802         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26803         New macro, copied from fts_.h.
26804         (struct _obstack_chunk.contents): Use it.
26806 2016-11-14  Eric Blake  <eblake@redhat.com>
26808         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26809         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26810         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26812 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26814         strptime: fix compile error in recent change
26815         * lib/strptime.c (__strptime_internal): Fix ported code.
26817 2016-11-11  Bruno Haible  <bruno@clisp.org>
26819         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26820         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26821         (func_import): Extend determination of license_incompatibilities.
26822         (func_create_testdir): Extend table of license compatibility. Handle
26823         also the licenses GPLv3+, GPL, LGPLv3+.
26825 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26827         strftime: tune %q
26828         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26830         Merge strftime.c changes from glibc
26831         This incorporates:
26832         2007-10-16 [BZ #5184] Add tzset_called argument
26833         2008-06-13 [BZ #6612] pass reference to tzset_called around
26834         2009-10-30 Implement Burmese language locale for Myanmar
26835         2010-01-09 Add support for XPG7 testing
26836         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26837         2015-10-20 Convert miscellaneous function definitions to prototype style
26838         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26839         it anyway and this lessens the difference between gnulib and glibc.
26840         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26841         (__THROW): Define if standard headers do not.
26842         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26843         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26844         Declare with __THROW.
26845         (__strftime_internal): Rename from strftime_case_. Add arg for
26846         whether tzset is called.  All uses changed.  Call tzset at most
26847         once.  Allow %OC, for Burmese.
26848         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26849         Don't assume values are in range.
26851 2016-11-12  Eric Blake  <eblake@redhat.com>
26853         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26854         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26855         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26856         different value.
26858 2006-11-12  Pedro Alves  <palves@redhat.com>
26860         Fix gnulib C++ namespace support and std::frexp
26861         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26862         _GL_CXXALIASWARN.
26864 2006-11-12  Pedro Alves  <palves@redhat.com>
26866         GNULIB_NAMESPACE::func need not pull in rpl_func
26867         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26868         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26869         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26870         struct instead of a function pointer.
26872 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26874         manywarnings: fix -Wno-missing-field-initializers detection
26875         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26876         to be independent of -Wunused-variable.  I.E. ensure the latter
26877         warning doesn't occur so that detection of the former is accurate.
26879 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26881         strftime,strptime: support %q to represent the quarter
26882         * lib/strftime.c (strftime_case_): Add %q case.
26883         * lib/strptime.c (__strptime_internal): Likewise.
26884         * tests/test-strftime.c (quarter_test): A new test case.
26886 2016-11-03  Eric Blake  <eblake@redhat.com>
26888         bootstrap: Fix get_version() for AIX 5.3
26889         * build-aux/bootstrap (get_version): Factor out sed script, since
26890         indented comments choke AIX 5.3 sed.
26891         Reported-by: Michael Felt <aixtools@gmail.com>
26893 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26895         intprops: port to older XL C
26896         Problem reported by Alexander Samoilov in:
26897         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26898         http://savannah.nongnu.org/bugs/?49448
26899         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26900         Define to 1 only for XL C 12.1 or later, since this bug
26901         occurs in XL C for AIX 6.0 but not in 12.1.
26903 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26905         backupfile: initialize default suffix within the implementation
26906         * lib/backupfile.c (find_backup_file_name): Initialize the
26907         global variable here, to simplify usage, and to only call
26908         getenv() when needed.
26910 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26912         futimens: remove FIXME for old Linux kernels
26913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26914         this in 2012" FIXME, like that for utimensat.
26916         utimensat: remove FIXME for old Linux kernels
26917         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26918         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26919         this in 2012" FIXME, by assuming the file system bug is absent
26920         unless demonstrated to be present.  We no longer need to worry
26921         about Linux kernel 2.6.32 when building with newer kernels.
26923 2016-10-16  Bruno Haible  <bruno@clisp.org>
26925         qsort_r: Fix macrology for platforms that lack the function.
26926         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26927         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26928         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26929         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26930         not exist.
26931         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26932         the function exists.
26933         * modules/qsort_r: Add comments.
26935 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26937         sys_types: fix Texinfo typos
26938         * doc/glibc-functions/gnu_dev_major.texi:
26939         * doc/glibc-functions/gnu_dev_makedev.texi:
26940         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26942 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26944         getprogname: port to HP-UX
26945         See Bug#24805.
26946         * lib/getprogname.c (getprogname) [__hpux]: Port.
26947         * tests/test-getprogname.c (STREQ) [__hpux]:
26948         Special-case for HP-UX limitations on program name length.
26950 2016-10-20  Bruno Haible  <bruno@clisp.org>
26952         Update doc about target platforms.
26953         * doc/gnulib-intro.texi (Target Platforms): Update list.
26955 2016-10-15  Bruno Haible  <bruno@clisp.org>
26957         opendir, readdir, closedir: Relicense under LGPLv2+.
26958         * modules/opendir (License): Change to LGPLv2+.
26959         * modules/readdir (License): Likewise.
26960         * modules/closedir (License): Likewise.
26962 2016-10-16  Bruno Haible  <bruno@clisp.org>
26964         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26966         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26967         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26968         HAVE_DECL_STRERROR_R.
26970 2016-10-16  Bruno Haible  <bruno@clisp.org>
26972         Make the 'argp' module work without the 'error' module.
26973         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26975 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26977         diffseq: restore TOO_EXPENSIVE heuristic
26978         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26979         (Bug#24715).  The simplest solution is to restore the
26980         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26981         using a higher threshold to avoid Bug#16848 on smaller files.
26982         * lib/diffseq.h (struct context): Restore member too_expensive.
26983         (struct partition): Restore members lo_minimal, hi_minimal.
26984         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26985         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26986         1993 to make 'diff' run faster (but not as well) on large inputs,
26987         but use a threshold of 4096 instead of the old 256.
26988         * lib/fstrcmp.c (strcmp_bounded):
26989         * lib/git-merge-changelog.c (compute_differences):
26990         Adjust to diffseq.h changes.
26992 2016-10-22  Bruno Haible  <bruno@clisp.org>
26994         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26995         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26996         declaration yet, define ICONV_CONST to empty.
26998 2016-10-15  Bruno Haible  <bruno@clisp.org>
27000         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27001         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27002         module.
27004 2016-10-16  Bruno Haible  <bruno@clisp.org>
27006         system-quote tests: Avoid compiler warning on AIX.
27007         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27008         <stdio.h> does.
27010 2016-10-16  Bruno Haible  <bruno@clisp.org>
27012         Fix some "gcc -Wall" warnings.
27013         * tests/test-ffsl.c (main): Use variable x, not i.
27014         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27015         freopen.
27016         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27017         of sethostname.
27019 2016-10-16  Bruno Haible  <bruno@clisp.org>
27021         gnulib-tool: Make --create-testdir on all modules work again.
27022         * gnulib-tool (func_create_testdir): Don't include the
27023         non-recursive-gnulib-prefix-hack module.
27025 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27027         libunistring: change the maintainer to 'all'
27028         * modules/gen-uni-tables, modules/libunistring:
27029         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27030         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27031         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27032         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27033         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27034         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27035         * modules/uniwidth/*: Change the maintainer to 'all'.
27037 2016-10-16  Bruno Haible  <bruno@clisp.org>
27039         Simplify "configure: checking ..." messages.
27040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27041         AC_MSG_NOTICE.
27042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27044 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27046         quotearg-tests: pacify gcc -Wall
27047         Problem reported by Bruno Haible in:
27048         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27049         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27050         * tests/test-quotearg.h: ... from here.
27052 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27054         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27055         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27056         Needed on Centos <= 4.
27058 2016-10-20  Jim Meyering  <meyering@fb.com>
27060         printf.m4: fix a bug in detecting printf %j support
27061         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27062         uintmax_t is defined in neither stdint.h nor inttypes.h.
27063         Before, this macro might have mistakenly set
27064         gl_cv_func_printf_sizes_c99=yes on such a system.
27065         Spotted by Zev Weiss.
27067 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27069         sched: substitute HAVE_SYS_CDEFS_H too
27070         Problem reported by Tom G. Christensen in:
27071         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27072         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27073         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27075 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27077         quotearg: never write beyond the returned length
27078         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27079         scan of the string when we initially encounter a single quote when
27080         shell quoting, so that if we then switch to a more concise quoting method
27081         we will not have written beyond that returned length.
27082         This is significant for sh-quote, which has separate routines
27083         to determine the length and do the actual quoting.
27084         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27085         now that we never write more than the returned length.
27087 2016-10-18  Bruno Haible  <bruno@clisp.org>
27089         getprogname tests: Avoid failure in packages that use libtool.
27090         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27091         Based on a patch by Jim Meyering.
27093 2016-10-16  Bruno Haible  <bruno@clisp.org>
27095         getprogname: Fix test failure on Cygwin. Comments.
27096         * lib/getprogname.h: Add comments.
27097         * lib/getprogname.c: Add comments. Fix #elif indentation.
27098         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27099         ".exe" suffix.
27101 2016-10-16  Bruno Haible  <bruno@clisp.org>
27103         Make sure the libunistring detection rejects older versions with a
27104         known bug.
27105         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27106         * modules/unistr/u16-strtok (configure.ac): Likewise.
27107         * modules/unistr/u32-strtok (configure.ac): Likewise.
27109 2016-10-18  Bruno Haible  <bruno@clisp.org>
27111         sh-quote, system-quote: revert regression of unit test.
27112         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27113         * tests/test-system-quote-main.c (check_one): Likewise.
27115 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27117         quotearg: fix stale tests
27118         * tests/test-quotearg.c [locale_results]: Add the missing str7
27119         entries to the expected results.
27120         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27121         don't write beyond the returned length, since that's no longer the
27122         case if we switch to a more concise quoting style.
27123         * tests/test-sh-quote.c (check_one): Likewise.
27124         (main): Adjust for the new more concise quoting style.
27125         Reported by Bruno Haible.
27127 2016-10-16  Jim Meyering  <meyering@fb.com>
27129         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27130         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27131         to "$1".  This macro is always invoked with $1 == lib.
27132         Spotted by Bruno Haible
27134 2016-10-16  Bruno Haible  <bruno@clisp.org>
27136         Fix a test crash.
27137         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27138         fails.
27140 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27142         test-limits-h: suppress -Woverlength-strings
27143         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27145 2016-10-15  Bruno Haible  <bruno@clisp.org>
27147         gettime, timespec, utimens: Relicense under LGPL.
27148         * modules/gettime (License): Change to LGPL.
27149         * modules/timespec (License): Likewise.
27150         * modules/utimens (License): Likewise.
27152 2016-10-14  Bruno Haible  <bruno@clisp.org>
27153             Pádraig Brady  <P@draigBrady.com>
27155         canonicalize-lgpl: Support the case path_max > INT_MAX.
27156         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27157         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27159 2016-10-13  Jim Meyering  <meyering@fb.com>
27161         getprogname: IBM z/OS: avoid NULL-dereference
27162         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27163         upon strdup failure.
27165 2016-10-12  Jim Meyering  <meyering@fb.com>
27167         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27168         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27169         and an abbreviated diagnostic rather than verify with the full one,
27170         because the full-length strings would evoke warnings from gcc with
27171         -Woverlength-strings.
27173 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27175         stdint: port SIZE_MAX to glibc s390
27176         Problem reported by Eric Blake in:
27177         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27178         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27179         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27180         correct type, if possible.
27182 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27184         getprogname: port to IBM z/OS
27185         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27187 2016-10-11  Jim Meyering  <meyering@fb.com>
27189         maint: remove stray space after "." in AC_DEFINE comment.
27190         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27191         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27193 2016-10-05  Jim Meyering  <meyering@fb.com>
27195         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27196         * lib/long-options.c (parse_long_options): Add a break statement
27197         to avoid this new warning/failure:
27198         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27199           --create-testdir --dir=/t/x --with-tests --test long-options
27200         ../../gllib/long-options.c: In function 'parse_long_options':
27201         ../../gllib/long-options.c:66:12: error: this statement may \
27202           fall through [-Werror=implicit-fallthrough]
27203                    (*usage_func) (EXIT_SUCCESS);
27204                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27206 2016-10-05  Jim Meyering  <meyering@fb.com>
27208         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27209         Testing this module would fail when using GCC 7 like this:
27210         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27211           --dir=/tmp/x --with-tests --test utimecmp
27212         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27213         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27214           [-Werror=bool-operation]
27215                          time_t s = src_s & ~ (res == 2 * BILLION);
27216                                             ^
27217         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27218           [-Werror=bool-operation]
27219                src_s &= ~ (res == 2 * BILLION);
27220                         ^
27221         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27222         Instead, make it explicit that we intend to apply it to 0 or 1.
27224 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27226         dfa: save memory for states
27227         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27228         states if dfa has a lot of caches.
27230 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27232         wchar, wctype-h: fix for MinGW 3.22.2
27233         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27234         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27235         when included from <string.h>.
27236         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27237         convention for MinGW 3.22.2, to solve issues with their
27238         wctype.h when included from <ctype.h>.
27240 2016-10-05  Jim Meyering  <meyering@fb.com>
27242         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27243         * lib/long-options.c (parse_long_options): Add a break statement
27244         to avoid this new warning/failure:
27245         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27246           --create-testdir --dir=/t/x --with-tests --test long-options
27247         ../../gllib/long-options.c: In function ‘parse_long_options’:
27248         ../../gllib/long-options.c:66:12: error: this statement may \
27249           fall through [-Werror=implicit-fallthrough]
27250                    (*usage_func) (EXIT_SUCCESS);
27251                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27253         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27254         Testing this module would fail when using GCC 7 like this:
27255         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27256           --dir=/tmp/x --with-tests --test utimecmp
27257         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27258         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27259           [-Werror=bool-operation]
27260                          time_t s = src_s & ~ (res == 2 * BILLION);
27261                                             ^
27262         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27263           [-Werror=bool-operation]
27264                src_s &= ~ (res == 2 * BILLION);
27265                         ^
27266         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27267         Instead, make it explicit that we intend to apply it to 0 or 1.
27269 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27271         quotearg: minimize shell quoting using double quotes
27272         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27273         quote in encountered then use double quotes (c style quoting)
27274         when possible, as it simplifies the quoting.
27275         * tests/test-quotearg-simple.c: Add test cases.
27276         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27277         for the fact we now may write beyond the returned length.
27279 2016-10-02  Jim Meyering  <meyering@fb.com>
27281         vasnprintf.c: avoid spurious warning from GCC 7
27282         The presence of cpp directives renders this "FALLTHROUGH" comment
27283         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27284         from GCC 7 built from git on 2016-10-02.
27285         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27286         directives, so that it takes effect once again.  This is clearly
27287         not a proper change, and I will revert it once this bug is fixed:
27288         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27290 2016-10-01  Jim Meyering  <meyering@fb.com>
27292         getprogname: correct the test for a __progname variable
27293         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27294         and AC_LINK_IFELSE to check for a global __progname.  If found,
27295         define HAVE_VAR___PROGNAME.
27296         * lib/getprogname.c (getprogname): Reflect the new name of the
27297         feature- checked preprocessor symbol:
27298         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27300 2016-09-28  Jim Meyering  <meyering@fb.com>
27302         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27303         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27304         fall-through case with a /* fallthrough */ comment.
27306         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27307         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27308         /* fallthrough */ comment.
27310         getprogname: avoid __progname vs program_invocation_short_name pitfall
27311         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27312         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27313         not with Fedora 24's glibc-2.23.1-10.
27314         * lib/getprogname.c (__progname): Move this declaration down...
27315         (getprogname): ... into the #elif block where used, and make it
27316         explicitly "extern".
27318         getprogname: port to OpenBSD 5.1
27319         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27320         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27321         * modules/getprogname (configure.ac): Move most of this code...
27322         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27323         increment serial number, and add a test for __progname.
27324         https://bugs.gnu.org/24562
27325         Reported by Nelson H. F. Beebe.
27327 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27329         sched: port to GCC 6.2.1 on macOS Sierra
27330         Problem reported by Denis Davydov in:
27331         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27332         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27333         Include <sys/cdefs.h> before <sched.h>.
27334         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27335         so that we needn’t worry about the sched.h include bug here.
27336         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27337         and include it before <sched.h> if it exists, when
27338         checking for <sched.h>.
27340         tests/init.sh: port Alpine fix to AIX 7.1
27341         * tests/init.sh (compare_): When attempting to use diff -U3,
27342         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27343         diff -u not outputting a space after leading '+', as the users
27344         of 'compare' should not be that picky about its output format.
27345         In the AIX 7.1 case, return with diff exit status (or with 2 if
27346         trouble), instead of some random nonzero exit status.
27347         * tests/test-init.sh (test_compare): Remove space after leading
27348         '+', so that AIX 7.1 'diff' passes the test.
27350 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27352         nl_langinfo: pacify GCC
27353         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27354         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27356         stdint: also set GL_GENERATE_LIMITS_H
27357         Problem reported by Jim Meyering in:
27358         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27359         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27361         limits-h, stdint: Don't assume extensions, fix typo
27362         * m4/limits-h.m4 (gl_LIMITS_H):
27363         * m4/stdint.m4 (gl_STDINT_H):
27364         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27365         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27366         reported by Jim Meyering in:
27367         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27369 2016-09-21  Jim Meyering  <meyering@fb.com>
27371         getprogname: port to AIX
27372         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27373         and strdup to obtain a short program name string.  Using code from
27374         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27375         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27376         Assaf Gordon reported that this new file would fail to compile on
27377         AIX-7.1 32bit.
27379 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27381         extensions: fix typo in comment
27382         * m4/extensions.m4: Sync from Autoconf master.
27384         stdint: support new _WIDTH macros
27385         * doc/posix-headers/stdint.texi: Document this.
27386         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27387         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27388         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27389         * modules/stdint (Depends-on): Add limits-h.
27390         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27391         * modules/stdint-tests (Depends-on): Add extensions, so that
27392         INTMAX_MAX etc. are defined.
27393         * tests/test-stdint.c: Verify the new macros.
27395         limits-h: new module
27396         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27397         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27398         * doc/posix-headers/limits.texi: Document new module.
27399         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27400         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27402         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27403         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27404         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27405         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27407 2016-09-15  Eric Blake  <eblake@redhat.com>
27409         sys_types: avoid glibc 2.25 warnings about major()
27410         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27411         older autoconf.
27412         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27413         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27414         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27415         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27417         mountlist: include sysmacros.h for glibc
27418         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27419         AC_HEADER_MAJOR.
27420         * lib/mountlist.c (includes): Use correct headers.
27422 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27424         extensions: port to more ISO C TSes
27425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27426         master, to add support for more recent ISO C TRs and TSes.
27428 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27430         intprops: new macro TYPE_WIDTH
27431         * lib/intprops.h (TYPE_WIDTH): New macro.
27432         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27433         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27434         * lib/parse-datetime.y (parse_datetime2):
27435         Use it.
27437         extensions: port to recent ISO C TRs
27438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27439         Sync from Autoconf master, to add support for recent ISO C TRs.
27440         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27441         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27442         the MinGW option is not an extension.
27444 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27446         dfa: port to Solaris 9
27447         Problems reported by Tom G. Christensen in:
27448         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27449         * modules/dfa (Depends-on): Add isblank.
27450         * modules/dfa-tests (dfa_match_aux_LDADD):
27451         Rename from test_stat_LDADD, to fix typo.
27452         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27454 2016-09-10  Jim Meyering  <meyering@fb.com>
27456         strverscmp: avoid link failure on OS X
27457         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27458         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27460 2016-08-16  Jim Meyering  <meyering@fb.com>
27462         dfa: new module, importing grep's DFA matcher
27463         Since grep's DFA matcher is now being used by two gnulib-enabled
27464         projects, grep and sed, it makes sense to version-control its
27465         sources and unit tests in one place: here.
27466         * modules/dfa: New module.
27467         * modules/dfa-tests: New file.
27468         * lib/dfa.c: New file, from grep.
27469         * lib/dfa.h: Likewise.
27470         * lib/localeinfo.c: Likewise.
27471         * lib/localeinfo.h: Likewise.
27472         * tests/dfa-match-aux.c: Likewise.
27473         * tests/dfa-invalid-char-class.sh: Likewise.
27474         * tests/dfa-match.sh: Likewise, with minor changes.
27475         * MODULES.html.sh (Misc): Add "dfa" to this list.
27477 2016-09-09  Jim Meyering  <meyering@fb.com>
27479         getprogname-tests: don't depend on assert-h
27480         * modules/getprogname-tests (Depends-on): Remove assert-h.
27481         It was not needed, and in fact would cause build failure for
27482         coreutils on some systems.  Reported by Assaf Gordon in https:
27483         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27485 2016-09-07  Jim Meyering  <meyering@fb.com>
27487         getprogname-tests: work also when EXEEXT is nonempty
27488         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27489         * tests/test-getprogname.c (main): Use it.
27490         Suggested by Gisle Vanem.
27492 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27494         getprogname: fix errors in previous change
27495         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27496         s/program_invocation_name/base/
27497         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27499 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27501         parse-datetime: restrict debug output to input string
27502         * lib/parse-datetime.y (parse_datetime2): If we parse
27503         all of the input but determine it's invalid, ensure
27504         we don't output the now invalid input pointer.
27505         This issue was seen with `date -d 'now +1'`.
27507 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27509         flexmember: new macro FLEXALIGNOF
27510         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27511         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27512         this macro.  Update comments.
27514 2016-09-07  Jim Meyering  <meyering@fb.com>
27516         getprogname: port to systems with __argv (mingw, msvc)
27517         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27518         last_component: more general than open coding it with hard-coded "/".
27519         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27520         * modules/getprogname (Depends-on): Add dirname-lgpl.
27521         (configure.ac): Check for __argv in <stdlib.h>.
27522         * modules/getprogname-tests: New file.
27523         * tests/test-getprogname.c: New file.
27524         Suggested by Gisle Vanem in
27525         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27527 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27529         flexmember: port better to GCC + valgrind
27530         With a char[] flexible array member in a struct with nontrivial
27531         alignment, GCC-generated code can access past the end of the
27532         array, because GCC assumes there are padding bytes to get the
27533         struct aligned.  So the common idiom of malloc (offsetof (struct
27534         s, m), n) does not properly allocate an n-byte trailing member, as
27535         malloc’s argument should be the next multiple of alignof (struct s).
27536         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27537         Although C11 apparently permits this GCC optimization (i.e., there
27538         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27539         See the thread containing:
27540         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27541         * lib/flexmember.h: New file.
27542         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27543         * lib/localename.c, lib/time_rz.c:
27544         Include flexmember.h.
27545         * lib/fnmatch_loop.c (struct patternlist):
27546         * lib/localename.c (struct hash_node):
27547         Use FLEXIBLE_ARRAY_MEMBER.
27548         * lib/fnmatch_loop.c (EXT):
27549         * lib/fts.c (fts_alloc):
27550         * lib/glob.c (glob_in_dir):
27551         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27552         * lib/localename.c (gl_lock_define_initialized):
27553         * lib/time_rz.c (tzalloc):
27554         Use FLEXSIZEOF instead of offsetof.
27555         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27556         Check that the size of the struct can be taken.
27557         * modules/flexmember (Files): Add lib/flexmember.h.
27558         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27559         Add flexmember.
27561 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27563         getprogname: port to Solaris 10
27564         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27565         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27566         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27568         stdalign: correct mistake in alignof doc
27569         Problem reported by Joseph Myers in:
27570         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27571         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27572         alignof(S) where S is a structure containing a flexible array
27573         member.  The Gnulib substitute does not support this, but C11 does.
27575 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27577         main.mk: remove sc_program_name, since there is no more need to
27578         use set_program_name in tools (getprogname is enough for most
27579         of the cases).
27580         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27581         * top/maint.mk (sc_program_name): Remove.
27583 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27585         Port tests away from progname, since modules that need the
27586         program name already depend on getprogname.
27587         * modules/acl-tests (Depends-on): Remove progname.
27588         * modules/argmatch (Depends-on): Likewise.
27589         * modules/argmatch-tests (Depends-on): Likewise.
27590         * modules/argp-tests (Depends-on): Likewise.
27591         * modules/argp-version-etc-tests (Depends-on): Likewise.
27592         * modules/array-list-tests (Depends-on): Likewise.
27593         * modules/array-oset-tests (Depends-on): Likewise.
27594         * modules/avltree-list-tests (Depends-on): Likewise.
27595         * modules/avltree-oset-tests (Depends-on): Likewise.
27596         * modules/avltreehash-list-tests (Depends-on): Likewise.
27597         * modules/carray-list-tests (Depends-on): Likewise.
27598         * modules/copy-file-tests (Depends-on): Likewise.
27599         * modules/exclude-tests (Depends-on): Likewise.
27600         * modules/fchownat-tests (Depends-on): Likewise.
27601         * modules/fdopendir-tests (Depends-on): Likewise.
27602         * modules/filenamecat-tests (Depends-on): Likewise.
27603         * modules/fstatat-tests (Depends-on): Likewise.
27604         * modules/fstrcmp-tests (Depends-on): Likewise.
27605         * modules/linked-list-tests (Depends-on): Likewise.
27606         * modules/linkedhash-list-tests (Depends-on): Likewise.
27607         * modules/mkdirat-tests (Depends-on): Likewise.
27608         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27609         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27610         * modules/obstack-printf-tests (Depends-on): Likewise.
27611         * modules/openat-tests (Depends-on): Likewise.
27612         * modules/parse-datetime-tests (Depends-on): Likewise.
27613         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27614         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27615         * modules/quotearg-simple-tests (Depends-on): Likewise.
27616         * modules/quotearg-tests (Depends-on): Likewise.
27617         * modules/rbtree-list-tests (Depends-on): Likewise.
27618         * modules/rbtree-oset-tests (Depends-on): Likewise.
27619         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27620         * modules/spawn-pipe-tests (Depends-on): Likewise.
27621         * modules/system-quote-tests (Depends-on): Likewise.
27622         * modules/uniname/uniname-tests (Depends-on): Likewise.
27623         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27624         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27625         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27626         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27627         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27628         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27629         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27630         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27631         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27632         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27633         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27634         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27635         * modules/unlinkat-tests (Depends-on): Likewise.
27636         * modules/version-etc-tests (Depends-on): Likewise.
27637         * modules/xalloc-die-tests (Depends-on): Likewise.
27638         * modules/xmemdup0-tests (Depends-on): Likewise.
27639         * modules/xprintf-posix-tests (Depends-on): Likewise.
27640         * modules/xvasprintf-tests (Depends-on): Likewise.
27641         * tests/test-argmatch.c: Do not include progname.h.
27642         (main) Stop calling set_program_name.
27643         * tests/test-argp-version-etc.c: Likewise.
27644         * tests/test-argp.c: Likewise.
27645         * tests/test-argv-iter.c: Likewise.
27646         * tests/test-array_list.c: Likewise.
27647         * tests/test-array_oset.c: Likewise.
27648         * tests/test-avltree_list.c: Likewise.
27649         * tests/test-avltree_oset.c: Likewise.
27650         * tests/test-avltreehash_list.c: Likewise.
27651         * tests/test-carray_list.c: Likewise.
27652         * tests/test-copy-acl.c: Likewise.
27653         * tests/test-copy-file.c: Likewise.
27654         * tests/test-exclude.c: Likewise.
27655         * tests/test-fchownat.c: Likewise.
27656         * tests/test-fdopendir.c: Likewise.
27657         * tests/test-filenamecat.c: Likewise.
27658         * tests/test-fstatat.c: Likewise.
27659         * tests/test-fstrcmp.c: Likewise.
27660         * tests/test-linked_list.c: Likewise.
27661         * tests/test-linkedhash_list.c: Likewise.
27662         * tests/test-mkdirat.c: Likewise.
27663         * tests/test-nonblocking-pipe-main.c: Likewise.
27664         * tests/test-nonblocking-socket-main.c: Likewise.
27665         * tests/test-obstack-printf.c: Likewise.
27666         * tests/test-openat.c: Likewise.
27667         * tests/test-parse-datetime.c: Likewise.
27668         * tests/test-pipe-filter-gi1.c: Likewise.
27669         * tests/test-pipe-filter-gi2-main.c: Likewise.
27670         * tests/test-pipe-filter-ii1.c: Likewise.
27671         * tests/test-pipe-filter-ii2-main.c: Likewise.
27672         * tests/test-quotearg-simple.c: Likewise.
27673         * tests/test-quotearg.c: Likewise.
27674         * tests/test-rbtree_list.c: Likewise.
27675         * tests/test-rbtree_oset.c: Likewise.
27676         * tests/test-rbtreehash_list.c: Likewise.
27677         * tests/test-sameacls.c: Likewise.
27678         * tests/test-set-mode-acl.c: Likewise.
27679         * tests/test-spawn-pipe-main.c: Likewise.
27680         * tests/test-system-quote-main.c: Likewise.
27681         * tests/test-unlinkat.c: Likewise.
27682         * tests/test-version-etc.c: Likewise.
27683         * tests/test-xalloc-die.c: Likewise.
27684         * tests/test-xfprintf-posix.c: Likewise.
27685         * tests/test-xmemdup0.c: Likewise.
27686         * tests/test-xprintf-posix.c: Likewise.
27687         * tests/test-xvasprintf.c: Likewise.
27688         * tests/uniname/test-uninames.c: Likewise.
27689         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27690         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27691         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27692         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27693         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27694         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27695         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27696         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27697         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27698         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27699         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27700         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27701         * tests/test-c-stack.c: (program_name): Do not define.
27702         (main): Do not set program_name.
27703         * tests/test-closein.c: Likewise.
27704         * tests/test-xstrtol.c: Likewise.
27705         * tests/test-yesno.c: Likewise.
27707 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27709         Port modules to use getprogname explicitly, instead of requiring
27710         progname to be used (or program_name to be provided).
27711         * lib/argmatch.c: Do not include progname.h.
27712         [TEST] (program_name): Do not define.
27713         [TEST] (main): Call getprogname instead of using program_name.
27714         * lib/c-stack.c: Do not include progname.h.
27715         (program_name): Do not define.
27716         (die): Call getprogname instead of using program_name.
27717         * lib/chdir-long.c: Do not include progname.h.
27718         [TEST_CHDIR] (main): Do not set program_name.
27719         * lib/error.c [!_LIBC]: Include progname.h.
27720         [!_LIBC] (program_name): Define using getprogname.
27721         * lib/euidaccess.c: Do not include progname.h.
27722         [TEST] (main): Do not set program_name.
27723         * lib/git-merge-changelog.c: Include getprogname.h instead of
27724         progname.h.
27725         (usage): Call getprogname instead of using program_name.
27726         (main): Likewise.  Stop calling set_program_name.
27727         * lib/group-member.c: Do not include progname.h.
27728         [TEST] (main): Do not set program_name.
27729         * modules/argmatch (Depends-on): Add getprogname.
27730         * modules/c-stack (Depends-on): Likewise.
27731         * modules/error (Depends-on): Likewise.
27732         * modules/git-merge-changelog (Depends-on): Likewise.
27733         Also remove progname.
27735 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27737         * NEWS: Document the deprecation of the 'progname' module.
27739 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27741         getprogname: new module
27742         This provides a LGPL module for getting the name of the current
27743         program, using the same API found on *BSD systems.
27744         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27745         * modules/getprogname: New files.
27746         * MODULES.html.sh (Misc): Add getprogname.
27748 2016-09-02  Jim Meyering  <meyering@fb.com>
27750         manywarnings: add -fno-common
27751         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27752         to the list.  Quoting the manual, "Compiling with -fno-common is
27753         useful on targets for which it provides better performance, or if
27754         you wish to verify that the program will work on other systems that
27755         always treat uninitialized variable declarations this way [putting
27756         it in the data section]."  If diffutils had been using this sooner,
27757         it would have prevented this duplicate declaration issue:
27758         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27760 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27762         parse-datetime: Fix typo.
27763         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27765 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27767         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27768         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27769         GCC 5 and 6 that have __builtin_sub_overflow but not
27770         __builtin_sub_overflow_p.  With the recent changes, these
27771         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27772         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27773         since the former needs just one runtime comparison whereas the
27774         latter needs two.
27776         strverscmp: sync with glibc
27777         Although this doesn't exactly synchronize with glibc
27778         byte-for-byte, it makes the code behave the same as glibc.
27779         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27780         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27781         difference shouldn't matter in practical use.  All uses changed
27782         back to isdigit.
27783         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27784         (next_state): Now unsigned char array; redo elements.
27785         (result_type): Now signed char array; redo elements.
27786         (__strverscmp): Fix glibc bug 9913 by using new states.
27787         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27789 2016-08-29  Jim Meyering  <meyering@fb.com>
27791         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27792         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27793         similarly to how it was done to intprops.h.
27795 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27797         intprops.h: port recent changes to GCC 6.2.0
27798         * lib/intprops.h (__has_builtin): Move earlier.
27799         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27800         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27801         the last argument can be null.  All uses changed.
27802         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27803         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27804         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27805         and it's not clear which GCC versions it works for.
27806         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27807         its definiens.
27809         intprops.h: use __typeof__ with GCC 7
27810         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27811         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27812         This avoids computing the expression's value (which might overflow!).
27814 2016-08-29  Jim Meyering  <meyering@fb.com>
27816         intprops.h, xalloc-oversized.h: work with gcc 7
27817         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27818         __builtin_mul_overflow each accept a NULL pointer as the third
27819         argument.  However in gcc 7, that is no longer accepted.
27820         Instead, one must use the "_p"-suffixed names, with which, the
27821         third parameter is no longer a pointer.
27822         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27823         the definition: not true for gcc 7 and subsequent.
27824         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27825         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27826         Provide new definitions for gcc 7 and subsequent.
27827         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27828         that works with gcc-7.
27830         intprops.h: fix missing-backslash problems
27831         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27832         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27834 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27836         intprops: fix paren typo on old platforms
27837         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27838         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27839         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27840         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27841         && !defined LLONG_MAX]:
27842         Remove stray paren.
27844         intprops: port to OpenVMS
27845         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27846         * doc/posix-headers/limits.texi: Document the problem.
27847         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27848         Define if not already defined.
27850 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27852         parse-datetime: improve debug implementation
27853         Follow-up to commit 12ad79069 ("add optional debug printing").
27854         Improve parse-datetime's debug implementation: remove macros,
27855         replace global debug flag variable with a function parameter,
27856         use nstrftime for formatting.
27857         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27858         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27859         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27860         debug flag. Existing interface 'parse_datetime' left unmodified.
27861         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27862         (struct parser_control): add 'parse_datetime_debug' member variable.
27863         (parse_datetime): Call new function 'parse_datetime2' without debug.
27864         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27865         pc.parse_datetime_debug variable as needed.
27866         (to_year): Accept new flags parameter, instead of using global variable.
27867         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27868         use struct 'debug' variable instead of global variable.
27869         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27870         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27871         correspnding functions directly instead of using macros.
27872         * modules/parse-datetime: Add gnulib's strftime module.
27874 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27876         c-strcase-tests: port to EBCDIC
27877         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27878         which assume ASCII encoding semantics to run only in ASCII
27879         mode, as they fail in EBCDIC.
27881         sigpipe-tests: fix typo
27882         * tests/test-sigpipe.sh: C, not B.
27884 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27886         canonicalize-lgpl: fix errno after malloca fails
27887         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27888         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27889         * lib/canonicalize-lgpl.c (__realpath):
27890         Don't assume malloca sets errno on failure.
27892 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27894         strtod: port errno handling to z/OS
27895         * lib/strtod.c (strtod): Save and restore errno more reliably.
27897 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27899         strtod: port to z/OS
27900         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27901         implementation.
27903 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27905         strtod: port to z/OS
27906         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27907         implementation.
27909         regex, string: rename to avoid '__string'
27910         * lib/regex.h, lib/string.in.h: Do not use the identifier
27911         '__string', as it is effectively reserved by string.h on z/OS.
27913         c-strcase-tests, wcwidth-tests: depend on c-ctype
27914         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27915         Add c-ctype.
27917 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27919         thread: port to z/OS
27920         * lib/glthread/thread.c, lib/glthread/thread.h:
27921         Rudimentary gl_thread support for z/OS.
27923         maint: port tests to z/OS errno behavior
27924         * tests/test-nonblocking-reader.h:
27925         * tests/test-nonblocking-writer.h:
27926         Accommodate z/OS errno code preferences. (I believe this should
27927         still be within spec; IBM is good at following the letter if not
27928         the spirit of such things.)
27930         maint: preprocessor changes to support z/OS
27931         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27932         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27933         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27934         * tests/test-nonblocking-pipe.h:
27936         fclose, strstr-simple, wchar: port to z/OS
27937         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27938         Changes to the Autoconf M4 code to support z/OS.  Note that
27939         fclose() is broken in a different way on z/OS than it is on other
27940         systems, thus the special-case in fclose.m4.
27942         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27943         * tests/test-iconv-utf.c, tests/test-iconv.c:
27944         Added appropriately conditional #pragmas so that the test strings
27945         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27946         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27947         addressed in a more portable way by simply rewriting all the ASCII
27948         literal characters as octal escapes, but then you would lose the
27949         partial readability that the strings have now. Also, iconv_open()
27950         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27952         c-strcase-tests, wcwidth-tests: port to EBCDIC
27953         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27954         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27955         * tests/test-wcwidth.c: Likewise.
27957 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27959         stdbool: don't require _Bool for C++
27960         Problem reported by David Seifert in:
27961         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27962         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27963         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27964         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27965         stricter about checking that bool and _Bool are compatible in C.
27967 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27969         getdelim: remove dependency on realloc-posix
27970         * lib/canonicalize-lgpl.c (alloc_failed)
27971         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27972         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27973         Use __set_errno where needed, for consistency.
27974         * lib/getdelim.c (alloc_failed): New function.
27975         (getdelim): Use it.
27977 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27979         parse-datetime: add optional debug printing
27980         Print parsing information, warnings, and errors to stderr.
27981         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27982         * lib/parse-datetime.y:
27983         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27984         (PROGRESS*): Same as DEBUG, for progress reporting.
27985         (dbg_printf): Print message to stderr, with 'date' prefix.
27986         (struct parser_control): Add 'debug_*_seen' variables.
27987         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27988         (debug_print_current_time, debug_print_relateive_time): Prints the
27989         current/relative date/time value of parser_control.
27990         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27991         (to_year): Warn about 2-digit year parsing.
27992         (yylex):   Warn about unrecognized words.
27993         (get_effective_timezone): Returns current timezone in minutes.
27994         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27995         clearly and unambigiously as possible.
27996         (debug_mktime_not_ok): Print detailed information about failed
27997         date/time values.
27998         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27999         PROGRESS messages for status messages.
28000         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28002 2016-08-06  Jim Meyering  <meyering@fb.com>
28004         tests/init.sh: exclude dash with bad "local" semantics
28005         * tests/init.sh (gl_shell_test_script_): Add a function to
28006         eliminate a shell like "dash" (unlike bash, zsh) that has
28007         surprising/risky "local var='...'" semantics.  Inspired by
28008         the problem and discussion in https://bugs.gnu.org/24116#11.
28010 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28012         maint.mk: expand the prohibit_doubled_word regex
28013         This check has a static list of words that are checked for
28014         repetitions.  Expand it before running the perl script to
28015         avoid using expensive captures.  This decreases the cost
28016         for libvirt from 1.66s to 0.66s.
28017         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28018         (sc_prohibit_doubled_word): Use it.
28020 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28022         useless-if-before-free: skip non-matching lines early
28023         * build-aux/useless-if-before-free: First match each line with the
28024         simple/quick /\bif\b/ and reject if there is no match. This often
28025         saves the cost of the much more involved regular expression.
28026         For libvirt, this decreases the cost from 1.44s to 1.02s.
28028 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28030         maint.mk: speed up sc_po_check
28031         sc_po_check would skip files based on their names, or on the
28032         existence of files with derived names. Rewrite it to use perl
28033         instead of shell to make the check faster.
28034         * top/maint.mk (perl_translatable_files_list_): Define.
28035         (sc_po_check): Use it.
28037 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28039         maint.mk: speed up require_config_h_first
28040         Instead of spawning three processes per file,
28041         rewrite the check in perl and run it once for all the files.
28042         * top/maint.mk (perl_config_h_first_): Define.
28043         (sc_require_config_h_first): Use it in place of shell code.
28045 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28047         maint.mk: speed up sc_po_check
28048         sc_po_check would skip files based on their names, or on the
28049         existence of files with derived names. Rewrite it to use perl
28050         instead of shell to make the check faster.
28051         * top/maint.mk (perl_translatable_files_list_): Define.
28052         (sc_po_check): Use it.
28054 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28056         obstack: pacify GCC 6 with -Wnull-dereference
28057         Problem reported by Assaf Gordon in:
28058         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28059         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28060         Declare with __attribute_noreturn__.
28061         * lib/obstack.h (__attribute_noreturn__): New macro.
28063 2016-07-13  Eric Blake  <eblake@redhat.com>
28065         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28066         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28067         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28069 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28071         doc: mention glibc SSIZE_MAX buglet
28072         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28074 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28076         printf-posix: Fix mingw build
28077         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28078         expression for detecting C symbol prefixes but forgot to qoute square
28079         brackets in the command line arguments for grep.  That way when
28080         building with mingw the condition was false although it ought to be
28081         true instead.  In particular scenarios this led to the following
28082         compile error:
28084             Cannot export rpl_printf: symbol not found
28085             Cannot export rpl_scanf: symbol not found
28086             collect2: error: ld returned 1 exit status
28088         Fix this by properly quoting square brackets.
28090 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28092         mktime: call tzset as per POSIX
28093         Problem reported by Ludovic Courtès in:
28094         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28095         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28096         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28098 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28100         fts: handle readdir() errors
28101         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28102         but also upon error when it will also set errno.  Therefore
28103         flag the error case from readdir().  We treat the case where
28104         no items are read the same as if the dir can't be accessed,
28105         i.e. by setting fts_errno to FTS_DNR.
28107 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28109         intprops: port better to GCC 7
28110         GCC 7 __builtin_add_overflow supports a new usage form, where the
28111         last argument is a null pointer, and which merely returns 1 if an
28112         overflow would occur.  This is a constant expression if all
28113         arguments are constants, and should generate faster code when code
28114         needs to be generated.
28115         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28116         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28117         Use builtin operations if available.
28118         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28119         operations are available, as it's almost surely faster.
28121 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28123         intprops-test: port to GCC 6
28124         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28125         since the bug is not fixed in GCC 6.1.
28127 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28129         xalloc-oversized: port to GCC 7; fewer warnings
28130         GCC 7 will have a better way to deal with integer overflow.
28131         Plus, fix a warnings problem reported by Tim Ruehsen in:
28132         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28133         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28134         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28135         For GCC 5, use __xalloc_oversized if both args are constants,
28136         or if pedantic.
28138 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28140         regex: port to Sun C
28141         Reported by Daiki Ueno.
28142         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28143         __restrict, in prototype.  This fixes a problem I introduced in
28144         the 2016-02-19 merge from glibc.
28146 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28148         stdbool: Restore __bool_true_false_are_defined check
28149         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28150         __bool_true_false_are_defined is still defined, even with C++11.
28152 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28154         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28155         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28157 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28159         Use GCC_LINT, not lint
28160         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28161         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28162         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28163         Document problem with lint and _Noreturn.
28164         * lib/diffseq.h (IF_LINT, IF_LINT2):
28165         * lib/fts.c (sccsid):
28166         * lib/getndelim2.c (IF_LINT):
28167         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28168         (gl_linked_iterator_from_to):
28169         * lib/gl_anytree_list2.h (gl_tree_iterator)
28170         (gl_tree_iterator_from_to):
28171         * lib/gl_anytree_oset.h (gl_tree_iterator):
28172         * lib/gl_array_list.c (gl_array_iterator)
28173         (gl_array_iterator_from_to):
28174         * lib/gl_array_oset.c (gl_array_iterator):
28175         * lib/gl_carray_list.c (gl_carray_iterator)
28176         (gl_carray_iterator_from_to):
28177         * lib/idcache.c:
28178         * lib/inet_ntop.c (IF_LINT):
28179         * lib/regcomp.c (build_charclass_op, create_tree):
28180         * lib/regex_internal.c (re_acquire_state)
28181         (re_acquire_state_context):
28182         * lib/trigl.c (rcsid):
28183         * lib/trim.c (IF_LINT):
28184         * lib/vasnprintf.c (IF_LINT):
28185         * lib/verify.h (assume):
28186         Treat GCC_LINT like lint.
28188 2016-05-29  Bruno Haible  <bruno@clisp.org>
28190         secure_getenv: Port to many more platforms.
28191         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28192         functions.
28193         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28194         for non-BSD Unix platforms and for native Windows.
28195         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28196         Prompted by a request from Nikos Mavrogiannopoulos.
28198 2016-05-27  Eric Blake  <eblake@redhat.com>
28200         canonicalize: Fix broken probe for realpath.
28201         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28202         in logic introduced in 54615b95.
28204 2016-05-26  Eric Blake  <eblake@redhat.com>
28206         unsetenv: relax to LGPLv2+
28207         * modules/unsetenv (License): Match setenv license.
28209 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28211         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28212         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28213         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28214         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28215         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28216         (generate_html, generate_info, generate_tex, outdir)
28217         (source_extra, split, srcfile, texarg): Move above 'version'.
28218         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28220 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28222         manywarnings: update for GCC 6.1
28223         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28224         Add GCC 6.1 options that apply to C.
28225         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28226         do not apply to C, are obsolescent, etc.
28228 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28230         glob: size_t overflow checks
28231         * lib/glob.c (__has_builtin): New macro.
28232         (size_add_wrapv, glob_use_alloca): New static functions.
28233         (glob, glob_in_dir): Check for size_t overflow in several places,
28234         and fix some size_t checks that were not quite right.
28236         glob: don't assume INT_MAX < SIZE_MAX
28237         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28238         latter is not portable to (probably theoretical) hosts where
28239         SIZE_MAX <= INT_MAX.
28241 2016-05-09  Bruno Haible  <bruno@clisp.org>
28243         Fix undefined behaviour in gettext.h.
28244         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28245         pointer's value after the storage it points to has been freed.
28246         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28247         Spotted by Coverity.
28249 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28251         git-version-gen: avoid undefined shift
28252         Problem reported by Mosè Giordano in:
28253         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28254         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28255         with --prefix or --fallback but without a later argument.  While
28256         we're at it, omit unnecessary quotes.
28258 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28260         glob: merge glibc changes into lib/glob.c
28261         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28262         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28263         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28264           struct dirent [BZ #19779]
28265         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28266           callback gl_readdir
28267         2015-10-20 Convert miscellaneous function definitions to prototype style
28268         2015-10-20 Convert 113 more function definitions to prototype style
28269           (files with assertions)
28270         2015-06-12 Fix getlogin_r namespace (bug 18527).
28271         2014-02-10 Use glibc_likely instead __builtin_expect.
28272         2013-10-20 When glob pattern contains a trailing slash match only
28273           directories. Fixes bug 10278.
28274         2013-09-04 glob: silence -Wattribute warnings
28275         2013-06-07 Avoid use of "register" as optimization hint.
28276         2012-09-25 Use size_t instead of int for internal variables in glob
28277           (bug 14621)
28278         2011-07-20 Check for overflows in expressions
28279         2011-05-28 Remove unused variable
28280         2011-05-22 Add a few more alloca size checks
28281         2010-03-27 Whitespace fixes
28282         2010-03-27 Fix one more issue with the glob patch
28283         2010-03-24 Fix glob with empty pattern
28284         2008-05-27 Remove useless more "if" tests before "free"
28285         * modules/glob (Depends-on): Add stdint.
28287 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28289         mktime: port to stricter signed overflow checking
28290         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28291         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28292         instead of merely for INT_MAX * 2.  In practice platforms that
28293         do the latter also do the former.
28294         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28295         (shr): New static function, replacing SHR.  All uses changed.
28296         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28297         and TIME_T_MAX.  All uses changed.
28298         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28299         Use long_int, not time_t.
28300         (long_int_avg): New static function, replacing time_t_avg.
28301         All uses changed.  Round toward positive infinity, as that
28302         generates slightly better code.
28303         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28304         by INT_ADD_WRAPV.
28305         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28306         (convert_time): New static function.
28307         (ranged_convert): Use it
28308         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28309         Use simpler test for loop exit.
28310         (__mktime_internal): Store negative of guessed offset, to simplify
28311         overflow checking.  Remove no-longer-needed test for small time_t
28312         overflows.
28314         mktime: speed up DEBUG_MKTIME benchmarks
28315         Call tzset just once, at the start, rather than for every test
28316         case.  This lets us measure the CPU cost of mktime as opposed to
28317         that of tzset.  This is relevant when TZ is not set and glibc is
28318         being used.  This speeds up tests by a factor of 40 on my Fedora
28319         23 x86-64 platform.
28320         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28321         to call tzset and as a sanity check.  Later on, use localtime_r
28322         instead of localtime.
28324         mktime: resurrect DEBUG_MKTIME testing
28325         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28326         Include <string.h>, for strcmp.
28328         mktime: simplify DEBUG_MKTIME
28329         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28330         Simplify later usage accordingly.
28332         Port mktime_internal offset to unsigned time_t
28333         This avoids some assumptions about wraparound arithmetic on
28334         signed integer overflow.
28335         * lib/mktime-internal.h (mktime_offset_t): New type.
28336         (mktime_internal): Use it in decl.
28337         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28339         * lib/mktime.c (__mktime_internal, localtime_offset):
28340         * lib/timegm.c (timegm): Use it.
28341         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28342         (gl_FUNC_MKTIME): Require it.
28344 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28346         xstrtol: prohibit monstrosities like "1bB"
28347         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28348         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28349         "B" only if the first suffix needs a base.
28350         * tests/test-xstrtol.sh: Test this.
28352 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28354         xstrtod: reinstate setting of *result upon ERANGE
28355         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28356         the returned limits upon ERANGE, so allow and document that.
28358 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28360         xstrtod: modify *result only if no errors
28361         * lib/xstrtod.c (XSTRTOD).
28363 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28365         btowc: document problems in C locale
28366         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28367         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28369 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28371         mktime: improve integer overflow checking
28372         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28373         (WRAPV): Remove; no longer needed.
28374         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28375         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28376         Remove.  Use intprops.h defns instead.
28377         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28378         Use bool for Boolean, for clarity.
28379         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28380         detect integer overflow.
28381         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28383         intprops: check two's complement assumption
28384         Suggested by Eric Blake in:
28385         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28386         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28387         short, int, long, and (if available) long long are two's complement.
28388         * modules/intprops (Depends-on): Add 'verify'.
28390         intprops, mktime, strtol: assume two's complement
28391         These macros were not portable to every conforming C11 ones'
28392         complement platform.  It's not worth the hassle of porting to some
28393         platforms that use ones' complement or signed magnitude, as such
28394         platforms are almost purely theoretical nowadays and porting even
28395         to some of them makes the code harder to review for little
28396         practical benefit.  Problem reported by Florian Weimer in:
28397         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28398         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28399         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28400         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28401         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28402         (TYPE_SIGNED_MAGNITUDE):
28403         Remove.  All uses rewritten to assume two's complement, which is
28404         all we can reasonably test nowadays anyway.
28405         * top/maint.mk (_intprops_names): Remove the removed macros.
28407 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28409         stdint: port to strict C11 left shift
28410         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28411         Pacify clang -Wshift-negative-value, which should be an issue only
28412         on clang setups where stdint.h does not conform to C11 or to C++11.
28413         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28415 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28417         mbrtowc: work around glibc bug#19932
28418         Fix mbrtowc so that it never returns -1 in the C locale,
28419         as this conflicts with a future version of POSIX
28420         http://austingroupbugs.net/view.php?id=663#c2738
28421         and causes problems with GNU grep: http://bugs.gnu.org/23234
28422         See glibc bug 19932:
28423         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28424         * doc/posix-functions/mbrlen.texi (mbrlen):
28425         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28426         Document the glibc bug.
28427         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28428         Include hard-locale.h, locale.h.
28429         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28430         if the bug is possible.
28431         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28432         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28433         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28434         * modules/mbrtowc (Depends-on): Add hard-locale.
28435         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28436         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28437         * tests/test-mbrtowc5.sh: New file.
28439 2016-04-03  Pedro Alves  <palves@redhat.com>
28441         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28442         When gnulib is configured in C++ mode for a system with a working C99
28443         implementation of stdint.h that predates C++11, gnulib ends up
28444         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28445         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28446         MinGW is LLP64.  Instead of trying to detect the right types, detect
28447         good-enough-pre-C++11 stdint.h and in such case define
28448         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28449         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28450         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28451         conforms to C99.  If it does, check whether it hides symbols
28452         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28453         does, define those macros in config.h.
28455 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28457         argp: merge changes from glibc
28458         Among other things, this should fix problems found by a Coverity
28459         scan and reported by Andrei Borzenkov:
28460         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28461         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28462         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28463         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28464         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28465         * lib/argp.h:
28466         Merge changes from glibc.
28467         * tests/test-argp-2.sh: Adjust to match new behavior.
28469 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28471         stddef: support configuring with g++
28472         Problem reported by Ángel González in:
28473         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28474         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28475         Do not define if _GCC_MAX_ALIGN_T is defined.
28477 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28479         test-framework-sh: minor cleanups
28480         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28481         since strictly speaking POSIX requires this.
28482         (setup_): Do not use the variable 'fail', as that makes the
28483         trace output harder to read ('fail' is typically used by
28484         tests to mean the test failed).  Treat // portably.
28485         Check that new directory is not merely a sibling of the tmp dir.
28486         Avoid unnecessary invocation of tr.
28488         test-framework-sh: revert port to NetBSD 7.0
28489         It was a false alarm; I misinterpreted Assaf Gordon's report.
28490         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28491         Restore.
28492         (test_dir_): Adjust to mktempd_ change.
28493         (mktempd_): Restore 2nd arg.  Use -t again.
28494         (base_template_, template_, nx_): Resurrect old code.
28496         Port better to Alpine Linux
28497         Its diff implementation does not support -c, but does support -U3.
28498         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28499         * tests/init.sh (diff_opt_): New var.
28500         (compare_): Prefer diff -U3 to diff -c to plain diff.
28502 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28504         test-framework-sh: port to NetBSD 7.0
28505         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28506         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28507         Remove.  All uses removed.
28508         (test_dir_): Adjust to mktempd_ change.
28509         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28510         (base_template_, template_, nx_): Simplify by hardcoding.
28512 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28514         gitlog-to-changelog: suppress ignored chatter
28515         * build-aux/gitlog-to-changelog: Do not warn about skipping
28516         an SHA if it would have been ignored anyway.
28518 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28520         setlocale: add "sv" to Windows language table
28521         * lib/setlocale.c (language_table) [W32]: Add "sv".
28522         Reported in <https://savannah.gnu.org/bugs/?44588>.
28524 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28526         sys_select: port to new Cygwin
28527         Problem reported by Ken Brown in:
28528         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28529         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28530         diagnostics.
28532 2016-03-17  Jim Meyering  <meyering@fb.com>
28534         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28535         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28536         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28537           test-userspec.c:176:9: error: statement is indented as if it were \
28538             guarded by... [-Werror=misleading-indentation]
28539                    {
28540                    ^
28541           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28542                  if (!diag && !T[i].result)
28543                  ^~
28545 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28547         time_rz: port to clang -Wunused-const-variable
28548         * lib/time_rz.c (TZ): Remove.  All uses removed.
28550         std-gnu11: improve clang support
28551         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28552         2016-03-15 Also try clang
28553         2016-03-15 Port C11 and C++11 testing to clang
28555         select: port more to Intel 2016.1.150 compiler
28556         Problem reported by Balázs Hajgató in:
28557         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28558         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28560 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28562         select: try to port to 2016.1.150 compiler
28563         Problem reported by Balázs Hajgató in:
28564         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28565         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28566         POSIX specifies 'restrict'.
28568 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28570         localename-tests: memory allocation fixes
28571         * tests/test-localename.c (test_locale_name)
28572         (test_locale_name_thread): Don't call freelocale on a locale
28573         that was the base of a successful newlocale, as that
28574         results in a double free.  Problem reported by Assaf Gordon.
28575         (test_locale_name_thread): Free saved names after use, to pacify
28576         gcc -fsanitize=address.
28578 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28580         intprops: make .h file license match module
28581         * lib/intprops.h: Change the license wording to match glibc format.
28582         This is what is in modules/intprops anyway.  See:
28583         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28585 2016-03-08  Eric Blake  <eblake@redhat.com>
28587         acl: fix missing return on Cygwin
28588         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28589         fall off end of function. Fixes http://bugs.gnu.org/22949
28591 2016-03-05  Bruno Haible  <bruno@clisp.org>
28593         extern-inline: port to PGI CC
28594         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28595         keyword 'inline'.
28596         Reported by Adam James Stewart in:
28597         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28599 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28601         signbit: port back to pre-C++11 GCC
28602         * lib/math.in.h (signbit): Do previous change only if
28603         __cplusplus < 201103.  See Jonathan Wakely in:
28604         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28606 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28608         mountlist: recognize autofs-mounted remote file systems, too
28609         Originally reported at: https://bugzilla.redhat.com/1309247
28610         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28611         "-hosts" because it is used by autofs to mount remote file systems.
28613 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28615         signbit: port to C++ with GCC 6
28616         * lib/math.in.h (signbit) [__cplusplus]:
28617         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28618         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28620         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28622         regex: make it closer to libc
28623         Make Idx a signed type, rather than possibly unsigned.
28624         The unsignedness was not really buying us anything, since the code
28625         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28626         it signed allows us to use -1 and -2 with abandon, like libc does,
28627         thus lessening the number of differences between gnulib and libc.
28628         Also, it should help avoid gratuitous warnings like the one
28629         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28630         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28633         regex: merge patches from libc
28635         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28636         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28637         Convert miscellaneous function definitions to prototype style.
28638         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28639         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28640         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28641         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28642         (re_search_internal):
28643         Convert to prototype-style function definition.
28644         Use internal_function for internal functions.
28646 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28648         stdalign: port to older HP and IBM cc
28649         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28650         C compilers, by checking their version numbers.  These version
28651         numbers appear in MariaDB and in Qt code that dates way back and
28652         that conditiionally uses the 'aligned' attribute.
28654 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28656         stdalign: port to clang 3.7.0
28657         Problem reported by Herbert J. Skuhra in:
28658         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28659         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28660         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28661         https://llvm.org/bugs/show_bug.cgi?id=26547
28663 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28665         readdir_r: now obsolescent
28666         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28667         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28669 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28671         misc: port better to gcc -fsanitize=address
28672         Without these patches, ./configure CFLAGS='-fsanitize=address'
28673         would compute incorrect values.  This patch fixes some (but not all)
28674         test failures with recent glibc, with this configuration.
28675         * m4/acl.m4 (gl_ACL_GET_FILE):
28676         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28677         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28678         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28681         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28682         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28683         * m4/getline.m4 (gl_FUNC_GETLINE):
28684         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28685         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28686         * m4/regex.m4 (gl_REGEX):
28687         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28688         * tests/test-calloc-gnu.c (main):
28689         * tests/test-duplocale.c (main):
28690         * tests/test-getgroups.c (main):
28691         * tests/test-getline.c (main):
28692         * tests/test-inttostr.c (main):
28693         * tests/test-localename.c (test_locale_name)
28694         (test_locale_name_thread, test_locale_name_environ)
28695         (test_locale_name_default):
28696         * tests/test-regex.c (main):
28697         * tests/test-setlocale1.c (main):
28698         * tests/test-stat.h (test_stat_func):
28699         Free heap-allocated storage before exiting.
28700         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28701         Don't match *_foo symbols inserted by AddressSanitizer.
28702         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28704 2016-02-02  Jim Meyering  <meyering@fb.com>
28706         verify-tests: also remove stray test-verify.Tpo
28707         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28708         to remove the test-verify.Tpo file that is left behind by
28709         the automake-generated rule upon compilation failure.
28710         Otherwise, that .Tpo file would cause a failed "make distcheck"
28711         at least for grep.
28713 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28715         std-gnu11: new module
28716         This makes it easier for applications to prefer C11 and C++11
28717         to older variants, when compiling C and C++ code.
28718         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28719         a nontrivial chunk of GPLed Autoconf source code.
28720         * COPYING: Mention the m4/*.m4 copyright situation.
28721         * MODULES.html.sh (std-gnu11): New module.
28722         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28724 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28726         get-permissions, strftime: fix grammar in comments
28727         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28728         some grammar fixes Alan Mackenzie made to GNU Emacs.
28730 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28732         gettext: mark as obsolete
28733         Suggested by Paul Eggert in:
28734         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28735         * modules/gettext (Status): Mark as obsolete.
28736         (Notice): Suggest to use 'gettext-h' instead.
28737         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28738         the 'gettext' module.
28740 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28742         gnulib-tool: don't give up on ln -s so easily
28743         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28744         because an earlier one failed.  The targets could be on different
28745         file systems.  Problem reported by KO Myung-Hun in:
28746         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28748         closedir: fix OS/2-related typos
28749         Problem reported by KO Myung-Hun in:
28750         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28751         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28752         in the last couple of changes.
28754 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28756         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28757         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28758         copying a directory.
28760 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28762         regex: treat [x] as x if x is a unibyte encoding error
28763         Problem reported by Aharon Robbins in:
28764         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28765         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28766         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28768         closedir, dirfd, opendir: port to OpenSolaris 5.10
28769         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28770         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28771         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28772         Don't use ${word##pat} substitution, as it doesn't work in
28773         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28774         http://bugs.gnu.org/22443#11
28776 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28778         bootstrap: use American spelling
28779         * build-aux/bootstrap: Honor American spelling.
28781 2016-01-22  Karl Berry  <karl@freefriends.org>
28783         * doc/posix-functions/localtime.texi,
28784         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28786 2016-01-21  Bruno Haible  <bruno@clisp.org>
28788         hash-pjw-bare: fix comment
28789         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28791         wcwidth: Replace also on OpenBSD 5.8
28792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28793         * doc/posix-functions/wcwidth.texi: Update.
28795 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28797         gnu-web-doc-update: fix addition of new files
28798         If there were already added (emnpty) dirs,
28799         then cvs aborts the add with the message:
28800           cvs [add aborted]: there is a version in <./dirname> already
28801         * build-aux/gnu-web-doc-update: Add directories separately
28802         to the addition of files, to avoid the above issue
28803         impacting the addition of files.
28805 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28807         utimens-tests: avoid pulling gettext .m4 files
28808         Although this is not the right fix to the original problem:
28809         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28810         it makes it possible again for consumer projects to use arbitrary
28811         version of gettext, through the steps described at:
28812         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28813         See here for details:
28814         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28815         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28816         'gettext'.
28817         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28818         'gettext'.
28820 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28822         regex: pacify static checkers
28823         Problem and draft fix reported by Aharon Robbins in:
28824         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28825         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28826         Clear memory to pacify static checkers.
28828         regex: fix [ diagnostic
28829         Problem and fix reported by Aharon Robbins in:
28830         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28831         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28833         regex: fix memory leaks
28834         Problem and draft fix reported by Aharon Robbins in:
28835         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28836         * lib/regcomp.c (build_range_exp, build_charclass_op)
28837         * lib/regex_internal.c (re_dfa_add_node):
28838         Fix memory leak on failure.
28840 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28842         fts: don't unconditionally use leaf optimization for NFS
28843         NFS st_nlink are not accurate on all implementations,
28844         leading to aborts() if that assumption is made.
28845         See <https://bugzilla.redhat.com/1299169>
28846         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28847         the white list, and document the issue.
28849 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28850             KO Myung-Hun  <komh@chollian.net>
28852         gnulib-tool: don't assume ln -s works
28853         * gnulib-tool (func_ln_s): New function.
28854         (func_ln): Use it.
28856 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28858         utimes: detect utimes() correctly on OS/2 kLIBC
28859         utimes() of OS/2 kLIBC has some limitations.
28860         1. OS/2 itself supports a file date since 1980 year in local time.
28861         2. OS/2 itself supports only even seconds for a file time.
28862         3. utimes() of OS/2 kLIBC does not work on an opened file.
28863         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28864         * doc/posix-functions/utimes.texi: Document the above limitations of
28865         utimes() on OS/2 kLIBC.
28867 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28868             KO Myung-Hun  <komh@chollian.net>
28870         openat_proc_name: port to OS/2 kLIBC
28871         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28872         instead of /proc/self/fd.
28873         * lib/openat-proc.c (openat_proc_name):
28874         Don't assume file name length is less than INT_MAX.
28875         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28877 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28879         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28880         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28881         definitions of intptr_t and uintptr_t (which use int and unsigned)
28882         to avoid clashes with declarations of system functions like sbrk.
28883         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28884         _INTPTR_T_DECLARED before defining them.
28886         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28887         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28888         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28889         Declare on kLIBC.
28890         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28891         fd associated with dirp.
28892         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28893         dirp_fd_list.
28894         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28895         (dirfd): Implemented for kLIBC.
28896         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28897         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28898         succeeds.
28899         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28901         (REPLACE_DIRFD): Define to 1 if replaced.
28902         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28903         * modules/closedir (Depends-on): Add dirfd.
28904         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28905         condition.
28906         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28907         * modules/opendir (Depends-on): Add dirfd.
28909         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28910         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28911         * lib/dup.c (dup_nothrow): New.
28912         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28913         (klibc_dup2): New.
28914         * lib/fcntl.c (klibc_fcntl): New.
28915         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28916         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28917         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28918         fd.
28920         pipe_filter_ii_execute: port to OS/2 kLIBC
28921         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28922         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28923         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28924         Reuse Win32 code on OS/2 kLIBC.
28925         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28926         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28928         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28929         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28930         static inline function.  The implementation of wcwidth in wcwidth.c
28931         causes a "conflicting types" error.
28932         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28934         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28935         spawn() on OS/2 kLIBC is not silly like one on Windows
28936         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28937         empty string on OS/2 kLIBC.
28939         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28940         On OS/2 kLIBC, select() works only on sockets.
28941         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28943         binary-io: don't put fd in binary mode if it is a console on EMX
28944         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28945         a console on EMX.
28947 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28949         doc: mention unfixed issues with unsupported localtime() values
28950         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28951         returns nonsense for localtime(2^56).
28952         * doc/posix-functions/localtime_r.texi: Likewise.
28954 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28956         doc: mention setlocale() issues on OpenBSD
28957         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28958         never fails, and the need to check categories individually.
28960 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28962         sig2str: list all signals on FreeBSD >= 7
28963         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28964         to the maximal statically defined signal value.
28965         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28966         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28967         where available, even when NSIG is defined.
28969 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28971         acl-permissions: port to USE_ACL==0 platforms
28972         I ran into this problem when building bleeding-edge GNU Emacs
28973         with gcc -fsanitize=address on Fedora 23.  On this platform
28974         the ACL library does not pass the 'configure' test and Emacs
28975         then does not build due in part to what appear to be typos in the
28976         ACL part of Gnulib.
28977         * lib/acl-internal.c (free_permission_context):
28978         * lib/acl-internal.h (struct permission_context):
28979         Test whether USE_ACL is nonzero, not whether it is defined.
28981 2016-01-12  Martin Sebor  <msebor@redhat.com>
28983         mktime: rename macro to avoid glibc clash
28984         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28985         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28987 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28989         Port "$@" to OpenIndiana ksh93
28990         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28991         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28992         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28993         bug long-dead shells, so remove the workaround.
28994         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28995         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28996         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28997         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28998         Use "$@" instead of ${1+"$@"}.
29000         Port Universal Time settings to strict POSIX
29001         * build-aux/announce-gen, build-aux/bootstrap:
29002         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29003         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29004         * build-aux/gnupload, build-aux/mkinstalldirs:
29005         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29006         * build-aux/update-copyright, build-aux/useless-if-before-free:
29007         * build-aux/vc-list-files, tests/test-strftime.c:
29008         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29009         but POSIX says the behavior of TZ="UTC" is undefined.
29011 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29013         msvc-inval: fix problem with unset shell var
29014         Problem reported by Karl Berry in:
29015         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29016         * modules/msvc-inval (Depends-on):
29017         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29018         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29020 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29022         tests: for compare_(), use cmp -s where available
29023         * tests/init.sh (compare_): Only fall back to cmp without
29024         the POSIX defined -s option, where this is not available.
29026 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29028         version-etc: new year
29029         * build-aux/gendocs.sh (version):
29030         * doc/gendocs_template:
29031         * doc/gendocs_template_min:
29032         * doc/gnulib.texi:
29033         * lib/version-etc.c (COPYRIGHT_YEAR):
29034         Update copyright dates by hand in templates and the like.
29035         * all files: Run 'make update-copyright'.
29037 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29039         human: fix output buffer overrun by 1
29040         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29041         calculation that could lead to a one-byte buffer overrun.
29043 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29045         maint: fix operator precedence in mbrtowc test
29046         This is a fix for test breakage introduced by commit 45228d96; the
29047         equality expression must be parenthesized when negated with '!',
29048         otherwise we always get:
29050           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29052         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29053         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29055 2015-12-23  James Youngman  <jay@gnu.org>
29057         regexprops-generic: update from regex.h
29058         * doc/regexprops-generic.texi: update by running the regexprops binary
29059         from findutils (the command line is 'regexprops "Regular Expressions"
29060         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29061         gnulib with GNU grep had made this document out-of-date.
29063 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29065         strftime-tests: avoid false failure on OS X
29066         * tests/test-strftime.c (struct localtime_rz_test): Add an
29067         ahistorical member which is used to warn rather than fail
29068         when tm_isdst isn't set for such entries.  This is the case for
29069         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29071 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29073         fts: ensure leaf optimization is used for NFS
29074         NFS provides usable dirent.d_type but not necessarily for all entries
29075         of large directories.  See <https://bugzilla.redhat.com/1252549>
29076         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29078 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29080         fts: enable leaf optimization for XFS
29081         XFS provides usable dirent.d_type only for DT_DIR,
29082         but the noleaf optimization still applies.
29083         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29085 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29087         intprops: comment fix
29088         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29089         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29091         intprops-test: work around GCC bug 68971
29092         Problem reported by Pádraig Brady in:
29093         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29094         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29095         (main): Add a case that better tests 64-bit long in this area.
29097 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29099         gnulib-tool: allow multiple --local-dir usage
29100         * gnulib-tool: Use --local-dir to construct compound
29101         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29102         PATH_SEPARATOR early.
29103         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29104         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29105         func_determine_path_separator because that needs to be detected
29106         earlier now.
29107         (func_determine_path_separator): New function.
29108         (func_path_foreach, func_path_foreach_inner): New functions.
29109         (func_path_prepend, func_path_append): Likewise.
29110         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29111         (func_lookup_file, func_all_modules): Use new functions to work
29112         with local_gnulib_path.
29113         (func_modules_in_dir, func_exists_module): New callbacks for
29114         func_path_foreach.
29115         (func_exists_module, func_get_tests_module): Likewise.
29116         (func_is_local_file, func_should_symlink): New helper methods.
29117         (func_add_file, func_update_file): Use new func_should_symlink
29118         instead, DRY.
29119         (func_reconstruct_cached_local_gnulib_path): New helper.
29120         (func_reconstruct_cached_dir): New callback.
29121         (func_import): The cached_local_gnulib_dir renamed to
29122         cached_local_gnulib_path similarly to local_gnulib_dir.
29123         Use new func_reconstruct_cached_local_gnulib_path.
29124         (func_count_relative_local_gnulib_path): New sub-method.
29125         (func_create_testdir): Use func_should_symlink, DRY.
29126         (func_create_megatestdir): Use new functions to work with
29127         local_gnulib_path correctly.
29128         (func_append_local_dir): New helper.
29130 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29132         fix freadptr to work with ungetc on all uClibc configs
29133         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29134         where GNU coreutils cut(1) generates invalid output on uClibc
29135         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29136         * lib/freadptr.c (freadptr): Return NULL if there are
29137         ungotten chars.  In this case freadseek() will iterate
29138         again to process the ungotten character.
29140 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29142         xalloc-oversized: improve performance with GCC 5
29143         * lib/xalloc-oversized.h (xalloc_oversized):
29144         Improve performance with GCC 5 by using __builtin_mul_overflow.
29146 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29148         intprops: new public macro EXPR_SIGNED
29149         Emacs can use this macro, so make it public.
29150         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29151         'Integer Type Determination', since some of these macros apply
29152         to non-integer types.  Clarify what kinds of constant expressions
29153         these macros return.  Say when the arguments can be non-integers.
29154         Mention newly published macro EXPR_SIGNED.
29155         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29156         make it public.  All uses changed.
29158         intprops: fix typo in clang port
29159         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29160         '__builtin_add_overflow' that is not caught by compiler.
29162 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29164         test-timespec: fix typo in previous change
29165         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29167         timespec-sub: fix overflow bug; add tests
29168         * lib/timespec-add.c (timespec_add):
29169         * lib/timespec-sub.c (timespec_sub):
29170         Work even if time_t is narrower than int (a theoretical
29171         possibility).  Redo code for a bit more clarity.
29172         * lib/timespec-sub.c (timespec_sub):
29173         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29174         * modules/timespec-tests, tests/test-timespec.c: New files.
29176         intprops-test: suppress -Woverlength-strings
29177         Problem reported by Pádraig Brady in:
29178         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29179         It is not worth the hassle to port this test to compilers that
29180         cannot handle long strings in diagnostics.
29181         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29183 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29185         quotearg: add quotearg_n_style_colon()
29186         This quotes with default options of the specified style,
29187         but with quoting enabled for instances of ':'.
29188         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29189         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29191 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29193         intprops: revise _WRAPV macros, revert _OVERFLOW
29194         The incompatible changes to the _OVERFLOW macros were too much of
29195         a hassle in practice, so revert them.  Instead, change the new
29196         _WRAPV macros to make them closer in behavior to GCC 5's new
29197         builtin_add_overflow etc. functions.  No other software was using
29198         these newly-added macros yet, so this should be OK.
29199         * NEWS: Revert previous change, since the incompatible change
29200         has been reverted, and nobody used the incompatible version.
29201         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29202         Document revised behavior.
29203         (Integer Range Overflow): Adjust example to match above revisions.
29204         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29205         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29206         these can be used in integer constant expressions again.
29207         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29208         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29209         needed.
29210         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29211         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29212         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29213         Remove, as they did not seem that useful.
29214         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29215         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29216         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29217         Support new semantics.
29218         (__has_builtin): New macro, if not alreay defined.
29219         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29220         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29221         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29222         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29223         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29224         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29225         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29226         New macros.
29227         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29229 2015-11-03  Jim Meyering  <meyering@fb.com>
29231         intprops: add parentheses for when OP has precedence lower than "-"
29232         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29233         "a OP b" must be parenthesized for when OP is like "<<", which has
29234         lower precedence than the following "-". Reported by Pádraig Brady.
29236 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29238         quotearg: constify get_quoting_style parameters
29239         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29240         * lib/quotearg.c (get_quoting_style): Likewise.
29242 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29244         quotearg: add support for $'' shell escaping
29245         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29246         items and descriptions.
29247         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29248         above types by quoting like "shell", but using $'...' syntax
29249         for non printable characters, which should provide unambiguous
29250         printable output for any input.
29251         * tests/test-quotearg-simple.c: Update accordingly.
29253 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29255         maint: use a more standard return from mbrtowc test
29256         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29257         from the test program as this is non standard and often
29258         indicates an unhandled case in the test program.
29259         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29261 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29263         intprops: add WRAPV and const flavors for GCC 5
29264         If available, use GCC 5's builtin functions for efficient integer
29265         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29266         and safely compute the low-order bits of the correct answer.
29267         A downside of these efficient functions is that they cannot be
29268         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29269         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29270         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29271         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29272         Document the changes.
29273         (Wraparound Arithmetic): New section.
29274         (Integer Range Overflow):
29275         Put this subsection last, since it's least useful.
29276         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29277         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29278         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29279         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29280         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29281         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29282         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29283         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29284         New macros.
29285         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29286         Generate calls to GCC builtins if available, for speed.
29287         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29288         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29289         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29290         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29291         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29292         (CHECK_QUOTIENT, CHECK_REMAINDER):
29293         Test WRAPV and CONST flavors (when available) too.
29295 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29297         doc: use extended timezone format in iso-8601 example
29298         * doc/parse-datetime.texi: The standard states that extended format
29299         is to be used consistently throughout.
29300         Note that lib/parse-datetime.y can handle either tz format.
29302 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29304         stdalign: port to Sun C 5.9
29305         * doc/posix-headers/stdalign.texi: Document this.
29306         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29307         __attribute__ ((__aligned__ (...))).
29309 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29311         time_rz: fix comment about tzalloc
29312         * lib/time_rz.c (tzalloc): Fix comment.
29314 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29316         stdalign: work around pre-4.9 GCC x86 bug
29317         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29318         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29319         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29321 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29323         maint.mk: sc_tight_scope: remove extraneous expressions
29324         * top/maint.mk (tight_scope): This is not really required since
29325         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29326         that matches all nm entries.  But it does remove extraneous entries
29327         that may be confusing or cause issue in future maintenance.
29329 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29331         time_rz: return NULL if localtime_r fails
29332         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29333         while still attempting to pacify bleeding-edge GCC.
29335         fts: port to C11 alignof
29336         * doc/posix-headers/stdalign.texi (stdalign.h):
29337         Document the C11 restriction.
29338         * lib/fts.c: Include stddef.h, for max_align_t.
29339         (fts_alloc): Align using max_align_t, not FTSENT.
29340         * modules/fts (Depends-on): Add stddef.
29342 2015-10-18  Jim Meyering  <meyering@fb.com>
29344         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29345         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29346         would see this:
29348         lib/time_rz.c: In function 'localtime_rz':
29349         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29350           [-Werror=nonnull]
29351                    if (tm && !save_abbr (tz, tm))
29352                        ^
29354         That was complaining about "tm" because it is a parameter that was
29355         declared with the __nonnull__ attribute.
29356         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29357         result of localtime_r.
29359 2015-10-17  Jim Meyering  <meyering@fb.com>
29361         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29362         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29363         name-extraction regexp mistakenly used \S+, and would mistakenly
29364         extract "*F" from "extern int *F()" rather than the desired "F".
29365         Use \w+ instead.
29367 2015-10-17  Jim Meyering  <meyering@fb.com>
29369         maint.mk: sc_tight_scope: factor and support OS X
29370         * top/maint.mk (_gl_tight_scope): Address three issues:
29371         - factor out four instances of code that wraps a string in "^...$"
29372         - allow nm-reported symbol names to have an optional leading "_"
29373         - add "main" to the list of ignored variable names, because on os x,
29374         "main" has nm-reported type "S" in the variable-checking section.
29376 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29378         safe-alloc-tests: fix typo in license header
29379         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29381 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29383         copy-file: fix mem leak in error case
29384         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29385         upon error opening or performing I/O to the src and dest files.
29387 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29389         localename: control langinfo.h inclusion
29390         This header is only used to work around buggy behavior in old
29391         versions of glibc, so do not include it all the time.  Otherwise
29392         we get build failures on systems that do not provide langinfo.h.
29393         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29394         in the source later on.
29395         The patch was originally submitted to gettext as:
29396         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29398 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29400         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29401         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29402         * lib/u64.c, lib/unistd.c:
29403         Append 'typedef int dummy;', to pacify compilers that are picky
29404         about empty translation units.
29406 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29408         accept4-tests: fix to avoid non portable flags
29409         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29410         as they are the only documented ones, and passing others may trigger
29411         EINVAL (seen on FreeBSD 10.1-RELEASE).
29412         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29413         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29415 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29417         gnulib-tool: fix tests of 'extensions' module
29418         This complements f8fe25fab60e3c687a124 commit.
29419         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29420         emitting of initial gl_EARLY macros.
29421         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29422         replaced with func_emit_pre_early_macros call.
29424 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29426         unicase/locale-language: fix typo in utf-8 cookie
29427         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29428         Problem reported by Zbigniew Jędrzejewski-Szmek.
29430 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29432         xalloc: do not worry about GCC 5 warning on 32 bit
29433         * lib/xalloc.h: Revert previous change.
29434         I found a better way to fix this in coreutils.
29436 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29438         xalloc: avoid GCC 5.1 warning on 32 bit
29439         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29440         xalloc_oversized(), which was seen to give this warning
29441         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29442         when simplifying conditional".
29444 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29446         uniname/uniname-tests: avoid compiler warnings
29447         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29448         unused local variables.
29449         (test_alias_lookup): Fix alias name display in failure cases.
29451 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29453         c-ctype: do not worry about EBCDIC + char signed
29454         Drop support for EBCDIC with char being signed, as this breaks too
29455         many programs.  Problem reported by Ben Pfaff in:
29456         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29457         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29458         char being signed.
29459         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29460         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29461         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29462         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29463         * tests/test-c-ctype.c (test_all):
29464         Simplify by assuming standard char values cannot be negative.
29465         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29467 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29469         c-ctype: port better to z/OS EBCDIC
29470         Problems reported by Daniel Richard G. in:
29471         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29472         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29473         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29474         (_C_CTYPE_OTHER_CNTRL): New macro.
29475         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29476         from SCHAR_MIN, as the functions are defined only from values
29477         promoted from char or from unsigned char, not necessarily from
29478         signed char.
29480 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29482         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29484         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29485         and ARFLAGS variables.  Doing this unconditionally could break
29486         later Automake's AM_PROG_AR invocation (at least it's
29487         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29489         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29490         Amsterdam Compiler Kit, so make the previous code to have effects
29491         only on ACK, and rather automatically call the Automake's
29492         AM_PROG_AR as soon as possible to decide other cases.
29494         References:
29495         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29497         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29498         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29499         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29500         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29501         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29502         'extensions' module is used.
29503         * modules/extensions (configure.ac-early): Remove as this snippet
29504         is added to gnulib-comp.m4 earlier anyway.
29506 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29508         sockets: MS Windows initalization fixes
29509         Problem reported by Test User in:
29510         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29511         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29512         Correct the endianness.
29513         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29514         number mismatch, not just on <.  Cleanup before any such failure.
29516 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29518         gc: fix detection of installed libgcrypt version
29519         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29520         at least as recent as 1.4.4.  The previously used macro is not
29521         available now, since modules were removed in version 1.6.0.
29523 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29525         c-ctype: rewrite to use inline functions
29526         This simplifies maintenance, since it makes for just one
29527         implementation of each function, letting the compiler have the fun
29528         of optimization.  In practice this works well nowadays with GCC.
29529         E.g., c_isascii might need only three instructions even though the
29530         source code lists every ASCII character individually in a large
29531         switch statement.
29532         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29533         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29534         * NEWS: Document the API change.
29535         * lib/c-ctype.c: Drastically simplify, since this now just expands
29536         inline functions.
29537         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29538         (C_CTYPE_INLINE): New macro.
29539         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29540         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29541         Verify that either ASCII or EBCDIC is being used.
29542         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29543         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29544         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29545         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29546         New private macros.
29547         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29548         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29549         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29550         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29551         (c_tolower, c_toupper): When converting, return the unsigned char,
29552         as that is what z/OS does.
29553         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29554         of some c-ctype.h macros.
29555         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29556         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29557         c_tolower promotion to be compatible with z/OS.
29559 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29561         gitlog-to-changelog: trim only trailing whitespaces
29562         This is fix for --format regression introduced by commit
29563         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29564         doubled %n string) had no effect anymore.  This format
29565         specification has been used e.g. by GNU paxuitils (commit
29566         edfd8bcc3).
29568         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29569         newlines in commmit messages.
29571 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29573         Test that c_iscntrl agrees with iscntrl, etc.
29574         Suggested by Daniel Richard G. in:
29575         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29576         * modules/c-ctype-tests (Depends-on): Add ctype.
29577         * tests/test-c-ctype.c: Include <ctype.h>.
29578         (NCHARS): New constant.
29579         (test_agree_with_C_locale): New function.
29580         (main): Use it.
29581         (test_all): Use named constants.
29583         c-ctype: improve c_isascii testing
29584         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29585         Add a test to count the number of ASCII characters.
29587 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29589         savewd: remove SAVEWD_CHDIR_READABLE
29590         It was problematic in the light of file systems that ignore umask.
29591         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29592         * NEWS: Document this.
29593         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29594         successful, -1 (setting errno) on failure, rather than something
29595         more complicated than that.
29596         * lib/mkdir-p.c (make_dir_parents):
29597         Do not use SAVEWD_CHDIR_READABLE.
29598         * lib/savewd.c (savewd_chdir):
29599         Remove support for SAVEWD_CHDIR_READABLE.
29600         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29602         c-ctype: port better to EBCDIC
29603         Problems reported by Daniel Richard G. in
29604         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29605         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29606         Include "verify.h".
29607         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29608         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29609         Define as enum constants with value false, if not defined, so that
29610         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29611         code more portable, as both branches of the 'if' are compiled on
29612         all platforms.
29613         (C_CTYPE_EBCDIC): New constant.
29614         Verify that the character set is either ASCII or EBCDIC.
29615         (to_char): New static function.
29616         (c_isascii, c_iscntrl):
29617         Assume standard control-character assignments for EBCDIC.
29618         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29619         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29620         Rewrite to use 'if' instead of 'ifdef'.
29621         Use to_char if non-ASCII.  Prefer <= to >=.
29622         Prefer true and false to 1 and 0, for booleans.
29623         (c_iscntrl): Use 'if', not 'ifdef'.
29624         * modules/c-ctype (Depends-on): Add verify.
29625         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29626         (to_char): New function.
29627         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29629 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29631         nanosleep: fix return code for interrupted replacement
29632         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29633         that we return -1 in the case the call is interrupted by a signal,
29634         rather than the current value of 1.
29635         Diagnosed and tested by Daniel Richard G.
29637 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29639         Diagnose ERE '()|\1'
29640         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29641         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29642         track of the set of previously-completed subexpressions available
29643         before the first alternative, and restore this set just before
29644         parsing each subsequent alternative.  This lets us diagnose the
29645         invalid back-reference in the ERE '()|\1'.
29647         regex: merge patches from libc
29649         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29650         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29651         * lib/regex_internal.h:
29652         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29654         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29655         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29656         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29657         wcscoll.
29658         * lib/regexec.c (check_node_accept_bytes): Likewise.
29660         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29661         Fix regex wcrtomb namespace (bug 18496).
29662         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29663         instead of wcrtomb.
29665         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29666         Fix regex wctype namespace (bug 18495).
29667         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29668         instead of towlower.
29669         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29670         instead of iswlower.  Call __towupper instead of towupper.
29671         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29672         instead of iswalnum.
29674         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29675         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29676         COLL_SYM in a couple of places to avoid uninitialized variable
29677         wanings on tilegx gcc 4.8.2.
29679         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29680         * lib/regex_internal.h: Remove NOT_IN_libc.
29682         2014-11-17  Andreas Schwab  <schwab@suse.de>
29683         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29685         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29686         Move findidx nested functions to top-level.
29687         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29688         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29689         Pass new arguments to findidx.
29690         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29691         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29692         Don't #include it inside the function.  Pass new arguments to findidx.
29693         * lib/regex_internal.h:
29694         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29695         (re_string_elem_size_at): Don't #include it inside the function.
29696         Pass new arguments to findidx.
29698         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29699         Check if DEBUG is defined in regex_internal.c
29700         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29702 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29704         ceill: detect buggy OpenBSD implementation
29705         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29706         which returns zero for small values.  Discussed here:
29707         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29709 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29711         mountlist: add me_mntroot field on Linux machines
29712         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29713         mount_entry so Linux machines based on /proc/self/mountinfo can
29714         distinguish between bind mounts and original mounts.  In reality bind
29715         mounts aren't treated differently than mountroot=/ mounts by the
29716         kernel, but the user often wants these bind mounts distinguished.
29717         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29718         More details at https://pad.lv/1432871
29720 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29722         doc: Describe to use multiple instances of gnulib
29723         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29724         instances of gnulib with different modules can be used, for example one
29725         for a lib and another one for associated tools.
29727 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29729         base32: mark function as __attribute__ const
29730         * lib/base32.h (isbase32): Mark __attribute__ const as
29731         suggested by GCC, and consistent with the base64 module.
29733 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29735         gnulib-tool: don't transform binary files with sed
29736         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29737         .mo and .class files.
29738         Reported by Denis Denisov.
29740 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29742         gperf: respect silent rules
29743         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29744         V_GPERF_0 for silent rules.
29745         * modules/iconv_open (Makefile.am): Use V_GPERF.
29746         * modules/unicase/locale-language (Makefile.am): Likewise.
29747         * modules/unicase/special-casing (Makefile.am): Likewise.
29748         * modules/unictype/category-byname (Makefile.am): Likewise.
29749         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29750         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29751         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29752         * modules/unictype/property-byname (Makefile.am): Likewise.
29753         * modules/unictype/scripts (Makefile.am): Likewise.
29754         * modules/uninorm/composition (Makefile.am): Likewise.
29756 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29758         Improve port of stdalign to C++11
29759         Problem reported by Sundaram in:
29760         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29761         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29762         (__alignas_is_defined): Define if C++11 or newer.
29764 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29766         pmccabe2html: fix gawk regex escaping
29767         * build-aux/pmccabe2html: Add one more backslash to properly
29768         escape the gsub replacement value.  Fixes this error:
29769         gawk: ./build-aux/pmccabe2html:425: \
29770         warning: escape sequence `\&' treated as plain `&'
29772 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29774         time_rz: port to pedantic memcpy
29775         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29776         that reject memcpy (..., NULL, 0).
29778 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29780         time_rz: port better to MinGW
29781         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29782         Instead, store the tzname copy in the struct tm_zone object.
29783         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29784         * lib/strftime.c [!_LIBC]:
29785         * lib/time_rz.c: Include time-internal.h.
29786         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29787         name from *TZ rather than from TZNAME, doable because *TZ now has
29788         a tzname_copy member.
29789         * lib/time-internal.h: New file, with contents taken from
29790         lib/time_rz.c.  It's separate because strftime.c now accesses
29791         struct tm_zone members.
29792         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29793         New member tzname_copy.
29794         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29795         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29796         Initialize tzname_copy member.
29797         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29798         in tzname_copy member.
29799         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29800         (restore_tzname): Remove; no longer needed.  All calls removed.
29801         * modules/time_rz (Files): Add lib/time-internal.h.
29803         time: port __need_time_t to MinGW
29804         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29805         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29807 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29809         strftime: fix newly-introduced bug on Solaris
29810         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29811         consistently at the start, rather than doing some of the setup at
29812         the start and some in the %Z format spec.  This is cleaner, and
29813         works better with time_rz on platforms like Solaris where struct
29814         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29815         mktime_z and localtime_rz can mess up the tzname cache.
29817         test-strftime: test for Solaris bug
29818         * modules/strftime-tests (Depends-on): Add strerror.
29819         * tests/test-strftime.c: Include <errno.h>.
29820         (posixtm_test): New function, containing the old 'main'.
29821         (struct tzalloc_test, struct localtime_rz_test): New types.
29822         (TZ, LT): New static vars.
29823         (tzalloc_test): New function.
29824         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29826         time_rz: port to Solaris etc.
29827         Works around a tzname problem on platforms like Solaris that have
29828         tzname but not tm_zone, by setting tzname at the appropriate time
29829         and restoring it later.
29830         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29831         New static vars.
29832         (save_abbr) [HAVE_TZNAME]: Set them.
29833         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29834         (restore_tzname): New function.
29835         (localtime_rz, mktime_z): Use it.
29837         time_rz: now LGPL
29838         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29840         time_rz: make a constant 'const'
29841         * lib/time_rz.c (local_tz): Now const.
29843         time_rz: fix off-by-one typo
29844         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29846 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29848         fprintftime, strftime: use timezone_t args
29849         * NEWS: Document the change.
29850         * lib/fprintftime.h (fprintftime):
29851         * lib/strftime.c (extra_args) [my_strftime]:
29852         * lib/strftime.h (nstrftime):
29853         Time zone arg is now of type timezone_t, not int.
29854         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29855         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29856         (my_strftime) [emacs && !my_strftime]:
29857         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29858         Remove; Emacs doesn't need this any more.
29859         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29860         fprintftime and nstrftime to call tzset.
29861         (ut) [!my_strftime]: Remove, replacing with ...
29862         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29863         (strftime_case_): Use localtime_rz and mktime_z instead
29864         of localtime_r and mktime.
29865         * modules/fprintftime (Depends-on): Add time_rz.
29866         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29867         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29869         time_rz: new module
29870         * MODULES.html.sh: Add time_rz.
29871         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29872         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29873         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29875         New var HAVE_TIMEZONE_T (default 0).
29876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29877         New var GNULIB_TIME_RZ (default 0).
29878         * modules/time (time.h): Substitute the new vars.
29880         flexmember: license is now unlimited
29881         * modules/flexmember (License): Change to unlimited,
29882         since its only source file gives an unlimited license.
29884 2015-07-15  Eric Blake  <eblake@redhat.com>
29886         maint: update copyright paper procedures
29887         * config/srclist.txt: Drop outdated files.
29888         * doc/Copyright/conditions.txt: Update to latest.
29889         * doc/Copyright/assign.changes.manual: Delete.
29890         * doc/Copyright/assign.future.manual: Likewise.
29891         * doc/Copyright/assign.manual: Likewise.
29892         * doc/Copyright/assign.translation.manual: Likewise.
29893         * doc/Copyright/disclaim.changes.manual: Likewise.
29894         * doc/Copyright/disclaim.manual: Likewise.
29895         * doc/Copyright/disclaim.program: Likewise.
29897 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29899         localename: fix link error on Illumos
29900         Illumos defines __sun, but does not have getlocalename_l nor the
29901         equivalent.  This partially reverts commit 387c214.
29902         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29903         available, as well as uselocale.
29904         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29905         use getlocalename_l if it is not available.
29907 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29909         unistr/uN-strtok-tests: avoid a trivial leak
29910         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29911         input and delim after the multibyte delimiter tests.
29913 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29915         file-has-acl, acl-permissions: fix HP-UX typos
29916         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29917         * lib/file-has-acl.c (file_has_acl):
29918         * lib/set-permissions.c (context_acl_from_mode)
29919         (context_aclv_from_mode, set_acls):
29920         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29921         They were introduced by the recent ACL changes.
29923         regex: match current GNU grep behavior
29924         These symbols have not matched GNU grep behavior for quite some time.
29925         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29926         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29927         Change to match current GNU behavior.
29928         Simplify by expressing it as differences from POSIX BREs and EREs.
29929         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29931 2015-07-03  Jim Meyering  <meyering@fb.com>
29933         set-permissions.c: adjust acl_from_mode's cpp guard
29934         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29935         directives identical to those guarding the sole use.
29936         Otherwise, on some systems, we'd get a warning about
29937         the function being defined but not used.
29938         Also, filter through cppi to correct misleading indentation
29939         of cpp directives.
29941 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29943         tests: restrict shells to those that support 'local'
29944         The local keyword is very widely supported and used
29945         in tests in coreutils and grep at least.  Therefore
29946         restrict to testing with shells that support it.
29947         This mainly excludes /bin/sh on Solaris.
29948         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29950 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29951         and Daiki Ueno  <ueno@gnu.org>
29953         unistr/uN-strtok: handle multibyte delimiters
29954         Previously, uN_strtok moved PTR to the next unit to the token end.
29955         When DELIM contained a multibyte character, the new position could
29956         be a middle of a multibyte character.
29957         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29958         after the token.
29959         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29960         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29961         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29962         * modules/unistr/u8-strtok (Depends-on): Depend on
29963         unistr/u8-strmblen.
29964         * modules/unistr/u16-strtok (Depends-on): Depend on
29965         unistr/u16-strmblen.
29966         * modules/unistr/u32-strtok (Depends-on): Depend on
29967         unistr/u32-strmblen.
29968         * tests/unistr/test-u-strtok.h: New file.
29969         * tests/unistr/test-u8-strtok.c: New file.
29970         * tests/unistr/test-u16-strtok.c: New file.
29971         * tests/unistr/test-u32-strtok.c: New file.
29972         * modules/unistr/u8-strtok-tests: New file.
29973         * modules/unistr/u32-strtok-tests: New file.
29974         * modules/unistr/u16-strtok-tests: New file.
29976 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29978         update-copyright: fix test failure with perl >= 5.22 (trivial)
29979         * build-aux/update-copyright: Escape a literal left curly bracket,
29980         required with perl >= 5.22
29982 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29984         u{16,32}-strstr-tests: relax timeout condition
29985         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29986         tests can take longer than 5 seconds to complete.
29987         Reported by Dagobert Michelsen in:
29988         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29989         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29990         seconds to 10 seconds.
29991         * tests/unistr/test-u32-strstr.c (main): Likewise.
29993 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29995         gnulib-common.m4: change the ARFLAGS default to 'cr'
29996         In some GNU/Linux distributions people started to compile 'ar'
29997         binary with --enable-deterministic-archives (binutils project).
29998         That, however, in combination with previous autotools long time
29999         working default AR{_,}FLAGS=cru causes warnings on such
30000         installations:
30001         ar: `u' modifier ignored since `D' is the default (see `U')
30002         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30003         set already.
30005 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30007         selinux-h: avoid double free after *getfilecon()
30008         Originally reported by Ben Shelton on bug-tar:
30009         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30010         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30011         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30012         param should be freed by freecon(3) (regardless the return value).
30014 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30016         fix pty related tests issues on Windows (trivial)
30017         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30018         however it's still present in tests/ subdirectory of the final project.
30019         Therefore avoid it to pass `make check`.
30020         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30021         will just return -ENOSYS, so avoid this non applicable test allowing
30022         the build to proceed.
30024 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30026         acl: fix definition of acl_from_mode on FreeBSD
30027         This was causing basic coreutils copy operations to fail
30028         with ENOTSUP or ENOENT error messages.
30029         * lib/acl-internal.h (acl_from_mode): Only define when
30030         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30031         of acl_from_mode() defined in lib/set-permissions.c to
30032         be used on FreeBSD at least.
30033         * lib/set-permissions.c: Fix up comment spelling,
30034         and a redundant variable assignment; noticed in passing.
30036 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30038         readutmp: port to FreeBSD >= 9
30039         * lib/readutmp.h: Map utmpxname() to setutxdb().
30040         With that coreutils who(1) and pinky(1) tests pass.
30042 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30044         mgetgroups: port to strict OS X
30045         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30046         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30047         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30048         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30050 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30052         mgetgroups: port to strict OS X
30053         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30054         Document the getgrouplist problem.
30055         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30056         New macro.
30057         (mgetgroups): Use it.
30058         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30059         Check for OS X signature for getgrouplist.
30061 2015-06-29  Jim Meyering  <meyering@fb.com>
30063         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30064         It started like this when building coreutils' latest on OS X,
30065         invoking ./configure with a nonempty --cache=.cache:
30067           lib/linkat.c:46:42: error: operator '||' has no right operand
30068           lib/linkat.c: In function 'rpl_linkat':
30069           lib/linkat.c:330:27: error: #if with no expression
30071         Here's linkat.c's line 46:
30073           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30075         Here's some context:
30077           $ grep linkat_nofoll .cache
30078           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30079           $ grep LINKAT_SYM lib/config.h
30080           #define LINKAT_SYMLINK_NOTSUP
30082         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30083         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30084         but that violates a tenet of AC_CACHE_CHECK: it must
30085         have no side effect other than setting its cache variable.
30087         What happens is that when the cache is set, we'd skip the
30088         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30089         defined to whatever value it happened to have in configure's
30090         environment.  In my case, it was not defined, so this later code:
30092           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30093             [Define to 1 if linkat can create hardlinks to symlinks])
30095         would emit code with an empty RHS.
30097         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30098         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30100 2015-06-28  Jim Meyering  <meyering@fb.com>
30102         mountlist: avoid an unused-label warning on OS X
30103         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30104         Building on OS X, I saw a warning about the "free_then_fail" label
30105         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30107         error.c: correct printf-style format: %d -> %u
30108         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30109         rather than %d, to match the type of "line_number", unsigned int.
30111 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30113         fts: avoid reading beyond the heap allocation
30114         GCC 5.1.1 with -O2 and -fsanitize=address reports
30115         a read of size 4 from a heap object of size 3 is indeed invalid,
30116         though this may be due to incorrect padding assumptions by GCC, see:
30117         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30118         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30119         * modules/fts: Depend on stdalign.
30121 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30123         savedir: avoid undefined behavior in qsort call
30124         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30125         "runtime error: null pointer passed as argument 1,
30126          which is declared to never be null"
30127         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30129 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30131         userspec: avoid undefined behavior in gettext call
30132         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30133         "runtime error: null pointer passed as argument 2,
30134          which is declared to never be null"
30135         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30137 2015-06-20  Glenn Morris  <rgm@gnu.org>
30139         gitlog-to-changelog: improve gitmerge.el commits
30140         Let the Emacs ChangeLog generation process exclude "skipped"
30141         messages from merge commits (Bug#20717).
30142         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30144 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30146         wchar: fix MinGW compilation warnings
30147         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30148         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30149         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30151 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30153         uniname/uniname-tests: use pristine data files
30154         For copyright and maintenance reasons, use the data files from UCD
30155         without modification.
30156         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30157         (getfield): Remove.
30158         (aliases_count): New global variable.
30159         (fill_names): Skip comments and empty lines in the input.  Don't
30160         use getfield.
30161         (fill_aliases): Likewise.
30162         (main): Change the expected command line arguments to:
30163         NAMES... ["--" ALIASES...].
30164         * tests/uniname/test-uninames.sh: Adjust to the change in
30165         test-uninames.c.
30166         * tests/uniname/UnicodeDataNames.txt: Remove.
30167         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30168         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30169         file from Unicode 8.0.0.
30171 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30173         linked-list, linkedhash-list: avoid compiler warnings
30174         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30175         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30177 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30179         libunistring: bump minimum version to 0.9.6
30180         * all modules depending on updated Unicode data: Regenerate.
30181         The modules are listed by a script that does:
30182         - for each file listed by: git show --oneline --name-only 705f4efc
30183           - deduce the containing modules, based on "Files:"
30184         - deduce the modules which depend on the containing modules, based
30185           on "Depends-on:"
30187 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30189         uniname/uniname: update to Unicode 8.0.0
30190         * lib/uniname/uninames.h: Regenerate.
30191         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30192         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30194 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30196         libunistring: update to Unicode 8.0.0
30197         * lib/gen-uni-tables.c (SIZEOF): New macro.
30198         (output_numeric): Increase the maximum number of fractions from
30199         128 to 160.  Increase the level3 value width from 7 bits to 8
30200         bits.  Use SIZEOF instead of a hard-coded integer.
30201         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30202         0x28000.
30203         (fill_blocks): Increase the maximum number of blocks from 256 to
30204         384.  Use SIZEOF instead of a hard-coded integer.
30205         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30206         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30207         value width.
30208         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30209         a new case added to LBP22.
30210         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30211         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30212         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30213         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30214         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30215         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30216         lib/uniwidth/width.c.
30217         * all generated files under lib/uni* and tests/uni*: Regenerate.
30219 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30221         gnu-web-doc-update: add --mirror to remove stale files
30222         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30223         out of date files from the CVS server.  Since this is usually
30224         appropriate, a prompt is given when the option is not specified,
30225         along with the `cvs remove` command that would be run.
30227 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30229         acl-permissions: pacify -Wsuggest-attribute=const
30230         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30231         * lib/acl-internal.h (free_permission_context):
30232         Declare with attribute const if ! (defined USE_ACL &&
30233         (HAVE_ACL_GET_FILE || defined GETACL)).
30235         fsync: document AIX misbehavior
30236         * doc/posix-functions/fsync.texi (fsync):
30237         Document failure on AIX with read-only file descriptor.
30239 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30241         stdio: Don't redefine gets when using C++
30242         * lib/stdio.in.h (gets): Disable warning on C++.
30244 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30246         acl-permissions: port to AIX, C89 HP-UX
30247         Problems reported by Michael Felt.
30248         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30249         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30250         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30251         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30252         Add cast for AIX, whose system calls are declared to accept
30253         char * even though the arguments are really char const *.
30254         * lib/get-permissions.c (get_permissions):
30255         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30256         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30257         that broke a build.
30258         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30259         Rework types to pacify xlc.
30261 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30263         vasprintf-posix: avoid compiling vasnprintf where possible
30264         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30265         module where not required.  For example on a GNU/Linux system
30266         when gnulib-tool is run with the --conditional-dependencies option.
30268 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30270         file-has-acl: fix build on Mac OS X 10
30271         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30272         which has an incompatible 6 parameter getxattr() call.
30273         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30274         call on Mac OS X >= 10.4.
30275         * doc/glibc-functions/fgetxattr.texi: Likewise.
30276         * lib/file-has-acl.c: Revert to more complete combined check.
30277         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30278         Reported by Jack Howarth.
30280 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30282         prefix-gnulib-mk: remove no longer needed special case
30283         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30284         continued lib_SOURCES lines are no longer present,
30285         so special case handling of such entries is not required.
30287 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30289         acl: don't depend on the deprecated qacl module
30290         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30292 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30294         gnulib-tool: concatenate lib_SOURCES to a single line
30295         * gnulib-tool: Refactor the line merging sed logic,
30296         and use that to output a single lib_SOURCES line for each module.
30297         gnulib using projects often postprocess this output to prepend
30298         subdir paths to each item, and having a single line simplifies this
30299         processing allowing better decoupling from the gnulib-tool output.
30301 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30303         pthread_sigmask: discount system version if a simple macro (trivial)
30304         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30305         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30306         function to ensure it's available.
30308 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30310         readlinkat: avoid OS X 10.10 trailing slash bug
30311         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30312         has this bug.
30313         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30314         that OS X 10.10 has this function.
30315         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30316         as done for readlink().
30317         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30318         trailing slash bug, and assume readlinkat() has the same issue.
30319         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30320         rather than the correct $gl_cv_decl_readlinkat_works.
30322 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30324         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30325         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30326         module rewrite.
30328         acl-permissions: Fix build on Solaris and Cygwin
30329         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30330         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30331         ace_entries variables have moved into struct permission_context but
30332         they were still accessed as local variables here.
30334 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30336         linkat: avoid OS X 10.10 trailing slash with symlink bug
30337         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30338         causes the symlink to be dereferenced, and if it points
30339         to a non existent file, that file will be created as
30340         a hard link to "path1".
30341         This fixes a test failure in test-linkat.c.
30342         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30343         this case.  The existing workaround in linkat.c for
30344         trailing slash issues, suffices for this case.
30345         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30346         the list of platforms with trailing slash issues.
30348 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30350         unlinkat: handle ignoring of ".." on Darwin 14
30351         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30352         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30353         so handle in the same manner.
30354         * m4/unlinkat.m4: Comment on this Darwin issue.
30355         * doc/posix-functions/unlink.texi: Update the latest version
30356         where the issue was seen.
30357         * doc/posix-functions/unlinkat.texi: Mention this issue.
30358         Fixes a test failure in test-unlinkat.c.
30360 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30362         qacl: split into qcopy-acl and qset-acl
30363         Emacs needs the former, but not the latter.
30364         * modules/acl-permissions: New file, containing most of the old qacl.
30365         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30366         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30367         * modules/qcopy-acl, modules/qset-acl: New files.
30368         * MODULES.html.sh (File system functions):
30369         Mention the new modules, and mention qacl while we're at it.
30371 2015-05-27  Glenn Morris  <rgm@gnu.org>
30373         gitlog-to-changelog: new option --ignore-line
30374         (This patch is imported from the GNU Emacs master.)
30375         This option ignores individual commit lines matching a pattern.
30376         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30378 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30380         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30381         Implement get_permissions and set_permissions primitives for getting all
30382         the permissions of a file, storing them, and later setting them. (In the
30383         minimal case, the permissions consist only of a file mode.) Reimplement
30384         qset_acl and qcopy_acl based on these new primitives: this avoids code
30385         duplication and makes error handling more consistent.
30386         The Solaris and Cygwin code still uses duplicate code paths for setting
30387         a file mode while making sure that no acls exist and setting an explicit
30388         acl; this is no worse than before, but could be cleaned up.  The AIX
30389         code still doesn't read ACLs, it only makes sure that acls don't get in
30390         the way when setting a file mode.
30391         * lib/acl-internal.h (struct permission_context): New data structure.
30392         (get_permissions, set_permissions, free_permission_context): Declare.
30393         * lib/acl-internal.c (free_permission_context): New helper function.
30394         * lib/get-permissions.c (get_permissions): New helper function split off
30395         from qcopy_acl.
30396         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30397         AIX, set a file's permissions based only on a file mode.
30398         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30399         other platforms construct a temporary acl from the file mode and set
30400         that acl in the same way as setting an acl read from the source file.
30401         This should help avoid code duplication and inconsistent / buggy
30402         behavior.
30403         (set_acls): New helper function Split off from qcopy_acl.
30404         (chmod_or_fchmod): Moved here from qset-acl.c.
30405         (set_permissions): New helper function.
30406         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30407         set_permissions.
30408         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30409         * modules/qacl: Add get-permissions.c and set-permissions.c.
30411         file-has-acl: Split feature tests again (Bug#20667)
30412         * lib/file-has-acl.c: Instead of testing for
30413         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30414         define them when needed.
30415         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30416         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30418 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30420         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30421         This avoids a conflict with "FORTIFY_SOURCE" variants
30422         of the string functions when they're replaced on NetBSD-6.0.1
30423         and Darwin-14.3.0 at least.
30424         * lib/string.in.h: Avoid including our "lib/string.h" while
30425         including the system <string.h>.
30427 2015-05-26  Eric Blake  <eblake@redhat.com>
30429         stdio: limit __gnu_printf__ witness to gcc 4.4+
30430         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30431         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30433         error: use correct printf attributes on mingw
30434         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30436         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30437         * modules/inttypes (Depends-on): Require extensions, so that mingw
30438         always uses GNU style inttypes.
30439         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30441         stdio: fix probe on mingw under gcc 5.1
30442         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30443         around new gcc preprocessor rules.
30445 2015-05-07  Glenn Morris  <rgm@gnu.org>
30447         gitlog-to-changelog: parse "Tiny-change"
30448         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30449         "Copyright-paperwork-exempt".  (Bug#20324)
30451 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30453         doc: document glibc posix_fallocate() issues
30454         * doc/posix-functions/posix_fallocate.texi: Mention the
30455         glibc efficiency problems and issues with NFS.
30457 2015-05-05  Karl Berry  <karl@freefriends.org>
30459         * build-aux/gendocs.sh (usage): document new css default
30460         for HTML (--htmlarg).
30462 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30464         extern-inline: no need for workaround in GCC 5.1
30465         * doc/extern-inline.texi (extern inline):
30466         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30467         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30468         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30469         two we can remove these workarounds.
30471 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30473         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30474         Avoid [-Wunknown-attributes] warnings like:
30475         warning: unknown attribute '__alloc_size__' ignored
30476         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30477         with clang, as support has been fully removed as of clang 3.5:
30478         https://github.com/llvm-mirror/clang/commit/c047507a
30479         * lib/eealloc.h: Likewise.
30480         * lib/pagealign_alloc.h: Likewise.
30482 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30484         tests: pacify GCC 5.1's stricter printf checking
30485         * tests/test-dirname.c (main):
30486         * tests/test-getaddrinfo.c (simple):
30487         * tests/test-getlogin.c (main):
30488         * tests/test-getndelim2.c (main):
30489         * tests/test-inttostr.c (CK):
30490         * tests/test-md5.c (main):
30491         * tests/test-read-file.c (main):
30492         * tests/test-sha1.c (main):
30493         Fix mismatches between printf format and value signedness.
30494         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30495         Remove, as CAST_VAL always returned a value of type uintmax_t.
30497         fts: port to GCC 5.1 with --enable-gcc-warnings
30498         Without this fix, GCC 5.1 (correctly) warns about a subscript
30499         error on the fts_name component of FTSENT.  It's actually a
30500         flexible member, so define it that way on C99 or later hosts.
30501         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30502         structure that now has a flexible array member.
30503         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30504         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30505         * modules/fts (Depends-on): Add flexmember.
30507 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30509         file-has-acl: port to CentOS 6
30510         Problem reported by Tom G. Christensen in:
30511         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30512         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30513         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30514         HAVE_GETXATTR.
30515         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30516         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30517         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30518         file-has-acl.c actually needs.
30520 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30522         file-has-acl: always return false when ACLs aren't supported
30523         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30524         change the GNU/Linux getxattr path, to transform "not supported"
30525         errors to a false return rather than an error.  This is handled
30526         within file_has_acl() due to the platform specific tests to
30527         determine if ACLs are not supported.
30529 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30531         gettext: propagate po/Makefile.in.in too
30532         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30533         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30534         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30535         between Makefile.in.in and the gettext-runtime m4 files.
30537 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30539         file-has-acl: new module, split from acl
30540         And add a new module file-has-acl-tests to match.
30541         I ran into a problem with the recent changes to the acl module,
30542         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30543         When using the fixed version with Emacs, I discovered that
30544         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30545         had multiple libraries, but needed only one), so I fixed that too.
30546         * NEWS: Document this incompatible change.
30547         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30548         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30549         Initialize gl_need_lib_has_acl.
30550         (gl_FUNC_ACL): Require it.
30551         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30552         Move the file-has-acl.c-relevant stuff to ...
30553         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30554         use_xattrs = 0' typo, and omit some needless work.  Set
30555         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30556         when gl_FUNC_ACL is called.
30557         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30558         (Link): Remove $(LIB_HAS_ACL).
30559         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30560         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30561         modules/file-has-acl-tests.
30562         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30564         manywarnings: add GCC 5.1 warnings
30565         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30566         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30567         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30568         -Wsuggest-override, -Wuse-without-only.  Change
30569         -Wnormalized=... operands to match 5.1.
30570         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30571         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30572         -Wdiscarded-qualifiers, -Wformat-signedness,
30573         -Wincompatible-pointer-types, -Wint-conversion,
30574         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30575         -Wshift-count-negative, -Wshift-count-overflow,
30576         -Wsizeof-array-argument, -Wsuggest-final-methods,
30577         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30578         and add -Warray-bounds=2 as a special case.
30580 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30582         doc: update FDL template to match FDL examples.
30583         * doc/alloca-opt.texi:
30584         * doc/alloca.texi:
30585         * doc/c-ctype.texi:
30586         * doc/c-strcase.texi:
30587         * doc/c-strcaseeq.texi:
30588         * doc/c-strcasestr.texi:
30589         * doc/c-strstr.texi:
30590         * doc/c-strtod.texi:
30591         * doc/c-strtold.texi:
30592         * doc/ctime.texi:
30593         * doc/error.texi:
30594         * doc/gcd.texi:
30595         * doc/gnulib-tool.texi:
30596         * doc/inet_ntoa.texi:
30597         * doc/intprops.texi:
30598         * doc/lib-symbol-visibility.texi:
30599         * doc/maintain.texi:
30600         * doc/parse-datetime.texi:
30601         * doc/quote.texi:
30602         * doc/regexprops-generic.texi:
30603         * doc/standards.texi: Remove spurious 'with' in FDL license
30604         template.
30606 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30608         lstat: fix cross-compilation 'ln -s' problem
30609         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30610         Have the test program call 'symlink' rather than a separate
30611         script run 'ln -s'; this is more likely to work in
30612         cross-compilation environments.  Reported by Pavel Fedin in:
30613         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30615 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30617         gendocs.sh: default to a common CSS style sheet for HTML output
30618         * build-aux/gendocs.sh (htmlarg): Change default value.
30620 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30622         gnulib-tool: output bold attribute more portably
30623         * gnulib-tool (func_show_module_list): Change hexadecimal
30624         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30625         encoded numbers as arguments to `printf' is not portable,
30626         and is not claimed by POSIX.  This is the case with FreeBSD.
30628 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30630         qacl: Simplify HP-UX acl_nontrivial check
30631         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30632         acl_nontrivial. Check if the acl has at most three entries instead (it must
30633         have exactly three entries according to the HP-UX documentation). Ignore
30634         uids and gids as long as an entry is either for a user (i.e., the owner),
30635         a group (i.e., the owning group), or others.
30636         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30637         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30639 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30641         acl: On Linux, check for acls without libacl
30642         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30643         library function to check for the presence of acls, avoiding a library.
30644         * lib/file-has-acl.c: Include xattr headers if we have them.
30645         (file_has_acl): On Linux, use getxattr().
30646         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30647         file_has_acl(). Check for xattr headers and getxattr().
30649 2015-04-14  Ángel González  <keisial@gmail.com>
30651         tempname: avoid unused parameter warnings (trivial)
30652         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30653         (try_nocreate): Likewise.
30655 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30657         fseeko: fix build failure on NetBSD >= 6 (trivial)
30658         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30659         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30661 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30663         gitlog-to-changelog: port to MS-Windows
30664         * build-aux/gitlog-to-changelog (git_dir_option):
30665         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30666         MS-Windows Perl.  Reported by Eli Zaretskii in:
30667         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30669 2015-04-07  Karl Berry  <karl@gnu.org>
30671         gendocs: new option --tex for passing args to texi2dvi.
30672         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30673         (TEXI2DVI): cut to just command name.
30674         (usage): mention new option, and update copyright.
30675         <generate_tex>: use it.
30677 2015-04-07  Karl Berry  <karl@gnu.org>
30679         * config/srclistvars.sh (GETTEXT): new definition.
30680         * config/srclist.txt: use it for gettext .m4 files.
30681         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30682         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30683         and continuing into April.
30685 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30687         uniname/uniname-tests: fix failure due to alias
30688         Reported by Jack Howarth in:
30689         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30690         * tests/uniname/test-uninames.c (name_has_alias): New function.
30691         (test_inverse_lookup): Exclude character name with valid alias,
30692         from randomly generated character names.
30693         (main): Fill unicode_aliases before calling test functions.
30695 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30697         hash: remove deprecated hash_insert0 function
30698         * lib/hash.h (hash_insert0): Remove deprecated function.
30699         * lib/hash.c (hash_insert0): Likewise.
30701 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30703         mountlist: remove dependency on libmount
30704         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30705         directly, rather than depending on libmount, which has many
30706         dependencies due to its dependence on libselinux, as detailed at:
30707         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30708         Note we restrict this to __linux__ as that's probably where this
30709         interface will remain.  If ever porting, it would be best
30710         to first pull the makedev() wrapper from coreutils to a gnulib module.
30711         Note also we don't add a getline dependency to the mountlist module,
30712         as all Linux versions are sufficient.
30714 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30716         stddef: port to pre-C11 GCC on x86
30717         On this platform, max_align_t should have an alignment of 8 even
30718         though the storage alignments of double, long, etc. max out at 4.
30719         Inspired by a comment of Andreas Schwab's here:
30720         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30721         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30722         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30723         * tests/test-stddef.c: Test __alignof__ too, if available.
30725 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30727         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30728         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30730 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30732         yesno: make EOL optional in ENABLE_NLS case also (trival)
30733         * lib/yesno.c (yesno): Check for EOL before replacing.
30734         * tests/test-yesno.sh: Add a test case (test along with gettext).
30736 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30738         fdopendir-tests: test it does not close its arg
30739         * tests/test-fdopendir.c (main): Test that fdopendir does not
30740         close its argument.  From a suggestion by David Grayson in:
30741         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30743 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30745         gitlog-to-changelog: trim trailing white space
30746         * build-aux/gitlog-to-changelog (main):
30747         Trim trailing white space from commit message lines.
30748         This is helpful for processing the GNU Emacs repository,
30749         which dates back to 1985 and contains a lot of such lines.
30751         gitlog-to-changelog: new option --ignore-matching
30752         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30753         Support new option --ignore-matching=PAT, which ignores all
30754         commit messages whose first line matches PAT.
30756 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30758         fdopendir: port better to MinGW
30759         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30760         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30761         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30762         * modules/fdopendir (Depends-on): Add dirfd.
30764 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30766         fdopendir: fix typo in comment
30767         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30769 2015-03-09  Eric Blake  <eblake@redhat.com>
30771         error: document all entry points provided
30772         * doc/glibc-functions/error_print_progname.texi
30773         (error_print_progname): Mention the error module.
30774         * doc/glibc-functions/error_at_line.texi (error_at_line):
30775         Likewise.
30776         * doc/glibc-functions/error_message_count.texi
30777         (error_message_count): Likewise.
30778         * doc/glibc-functions/error_one_per_line.texi
30779         (error_one_per_line): Likewise.
30781 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30783         vasnprintf: pacify clang 3.5.0
30784         Problem reported by Werner Lemberg in:
30785         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30786         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30787         The casts aren't needed, since the characters in question are ASCII.
30789 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30791         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30792         * lib/dirent--.h (GNULIB_defined_opendir):
30793         * lib/dirent.in.h (GNULIB_defined_opendir)
30794         (GNULIB_defined_closedir):
30795         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30796         #undef only if Gnulib defined it.
30798         poll: port to MSVC v18 on MS-Windows 8.1
30799         Problem reported by Gisle Vanem in:
30800         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30801         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30802         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30803         Add sys_socket.
30805 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30807         tests: support stderr verification with returns_()
30808         * tests/init.sh (returns_): Disable tracing for this wrapper
30809         function, so that stderr of the wrapped command is unchanged,
30810         allowing for verification of the contents.
30812 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30814         passfd: avoid valgrind uninitalised data warning
30815         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30816         to include just the fd we've initialized, rather than including
30817         the extra space used for alignment.
30819 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30821         uniwbrk/u32-wordbreaks-tests: fix copyright
30822         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30824         dup2: doc and test for Android bug
30825         Reported by Kevin Cernekee in:
30826         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30827         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30828         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30830 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30832         Replace dup2() on Android
30833         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30834         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30835         fails.  Using rpl_dup2() fixes this because it has an explicit test
30836         for this condition.
30838 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30840         Android doesn't define RLIM_SAVED_*
30841         Portability problem reported by Kevin Cernekee in:
30842         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30843         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30844         Mention the portability problem.
30845         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30846         Define if not defined.
30847         * m4/dup2.m4 (gl_FUNC_DUP2):
30848         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30849         Likewise.
30851 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30853         vasnprintf-posix-tests: use consistent test
30854         * tests/test-vasnprintf-posix.c (test_function):
30855         Use "<" in assert instead of "<=", for consistency with other tests.
30857 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30859         printf, isinf, etc.: noncanonical != NaN
30860         Do not require that isinf, printf, etc. treat noncanonical
30861         values as NaNs.  Instead, require only that they do not crash.
30862         Problem reported by Joseph Myers in:
30863         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30864         * doc/posix-functions/dprintf.texi (dprintf):
30865         * doc/posix-functions/fprintf.texi (fprintf):
30866         * doc/posix-functions/isfinite.texi (isfinite):
30867         * doc/posix-functions/isinf.texi (isinf):
30868         * doc/posix-functions/isnan.texi (isnan):
30869         * doc/posix-functions/printf.texi (printf):
30870         * doc/posix-functions/snprintf.texi (snprintf):
30871         * doc/posix-functions/sprintf.texi (sprintf):
30872         * doc/posix-functions/vdprintf.texi (vdprintf):
30873         * doc/posix-functions/vfprintf.texi (vfprintf):
30874         * doc/posix-functions/vprintf.texi (vprintf):
30875         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30876         * doc/posix-functions/vsprintf.texi (vsprintf):
30877         Document this.
30878         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30879         * m4/isinf.m4 (gl_ISINFL_WORKS):
30880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30881         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30882         * tests/test-isfinite.c (test_isfinitel):
30883         * tests/test-isinf.c (test_isinfl):
30884         * tests/test-isnan.c (test_long_double):
30885         * tests/test-isnanl.h (main):
30886         * tests/test-snprintf-posix.h (test_function):
30887         * tests/test-sprintf-posix.h (test_function):
30888         * tests/test-vasnprintf-posix.c (test_function):
30889         * tests/test-vasprintf-posix.c (test_function):
30890         Test only that noncanonical values do not cause crashes, not that
30891         they are treated as NaNs.  In some cases this means a larger
30892         output buffer is needed.
30894 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30896         fts: remove redundant close() (trivial)
30897         * lib/fts.c (fts_read): Remove redundant call to close().
30898         Spotted by coverity.
30900 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30902         getdtablesize: port better for Android
30903         Problem reported by Kevin Cernekee in:
30904         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30905         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30906         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30907         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30909         poll: fixes for large fds
30910         * lib/poll.c (poll): Don't check directly for NFD too large.
30911         Don't rely on undefined behavior in FD_SET when an arg exceeds
30912         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30913         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30914         as that makes the test a bit stricter.
30916 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30918         fcntl: Fix cross compiling
30919         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30920         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30922 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30924         dup2, fcntl: cross-compile better for Android
30925         Problem reported by Kevin Cernekee in:
30926         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30927         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30928         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30929         there's little need to cross-compile for older kernels nowadays.
30930         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30931         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30933 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30935         getopt: don't crash on memory exhaustion
30936         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30937         memory exhaustion.  In the _LIBC case we use alloca() as is
30938         already done in glibc, so we don't need to consider the separate
30939         error path in that awkward case.  Also fix a memory leak when
30940         ambiguous options are present.
30941         Reported by Tobias Stoeckmann
30943 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30945         tempname: allow compilation with C++ (trivial)
30946         * lib/tempname.h [C++]: Specify extern "C" linkage.
30947         * lib/tempname.h (try_tempname):
30948         * lib/tempname.c (__try_tempname, __gen_tempname):
30949         Rename 'try' to 'tryfunc'.
30951 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30953         dup2, fcntl: port to AIX
30954         * m4/dup2.m4 (gl_FUNC_DUP2):
30955         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30956         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30957         The former works on AIX 7.1 but the latter does not.
30958         Also, this may work better with Android; see:
30959         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30961 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30963         getdtablesize, dup2, fcntl: port to Android
30964         Problem reported by Kevin Cernekee in:
30965         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30966         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30967         Mention that getdtablesize doesn't work on Android.
30968         * lib/getdtablesize.c: Use getrlimit substitute only if
30969         getdtablesize is declared.  This should suffice for Cygwin
30970         while not breaking Android.
30971         * m4/dup2.m4 (gl_FUNC_DUP2):
30972         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30973         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30974         standardized but the latter is not, and sysconf works on Android.
30975         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30976         Also check that getdtablesize is declared.
30977         This removes the need for a special case for Android.
30979 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30981         localename: Implement gl_locale_name_thread_unsafe for Android
30982         * lib/localename.c: Android API level >= 21 supports two hardcoded
30983         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30984         the internal __locale_t struct.
30986 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30988         fts: avoid crash when a cycle is added while traversing
30989         This could be triggered by auto-mounting a recursive bind mount.
30990         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30991         * lib/fts.c (fts_read): Avoid removing the original hash table item
30992         when leaving a directory that caused a cycle, and preserve the FTS_DC
30993         flag.
30995 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30997         uniname/uniname: support character alias
30998         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30999         Generate one-way mapping from aliases to codepoints in the
31000         generated tables.  Special case variation selectors to reduce
31001         table size.
31002         * lib/uniname/uniname.c (unicode_character_name): Special case
31003         variation selectors.
31004         (unicode_name_character): Special case variation selectors and
31005         their aliases.
31006         * lib/uniname/uninames.h: Regenerate.
31007         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31008         * modules/uniname/uniname-tests (Files): Add
31009         tests/uniname/NameAliases.txt.
31010         * tests/uniname/test-uninames.c: Mark as static.
31011         (ALIASLEN): Define.
31012         (struct unicode_alias): New struct.
31013         (unicode_aliases): New variable.
31014         (fill_aliases): New function.
31015         (test_alias_lookup): New test function.
31016         (main): Run the 'test_alias_lookup' test if the second argument is
31017         given.
31018         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31019         second argument.
31021 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31023         Fix FILE struct compatibility with Android API level >= 21
31024         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31025         __sferror.  Recent versions of Bionic's stdio.h no longer define
31026         __sferror.
31027         * lib/fbufmode.c: Likewise.
31028         * lib/fflush.c: Likewise.
31029         * lib/fpurge.c: Likewise.
31030         * lib/freadable.c: Likewise.
31031         * lib/freadahead.c: Likewise.
31032         * lib/freading.c: Likewise.
31033         * lib/freadptr.c: Likewise.
31034         * lib/freadseek.c: Likewise.
31035         * lib/fseeko.c: Likewise.
31036         * lib/fseterr.c: Likewise.
31037         * lib/fwritable.c: Likewise.
31039         Assume unbroken ungetc() on Android
31040         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31041         test case passed when running on an Android host, and the code
31042         hasn't really changed since 2009.
31044         getdtablesize: Fix Android build
31045         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31046         versions have this symbol in the .so library (at least 32-bit
31047         platforms) but are missing the declaration in the header file,
31048         causing the m4 logic to guess incorrectly.
31050         localename: Fix Android build
31051         * modules/localename (Depends-on): Add langinfo.
31053         getugroups: Fix Android build
31054         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31055         functions.
31057         euidaccess: Fix Android build
31058         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31059         AT_EACCESS gets declared.
31061         linkat_nofollow: Add fallback case for cross compiling
31062         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31064         net_if: Handle content-free <net/if.h> system headers
31065         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31066         struct if_nameindex.  If not, enable the replacement header.
31068         signal_h: Fix Android build
31069         * lib/signal.in.h: Add Android to the list of platforms that declare
31070         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31072         duplocale: Fix Android build of duplocale-tests
31073         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31074         is included by test-duplocale.c (but not by duplocale.c).
31075         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31076         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31077         * doc/posix-headers/monetary.texi: Add Android to the list of
31078         platforms missing monetary.h.
31080 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31082         tests: avoid recent -Werror=unused-variable regression in test-locale
31083         * tests/test-locale.c (main): Reference the variable to avoid the
31084         "unused variable" warning.
31086 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31088         maint: various whitespace cleanups in tempname
31089         * lib/tempname.c: Normalize spacing and line length.
31090         * lib/tempname.h: Likewise.
31091         * modules/tempname: Likewise.
31093 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31095         tests: provide returns_() to simplify exit status checking
31096         * tests/init.sh (returns_): A new function for use in tests,
31097         to allow for easier checking of return values, where you expect
31098         a command to exit with failure status.  By checking for a particular
31099         exit code, you don't hide any crashes for example.
31101 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31103         mountlist: only use libmount when specified
31104         There are currently many shared libs dependencies introduced by
31105         libmount with associated runtime and virt mem overhead.
31106         Therefore don't enable by default.
31107         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31109 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31111         uniname/unimame-tests: don't link with -lunistring
31112         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31113         $(LIBUNISTRING).  Document the rationale why we need to
31114         conditionalize the test.
31116 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31118         fstrcmp: don't assume strlen < INT_MAX
31119         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31120         (uintptr_t): Remove, as we're now assuming stdint.
31121         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31122         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31123         if the input string is long.
31124         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31125         uintptr_t to size_t when the underlying value is a pointer casted
31126         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31127         * modules/fstrcmp (Depends-on): Add stdint.
31129         diffseq: prefer ptrdiff_t to ssize_t
31130         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31131         ptrdiff_t is the natural type for signed indexes.
31132         On a few older platforms, ssize_t is narrower than size_t.
31134         xalloc: fix typo that suppressed warnings
31135         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31136         This typo, introduced a couple of years ago, mistakenly suppressed
31137         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31138         -Wmissing-declarations warnings.
31140         full-read: fix license notice typo
31141         * lib/full-read.h: Remove a stray line in the license notice.
31142         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31144         crypto/gc: fix a -Wswitch warning
31145         Reported by Bruce Korb in:
31146         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31147         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31149 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31151         gnulib-tool: fix handling of patch(1) diagnostics
31152         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31153         as otherwise gnulib-tool will reparse that output and attempt
31154         to lookup modules.
31156 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31158         bootstrap: exit immediately upon gnulib-tool failure
31159         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31160         This was noticed when gnulib-tool exited early due to failure
31161         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31162         but various confusing errors were then given as the build proceeded.
31164 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31166         symlinkat: include all required header files
31167         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31168         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31169         Reported at https://savannah.gnu.org/bugs/index.php?44151
31170         and by Jack Howarth.
31172 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31174         localename: support Solaris 12 and illumos
31175         * lib/localename.c (gl_locale_name_thread_unsafe): call
31176         getlocalename_l() on newer __sun platforms.
31177         Reported by Alexander Pyhalov.
31178         Fix suggested by Rich Burridge.
31180 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31182         locale: fix tests on illumos (trivial)
31183         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31184         so move from global scope to main().
31186 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31188         unictype: avoid undefined left-shift behavior
31189         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31190         gcc's -fsanitize=shift and running its tests triggered:
31191           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31192             places cannot be represented in type 'int'
31193         Cast LHS to 'unsigned int' after integer promotion.
31194         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31195         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31197 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31199         libunistring: bump version of unitypes dependants
31200         Due to the header file search order, all the headers which depend
31201         on unitypes.h need to be generated, when the preinstalled
31202         libunistring is older.
31203         * modules/unicase/base (configure.ac): Bump minimum version to
31204         0.9.4.
31205         * modules/uniconv/base (configure.ac): Likewise.
31206         * modules/unilbrk/base (configure.ac): Likewise.
31207         * modules/uninorm/base (configure.ac): Likewise.
31208         * modules/unistdio/base (configure.ac): Likewise.
31209         * modules/unistr/base (configure.ac): Likewise.
31210         * modules/uniwbrk/base (configure.ac): Likewise.
31211         * modules/uniwidth/base (configure.ac): Likewise.
31213 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31215         unictype/category-none: fix link with libunistring
31216         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31217         prefixed with "libstring_" when compiled as part of libunistring.
31218         To avoid undefined symbol at link time, increase the minimum
31219         version when the dependant modules are updated.
31220         * modules/unictype/category-none (configure.ac): Bump minimum
31221         version to 0.9.5.
31223 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31225         unitypes: fix build with installed libunistring
31226         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31227         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31228         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31230 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31232         time: port to MinGW32 3.21
31233         Problem reported by Eli Zaretskii in:
31234         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31235         * lib/time.in.h:
31236         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31237         * modules/time (Depends-on):
31238         Fall back on unistd.h if the other include files don't define
31239         struct timespec.
31241         update-copyright: apply to self
31242         * build-aux/update-copyright: Fix copyright date.  How ironic!
31244 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31246         libunistring: update to Unicode 7.0.0
31247         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31248         Manichaean names.
31249         * lib/unictype/joininggroup_name.h: Likewise.
31250         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31251         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31252         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31253         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31254         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31255         enum values.
31256         (is_property_alphabetic): Accept newly added characters to
31257         cuneiform numeric signs.
31258         (is_property_default_ignorable_code_point): Reject U+0605.
31259         (FIELDLEN): Increase from 120 to 160.
31260         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31261         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31262         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31263         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31264         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31265         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31266         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31267         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31268         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31269         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31270         U+1E8D0..U+1E8D6.
31271         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31272         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31273         lib/uniwidth/width.c.
31274         * all generated files under lib/uni* and tests/uni*: Regenerate.
31276 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31278         libunistring: update to Unicode 6.3.0
31279         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31280         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31281         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31282         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31283         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31284         Update WB5, WB9, WB10, WB13a, and WB13b.
31285         * tests/uniwbrk/test-uc-wordbreaks.c
31286         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31287         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31288         (UC_BIDI_PDI): New enumeration values.
31289         (bidi_category_byname): Support those enum values.
31290         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31291         dedicated property assigned.
31292         (is_property_case_ignorable): Check 0x0027.
31293         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31294         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31295         (output_wbp): Support those enum values.
31296         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31297         (UC_BIDI_PDI): New enumeration values.
31298         * lib/unictype/bidi_byname.gperf: Add those property names.
31299         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31300         U+180E, U+1A1B, and U+2066..U+2069.
31301         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31302         lib/uniwidth/width.c.
31303         * all generated files under lib/uni* and tests/uni*: Regenerate.
31305 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31307         libunistring: update to Unicode 6.2.0
31308         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31309         (unilbrk_table): Adjust table size.
31310         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31311         for LBP_RI.
31312         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31313         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31314         Normalize table index skipping ignored properties.
31315         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31316         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31317         the table.
31318         * lib/uniwbrk/wbrktable.h: Adjust table size.
31319         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31320         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31321         Support rule GB8a.
31322         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31323         * tests/unigbrk/test-uc-is-grapheme-break.c
31324         (graphemebreakproperty_to_string): Support GBP_RI.
31325         * tests/uniwbrk/test-uc-wordbreaks.c
31326         (wordbreakproperty_to_string): Support WBP_RI.
31327         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31328         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31329         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31330         LBP_AL to LBP_ID.
31331         (output_lbp): Support LBP_RI.
31332         (WBP_RI): New enumeration value.
31333         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31334         (output_wbp): Support WBP_RI.
31335         (GBP_RI): New enumeration value.
31336         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31337         * all generated files under lib/uni* and tests/uni*: Regenerate.
31339 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31341         libunistring: update to Unicode 6.1.0
31342         * lib/gen-uni-tables.c (output_joining_group): Switch to
31343         3-level table to accommodate joining groups defined with higher
31344         codepoint value.  Since there are only 88 groups defined in
31345         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31346         (get_lbp): Update for Unicode 6.1.0.
31347         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31348         3-level table.
31349         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31350         joining group name.
31351         * lib/unictype/joininggroup_name.h: Likewise.
31352         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31353         (unilbrk_table): Adjust table size.
31354         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31355         for LBP_HL.
31356         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31357         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31358         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31359         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31360         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31361         U+302E..U+302F.
31362         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31363         lib/uniwidth/width.c.
31364         * all generated files under lib/uni* and tests/uni*: Regenerate.
31365         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31367 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31369         uniwbrk/u32-wordbreaks-tests: add conformance test
31370         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31371         tests/uniwbrk/test-uc-wordbreaks.c,
31372         tests/uniwbrk/test-uc-wordbreaks.sh, and
31373         tests/uniwbrk/WordBreakTest.txt.
31374         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31375         test-uc-wordbreaks to $(check_PROGRAMS), and define
31376         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31377         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31378         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31380 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31382         uniwbrk: ignore Extended/Format characters at BOL not BOS
31383         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31384         characters if the previous character property is one of
31385         WBP_NEWLINE, WBP_CR, and WBP_LF.
31387 2015-01-11  Jim Meyering  <meyering@fb.com>
31389         test-strstr.c: avoid a trivial leak
31390         * tests/test-strstr.c (main): Free haystack.
31392         update-copyright: recognize groff's \(co marker
31393         * build-aux/update-copyright (circle_c_re): Also accept
31394         uses of \(co, as found in gzip.1.
31396 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31398         maint.mk: fix compatibility with OS X nm
31399         * top/maint.mk (_gl_tight_scope): Use the -g option to
31400         show exported items rather than the -e option which is
31401         ignored on all platforms except OS X where it gives an error.
31402         Reported by Assaf Gordon.
31404 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31406         localcharset: improve charset detection on OS/2
31407         Use system codepage when appropriate.  Map OS/2 codepages to
31408         GNU canonical charset names if possible.
31409         * lib/config.charset: Don't output aliases if "$os" is os2*.
31410         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31411         result for OS/2.
31412         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31413         from the locale name which is neither "C" nor "POSIX".
31415 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31417         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31418         This reverts the last patch but one, as it shouldn't be needed now
31419         that the typo is fixed.
31420         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31421         * lib/count-trailing-zeros.h:
31422         * lib/count-one-bits.h:
31423         Go back to using 64-bit intrinsics.
31425         count-leading-zeros: fix pragma typos
31426         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31427         Fix typos in declaration of intrinsics when _MSC_VER.
31429 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31431         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31432         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31433         intrinsics in this case.
31434         * lib/count-trailing-zeros.h: Likewise.
31435         * lib/count-one-bits.h: Likewise.
31437 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31439         uniname/uniname: update to Unicode 7.0.0
31440         To accommodate new characters added since Unicode 5.1.0, this
31441         changes the internal representation of codepoint ranges.
31442         Previously, we grouped codepoint ranges by manually assigned 4-bit
31443         tag, which only allowed 16 groups.  This removes the limitation by
31444         switching to binary search on a table.  For the detail rationale
31445         and the benchmark results, see:
31446         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31447         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31448         to INDEX, as it no longer represents a codepoint.
31449         (range): New struct.
31450         (main): Switch to intervals list from a bit-pattern based
31451         classification.
31452         * lib/uniname/uninames.h: Regenerate.
31453         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31454         * modules/uniname/base (configure.ac): Bump minimum version to
31455         0.9.5.
31456         * modules/uniname/uniname (configure.ac): Bump minimum version to
31457         0.9.5.
31459 2015-01-05  Eric Blake  <eblake@redhat.com>
31461         doc: update INSTALL from autoconf
31462         * doc/install.texi: Resync from autoconf.
31463         * doc/INSTALL: Reflect recent autoconf update.
31464         * doc/INSTALL.ISO: Likewise.
31465         * doc/INSTALL.UTF-8: Likewise.
31467         stdio: fix use of PRIdMAX on modern mingw
31468         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31469         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31470         to work with modern mingw.
31472 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31474         pthread: detect git mingw builds with only partial pollution
31475         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31476         pollution, as seen temporarily in Fedora 21.
31478 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31480         lib-symbol-versions: cache script check
31481         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31482         Cache the check for linker version scripts.
31483         From a suggestion by Christophe Curis in:
31484         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31486 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31488         maint: fix grammar nits in propername (trivial change)
31489         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31490         and use an adequate verb and tense.
31492 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31494         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31495         * module/gendocs: Add 'doc/gendocs_template_min'.
31497         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31498         from to Gnulib's.
31499         (scripturl, templateurl): Adjust accordingly.
31501 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31503         gendocs: copyright date and version fix
31504         Reported by Karl Berry in:
31505         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31506         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31507         Fix copyright date.
31508         * build-aux/gendocs.sh (scriptversion): Update.
31510 2015-01-01  Karl Berry  <karl@gnu.org>
31512         * doc/install.texi,
31513         * build-aux/mdate-sh,
31514         * build-aux/depcomp,
31515         * build-aux/config.guess,
31516         * build-aux/config.sub,
31517         * build-aux/ar-lib,
31518         * build-aux/compile: revert copyright updates (some from last
31519         year) in slaved files.
31521 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31523         version-etc: new year
31524         * doc/gnulib.texi:
31525         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31526         * all files: Run 'make update-copyright'.
31528 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31530         xstrtol: ensure errno is reset
31531         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31532         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31534         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31536 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31538         utimens: fix dependency typo
31539         * modules/utimens (Depends-on): Remove 'assure'.
31540         This bug was introduced in the recent 'assure' patch.
31542 2014-12-22  Eric Blake  <eblake@redhat.com>
31544         docs: mention why libgen.h is bad
31545         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31547 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31549         assure: new module
31550         This works better than 'assert' when compiling with -DNDEBUG,
31551         as it avoids some compiler diagnostics in that case.
31552         Reported by Norihiro Tanaka in:
31553         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31554         * MODULES.html.sh (func_all_modules): Add 'assure'.
31555         * lib/assure.h, modules/assure: New files.
31556         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31557         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31558         Prefer 'assure' to 'assert'.
31559         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31560         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31561         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31562         Depend on 'assure'.
31564 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31566         stdalign: port better to HP compilers
31567         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31568         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31570         stdalign: work around Apple GCC 4.0 bug
31571         Reported by David Fang in:
31572         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31573         * lib/stdalign.in.h (_Alignas):
31574         * m4/stdalign.m4 (gl_STDALIGN_H):
31575         Do not use aligned attribute with GCC 4.0 on Apple.
31577 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31579         getcwd: fix test failure on OS X 10.9
31580         * m4/getcwd-path-max.m4: Avoid the replacement if it
31581         won't be effective due to the PATH_MAX limitation of lstat().
31582         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31583         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31584         for this case for use in tests, and also exclude this
31585         case when setting REPLACE_GETCWD.
31586         * tests/test-getcwd.c (test_long_name): Restrict the
31587         tested path length so that lstat() will not be passed
31588         a path greater than PATH_MAX.
31589         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31590         than AT_FDCWD, since the latter is set unconditionally
31591         since Sep 2009 in commit 52c658e9.
31593 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31595         parse-datetime: avoid a compiler warning with byacc (trivial)
31596         * lib/parse-datetime.y (yylex): Use the same prototype in the
31597         function definition as the declaration, to avoid a -Wstrict-prototypes
31598         warning seen when using byacc.
31600 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31602         unicase/locale-language-tests: fix LOCALE_FR test
31603         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31604         a French locale with traditional encoding.
31605         Reported by umerqayam in:
31606         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31608 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31610         stddef: support C11's max_align_t
31611         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31612         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31613         Do not undef, as that might cause max_align_t to be defined twice.
31614         Instead, change use to check for _GL_STDDEF_WINT_T too.
31615         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31616         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31617         Check for max_align_t.
31618         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31619         * modules/stddef-tests (Depends-on): Add stdalign.
31620         * tests/test-stddef.c: Test max_align_t.
31622 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31624         unistd: fix iOS check conditional
31625         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31626         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31627         yielded true on non-iOS environment.
31628         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31629         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31630         they are defined.
31632 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31634         posixtm: avoid compiler warning in a better way
31635         * lib/posixtm.c (IF_LINT): Remove.
31636         (year, posix_time_parse):
31637         Return true (not 0) if successful.  All callers changed.
31638         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31640 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31642         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31643         started with '/' on EMX.
31645 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31647         freopen: workaround freopen() on OS/2 kLIBC
31648         * lib/freopen.c (rpl_freopen): Workaround.
31649         * m4/freopen.m4: Add os2* case.
31651         get_shared_library_fullname: port to EMX
31652         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31653         on EMX, respectively.
31654         (_DLL_InitTerm): New on EMX.
31655         (get_shared_library_fullname): Implement on EMX.
31657         find_executable: port to EMX
31658         * lib/progreloc.c (find_executable): Implement on EMX.
31660         sched: check struct sched_param in spawn.h as well
31661         * lib/sched.in.h: Include spawn.h on kLIBC.
31662         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31664 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31666         bootstrap: Allow perl modules in $buildreq
31667         * build-aux/bootstrap: Add case for perl modules.
31669 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31671         apply _GL_ATTRIBUTE_PURE to some inline functions
31672         clang 3.4.2 flagged these inline functions as pure
31673         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31674         * lib/sig-handler.h (get_handler): Likewise.
31675         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31676         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31678 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31680         vasnprintf: fix potential use after free
31681         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31682         flagged by clang-analyzer 3.4.2.
31684 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31686         filevercmp, posixtm: avoid compiler warnings with -O3
31687         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31688         * lib/posixtm.c: (IF_LINT): Define.
31689         (posix_time_parse): Use it to void a "may be used uninitialized"
31690         warning, seen only with -O3.
31692 2014-12-05  Bruno Haible  <bruno@clisp.org>
31694         Fix LDBL80_WORDS macro on big endian platforms.
31695         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31696         LDBL80_WORDS macro.
31697         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31698         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31699         * tests/test-isfinite.c (test_isfinitel): Likewise.
31700         * tests/test-isinf.c (test_isinfl): Likewise.
31701         * tests/test-isnan.c (test_long_double): Likewise.
31702         * tests/test-isnanl.h (main): Likewise.
31703         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31704         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31705         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31706         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31707         Reported by Pádraig Brady.
31709 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31711         git-version-gen: do not print new line characters
31712         * build-aux/git-version-gen: Use printf instead of echo and tr.
31714         gnulib-tool: recognize x:* as an absolute path
31715         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31716         (func_relconcat): Likewise.
31718 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31720         argp: avoid extraneous translation and mem leak with empty pre doc
31721         * lib/argp-help.c (argp_doc): Never translate the empty string,
31722         when "\v" is the first or last character of the string, as that
31723         has a reserved meaning to return the header info from a po file.
31724         This also fixes a small memory leak in the !post case.
31725         The issue can be seen with this command for example:
31726         LC_MESSAGES=en_US grub2-mknetdir --help
31728 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31730         uniname/uniname-tests: skip if system's libunistring is used
31731         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31732         uniname/uniname module is not compiled.
31734 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31736         printf: fix configure check on big endian systems
31737         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31739 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31741         pipe-filter-gi, pipe-filter-ii: port to AIX
31742         On AIX 7.1, 'select' is defined as static and cannot be referred
31743         to from inline function.
31744         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31745         the definition...
31746         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31747         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31749 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31751         gitlog-to-changelog: add --until
31752         * build-aux/gitlog-to-changelog: Support new --until option.
31753         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31755 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31757         extern-inline: update commentary about GCC bugs
31758         * m4/extern-inline.m4: Add another GCC bug number to comments.
31760 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31762         gen-uni-tables: untabify
31763         * lib/gen-uni-tables.c: Untabify.
31765 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31767         gen-uni-tables: check out-of-range values added to 3-level tables
31768         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31769         (output_joining_type, output_ident_category): Check out-of-range
31770         values added to 3-level tables.
31772 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31774         gen-uni-tables: utilize 'assert'
31775         * lib/gen-uni-tables.c: Include <assert.h>.
31776         (output_category, output_combclass, output_decimal_digit_test)
31777         (output_decimal_digit, output_digit_test, output_digit)
31778         (output_numeric, get_mirror_value, fill_properties)
31779         (fill_property30, is_property_alphabetic)
31780         (is_property_default_ignorable_code_point)
31781         (is_property_uppercase, is_property_lowercase)
31782         (is_property_cased, is_property_case_ignorable)
31783         (is_property_changes_when_lowercased, is_property_iso_control)
31784         (is_property_math, fill_arabicshaping, output_joining_group)
31785         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31786         (output_wbp, fill_org_gbp, get_decomposition)
31787         (output_decomposition, fill_composition_exclusions)
31788         (debug_output_composition_tables, output_composition_tables)
31789         (redistribute_casefolding_rules, output_casing_rules): Use
31790         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31791         reporting.
31793 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31795         gen-uni-tables: cosmetic improvements
31796         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31797         variables specification.
31798         (is_outdigit): Remove unused function.
31800 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31802         fcntl-h-tests: port to PA-RISC GNU/Linux
31803         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31805 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31807         fts: port to C89
31808         Problem reported for MSVC 16 by Gisle Vanem in:
31809         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31810         * lib/fts.c (fts_build): Avoid declaration before statement.
31812 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31814         unistd: port to iOS
31815         Problem reported by André Klitzing in:
31816         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31817         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31819 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31821         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31822         Problem reported by Alan Modra in:
31823         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31824         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31825         Always cast the function arg, reverting this part of the previous
31826         change.
31828 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31830         obstack: avoid potentially-nonportable function casts
31831         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31832         Remove, replacing with ...
31833         (call_chunkfun, call_freefun): New static functions.
31834         All uses changed.  Avoid potentially-nonportable casts.
31835         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31836         (_obstack_begin_worker): Omit last two args, since they
31837         rely on potentially-nonportable casts.  All callers changed.
31838         * lib/obstack.h (_OBSTACK_CAST): New macro.
31839         Use it everywhere the old API used a potentially-nonportable cast.
31840         The new API doesn't cast.
31841         (struct obstack): Use unions rather than requiring
31842         potentially-nonportable casts.
31843         (obstack_chunkfun, obstack_freefun): Return void.
31845 2014-11-03  Alan Modra  <amodra@gmail.com>
31847         obstack: fix macro return values
31848         * lib/obstack.h (obstack_next_free): Return void *.
31849         (obstack_1grow_fast, obstack_blank_fast): Return void.
31850         For __GNUC__ macros:
31851         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31852         For !__GNUC__ macros:
31853         (obstack_make_room, obstack_grow, obstack_grow0)
31854         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31856 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31858         obstack: do not assume system-supplied obstack is size_t safe
31859         * m4/obstack.m4: New file.
31860         * modules/obstack (Files): Add it.
31862         obstack: port to platforms that #define __alignof__
31863         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31864         not if !_LIBC.  We don't know of any platforms that #define
31865         __alignof__, but it might be useful in tests.  Conversely,
31866         glibc assumes GCC.
31868 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31870         linkat: don't unconditionally replace on GNU/Linux
31871         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31872         was redundant for a few reasons.  It was present to support compiling
31873         on new systems but running on the old narrow window of Linux 2.6.1[67].
31874         It setup and cleaned up test files which weren't actually used.
31875         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31876         implicit in the following check.
31878 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31880         linkat: wrap to handle symlinks on OS X 10.10
31881         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31882         but not usable because it doesn't support creating hardlinks
31883         to symlinks.  Therefore add a generic test for this capability
31884         and fallback to our emulation if linkat() fails with ENOTSUP.
31886 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31888         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31889         * doc/posix-functions/open.texi (open):
31890         * doc/posix-functions/openat.texi (openat):
31891         Document that these functions do not set errno to ELOOP when
31892         a symlink is opened with O_NOFOLLOW.
31894 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31896         obstack: add NEWS entry for recent incompatible changes
31897         * NEWS: Describe recent changes.
31899 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31901         mountlist: don't use libmount to decide on dummy/remote
31902         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31903         routines to determine whether a file system is dummy or remote,
31904         as they're not currently compatible.  For example the remoteness
31905         is determined on file system type (for which the list seems incomplete),
31906         rather than simply checking for a ':' in the device name.
31907         Also libmount currently determines that 'tmpfs' is a dummy file system
31908         even though it has associated storage.
31910 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31912         obstack: prefer __alignof__ to alignof
31913         This is for portability to pre-4.7 GCC when compiling glibc.
31914         See Joseph S. Myers in:
31915         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31916         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31917         New macro, defined by including and using <alignof.h>.
31918         (MAX): New macro.
31919         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31920         Do not use enums as they are not portable to some broken compilers.
31921         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31923         obstack: prefer alignof to calculating alignments by hand
31924         * lib/obstack.c: Include <stdalign.h>.
31925         (struct fooalign): Remove.
31926         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31927         * modules/obstack (Depends-on): Add stdalign.
31929 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31931         obstack: use size_t alignments and check for overflow
31932         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31933         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31934         * lib/obstack.h (struct obstack.alignment_mask):
31935         Use _OBSTACK_SIZE_T, not int, for alignments.
31936         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31937         overflows, e.g., when adding the alignment.
31939 2014-10-29  Alan Modra  <amodra@gmail.com>
31941         obstack: 64-bit obstack support, part 3
31942         This finally enables full 64-bit obstack support.  The glibc
31943         shared library specific code is removed from obstack.c too, and
31944         the error handling code conditionally compiled under control of
31945         another macro, _OBSTACK_NO_ERROR_HANDLER.
31946         * lib/obstack.h: Include string.h earlier.
31947         (_OBSTACK_INTERFACE_VERSION): Define.
31948         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31949         * lib/obstack.c: Don't include shlib-compat.h.
31950         (OBSTACK_INTERFACE_VERSION): Delete.
31951         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31952         glibc code is compatible with version 2.  Don't include stdio.h for
31953         __GNU_LIBRARY.
31954         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31955         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31956         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31957         glibc shared library specific source.
31959         obstack: 64-bit obstack support, part 2
31960         This gets us 4G obstack support, without changing ABI
31961         compatibility, apart from possibly introducing some
31962         signed/unsigned comparison warnings in code that uses obstack.h.
31963         a) Replace "int" size parameters, return values, and macro local vars
31964            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31965         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31966         c) Make all obstack macros checking available room use obstack_room.
31967            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31968            allocated near the top of memory.
31969         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31970         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31971         in place of "int" size parameters, return values and local vars.
31972         (_CHUNK_SIZE_T): Define.
31973         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31974         union use an _OBSTACK_SIZE_T integer type.
31975         For __GNUC__ versions of the following macros...
31976         (obstack_room): Rename local var.
31977         (obstack_make_room): Use obstack_room.
31978         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31979         obstack_int_grow, obstack_blank): Likewise.
31980         (obstack_finish): Use unsigned comparison when comparing aligned
31981         next_free against chunk_limit.
31982         (obstack_free): Cast OBJ to remove possible const qualifier.
31983         For !__GNUC__ versions of the following macros...
31984         (obstack_make_room): Use obstack_room.
31985         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31986         obstack_int_grow, obstack_blank): Likewise.
31987         (obstack_finish): Use unsigned comparision when comparing aligned
31988         next_free against chunk_limit.
31989         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31990         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31991         _OBSTACK_SIZE_T.
31992         (_obstack_begin, _obstack_begin_1): Likewise.
31993         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31994         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31996         obstack: 64-bit obstack support, part 1
31997         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31998            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31999            and "size_t" 64 bits.
32000         b) Consolidate _obstack_begin and _obstack_begin1 code.
32001         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32002         use "size_t" rather than "long".
32003         (_obstack_begin, _obstack_begin1): Likewise.
32004         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32005         obstack_chunkfun): Update alloc function casts.
32006         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32007         (chunkfun_type, freefun_type): New typdefs.
32008         (_obstack_begin_worker): Split out from ..
32009         (_obstack_begin, _obstack_begin_1): ..here.
32011         obstack: tidy part 2
32012         a) Don't be concerned about "not polluting the namespace with stddef.h
32013            symbols" in obstack.h, since gnulib string.h includes stddef.h
32014            anyway, and it seems unlikely that anyone would care.
32015         b) Don't roll our own slow memcpy in _obstack_newchunk.
32016         c) Rename obstack_free to _obstack_free.  This makes the naming
32017            consistent with other obstack functions and obviates the need for
32018            __obstack_free.  Ancient obstack.c defined both obstack_free and
32019            _obstack_free.  We continue to do that for _LIBC via an alias.
32020         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32021            is clever, but nowadays gcc warns on undefined macros.  You'll get
32022            an undefined macro warning if simulating an old gcc with -U__GNUC__
32023            -U__GNUC_MINOR__ -D__GNUC__=1.
32024         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32025         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32026         (__obstack_free): Delete, update refs.
32027         (_obstack_free): Rename from obstack_free.
32028         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32029         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32030         * lib/obstack.c: Don't include stddef.h.
32031         (COPYING_UNIT): Delete.
32032         (_obstack_begin): Formatting fix.
32033         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32034         (_obstack_free): Rename from __obstack_free, update alias.  Move
32035         undef of obstack_free to where it is needed.
32037         obstack: tidy part 1
32038         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32039            to me, and result in overlong lines after later patches.
32040         b) Move error handling code, to avoid a forward declaration and to
32041            simplify later patches in this series.
32042         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32043         and update all uses.
32044         * lib/obstack.c: Include stdlib.h earlier.
32045         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32046         in file.
32047         (print_and_abort): Remove now redundant forward declaration.
32049 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32051         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32052         Without this change, in bleeding-edge fileutils Autoconf complains
32053         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32054         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32055         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32056         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32058 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32060         iconv: avoid false detection of non-working iconv
32061         The INBUF arguments of iconv can be either 'const char **'
32062         or 'char **'.  If CC is g++, the difference causes a compile error
32063         and thus leads to a false detection of non-working iconv.
32064         Reported by Eli Zaretskii and Werner LEMBERG in:
32065         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32066         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32067         iconv.  Bump serial number.
32069 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32071         bootstrap: print more diagnostics for missing programs
32072         * build-aux/bootstrap: only suppress stderr when checking for
32073         alternative program names.  This supports programs issuing non
32074         standard error messages.
32076 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32078         bootstrap: only update the gnulib submodule
32079         * build-aux/bootstrap: Restrict the "submodule update" command
32080         to the gnulib path.
32082 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32084         symlinkat: port to AIX 7.1
32085         * doc/posix-functions/symlinkat.texi (symlinkat):
32086         Mention AIX porting problem.
32087         * lib/symlinkat.c: Always include errno.h.
32088         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32089         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32090         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32092         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32093         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32094         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32096         readlinkat: port to AIX 7.1
32097         * doc/posix-functions/readlink.texi (readlink):
32098         * doc/posix-functions/readlinkat.texi (readlinkat):
32099         Mention AIX porting problem.
32100         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32101         New function.
32102         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32103         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32105         * modules/readlinkat (configure.ac): Also compile replacement
32106         if REPLACE_READLINKAT.
32107         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32109 2014-10-12  Karl Berry  <karl@gnu.org>
32111         * doc/posix-functions/dirname.texi: remove spurious {.
32113 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32115         basename, dirname: Improve documentation.
32116         * doc/posix-functions/basename.texi: Mention dirname module and
32117         base_name() function.
32118         * doc/posix-functions/dirname.texi: Mention dir_name() and
32119         mdir_name() functions.
32120         Suggested by Werner LEMBERG <wl@gnu.org>.
32122 2014-09-24  Jim Meyering  <meyering@fb.com>
32124         exclude: declare exclude_patopts static
32125         * lib/exclude.c (exclude_patopts): Declare static,
32126         to avoid triggering a -Wmissing-prototypes warning.
32127         The alternative (declaring it in the .h file) would
32128         require publicizing the private "struct patopts".
32130 2014-09-21  Werner Lemberg  <wl@gnu.org>
32132         dirname: support compilation with C++
32133         * lib/dirname.h: Add necessary C linkage declarations.
32135 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32137         qsort_r: include <config.h>
32138         Problem reported by Tom G. Christensen in:
32139         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32140         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32142 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32144         avltree-list: avoid compiler warnings (trivial)
32145         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32146         -Werror=suggest-attribute=pure.
32147         * lib/gl_array_list.c: Likewise.
32148         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32149         declaration to avoid -Werror=missing-prototypes.  This is not added
32150         to a header as only exported for tests.  Add (void) to the
32151         check_invariants() call to indicate we're discarding the result
32152         in this context which avoids -Werror=unused-value.  Note we don't
32153         use ignore_value here to avoid a dependency as we know we'll not
32154         be adding __attribute__((warn_unused_result)) to check_invariants().
32155         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32157 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32159         qsort_r: new module, for GNU-style qsort_r
32160         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32162 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32164         strerror_r-posix: support compilation with C++
32165         * lib/strerror_r.c: Add necessary C linkage declarations.
32167 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32169         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32170         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32172 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32174         mountlist: use /proc/self/mountinfo when available
32175         Use libmount to propagate device IDs provided by Linux in
32176         /proc/self/mountinfo.  This will give more accurate output when
32177         using df in chroot'ed environments as the device IDs are not
32178         determined by stat() which may be inaccurate within the chroot.
32179         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32180         from util-linux to parse "/proc/self/mountinfo" or fall back to
32181         standard getmntent() processing.
32182         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32183         getmntent() is used, as is the case on GNU/Linux.
32185 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32187         users.txt: add cmogstored
32188         cmogstored has used gnulib since the beginning in 2012 to support
32189         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32191 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32193         Trivial change.
32194         * gnulib-tool: Use same options as build-aux/bootstrap to download
32195         PO files.
32197 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32199         Trivial change.
32200         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32202 2014-09-04  Eric Blake  <eblake@redhat.com>
32204         maintainer-makefile: add syntax check for useless ';;'
32205         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32207 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32209         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32210         Problem reported by Assaf Gordon in:
32211         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32212         Apparently Ubuntu is doing some fancy link-time optimization
32213         that doesn't work with -lpthread but does work with -pthread.
32214         Work around the bug by preferring -pthread to -lpthread.
32215         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32216         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32218         Treat -pthread like -lpthread.
32220 2014-09-04  Eric Blake  <eblake@redhat.com>
32222         error: drop spurious semicolon
32223         * lib/error.c (__error_at_line): Fix ';;'.
32225 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32227         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32228         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32229         Override AC_C_RESTRICT unconditionally.
32230         Update from autoconf, incorporating:
32231         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32232         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32234 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32236         manywarnings: add GCC 4.9 warnings
32237         Also, make it easier to maintain this in the future.
32238         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32239         -Wconditionally-supported, -Wdelete-incomplete,
32240         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32241         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32242         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32243         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32244         only for older GCC versions that need them.  Handle
32245         -Wnormalized=nfc specially, so that the 'comm' command used
32246         for maintenance doesn't get confused.
32248 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32250         vasnprintf: fix bugs in width computation
32251         * lib/vasnprintf.c (VASNPRINTF):
32252         Rework previous change, which introduced a bug,
32253         to avoid the warning in a different way.
32254         Avoid undefined behavior if the width arg is less than -INT_MAX.
32255         Avoid unnecessary use of HAS_WIDTH local.
32257 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32259         vasnprintf: Avoid signed/unsigned comparison warning.
32260         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32261         compare end addr of generated string w/ maximum end addr.
32263 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32265         parse-datetime: Avoid pointer difference.
32266         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32267         instead of calculating difference of pointers.  This removes an
32268         annoying warning, devoid of any use.
32270 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32272         qsort_r: new module, for GNU-style qsort_r
32273         This works even on FreeBSD, which has an incompatible qsort_r API.
32274         * MODULES.html.sh: Add it.
32275         * doc/glibc-functions/qsort_r.texi: It's now supported.
32276         * lib/qsort.c: New file, taken from glibc with minor changes
32277         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32278         removed.
32279         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32280         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32282         * modules/qsort_r, modules/qsort_r-tests: New files.
32283         * modules/stdlib (Makefile): Set up its defaults.
32284         * tests/test-qsort_r.c: New file.
32286 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32288         vla: new module
32289         GNU RCS can use this, mostly for documentation I expect.  See:
32290         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32291         * MODULES.html.sh: Add vla.
32292         * lib/vla.h, modules/vla: New files.
32294 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32296         localename: make gl_locale_name_thread really thread-safe on Windows
32297         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32298         "glthread/lock.h".
32299         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32300         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32302 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32304         getpass: don't assume struct termios
32305         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32306         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32307         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32309         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32310         Problem reported by Jonas 'Sortie' Termansen in:
32311         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32312         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32313         Implement via sysconf for platforms that lack getdtablesize.
32315         vararrays: modernize AC_C_VARARRAYS for C11
32316         This backports a change I recently made to Autoconf.
32317         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32318         VLAs are not supported, as this is what C11 does.  The old macro
32319         HAVE_C_VARARRAYS is still defined if they are supported, but is
32320         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32322 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32324         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32325         * build-aux/install-reloc (func_create_wrapper): Also wrap
32326         strerror-override, stat, stat.
32328 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32330         sys_select: fix FD_ZERO problem on Solaris 10
32331         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32332         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32333         to expand to an expression that invoked memset without necessarily
32334         including <string.h>.  The problem was that the first include
32335         defined _SYS_TIME_H, causing the second include to short-circuit.
32336         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32337         Also, fix what appears to be a cut-and-paste typo, by replacing
32338         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32339         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32341         accept: document Solaris 10 type glitch
32342         * doc/posix-functions/accept.texi (accept): Mention that
32343         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32345 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32347         extern-inline: port to FreeBSD, DragonFly
32348         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32349         is present if either __DragonFly__ or __FreeBSD__ is defined.
32350         FreeBSD problem reported by Andrey Borzenkov in:
32351         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32352         Also, worry about __APPLE__ only if __MACH__ is also defined,
32353         as this is more consistent with the rest of gnulib.
32354         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32355         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32357 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32359         regex: Make #if/#ifdef usage consistent for DEBUG
32360         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32361         of the inconsistent usage of #if and #ifdef as that works with
32362         both Glibc and Gnulib's style.
32364 2014-07-31  Eric Blake  <eblake@redhat.com>
32366         openat-die: use _Noreturn markup
32367         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32368         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32369         _Noreturn.
32371 2014-07-30  Eric Blake  <eblake@redhat.com>
32373         test-open: port to cygwin, which lacks Fortify
32374         * tests/test-open.h (ALWAYS_INLINE): New macro.
32375         (__always_inline): Don't abuse internal symbol on non-glibc.
32377 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32379         localename: Enforce declarations before statements.
32380         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32381         first statement.
32383 2014-07-18  Jim Meyering  <meyering@fb.com>
32385         test-userspec: don't look up numeric user names
32386         * tests/test-userspec.c: I found a system for which getpwnam("0")
32387         returned a pointer to a non-root user's entry, and that made the
32388         test fail.
32389         (T): Prefix each numeric input with "+", to inhibit lookup.
32391 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32393         localcharset, localename: MS-Windows support for non-default locales
32394         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32395         falling back on the default system codepage, try extracting
32396         the codepage from what 'setlocale' returns.  This allows to
32397         take into account changes of the codeset due to non-default
32398         locale set by a previous call to 'setlocale'.
32399         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32400         Define if not already defined.
32401         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32402         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32403         current locale by calling 'setlocale', then converting the
32404         locale name into LCID by calling 'get_lcid'.  This allows to
32405         take into account changes in the current locale from the
32406         default one, in contrast to GetThreadLocale.
32408 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32410         announce-gen: avoid failure when Digest::SHA is installed
32411         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32412         Digest::SHA1->new in print_checksums fails.
32413         * build-aux/announce-gen (digest_classes): New associative array
32414         for available message digest implementations.
32415         (print_locations): Use it.
32417 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32419         gettext: revert "update macros to version 0.19"
32420         This reverts commit 9b9370ca, as it currently requires that
32421         developers of any project that explicitly uses the gettext module
32422         or implicitly uses it through the utimens-tests or
32423         futimens-tests modules, use gettext >= 0.19.
32424         However there are some stability and availablity issues with
32425         that version at present.  We can reinstate this soon, when stability
32426         is addressed and packages are more readily available.
32428 2014-07-12  Jim Meyering  <meyering@fb.com>
32430         regex: don't deref NULL upon heap allocation failure
32431         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32432         failure in one more place.
32433         To trigger the segfault, configure grep -with-included-regex,
32434         build it, and run these commands:
32435         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32436         I discovered this while replying to a private report from
32437         Jens Schleusener about excessive memory consumption by grep
32438         when using a regular expression like the one above.
32440 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32442         regex: fix memory leak in compiler
32443         Fix by Andreas Schwab in:
32444         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32445         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32446         constructed tree before returning error.
32448 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32450         announce-gen: avoid perl warnings
32451         * build-aux/announce-gen: add two minor checks to avoid
32452         "use of uninitialized value" warnings when command-line parameters are
32453         missing.
32455 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32457         localename: avoid -Wsuggest-attribute={const,pure} warnings
32458         * lib/localename.c (string_has): Tag internal function as pure.
32459         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32460         as const when appropriate.
32462 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32464         nl_langinfo: Fix last change.
32465         * lib/nl_langinfo.c (includes): Drop redundant include.
32467 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32469         error: Fix -Wundef warnings in glibc
32470         * lib/error.c [_LIBC]: Define default macros for
32471         glibc.
32472         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32473         Check _LIBC before STRERROR_R_CHAR_P.
32475         error: Sync from glibc master
32476         * lib/error.c [_LIBC]: Remove INTUSE usage.
32477         (error_tail): Remove unused macro ALLOCA_LIMIT.
32478         Fix potential buffer overflow.  Fix potential NULL dereference
32479         in strcmp.
32481 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32483         nl_langinfo: fix build under mingw
32484         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32486 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32488         mountlist: do not classify a bind-mounted dir entry as "dummy"
32489         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32490         1-argument getmntent() (instead of assuming absence).
32492 2014-07-08  Eric Blake  <eblake@redhat.com>
32494         maint.mk: less syntax-check noise when SIGPIPE is ignored
32495         * top/maint.mk (_sc_header_without_use)
32496         (sc_require_config_h_first): Parse full list.
32498 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32499             Paul Eggert  <eggert@cs.ucla.edu>
32501         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32502         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32503         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32504         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32505         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32506         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32507         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32508         Include <stdio.h> if Microsoft Windows.
32509         Include <time.h> if !REPLACE_NL_LANGINFO.
32510         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32511         and with improvements for Microsoft Windows.
32512         (rpl_nl_langinfo): Use it.
32513         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32514         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32515         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32516         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32517         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32518         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32519         corresponding values returned by 'localeconv'.  Compute the values
32520         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32521         'strftime' with a suitable struct tm value.
32523 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32525         Bruno Haible has stepped down as maintainer.
32526         See Karl Berry in:
32527         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32528         Daiki Ueno has volunteered to maintain libunistring; see:
32529         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32530         * modules/gen-uni-tables, modules/libunistring:
32531         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32532         * modules/unicase/base, modules/unicase/cased:
32533         * modules/unicase/empty-prefix-context:
32534         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32535         * modules/unicase/locale-language, modules/unicase/special-casing:
32536         * modules/unicase/tocasefold, modules/unicase/tolower:
32537         * modules/unicase/totitle, modules/unicase/toupper:
32538         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32539         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32540         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32541         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32542         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32543         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32544         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32545         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32546         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32547         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32548         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32549         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32550         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32551         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32552         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32553         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32554         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32555         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32556         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32557         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32558         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32559         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32560         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32561         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32562         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32563         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32564         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32565         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32566         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32567         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32568         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32569         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32570         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32571         * modules/uniconv/u16-conv-to-enc:
32572         * modules/uniconv/u16-strconv-from-enc:
32573         * modules/uniconv/u16-strconv-from-locale:
32574         * modules/uniconv/u16-strconv-to-enc:
32575         * modules/uniconv/u16-strconv-to-locale:
32576         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32577         * modules/uniconv/u32-strconv-from-enc:
32578         * modules/uniconv/u32-strconv-from-locale:
32579         * modules/uniconv/u32-strconv-to-enc:
32580         * modules/uniconv/u32-strconv-to-locale:
32581         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32582         * modules/uniconv/u8-strconv-from-enc:
32583         * modules/uniconv/u8-strconv-from-locale:
32584         * modules/uniconv/u8-strconv-to-enc:
32585         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32586         * modules/unictype/bidicategory-all:
32587         * modules/unictype/bidicategory-byname:
32588         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32589         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32590         * modules/unictype/bidiclass-byname:
32591         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32592         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32593         * modules/unictype/block-all, modules/unictype/block-list:
32594         * modules/unictype/block-of, modules/unictype/block-test:
32595         * modules/unictype/category-C, modules/unictype/category-Cc:
32596         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32597         * modules/unictype/category-Co, modules/unictype/category-Cs:
32598         * modules/unictype/category-L, modules/unictype/category-LC:
32599         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32600         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32601         * modules/unictype/category-Lu, modules/unictype/category-M:
32602         * modules/unictype/category-Mc, modules/unictype/category-Me:
32603         * modules/unictype/category-Mn, modules/unictype/category-N:
32604         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32605         * modules/unictype/category-No, modules/unictype/category-P:
32606         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32607         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32608         * modules/unictype/category-Pi, modules/unictype/category-Po:
32609         * modules/unictype/category-Ps, modules/unictype/category-S:
32610         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32611         * modules/unictype/category-Sm, modules/unictype/category-So:
32612         * modules/unictype/category-Z, modules/unictype/category-Zl:
32613         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32614         * modules/unictype/category-all, modules/unictype/category-and:
32615         * modules/unictype/category-and-not, modules/unictype/category-byname:
32616         * modules/unictype/category-longname, modules/unictype/category-name:
32617         * modules/unictype/category-none, modules/unictype/category-of:
32618         * modules/unictype/category-or, modules/unictype/category-test:
32619         * modules/unictype/category-test-withtable:
32620         * modules/unictype/combining-class:
32621         * modules/unictype/combining-class-all:
32622         * modules/unictype/combining-class-byname:
32623         * modules/unictype/combining-class-longname:
32624         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32625         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32626         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32627         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32628         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32629         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32630         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32631         * modules/unictype/digit, modules/unictype/joininggroup-all:
32632         * modules/unictype/joininggroup-byname:
32633         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32634         * modules/unictype/joiningtype-all:
32635         * modules/unictype/joiningtype-byname:
32636         * modules/unictype/joiningtype-longname:
32637         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32638         * modules/unictype/mirror, modules/unictype/numeric:
32639         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32640         * modules/unictype/property-ascii-hex-digit:
32641         * modules/unictype/property-bidi-arabic-digit:
32642         * modules/unictype/property-bidi-arabic-right-to-left:
32643         * modules/unictype/property-bidi-block-separator:
32644         * modules/unictype/property-bidi-boundary-neutral:
32645         * modules/unictype/property-bidi-common-separator:
32646         * modules/unictype/property-bidi-control:
32647         * modules/unictype/property-bidi-embedding-or-override:
32648         * modules/unictype/property-bidi-eur-num-separator:
32649         * modules/unictype/property-bidi-eur-num-terminator:
32650         * modules/unictype/property-bidi-european-digit:
32651         * modules/unictype/property-bidi-hebrew-right-to-left:
32652         * modules/unictype/property-bidi-left-to-right:
32653         * modules/unictype/property-bidi-non-spacing-mark:
32654         * modules/unictype/property-bidi-other-neutral:
32655         * modules/unictype/property-bidi-pdf:
32656         * modules/unictype/property-bidi-segment-separator:
32657         * modules/unictype/property-bidi-whitespace:
32658         * modules/unictype/property-byname:
32659         * modules/unictype/property-case-ignorable:
32660         * modules/unictype/property-cased:
32661         * modules/unictype/property-changes-when-casefolded:
32662         * modules/unictype/property-changes-when-casemapped:
32663         * modules/unictype/property-changes-when-lowercased:
32664         * modules/unictype/property-changes-when-titlecased:
32665         * modules/unictype/property-changes-when-uppercased:
32666         * modules/unictype/property-combining:
32667         * modules/unictype/property-composite:
32668         * modules/unictype/property-currency-symbol:
32669         * modules/unictype/property-dash:
32670         * modules/unictype/property-decimal-digit:
32671         * modules/unictype/property-default-ignorable-code-point:
32672         * modules/unictype/property-deprecated:
32673         * modules/unictype/property-diacritic:
32674         * modules/unictype/property-extender:
32675         * modules/unictype/property-format-control:
32676         * modules/unictype/property-grapheme-base:
32677         * modules/unictype/property-grapheme-extend:
32678         * modules/unictype/property-grapheme-link:
32679         * modules/unictype/property-hex-digit:
32680         * modules/unictype/property-hyphen:
32681         * modules/unictype/property-id-continue:
32682         * modules/unictype/property-id-start:
32683         * modules/unictype/property-ideographic:
32684         * modules/unictype/property-ids-binary-operator:
32685         * modules/unictype/property-ids-trinary-operator:
32686         * modules/unictype/property-ignorable-control:
32687         * modules/unictype/property-iso-control:
32688         * modules/unictype/property-join-control:
32689         * modules/unictype/property-left-of-pair:
32690         * modules/unictype/property-line-separator:
32691         * modules/unictype/property-logical-order-exception:
32692         * modules/unictype/property-lowercase, modules/unictype/property-math:
32693         * modules/unictype/property-non-break:
32694         * modules/unictype/property-not-a-character:
32695         * modules/unictype/property-numeric:
32696         * modules/unictype/property-other-alphabetic:
32697         * modules/unictype/property-other-default-ignorable-code-point:
32698         * modules/unictype/property-other-grapheme-extend:
32699         * modules/unictype/property-other-id-continue:
32700         * modules/unictype/property-other-id-start:
32701         * modules/unictype/property-other-lowercase:
32702         * modules/unictype/property-other-math:
32703         * modules/unictype/property-other-uppercase:
32704         * modules/unictype/property-paired-punctuation:
32705         * modules/unictype/property-paragraph-separator:
32706         * modules/unictype/property-pattern-syntax:
32707         * modules/unictype/property-pattern-white-space:
32708         * modules/unictype/property-private-use:
32709         * modules/unictype/property-punctuation:
32710         * modules/unictype/property-quotation-mark:
32711         * modules/unictype/property-radical:
32712         * modules/unictype/property-sentence-terminal:
32713         * modules/unictype/property-soft-dotted:
32714         * modules/unictype/property-space:
32715         * modules/unictype/property-terminal-punctuation:
32716         * modules/unictype/property-test, modules/unictype/property-titlecase:
32717         * modules/unictype/property-unassigned-code-value:
32718         * modules/unictype/property-unified-ideograph:
32719         * modules/unictype/property-uppercase:
32720         * modules/unictype/property-variation-selector:
32721         * modules/unictype/property-white-space:
32722         * modules/unictype/property-xid-continue:
32723         * modules/unictype/property-xid-start:
32724         * modules/unictype/property-zero-width, modules/unictype/scripts:
32725         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32726         * modules/unictype/syntax-c-whitespace:
32727         * modules/unictype/syntax-java-ident:
32728         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32729         * modules/unigbrk/u16-grapheme-breaks:
32730         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32731         * modules/unigbrk/u32-grapheme-breaks:
32732         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32733         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32734         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32735         * modules/unigbrk/uc-is-grapheme-break:
32736         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32737         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32738         * modules/unilbrk/u16-width-linebreaks:
32739         * modules/unilbrk/u32-possible-linebreaks:
32740         * modules/unilbrk/u32-width-linebreaks:
32741         * modules/unilbrk/u8-possible-linebreaks:
32742         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32743         * modules/unilbrk/ulc-possible-linebreaks:
32744         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32745         * modules/uniname/uniname, modules/uninorm/base:
32746         * modules/uninorm/canonical-decomposition:
32747         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32748         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32749         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32750         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32751         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32752         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32753         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32754         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32755         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32756         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32757         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32758         * modules/unistdio/base, modules/unistdio/u-printf-args:
32759         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32760         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32761         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32762         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32763         * modules/unistdio/u16-u16-sprintf:
32764         * modules/unistdio/u16-u16-vasnprintf:
32765         * modules/unistdio/u16-u16-vasprintf:
32766         * modules/unistdio/u16-u16-vsnprintf:
32767         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32768         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32769         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32770         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32771         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32772         * modules/unistdio/u32-u32-asnprintf:
32773         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32774         * modules/unistdio/u32-u32-sprintf:
32775         * modules/unistdio/u32-u32-vasnprintf:
32776         * modules/unistdio/u32-u32-vasprintf:
32777         * modules/unistdio/u32-u32-vsnprintf:
32778         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32779         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32780         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32781         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32782         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32783         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32784         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32785         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32786         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32787         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32788         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32789         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32790         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32791         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32792         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32793         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32794         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32795         * modules/unistr/u16-check, modules/unistr/u16-chr:
32796         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32797         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32798         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32799         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32800         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32801         * modules/unistr/u16-move, modules/unistr/u16-next:
32802         * modules/unistr/u16-prev, modules/unistr/u16-set:
32803         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32804         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32805         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32806         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32807         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32808         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32809         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32810         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32811         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32812         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32813         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32814         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32815         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32816         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32817         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32818         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32819         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32820         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32821         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32822         * modules/unistr/u32-next, modules/unistr/u32-prev:
32823         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32824         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32825         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32826         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32827         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32828         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32829         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32830         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32831         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32832         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32833         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32834         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32835         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32836         * modules/unistr/u8-check, modules/unistr/u8-chr:
32837         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32838         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32839         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32840         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32841         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32842         * modules/unistr/u8-next, modules/unistr/u8-prev:
32843         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32844         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32845         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32846         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32847         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32848         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32849         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32850         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32851         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32852         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32853         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32854         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32855         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32856         * modules/uniwbrk/base, modules/uniwbrk/table:
32857         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32858         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32859         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32860         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32861         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32862         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32863         * modules/uniwidth/width, modules/utf16-ucs4:
32864         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32865         * modules/utf8-ucs4-unsafe:
32866         Change maintainer from Bruno Haible to Daiki Ueno.
32867         This is my guess at the libunistring modules; please feel free
32868         to fix if I guessed incorrectly.
32869         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32870         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32871         * modules/areadlink, modules/array-list, modules/array-mergesort:
32872         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32873         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32874         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32875         * modules/binary-io, modules/bison-i18n, modules/btowc:
32876         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32877         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32878         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32879         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32880         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32881         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32882         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32883         * modules/closedir, modules/concat-filename, modules/copy-file:
32884         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32885         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32886         * modules/csharpcomp-script, modules/csharpexec:
32887         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32888         * modules/dprintf, modules/dprintf-posix, modules/dup:
32889         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32890         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32891         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32892         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32893         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32894         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32895         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32896         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32897         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32898         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32899         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32900         * modules/findprog, modules/findprog-lgpl, modules/floor:
32901         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32902         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32903         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32904         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32905         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32906         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32907         * modules/freadable, modules/freadahead, modules/freadptr:
32908         * modules/freadseek, modules/freopen, modules/frexp:
32909         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32910         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32911         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32912         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32913         * modules/ftello, modules/full-read, modules/full-write:
32914         * modules/fwritable, modules/fwriteerror, modules/gcd:
32915         * modules/get-rusage-as, modules/get-rusage-data:
32916         * modules/getdtablesize, modules/getrusage, modules/gettext:
32917         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32918         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32919         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32920         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32921         * modules/iconv, modules/iconv-h, modules/iconv_open:
32922         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32923         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32924         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32925         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32926         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32927         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32928         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32929         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32930         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32931         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32932         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32933         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32934         * modules/lib-symbol-visibility, modules/libsigsegv:
32935         * modules/linked-list, modules/linkedhash-list, modules/list:
32936         * modules/localcharset, modules/locale, modules/localeconv:
32937         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32938         * modules/log10, modules/log10-ieee, modules/log10f:
32939         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32940         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32941         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32942         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32943         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32944         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32945         * modules/logf, modules/logf-ieee, modules/login_tty:
32946         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32947         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32948         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32949         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32950         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32951         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32952         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32953         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32954         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32955         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32956         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32957         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32958         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32959         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32960         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32961         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32962         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32963         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32964         * modules/posix_spawn, modules/posix_spawn-internal:
32965         * modules/posix_spawn_file_actions_addclose:
32966         * modules/posix_spawn_file_actions_adddup2:
32967         * modules/posix_spawn_file_actions_addopen:
32968         * modules/posix_spawn_file_actions_destroy:
32969         * modules/posix_spawn_file_actions_init:
32970         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32971         * modules/posix_spawnattr_getpgroup:
32972         * modules/posix_spawnattr_getschedparam:
32973         * modules/posix_spawnattr_getschedpolicy:
32974         * modules/posix_spawnattr_getsigdefault:
32975         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32976         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32977         * modules/posix_spawnattr_setschedparam:
32978         * modules/posix_spawnattr_setschedpolicy:
32979         * modules/posix_spawnattr_setsigdefault:
32980         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32981         * modules/pow, modules/powf, modules/printf-frexp:
32982         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32983         * modules/progname, modules/propername, modules/pselect:
32984         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32985         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32986         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32987         * modules/read, modules/readdir, modules/readlink:
32988         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32989         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32990         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32991         * modules/relocatable-script, modules/remainder:
32992         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32993         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32994         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32995         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32996         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32997         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32998         * modules/setlocale, modules/sh-quote, modules/shutdown:
32999         * modules/signal, modules/signbit, modules/sigpipe:
33000         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33001         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33002         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33003         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33004         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33005         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33006         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33007         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33008         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33009         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33010         * modules/streq, modules/strerror_r-posix, modules/striconv:
33011         * modules/striconveh, modules/striconveha, modules/strncat:
33012         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33013         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33014         * modules/sys_wait, modules/system-posix, modules/system-quote:
33015         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33016         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33017         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33018         * modules/truncf, modules/truncf-ieee, modules/truncl:
33019         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33020         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33021         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33022         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33023         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33024         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33025         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33026         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33027         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33028         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33029         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33030         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33031         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33032         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33033         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33034         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33035         * modules/write, modules/xconcat-filename, modules/xlist:
33036         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33037         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33038         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33039         * modules/y0, modules/y1, modules/yn:
33040         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33041         change the maintainer to 'all'.  Let's hope someone volunteers.
33043 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33045         mktime: merge #if/#ifdef usage from glibc
33046         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33047         as that works with both Glibc's and Gnulib's style.
33048         See thread starting at Siddhesh Poyarekar's bug report at:
33049         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33051 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33053         git-version-gen: improve option descriptions
33054         * build-aux/git-version-gen: Mention that --prefix and --fallback
33055         have a mandatory argument.
33057 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33059         regex: fix memory leak in compiler
33060         Fix by Andreas Schwab in:
33061         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33062         * lib/regcomp.c (parse_expression): Deallocate partially
33063         constructed tree before returning error.
33065         regex: merge patch from libc
33066         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33067         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33068         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33070 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33072         acl: port to gcc -Wredundant-decls
33073         From a request by Dmitry Antipov in:
33074         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33075         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33076         "#ifndef _GL_ACL_H".
33078 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33079         Jim Meyering  <meyering@fb.com>
33081         parse-duration: eliminate 68-year duration limit
33082         * lib/parse-duration.c: Include "intprops.h".
33083         (TIME_MAX): Rename to MAX_DURATION and define to
33084         TYPE_MAXIMUM(time_t).
33085         * modules/parse-duration (Depends-on): Add intprops.
33086         Reported by Jonas 'Sortie' Termansen.
33088 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33090         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33091         * modules/pthread (Depends-on): Add 'extensions', as it defines
33092         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33093         (configure.ac-early): New section.
33094         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33095         it is no longer needed.
33097 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33099         pthread: define thread-safe macros on some platforms
33100         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33101         for thread-safe operation on some platforms.
33103 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33105         regex: don't be multithreaded if USE_UNLOCKED_IO.
33106         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33107         * lib/regex_internal.h: Do not use multithreaded version if
33108         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33109         around a porting bug with coreutils 8.22 on AIX 7.1.
33111 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33113         gettext: update macros to version 0.19
33114         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33115         depend on gl_EXTERN_INLINE and drop support for older Bison
33116         versions.
33118 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33120         select,poll: fix console handle check on windows 8
33121         lib/poll.c (IsConsoleHandle): Change from testing the lower
33122         2 bits of the handle to the more expensive but accurate syscall.
33123         lib/select.c: Likewise.
33125 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33127         select: fix waiting on anonymous pipes on MS-Windows
33128         * lib/select.c (rpl_select): Fall back to polling when select()
33129         indicates there is nothing to check, while due to the timeout not
33130         expiring, activity is indicated on one of the handles.
33131         Also clear the TIMEOUT argument if the timer does expire.
33133 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33135         times: fix to return non constant value on MS-Windows
33136         * lib/times.c (times): Don't use the process creation time,
33137         rather clock() which on windows returns the number of
33138         clock ticks since the process started.
33140 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33142         isatty: fix to work on windows 8
33143         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33144         2 bits of the handle to the more expensive but accurate syscall.
33146 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33148         maint: fix typo in fdl.texi
33149         * doc/fdl.texi: Fix typo (missing '@').
33150         Somehow this was in fdl.texi but not fdl-1.3.texi.
33152 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33154         mountlist: avoid hasmntopt const type warning on solaris
33155         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33156         with char * instead of const char *.  Passing the constant string
33157         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33158         to avoid the warning.
33160 2014-06-04  Eric Blake  <eblake@redhat.com>
33162         maintainer-makefile: delete obsolete code
33163         * top/maint.mk (build_aux): Drop old code, as threatened.
33165         maintainer-makefile: avoid spurious error messages
33166         * top/maint.mk (syntax-check): Guard definition and use of
33167         $(shell) by whether Makefile is present.
33169 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33171         rename: avoid unused-but-set-variable compiler warning
33172         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33173         it is possible that dst_exists may be set but not used.  Mark it with
33174         the unused attribute to avoid compiler warnings.
33176 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33178         rename: mark a label as potentially unused
33179         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33180         by marking the out label as potentially unused.
33181         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33183 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33185         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33186         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33188 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33190         acl: apply pure attribute to two functions
33191         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33192         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33194 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33196         gnulib-common.m4: add _GL_UNUSED_LABEL
33197         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33198         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33200 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33202         dup2, fcntl, fcntl-h: port to AIX 7.1
33203         This fixes some porting problems discovered when testing the latest
33204         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33205         in grep but it could be important for other applications.
33206         * doc/posix-functions/dup2.texi:
33207         * doc/posix-functions/fcntl.texi:
33208         * doc/posix-headers/fcntl.texi:
33209         Document AIX bugs.
33210         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33211         Define to 0 if outside 'int' range.
33212         * m4/dup2.m4 (gl_FUNC_DUP2):
33213         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33214         Check for getdtablesize.  If it's available, test a value just
33215         outside its range instead of testing 1000000.  When cross-compiling,
33216         guess that AIX will fail this improved test.
33218 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33220         printf, config.rpath: Port to FreeBSD 10.
33221         Problem reported by Tijl Coosemans in:
33222         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33223         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33224         (hardcode_direct): Simplify FreeBSD configuration.
33225         (library_names_spec): Don't mishandle FreeBSD 10+.
33226         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33227         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33228         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33229         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33230         Don't mishandle FreeBSD 10+ when cross-compiling.
33232         ftoastr: work around compiler bug in IBM xlc 12.1
33233         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33234         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33235         around a compiler bug in IBM xlc 12.1.0.0: it complains
33236         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33237         _GL_FLT_PREC_BOUND.'
33239 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33241         valgrind-tests: fixed misleading help message
33242         * m4/valgrind-tests.m4: The help message generated by configure
33243         implied that valgrind was disabled by default, which it wasn't.
33244         Adjusted the help message using s/enable/disable/ to clarify.
33246 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33248         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33249         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33250         first double of a PowerPC "double double" pair.
33251         * tests/test-isinf.c (test_isinfl): Likewise.
33252         * tests/test-isnan.c (test_long_double): Likewise.
33253         * tests/test-isnanl.h (main): Likewise.
33254         * tests/test-signbit.c (test_signbitl): Likewise.
33256 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33258         exclude-tests: port to AIX 7.1
33259         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33260         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33261         the regex code uses locks.
33263 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33265         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33266         Without this fix, Emacs would sometimes call sigprocmask instead
33267         of pthread_sigmask, which is a no-no in multithreaded applications.
33268         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33269         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33270         Suppress check for pthread_sigmask working without -lpthread if
33271         the application always links with -lpthread.  Do not link with
33272         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33273         * m4/timer_time.m4 (gl_TIMER_TIME):
33274         Require gl_THREADLIB only if it is defined.  Do not append
33275         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33277 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33279         gnulib-tool: wget translations using --no-verbose rather than --quiet
33280         This allows the user to see error messages if any (--quiet hides them)
33281         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33283 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33285         gnulib-tool: adjust translation wget to avoid a https redirection
33286         Context: http://translationproject.org/latest/gnulib redirects to
33287            https://translationproject.org/latest/gnulib/
33288         Rationale: if the user falls back to wget, she doesn't have rsync and
33289         is probably in a minimal build environment, where packages such as
33290         'ca-certificates' are missing as well, resulting in a failed (and
33291         difficult to detect since ignored) translation initial fetch.
33292         Consequently let's avoid https if possible, and add the missing
33293         trailing slash.  This also avoids an unnecessary 302 redirection.
33294         * gnulib-tool: Add trailing slash to gnulib URL.
33296 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33298         getlogin_r-tests: check return value rather than errno
33299         * tests/test-getlogin_r.c (main): As per POSIX we should be
33300         verifying the return value from getlogin_r() rather than errno.
33302 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33304         getlogin_r-tests: fix various issues in recent change
33305         * tests/test-getlogin_r.c: Include required headers that were
33306         missed in recent commit eec20b4e.
33307         Also consistently check the errno rather than the return value from
33308         getlogin_r as POSIX only specifies that non zero is returned on error.
33309         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33311 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33313         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33314         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33315         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33316         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33317         * lib/spawn-pipe.c:
33318         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33319         and then 'int open64(const char *, int, ...);', which means the
33320         declaration for 'open' gets lost if we later '#undef open'.
33321         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33322         where the compilation reported the non-fatal error "In function
33323         'openat_proc_name' ... warning: implicit declaration of function
33324         'open'".  In this case the error is relatively harmless, but in
33325         other cases it might not be so minor.
33327 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33329         xalloc: don't potentially generate invalid code for xmemdup calls
33330         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33331         this function can initialize the newly-allocated storage with new
33332         pointers, which means this function is not malloc-like.  See:
33333         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33335 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33337         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33338         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33339         changes from commit 97249cf29 to not depend on environment variables.
33341 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33343         getlogin-tests: avoid false failure under cron
33344         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33345         since that's not what's under test.  Centos 6 was seen to return
33346         EINVAL for ttyname() when run from cron.
33348 2014-05-16  Jim Meyering  <meyering@fb.com>
33350         mbrtowc.m4: fix a comment typo
33351         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33352         emitted documentation string.
33354 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33356         mbrlen, mbrtowc: fix bug with empty input
33357         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33358         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33359         so this is mainly for documentation.
33360         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33361         (gl_FUNC_MBRTOWC): Use it.
33362         * tests/test-mbrtowc.c (main): Test for the bug.
33364 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33366         doc: document mbrtowc and mbrlen problem with empty input
33367         * doc/posix-functions/mbrlen.texi (mbrlen):
33368         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33369         Document portability problem when the input string is empty.  See:
33370         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33372         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33373         Problem reported by Eli Zaretskii in:
33374         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33375         * doc/posix-functions/execl.texi (execl):
33376         * doc/posix-functions/execle.texi (execle):
33377         * doc/posix-functions/execlp.texi (execlp):
33378         * doc/posix-functions/execv.texi (execv):
33379         * doc/posix-functions/execve.texi (execve):
33380         * doc/posix-functions/execvp.texi (execvp):
33381         Mention spawn+exit problem on non-Cygwin Windows platforms.
33383 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33385         getlogin-tests: avoid false failure under sudo/ssh etc.
33386         * modules/getlogin-tests (configure.ac): Check for ttyname().
33387         * tests/test-getlogin.c (main): Don't depend on environment variables
33388         to correlate with getlogin(), since sudo and ssh etc. can tamper
33389         with the LOGNAME and USER env vars.  Instead lookup the name from
33390         the uid associated with the stdin tty.
33392 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33394         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33395         These were found when building the latest grep snapshot on IRIX 6.5.
33396         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33397         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33398         never used later.
33399         * lib/quotearg.c (quoting_options_from_style):
33400         * lib/xstrtol.c (__xstrtol):
33401         Use enum instead of 0, to pacify IRIX 6.5 cc.
33403 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33405         gitlog-to-changelog: revert inclusion of git-log-fix file
33406         * build-aux/git-log-fix: Delete dummy file.
33407         * modules/gitlog-to-changelog: Don't reference (overwrite)
33408         the project specific git-log-fix file.
33410 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33412         maint.mk: Relax the copyright check to cater for non FSF projects
33413         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33414         to not require the "Free" suffix after the copyright years.
33416 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33418         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33419         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33420         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33421         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33422         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33424 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33426         exclude: port to strict C99
33427         Strict C does not allow converting a function pointer to void *
33428         and vice versa.  Pass a pointer to a function pointer instead.
33429         * lib/exclude.c (add_exclude_file):
33430         Pass the address of the function pointer.
33431         (call_addfn): And deference the address here, to match.
33433 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33435         regex: do not depend on malloc-gnu
33436         * modules/regex (Depends-on): Remove malloc-gnu.
33437         It's no longer needed, because of the 2012-12-29 patch
33438         "regex: port to hosts where malloc (0) == NULL".
33439         Reported by Nathan Kennedy in:
33440         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33442 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33444         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33445         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33446         * doc/posix-functions/expl.texi: Mention the workaround.
33448 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33450         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33451         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33452         size to be zero even when the pointer is nonnull.  This
33453         accommodates the use case where P is malloc (0) and *PN is 0 on a
33454         host where malloc (0) yields nonnull.
33456 2014-04-09  Eric Blake  <eblake@redhat.com>
33458         fts: avoid unnecessary strlen calls
33459         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33461 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33463         fts: avoid unnecessary strlen calls
33464         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33465         when that can be faster than strlen.
33467 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33469         fts: avoid unnecessary strlen calls
33470         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33471         (fts_build): Store the length of the dp->d_name entry in a local variable
33472         instead of calling strlen() several times via the above, removed macro.
33473         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33474         run by ~4%, yet this reduces the execution time by about a third if run
33475         via "ltrace -c rm -rf some-dir".
33477 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33479         obstack: Remove ancient NeXTSTEP gcc support conditional
33480         This change will ease merging with glibc.  The "#if ... __NEXT__"
33481         causes a warning with -Wundef which glibc now enables by default.
33482         Problem reported by Will Newton in
33483         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33484         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33485         so go with that.
33486         * lib/obstack.h (__extension__):
33488 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33490         obstack: merge with glibc changes
33491         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33492         This is mostly indenting and commentary changes.
33493         Instances of 'register' have been removed.
33495 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33497         strftime: wrap macros in "do {...} while(0)"
33498         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33499         this macro in "do {...} while(0)" to prevent false use as a
33500         single statement, e.g., in an un-braced "{}" else-block.
33501         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33502         (strftime_case_): Remove 'else' after 'goto' - which was the
33503         only non-fatal, un-braced use of one of the above macros.
33504         Spotted by coverity (NESTING_INDENT_MISMATCH).
33506 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33508         modechange: avoid memory leaks for invalid octal modes
33509         * lib/modechange.c (mode_compile): During the parsing of
33510         notations like +40, free the 'mc' buffer for invalid mode
33511         strings like +17777 (greater than the maximum octal mode),
33512         =18 (bad octal mode characters) or u=1 ('affected' with
33513         octal modes).
33514         Reproducer, e.g.:
33515             $ valgrind --leak-check=full chmod +17777 file
33516         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33517         add notations +40, 00440, etc.".
33518         Spotted by coverity (RESOURCE_LEAK).
33520 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33522         gitlog-to-changelog: include a dummy git-log-fix file
33523         Problem reported by Nathan Stratton Treadway in:
33524         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33525         * build-aux/git-log-fix: New file.
33527 2014-03-13  Jim Meyering  <meyering@fb.com>
33529         gitlog-to-changelog: also include the file, git-log-fix
33530         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33531         Reported by Assaf Gordon.
33533 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33535         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33536         This fixes a bug when ignoring case and when comparing the
33537         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33538         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33539         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33540         titlecase letter is neither lowercase nor uppercase, but
33541         uppercasing the titlecase letter (via towupper) yields the
33542         uppercase letter, so the two letters should match when ignoring case.
33543         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33544         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33545         Don't test whether a character is lowercase before uppercasing it.
33547 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33549         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33550         This is basically one of the options Bruno Haible proposed in:
33551         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33552         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33553         * lib/stdint.in.h: Use it.
33554         * modules/stdint (Depends-on): Add sys_types.
33556 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33558         parse-datetime: fix crash or infloop in TZ="" parsing
33559         * lib/parse-datetime.y (parse_datetime): Break out of the
33560         TZ="" parsing loop once the second significant " is found.
33561         Also skip over any subsequent whitespace to be consistent
33562         with the non TZ= case.
33563         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33565 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33567         savedir: new symbol for fast-read version
33568         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33569         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33570         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33571         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33573 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33575         unistd: port readlink to Mac OS X 10.3.9
33576         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33577         around self-include problem in Mac OS X 10.3.9 when combined with
33578         readlink module.  Problem reported by Klaus Zietler in
33579         <http://bugs.gnu.org/16825>.
33581 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33583         diffseq: remove TOO_EXPENSIVE heuristic
33584         Problem with diffutils reported by Vincent Lefevre in
33585         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33586         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33587         Although appropriate for circa-1993 hardware, these days the heuristic
33588         seems to be more trouble than it's worth.
33589         * lib/diffseq.h: Modernize citations.
33590         (struct context): Remove member too_expensive.
33591         All uses changed.
33592         (struct partition): Remove members lo_minimal, hi_minimal.
33593         All uses changed.
33594         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33595         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33596         1993 to make 'diff' run faster (but not as well) on large inputs.
33597         These days, computers are fast enough that it's typically better
33598         to run slower but more accurately.
33599         * lib/fstrcmp.c: Remove duplicate comment.
33600         * lib/fstrcmp.c (strcmp_bounded):
33601         * lib/git-merge-changelog.c (compute_differences):
33602         Adjust to diffseq.h changes.
33603         * NEWS: Document the change.
33605         savedir: simplify by using stpcpy
33606         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33607         (streamsavedir): Use stpcpy instead.
33608         * modules/savedir (Depends-on): Add stpcpy.
33610 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33612         spawn: fix link error on uclibc
33613         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33614         to incorporate -lrt if needed (on uclibc for example).
33615         * modules/posix_spawn: Reference the substituted LIB.
33617 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33618         timer: fix uClibc detection of threading
33619         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33620         enabled in uClibc.
33622 2014-02-21  Eric Blake  <eblake@redhat.com>
33624         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33625         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33627 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33629         exclude: add support for posix regexps
33631         This commit adds support for POSIX extended regular expressions
33632         and fixes a long-standing memory leak (pattern buffer was never
33633         freed).  It also implements a new interface function to read
33634         exclude patterns from a FILE, which passes an additional parameter
33635         to its callback function, thereby allowing to preserve its state
33636         between invocations.
33638         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33639         (pattern_buffer): New struct.
33640         (exclude): New member patbuf.
33641         (exclude_add_pattern_buffer): New function.
33642         (free_exclude_segment): Free regexps.
33643         (free_exclude): Free allocated pattern buffers.
33644         (exclude_patopts): New function.
33645         (file_pattern_matches): Use exclude_patopts.
33646         (add_exclude): support regexps.
33647         (add_exclude_fp): New function.
33648         (add_exclude_file): Rewrite using add_exclude_fp.
33649         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33650         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33651         (add_exclude_fp)
33652         (add_exclude_file): Rewrite using add_exclude_fp.
33653         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33654         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33655         (add_exclude_fp)
33656         (exclude_add_pattern_buffer): New prototypes.
33657         * modules/exclude: Depends on regex and filename.
33659 2014-02-20  Eric Blake  <eblake@redhat.com>
33661         maintainer-makefiles: use $(SED) for syntax check
33662         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33663         * top/maint.mk: Change sed to $(SED).
33665 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33666             Paul Eggert  <eggert@cs.ucla.edu>
33668         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33669         Patch based on an idea by Dick Streefland in
33670         <https://savannah.gnu.org/patch/?7892>.
33671         * NEWS: Document this.
33672         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33673         (direntry_t, comparison_function): New types.
33674         (direntry_cmp_name): New function.
33675         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33676         (streamsavedir, savedir): New arg OPTION.
33677         (streamsavedir): Simplify memory allocation.
33678         (fdsavedir): Remove.
33679         * lib/savedir.h (enum savedir_option): New type.
33680         (streamsavedir, savedir): New arg OPTION.
33681         (fdsavedir): Remove.
33683 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33685         file-type: add support for doors and other less-common file types
33686         Problem with S_ISDOOR reported by Rich Burridge.
33687         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33688         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33689         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33691 2014-01-23  Eric Blake  <eblake@redhat.com>
33693         pthread: work around winpthread header pollution on mingw
33694         * lib/time.in.h: Move pthread workarounds...
33695         * lib/pthread.in.h: ...here.
33696         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33697         detect macro pollution on mingw.
33698         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33700 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33702         qacl: check for fchmod
33703         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33704         and qset-acl.c both use HAVE_FCHMOD.
33706 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33708         fdopen-tests: port to Tru64
33709         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33710         descriptor that is not open, as POSIX doesn't specify the
33711         resulting behavior and the test does not work on Tru64.
33712         Problem reported by Steven M. Schweda in:
33713         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33715         stdalign: port to HP-UX compilers
33716         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33717         if __HP_cc or __HP_aCC are nonzero.
33719 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33721         strtoimax: port to platforms lacking 'long long'
33722         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33723         check whether strtoll is declared, which causes the C file to
33724         wrongly report an error.  Problem reported by Steven M. Schweda in:
33725         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33726         * lib/strtoimax.c (strtoull):
33727         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33728         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33730 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33732         relocatable-perl: fix texi syntax
33733         * doc/relocatable-maint.texi: Escape braces.
33735 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33737         relocatable-perl: like relocatable-script, but for Perl scripts
33738         * build-aux/relocatable.pl.in: Add.
33739         * doc/relocatable-maint.texi: Add documentation.
33740         * modules/relocatable-perl: Add.
33742 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33744         tests: fix export bug in previous patch
33745         Problem reported by Jim Meyering.
33746         * tests/init.sh (re_shell): New var, which is exported instead of
33747         re_shell_.
33749         tests: simplify porting to Solaris 10 /bin/sh
33750         Some test cases in 'grep' need a shell that groks '$(';
33751         export re_shell_ for their benefit.  Problem reported for 'grep'
33752         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33753         * tests/init.sh (re_shell_): Export if it's used.
33755 2014-01-06  Eric Blake  <eblake@redhat.com>
33757         md5, sha1, sha256, sha512: support older autoconf
33758         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33759         for autoconf < 2.63b.
33761         include_next: port to autoconf 2.63
33762         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33764 2014-01-04  Jim Meyering  <meyering@fb.com>
33766         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33767         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33768         so that "make sc_maint" will ding anyone who puts non-ascii
33769         in any of gnulib's .texi files.
33771 2014-01-03  Jim Meyering  <meyering@fb.com>
33773         freadable, fwritable, fwriting: declare with the "pure" attribute
33774         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33775         * lib/fwritable.h (fwritable): Likewise.
33776         * lib/fwriting.h (fwriting): Likewise.
33777         Suggested by Bruno Haible.
33779         maint.mk: adapt openat.h-include-without-use test
33780         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33781         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33782         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33783         With this change, running "make sc_maint" in gnulib's top-level
33784         directory now passes for me.
33786 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33788         doc: use ASCII in .texi files where UTF-8 isn't needed
33789         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33790         * doc/posix-functions/setkey.texi, doc/regex.texi:
33791         Use ASCII input, not UTF-8.
33793 2014-01-02  Jim Meyering  <meyering@fb.com>
33795         freading: declare with the "pure" attribute
33796         * lib/freading.h (freading): Declare with the "pure" attribute.
33798         manywarnings: remove -Wmudflap
33799         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33800         it is no longer supported in gcc-4.9-to-be.
33802 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33804         relocatable-script: remove unused code
33805         Problem reported by Reuben Thomas in:
33806         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33807         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33809 2014-01-01  Jim Meyering  <meyering@fb.com>
33811         maint: fix public-submodule-commit to work with newer git
33812         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33813         We were over-quoting the test arguments, and somewhere prior to
33814         version 1.8.5.2.229, git stopped removing those excess quotes,
33815         which made the test fail, since the unexpanded strings would
33816         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33817         command wasn't even being run.
33819 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33821         doc: update main copyright year
33822         * doc/gnulib.texi: Update copyright date.
33824 2014-01-01  Eric Blake  <eblake@redhat.com>
33826         version-etc: new year
33827         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33828         * all files: run 'make update-copyright'
33830 2013-12-24  Eric Blake  <eblake@redhat.com>
33832         passfd: give nicer error for recvfd at eof
33833         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33834         * tests/test-passfd.c (main): Enhance test to cover this.
33836 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33838         gettimeofday: port recent C++ fix to Emacs
33839         Without this further patch, Emacs won't build due to
33840         the portcheck failing.  Also, this simplifies the patch a bit.
33841         * lib/time.in.h (localtime, gmtime): Don't replace unless
33842         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33843         * lib/time.in.h (localtime, gmtime):
33844         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33845         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33846         * modules/time (time.h):
33847         Don't worry about the possibility of localtime and gmtime
33848         being absent; they're present in all C libraries we know about.
33849         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33850         Don't assume sys_time is present and has been initialized.
33851         Instead, use a hack that should work even if it hasn't been.
33852         Don't use a portcheck for gmtime or localtime; this supports
33853         the hack.
33854         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33856 2013-12-17  John W. Eaton  <jwe@gnu.org>
33858         gettimeofday: fix C++ crosscompilation
33860         Never replace gmtime and localtime by macros when compiling with
33861         C++, this prevents <ctime> from being included.
33863         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33864         define gmtime and localtime as preprocessor macros.  Instead
33865         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33866         REPLACE_LOCALTIME substitutions.
33867         * lib/time.in.h: Declare gmtime and localtime when needed.
33868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33869         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33870         * modules/time: Depend on gettimeofday, and substitute the above
33871         variables in time.h.
33873 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33875         qacl: port to Windows better
33876         See Eli Zaretskii in
33877         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33878         * lib/file-has-acl.c (acl_access_nontrivial):
33879         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33880         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33882 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33884         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33885         * lib/gl_openssl.h: Cast void pointers to a specific type.
33887 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33889         open-tests: fix build failure with -Werror=old-style-declaration
33890         * tests/test-open.h: Reorder the inline to avoid the issue.
33892 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33894         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33895         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33896         init time, so that if early checks find crypto routines,
33897         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33898         avoiding link failures.
33900 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33902         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33903         This provides a new way to specify the default for
33904         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33905         Emacs uses this, as well as the old way.
33906         This attempts to implement a suggestion by Pádraig Brady in
33907         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33908         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33909         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33911         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33912         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33913         Add support for a new option, --with-openssl=auto, which causes
33914         the library to be used if available and silently ignored if not.
33915         Add support to allow configure.ac to specify its own
33916         default, by setting with_openssl_default before invoking gl_INIT.
33918 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33920         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33921         Problem reported by Daiki Ueno in:
33922         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33923         * tests/test-open.h (__always_inline):
33924         New macro, if not already defined.
33925         (test_open): Use it.
33927 2013-12-04  Eric Blake  <eblake@redhat.com>
33929         include_next: minimize code duplication
33930         * modules/include_next (Depends-on): Add absolute-header.
33931         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33932         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33934 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33936         getcwd: fix compile error in configure check
33937         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33939 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33941         regex: suppress core dumps from detection code
33942         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33943         to suppress core dumps that may well occur on glibc systems.
33944         These core dumps might not be cleaned up automatically, or could
33945         trigger some system core dump handling logic.
33947 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33949         md5, sha1, sha256, sha512: support mandating use of openssl
33950         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33951         description, to list the now 3 separate options.  also don't
33952         mention the default=no, since this is implicit given the option
33953         is described as --with-openssl rather than --without-openssl.
33954         If projects change the default they're free to document that.
33955         with --with-openssl[=yes] we now error out when the specified
33956         hash algorithm is not available in libcrypto.
33958 2013-12-03  Ivailo  <xakepa10@gmail.com>
33960         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33961         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33962         -Wformat-nonliteral checks, as these edge cases are part of the test.
33964 2013-12-03  Eric Blake  <eblake@redhat.com>
33966         regex: avoid glibc deadlock during configure
33967         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33968         glibc bug 15078 in turn triggers bug 16159.
33969         Reported by Michal Privoznik.
33971 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33973         md5, sha1, sha256, sha512: use openssl routines if available.
33974         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33975         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33976         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33977         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33978         in the standard system location.
33979         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33980         * m4/sha256.m4: Likewise with SHA256.
33981         * m4/sha512.m4: Likewise with SHA512.
33982         * m4/md5.m4: Likewise with MD5.
33983         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33984         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33985         * lib/sha256.h: Likewise with SHA256.
33986         * lib/sha512.h: Likewise with SHA512.
33987         * lib/md5.h: Likewise with MD5.
33988         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33989         * lib/sha256.c: Likewise with SHA256.
33990         * lib/sha512.c: Likewise with SHA512.
33991         * lib/md5.c: Likewise with MD5.
33992         * modules/crypto/sha1 (Link:): Add the new optional lib.
33993         (Depends-on:): Add dependency on extern-inline.
33994         * modules/crypto/sha256: Likewise.
33995         * modules/crypto/sha512: Likewise.
33996         * modules/crypto/md5: Likewise.
33997         * modules/crypto/sha1-tests: Reference the lib here too.
33998         * modules/crypto/md5-tests: Likewise.
33999         * modules/crypto/gc-des-tests: Likewise.
34000         * modules/crypto/gc-hmac-md5-tests: Likewise.
34001         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34002         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34003         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34004         * modules/crypto/gc-md5-tests: Likewise.
34005         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34006         * modules/crypto/gc-sha1-tests: Likewise.
34007         * modules/crypto/gc-tests: Likewise.
34008         * modules/crypto/hmac-md5-tests: Likewise.
34009         * modules/crypto/hmac-sha1-tests: Likewise.
34010         * modules/crypto/hmac-sha256-tests: Likewise.
34011         * modules/crypto/hmac-sha512-tests: Likewise.
34013 2013-11-29  RV1971  <rv1971@web.de>
34015         base64: (trivial) fix compilation regression on some compilers
34016         * lib/base64.c: Don't return the void function,
34017         instead split to a separate return statement.
34019 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34021         ignore-value: revert previous code change
34022         * lib/ignore-value.h (ignore_value): Use __extension__ and
34023         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34024         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34025         Change the comment to try to explain this better.
34027 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34029         selinux-h: improve stub types and add more stub functions
34031         * lib/se-selinux.in.h: Change security_context_t to a typedef
34032         rather than a define, as it's a pointer type and so is better
34033         as a typedef to avoid issues declaring multiple variables
34034         with the comma operator.  Also add stub for string_to_security_class().
34035         * lib/se-context.in.h: Add stub functions for
34036         context_{type,range,role,user}_get().
34038 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34040         ignore-value: prefer GCC version back through 2.0
34041         The code didn't match the comments, so I did a bit of software
34042         archaeology.  GCC 2.0 seems to support __extension__ and
34043         __typeof__, so fix both code and comments to use 2.0.
34044         * lib/ignore-value.h (ignore_value): Use __extension__ and
34045         __typeof__ for GCC 2.0 through 3.3, too.
34047 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34049         pty: Activate the signature wrapper of forkpty.
34050         The intended preprocessor macro HAVE_FORKPTY is
34051         never defined, yet `lib/forkpty.c' depends on it.
34053         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34054         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34055         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34057 2013-11-18  Jim Meyering  <meyering@fb.com>
34058         and Paul Eggert  <eggert@cs.ucla.edu>
34060         quotearg: don't attempt to store 1 << 31 into an "int"
34061         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34062         gcc's new -fsanitize=undefined and running its tests triggered some
34063         new test failures due to undefined behavior, all with this diagnostic:
34064           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34065             cannot be represented in type int
34066         Rather than shifting "1" left to form a mask, shift the bits right and
34067         simply use "1" as the mask.
34069 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34071         error: depend on stdio
34072         Problem reported by Nikos Mavrogiannopoulos in
34073         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34074         * modules/error (Depends-on): Add stdio.
34076 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34078         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34079         wording.
34080         Reported by Reuben Thomas <rrt@sc3d.org>.
34082 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34084         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34085         New function and macro, to work around _DARWIN_C_SOURCE problem.
34086         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34088 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34090         base64: provide a fast path for encoding well sized buffers
34091         Avoid conditionals in the base64 encoding loop,
34092         which was seen to give 60% better throughput.
34093         * lib/base64.c (base64_encode_fast): A new function to be called
34094         when we don't want to NUL terminate, and we have enough space
34095         in the output to encode the given input.
34096         (base64_encode): Call the _fast() version when appropriate.
34097         Also remove a redundant mask with 0x3F on the first encoded byte.
34099 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34101         extern-inline: port better to OS X 10.9
34102         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34103         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34104         OS X 10.9, except for g++ where the bug is still present.
34105         See <http://trac.macports.org/ticket/41033>.
34107 2013-11-08  Eric Blake  <eblake@redhat.com>
34109         fpending: fix regression on DragonFly BSD
34110         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34111         * lib/fpending.h (__fpending): Don't declare twice.
34112         Reported by GW in
34113         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34115 2013-11-05  Jim Meyering  <meyering@fb.com>
34117         hash: relax license to LGPLv2+, for libguestfs
34118         * modules/hash (License): Change from GPL to LGPLv2+.
34120 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34122         intprops: port to Oracle Studio c99
34123         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34124         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34126 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34128         obstack: pacify HP C
34129         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34130         warning "conversion from pointer to smaller integer" from HP
34131         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34132         C89 or later nowadays, so cast to void instead of int.  Privately
34133         reported by H.Merijn Brand.  Also, change header to match glibc's,
34134         to make checking against glibc easier.
34136 2013-10-29  Jim Meyering  <meyering@fb.com>
34138         maint.mk: prefer gpgv2 over gpgv
34139         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34140         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34141         Reported by Gary Vaughan.
34143 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34145         isnan: port to VAX
34146         Reported by John Klos for NetBSD-5/VAX in
34147         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34148         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34149         (FUNC): Use it.
34151 2013-10-28  Jim Meyering  <meyering@fb.com>
34153         gnulib-tool: protect against CDPATH
34154         * gnulib-tool: Many "cd" built-in functions print a directory name
34155         to stdout when CDPATH is set, e.g.,
34156           $ bash -c 'CDPATH=/; cd tmp'
34157           /tmp
34158         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34160         maint.mk: restore functionality removed by recent change...
34161         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34162         the context of a shallow-cloned gnulib repository: "git describe"
34163         would fail in such a directory.  However, that change made it so
34164         the reported gnulib revision no longer includes the version number
34165         or a commit count, even when run from a full clone.
34166         * top/maint.mk (gnulib-version): Use the full "git describe"
34167         output when possible, e.g., the form above, rather than the
34168         abbreviated, no-tag, no-commit-count string, and fall back to
34169         using a 10-byte hash, rather than the default minimal-length
34170         hash prefix, since while the minimal-length one may be fine today,
34171         it is likely not to be unique for very long.
34173 2013-10-26  Jim Meyering  <meyering@fb.com>
34175         maint.mk: fix "release" target to build _version
34176         This fixes a bug in README-release whereby following the outlined
34177         steps, one would publish a tarball whose programs would report
34178         --version output not consistent with the package version number.
34179         This bug caused grep-2.15 to produce a grep program whose
34180         --version option made it print 2.14.56-1e3d rather than 2.15.
34181         * top/maint.mk (release): Making this target build "_version"
34182         ensures that the new version number is reflected in configure.
34184 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34186         install-reloc: Support multi-binary installation.
34187         * build-aux/install-reloc: Support installing multiple programs in
34188         one invocation, as done by Automake starting with commit
34189         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34190         Haible <bruno@clisp.org>, archived at
34191         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34192         Reported by Sylvain <beuc@gnu.org>.
34194 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34196         selinux-h: Really build without selinux when library is missing.
34197         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34198         continue without selinux, as already told in the warning message.
34200 2013-10-21  Jim Meyering  <meyering@fb.com>
34202         regex: also remove dependency on HAVE_WCSCOLL
34203         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34205 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34207         xfreopen: Fix typo. s/frepoen/freopen/
34208         * lib/xfreopen.c: Fix description.
34209         * modules/xfreopen: Likewise.
34211 2013-10-21  Jim Meyering  <meyering@fb.com>
34213         regex: don't depend on wcscoll
34214         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34215         It is no longer used.
34217 2013-10-20  Jim Meyering  <meyering@fb.com>
34219         error: add the printf attribute to a static function
34220         * lib/error.c (error_tail): Add the printf attribute, to placate
34221         gcc's -Werror=suggest-attribute=format option.
34223 2013-09-30  Jim Meyering  <meyering@fb.com>
34225         fpending, obstack, strerror-override: use pure+const function attrs
34226         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34227         * lib/obstack.c (_obstack_allocated_p): Likewise.
34228         * lib/obstack.h (_obstack_memory_used): Likewise.
34229         (_obstack_memory_used): Likewise.
34230         * lib/strerror-override.h (strerror_override): Declare with
34231         the "const" attribute.
34233 2013-10-18  Eric Blake  <eblake@redhat.com>
34235         extern-inline: make safe for -Wundef usage
34236         Reported by Vladimir 'phcoder' Serbinenko in
34237         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34238         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34240 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34242         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34243         Problem reported by Daniel Richard G. in
34244         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34245         * doc/posix-functions/mkfifo.texi (mkfifo):
34246         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34247         * doc/posix-functions/mknod.texi (mknod):
34248         * doc/posix-functions/mknodat.texi (mknodat):
34249         Document the HP-UX 11.11 bug.
34250         * tests/test-mkfifo.h (test_mkfifo):
34251         Allow the HP-UX 11.11 bug.
34253 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34255         acl: allow cross-compilation to Gentoo
34256         Problem reported by Gabriel Marcano in
34257         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34258         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34259         test only whether it links.
34261 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34263         mgetgroups: remove dependency on realloc-gnu
34264         The dependency violates the comment in realloc-gnu, which
34265         says that tests can't depend on realloc-gnu; some tests depend
34266         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34267         Problem reported by Daniel Richard G. in
34268         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34269         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34270         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34271         not realloc-gnu.
34273 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34275         regex-tests: port to HP-UX 11.11
34276         Problem reported by Daniel Richard G. in
34277         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34278         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34280 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34282         verify: document some 'assume' pitfalls
34283         * doc/verify.texi (Compile-time Assertions):
34284         Mention that 'assume (E)' can sometimes slow things down.
34285         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34287 2013-10-10  Eric Blake  <eblake@redhat.com>
34289         strtoumax: fix typo in previous commit.
34290         * modules/strtoumax (Depends-on): Fix typo.
34291         * modules/strtoimax (Depends-on): Likewise.
34293 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34295         strtoumax: port to Solaris 8
34296         This problem was introduced in the recent HP-UX patch.
34297         Reported by Tom G. Christensen in
34298         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34299         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34300         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34302 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34304         strtoimax, strtoumax: port to HP-UX 11.11
34305         Problem reported by Daniel Richard G. in
34306         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34307         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34308         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34309         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34310         REPLACE_STRTOUMAX.
34311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34312         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34313         Replace the function if defined as a macro but not as a function.
34314         * modules/inttypes-incomplete (inttypes.h): Substitute
34315         REPLACE_STRTOUMAX.
34316         * modules/strtoumax (configure.ac): Replace strtoumax if
34317         REPLACE_STRTOUMAX.
34319 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34321         strtoimax: port to HP-UX 11.11
34322         Problem reported by Daniel Richard G.
34323         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34324         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34325         they might clash with inttypes.h.
34327 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34329         New module 'count-trailing-zeros'.
34330         * MODULES.html.sh: Mention it.
34331         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34332         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34333         * modules/count-trailing-zeros-tests:
34334         * tests/test-count-trailing-zeros.c:
34335         New files.
34337         count-leading-zeros: port to MSC; support types wider than 64 bits
34338         The ideas behind the MSC port are stolen from Emacs.
34339         * lib/count-leading-zeros.h:
34340         Don't include verify.h: it's no longer needed, as types wider than
34341         64 bits are now supported.
34342         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34343         performance with MSC.  All uses changed.  Do not assume that TYPE
34344         has at most 64 bits.
34345         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34346         All uses changed.  Fold the subtraction from 31 into the table.
34348         count-one-bits: port to MSC; support types wider than 64 bits
34349         The ideas behind the MSC port are stolen from Emacs.
34350         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34351         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34352         Don't include verify.h: it's no longer needed, as types wider than
34353         64 bits are now supported.
34354         (COUNT_ONE_BITS_GENERIC): New macro.
34355         (popcount_supported) [_MSC_VER]: New inline function.
34356         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34357         performance with MSC.  All uses changed.  Do not assume that TYPE
34358         has at most 64 bits.
34359         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34361 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34363         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34364         * lib/mountlist.c (read_file_system_list): fix leak of directory
34365         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34367 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34369         tests: improve diagnostic when an assertion fails
34370         * tests/macros.h (ASSERT): Report the assertion that failed.
34372 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34374         verify: new macro 'assume'
34375         This is taken from Emacs, and should be generally useful.
34376         * doc/verify.texi (assume): Document it.
34377         * lib/verify.h (assume): New macro.
34378         (__has_builtin): Expand to 0 if not defined.
34380 2013-09-26  Eric Blake  <eblake@redhat.com>
34382         dup2, dup3: work around another cygwin crasher
34383         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34384         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34385         * tests/test-dup2.c (main): Likewise.
34386         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34387         * lib/dup3.c (dup3): Likewise.
34388         * doc/posix-functions/dup2.texi (dup2): Document it.
34389         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34391         getdtablesize: work around cygwin issue
34392         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34393         * modules/getdtablesize (configure.ac): Build replacement.
34394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34395         * modules/unistd (Makefile.am): Expose the witness.
34396         * lib/unistd.in.h (getdtablesize): Declare replacement.
34397         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34398         * tests/test-getdtablesize.c (main): Test it.
34399         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34401 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34403         pmccabe2html: escaping of special characters
34404         Escape all '<', '>', and '&' in HTML output.
34405         * build-aux/pmccabe2html (html_fnc): Call gsub()
34406         instead of sub() to capture all '<', '>', and '&'.
34407         Neither of '<' and '>' is special in a regexp,
34408         so first arguments to gsub() are corrected. Also,
34409         in replacement strings, ampersand must be escaped.
34410         Finally, '&' must be handled first, then '<' and '>'.
34412 2013-09-24  Eric Blake  <eblake@redhat.com>
34414         manywarnings: enable nicer gcc warning messages
34415         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34416         some -f options for optimal warnings.
34418 2013-09-21  Jim Meyering  <meyering@fb.com>
34420         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34421         * lib/timespec-add.c (timespec_add): Also replace 999999999
34422         with TIMESPEC_RESOLUTION - 1.
34423         * lib/timespec-sub.c (timespec_sub): Likewise.
34425 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34427         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34428         Problem reported by Dagobert Michelsen via Eric Blake in
34429         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34430         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34431         not AC_COMPILE_IFELSE.
34433 2013-09-23  Eric Blake  <eblake@redhat.com>
34435         configmake: support new --runstatedir option
34436         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34437         even if autoconf was too old to provide the command line option.
34438         * modules/configmake (Makefile.am): Propagate it to .h file.
34440 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34442         ctype, string: depend on extern-inline
34443         This is needed to complete the recent OS X fixes.
34444         Also, fix related documentation as suggested by Eric Blake.
34445         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34446         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34447         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34448         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34449         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34450         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34451         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34452         * doc/posix-functions/toupper.texi:
34453         List the 'ctype' gnulib module.
34454         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34455         * doc/posix-functions/strncpy.texi:
34456         List the 'string' gnulib module.
34457         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34458         Add string.
34459         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34461 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34463         userspec: support optional parameters to parse_user_spec()
34464         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34465         then avoid group processing and treat the full spec as a user.
34466         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34467         be optional params (NULL), in which case they're ignored.
34469 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34471         timespec: new function make_timespec, and new constants
34472         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34473         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34474         (make_timespec): New function.
34475         * lib/dtotimespec.c (dtotimespec):
34476         * lib/timespec-add.c (timespec_add):
34477         * lib/timespec-sub.c (timespec_sub):
34478         * lib/utimens.c (validate_timespec):
34479         * lib/utimensat.c (rpl_utimensat):
34480         Use these new constants and functions.
34482         stdio: OS X port of putc_unlocked + extern inline
34483         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34484         * doc/posix-functions/putc_unlocked.texi:
34485         * doc/posix-functions/putchar_unlocked.texi:
34486         Document this portability problem.
34488         signal: OS X port of sigaddset etc. + extern inline
34489         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34490         (sigismember): #undef on problematic Apple platforms.
34491         * doc/posix-functions/sigaddset.texi:
34492         * doc/posix-functions/sigdelset.texi:
34493         * doc/posix-functions/sigemptyset.texi:
34494         * doc/posix-functions/sigfillset.texi:
34495         * doc/posix-functions/sigismember.texi:
34496         Document this portability problem.
34498         extern-inline: do not always suppress extern inline on OS X
34499         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34500         extern inline on Apple only if the particular compile-time
34501         configuration is known to have the problem.
34502         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34503         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34504         other Gnulib modules.
34506         extern-inline: document fixes for ctype and wctype macros
34507         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34508         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34509         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34510         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34511         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34512         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34513         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34514         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34515         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34516         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34517         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34518         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34519         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34520         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34521         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34522         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34523         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34524         * doc/posix-functions/strncpy.texi:
34525         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34526         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34527         Document that Gnulib fixes portability problems with these
34528         functions on OS X 10.8 and earlier when called from plain inline
34529         or extern inline functions.
34531 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34533         fflush, freadahead, fseeko: Fix for Android
34534         Suggested by Bruno Haible in:
34535         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34536         * lib/stdio-impl.h: Use local __sfileext definition.
34538 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34540         pmccabe2html: Portability to other awk versions.
34541         The functions systime() and strftime() are available
34542         in Gawk only.  Properly close two HTML-tags 'style'
34543         and 'span'.
34544         * build-aux/pmccabe2html (BEGIN): Store timing
34545         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34546         systime() in HTML_COMMENT.
34547         (html_header): Correctly close tag 'style'.
34548         (END): Replace strftime() by CHRONOS_TIME.  Close
34549         tag 'span' correctly, not as 'div'.
34551 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34553         getgroups: statement without effect
34554         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34555         Change equality conditional to expected assignment.
34557 2013-09-09  Eric Blake  <eblake@redhat.com>
34559         glob: fix compilation
34560         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34562 2013-09-07  Eric Blake  <eblake@redhat.com>
34564         glob: fix build for platforms without __THROW
34565         * lib/glob.in.h (__THROW): Add definition again.
34567 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34569         regex-quote: fix buffer access out of bounds
34570         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34571         * lib/regex-quote.c (regex_quote_spec_pcre):
34572         Fix typo that resulted in an out-of-bounds read.
34574 2013-09-04  Eric Blake  <eblake@redhat.com>
34576         glob: avoid -Wattribute warnings on glibc
34577         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34578         __THROWNL, not __THROW, on static functions.
34579         * lib/glob.in.h (__THROW): Adjust...
34580         (__THROWNL): ...accordingly.
34582 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34584         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34585         Suggested by Bruce Korb in:
34586         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34587         * doc/extern-inline.texi (extern inline):
34588         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34589         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34590         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34591         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34592         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34593         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34594         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34595         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34596         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34597         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34598         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34599         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34600         * lib/xtime.h:
34601         Check that _GL_INLINE_HEADER_BEGIN is defined.
34603 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34605         bootstrap: remove the --version requirement from ancillary tools
34606         * build-aux/bootstrap (check_exists): A new refactored function to
34607         determine if a command exists.
34608         (find_tool): Use the new function which does not require the
34609         --version option to be supported.
34610         (check_versions): Use the new function.
34612 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34614         gc: support HMAC-SHA256 and HMAC-SHA512.
34615         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34616         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34617         functions.
34618         (gc_hmac_md5): Use symbolic constant.
34619         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34620         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34621         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34622         * m4/sha256.m4: Protect against empty expansion.
34623         * m4/sha512.m4: Likewise.
34624         * lib/hmac-sha256.c: New file.
34625         * lib/hmac-sha512.c: Likewise.
34626         * m4/gc-hmac-sha256.m4: Likewise.
34627         * m4/gc-hmac-sha512.m4: Likewise.
34628         * m4/gc-sha256.m4: Likewise.
34629         * m4/gc-sha512.m4: Likewise.
34630         * modules/crypto/gc-hmac-sha256: Likewise.
34631         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34632         * modules/crypto/gc-hmac-sha512: Likewise.
34633         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34634         * modules/crypto/hmac-sha256: Likewise.
34635         * modules/crypto/hmac-sha256-tests: Likewise.
34636         * modules/crypto/hmac-sha512: Likewise.
34637         * modules/crypto/hmac-sha512-tests: Likewise.
34638         * tests/test-gc-hmac-sha256.c: Likewise.
34639         * tests/test-gc-hmac-sha512.c: Likewise
34640         * tests/test-hmac-sha256.c: Likewise.
34641         * tests/test-hmac-sha512.c: Likewise
34643 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34645         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34646         of AC_CHECK_DECLS.
34648 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34650         selinux-at: omit unnecessary include
34651         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34652         this source file doesn't use its macros, and subsidiary files that
34653         use the macros already include it.
34655 2013-08-21  Eric Blake  <eblake@redhat.com>
34657         d-ino: avoid false negative on symlink
34658         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34659         Reported by Stephane Chazelas.
34661 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34663         bootstrap: port to OpenBSD sed
34664         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34665         does not interpret `-' as a file argument to mean stdin.
34667 2013-08-15  Eric Blake  <eblake@redhat.com>
34669         warnings: minor optimization
34670         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34672         warnings: check -Wfoo rather than -Wno-foo
34673         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34674         -Wno-, test if the compiler recognizes the positive form instead.
34676 2013-08-15  Karl Berry  <karl@gnu.org>
34678         * config/srclist-update: add option "doclicense" to placate
34679         pulling *.texi files from Emacs.  Write terse usage
34680         documentation at the top.
34682 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34684         xvasprintf-tests: port to GCC with hardening flags
34685         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34686         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34687         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34689 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34691         fpending: port to recent Cygwin change to stdio_ext.h
34692         Reported by LRN in
34693         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34694         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34695         just declare __fpending unless it's a macro.
34696         A duplicate decl shouldn't hurt.
34697         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34698         call compiles and links, instead of separately checking for
34699         decl and lib function.
34700         * modules/fpending (configure-ac):
34701         Adjust to fpending.m4's renaming of shell variable.
34703 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34705         sys_time: port to OpenBSD
34706         * lib/sys_time.in.h: Simply delegate to the system's header
34707         in the BSDish cases as well.  Problem reported by Mike Miller in
34708         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34709         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34710         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34711         wider than time_t.
34713 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34715         bootstrap: support checksum utils having -c but not --status
34716         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34717         Add sha1 to the list of supported checksum utils since it's now
34718         supported through adjustments below.
34719         (update_po_files): Remove the use of --status
34720         in a way that will suppress all error messages, but since this is
34721         only used to minimize updates, it shouldn't cause an issue.
34722         Exit early if there is a problem updating the po file checksums.
34723         (find_tool): Remove the check for --version support as this
34724         is optional as per commit 86186b17.  Don't even check for the
34725         presence of the command as if that is needed, it's supported
34726         through configuring prerequisites in bootstrap.conf.
34727         Prompt that when a tool isn't found, one can define an environment
34728         variable to add to the hardcoded search list.
34730 2013-08-05  Jim Meyering  <meyering@fb.com>
34732         regex: port to non-glibc/lock-using systems
34733         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34734         system with GNULIB_LOCK would fail due to absence of the
34735         included "glthread/lock.h".  This would affect any package
34736         for which the "lock" module is used only by the regex module,
34737         and not explicitly used.
34738         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34739         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34740         Add a dependency on the "lock" module.
34742 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34744         localecharset: make locale_charset thread-safe on Mac OS X
34745         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34746         instead of MB_CUR_MAX.
34748 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34750         gettext: update to version 0.18.3
34751         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34752         require AC_PROG_SED to allow user to specify custom sed command when
34753         generating en@quot PO file.
34755 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34757         bootstrap: use correct source when copying build-aux files
34758         * build-aux/bootstrap (gnulib_extra_files): This variable is
34759         relative to upstream gnulib layout, not downstream.
34761 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34763         tmpdir: fix bug in VMS port
34764         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34765         See Steven M. Schweda in
34766         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34768 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34770         tmpdir: port to VMS, to // != /, and to long dirs
34771         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34772         __secure_getenv, so that we're more like the glibc version.
34773         All uses changed.
34774         (path_search): Don't put slash after directory if __VMS.
34775         Problem reported by Steven M. Schweda in
34776         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34777         Simplify code to add slash; no need for a loop.
34778         Do not remove trailing slash from "//".
34779         Do not assume dlen <= INT_MAX.
34781 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34783         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34784         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34785         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34786         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34788         accept4, dup3, pipe2: port to Cygwin
34789         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34790         * lib/accept4.c (accept4) [O_BINARY]:
34791         * lib/dup3.c (dup3) [O_BINARY]:
34792         * lib/pipe2.c (pipe2) [O_BINARY]:
34793         Use set_binary_mode, not setmode.
34794         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34795         * modules/binary-io (Depends-on): Remove module indicator.
34796         These last two bits undo the previous change to pipe2 and binary-io.
34798 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34800         mountlist: add support for deallocating returned list entries
34801         * lib/mountlist.c (free_mount_entry): A new exported function
34802         to deallocate a mount list entry.
34803         (read_file_system_list): Refactor to use the new deallocation function.
34804         Suggested by Anton Ovchinnikov.
34806 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34808         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34809         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34810         * lib/stdalign.in.h (_Alignas, _Alignof):
34811         Port to FreeBSD 9.1, and to C11 and C++11.
34812         (_Alignas): Also support ICC.
34813         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34814         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34816 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34818         fnmatch: don't goto over declaration
34819         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34820         undefined behavior for goto over a declaration.
34821         Problem reported by Charlie Brown in
34822         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34824         pipe2: decouple from binary-io a bit
34825         This is for Emacs, which needs pipe2 but not binary-io.
34826         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34827         * modules/binary-io (Depends-on): Add module indicator.
34829 2013-07-03  Eric Blake  <eblake@redhat.com>
34831         mgetgroups: relax license to LGPLv2+
34832         * modules/getugroups (License): Change from GPLv3+.
34833         * modules/mgetgroups (License): Likewise.
34834         * modules/getgroups (License): Change from LGPLv3+.
34836         xalloc-oversized: relax license to LGPLv2+
34837         * modules/xalloc-oversized (License): Change from GPLv3+.
34839         nproc: relax license to LGPLv2+
34840         * modules/nproc (License): Change from LGPLv3+.
34842         bootstrap: honor --no-git
34843         * build-aux/bootstrap: Don't even try to use git when user is
34844         pointing to a static checkout.
34846 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34848         ignore-value: port to gcc -pedantic
34849         * lib/ignore-value.h (ignore_value):
34850         Port to gcc -pedantic, by using __extension__.
34851         Reindent as per usual gnulib style nowadays.
34852         Simplify GCC version check.
34854 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34856         extern-inline: port to gcc -std=c89
34857         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34858         Do not use __gnu_inline__ if pedantic and pre-C99.
34860 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34862         doc: document extern-inline
34863         * doc/extern-inline.texi: New file.
34864         * doc/gnulib.texi (alloca-opt): Include it.
34865         * m4/extern-inline.m4: Move some comments to documentation,
34866         and others closer to what they describe.
34868         doc: chatter less
34869         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34870         (updated-stamp): Use it.  This causes 'make' to output just
34871         one file name rather than zillions.
34873         fflush, fseeko: port to musl cross-compiles
34874         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34875         on some implementation that (1) is not known to be buggy,
34876         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34877         cross-compiled to so we can't easily check for lack of
34878         conformance.  This is for cross-compiling to musl.
34879         Reported by Rich Felker in
34880         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34881         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34882         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34883         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34884         Adjust to above change.
34885         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34886         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34887         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34888         known not to work, or unknown.
34890 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34892         msvc-inval: port to mingw-w64
34893         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34894         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34895         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34897 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34899         getcwd-lgpl: port to Tru64
34900         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34901         Problem reported by Steven M. Schweda in
34902         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34904         tests: port large-fd POSIX spawn tests to OS X
34905         Problem reported by Daiki Ueno in
34906         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34907         * tests/test-posix_spawn_file_actions_addclose.c:
34908         * tests/test-posix_spawn_file_actions_adddup2.c:
34909         * tests/test-posix_spawn_file_actions_addopen.c:
34910         Include <limits.h>, for OPEN_MAX, if available.
34911         (big_fd): New static function.
34912         (main): Use it.
34914 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34916         tests/nap.h: use an adaptive delay to avoid ctime update issues
34917         The recent change in nap.h (5191133e) decreased the probability of lost
34918         races to about a third, however such problems could still be observed
34919         in virtual machines and openSUSE's OBS.
34920         Before, nap() detected the needed time once empirically and then used
34921         that delay (together with a small correction multiplier) in further
34922         calls.  This problem has been reported and discussed several times,
34923         including guesses about possible kernel issues:
34924         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34925         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34926         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34927         http://bugs.gnu.org/12820
34928         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34929         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34930         Now, nap() avoids the race alltogether by verifying on a reference
34931         file whether a timestamp difference has happened.
34932         * tests/nap.h (nap_fd): Define file descriptor variable for the
34933         witness file.
34934         (nap_works): Change return value to bool.  Change passing
34935         the old file's status by value instead of by reference as this function
34936         does no longer update that timestamp; rename the function argument from
34937         st to old_st.  Remove the local variables cdiff and mdiff because that
34938         function now returns true/false instead of the precise delay.
34939         (guess_delay): Remove function.
34940         (clear_tmp_file): Add new function to close and unlink the witness file.
34941         (nap): Instead of re-using the delay which has been calculated during
34942         the first call, avoid the race by actually verifying that a timestamp
34943         difference can be observed on the current file system.  Use an adaptive
34944         approach for the delay to minimize execution time.  Assert that the
34945         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34946         = 2^31 - 1 = 2.1s.
34947         Use atexit to call clear_tmp_file when the process terminates.
34949 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34951         sig2str: port to C++
34952         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34953         Reported by Daniel J Sebald in
34954         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34956 2013-05-30  Eric Blake  <eblake@redhat.com>
34958         docs: mention cygwin shortcoming in <sys/un.h>
34959         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34961         vasnprintf: silence mingw compiler warning
34962         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34964 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34966         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34967         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34968         This fixes a porting bug I recently reintroduced in regex, and
34969         some other instances that I discovered while testing the fix.
34970         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34971         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34972         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34973         with an empty argument if this is a pedantic pre-C99 GCC.
34974         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34975         pre-C11 GCC.
34977         regex: adapt to locking regime instead of depending on pthread
34978         Instead of depending on pthread, adapt to whatever thread
34979         modules are in use.  Problem reported by Ludovic Courtès in
34980         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34981         and by Mats Erik Andersson in
34982         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34983         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34984         Support either the 'lock' module, or the 'pthread' module, or
34985         no module.
34986         (lock_lock, lock_unlock): New macros.
34987         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34988         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34989         * modules/regex (Depends-on): Remove pthread.
34991 2013-05-22  Eric Blake  <eblake@redhat.com>
34993         getgroups: document portability issues
34994         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34995         multithread safety.
34996         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34997         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34998         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34999         getugroups.
35000         * doc/posix-functions/getgroups.texi (getgroups): Mention
35001         multithread safety and mgetgroups.
35003 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35005         test-lchown, test-chown: also skip test if chown fails with EPERM
35006         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35007         skip this test, to handle FAT file systems.
35008         * tests/test-chown.h (test_chown): Likewise.
35010 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35012         regex: fix dfa race in multithreaded uses
35013         Problem reported by Ludovic Courtès in
35014         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35015         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35016         New macros.  All uses of __libc_lock_define, __libc_lock_init
35017         changed to use the first two of these.
35018         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35019         non-glibc platforms.
35020         (struct re_dfa_t): Define the lock unconditionally.
35021         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35022         '#ifdef _LIBC"s.
35023         * modules/regex (Depends-on): Add pthread, if we use the
35024         included regex.
35026         * lib/regcomp.c: Do actions that are not needed for glibc,
35027         but may be needed elsewhere.
35028         (regfree, re_compile_internal): Destroy the lock.
35029         (re_compile_internal): Check for lock-initialization failure.
35031         malloca: port to compilers that reject size-zero arrays
35032         This fixes a bug introduced in my previous patch.
35033         * lib/malloca.c (struct preliminary_header): Use an int
35034         rather than a character array of size int; that's simpler.
35035         (struct header): Remove, replacing with ...
35036         (union header): New type.  This avoids the need for declaring a
35037         character array of size zero, which is not allowed on some platforms.
35038         All uses changed.
35040 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35042         parse-datetime, tests: don't use "string" + int
35043         Recent versions of 'clang' complain about C source code that
35044         uses expressions of the form '"string literal" + integer',
35045         I guess on the theory that it's confusing for readers who are
35046         used to C++.  On those grounds I suppose it's OK to make this
35047         minor style change.
35048         * lib/parse-datetime.y (parse_datetime):
35049         * tests/test-fchdir.c (main):
35050         * tests/test-snprintf-posix.h (test_function):
35051         * tests/test-snprintf.c (main):
35052         * tests/test-vasnprintf-posix.c (test_function):
35053         * tests/test-vasnprintf.c (test_function):
35054         * tests/test-vsnprintf.c (main):
35055         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35056         Rewrite '"str" + E' to '&"str"[E]'.
35058 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35060         argmatch: port to C++
35061         * lib/argmatch.h [__cplusplus]: Add extern "C".
35063         argp: typo fix
35064         * lib/argp-help.c: Typo in comment.
35066 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35068         manywarnings: update for GCC 4.8.0
35069         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35070         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35071         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35072         -Wmissing-noreturn, as they are duplicates of other warnings.
35073         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35074         was documented to be flaky in earlier versions of GCC.
35076         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35077         * tests/test-spawn.c (main):
35078         * tests/test-sys_socket.c (main):
35079         * tests/test-sys_wait.c (main):
35080         Don't have a switch value that isn't covered by a case.
35082         getaddrinfo-tests: port --enable-gcc-warnings to clang
35083         * tests/test-getaddrinfo.c (simple):
35084         Avoid casts from looser to stricter-aligned pointers.
35086         thread: port --enable-gcc-warnings to clang
35087         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35088         Include <signal.h>, to pacify a warning about pthread_sigmask.
35090         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35091         * lib/stdio.in.h (fwrite):
35092         When working around bug 11959, use __REDIRECT rather than '#define
35093         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35094         fix the -Wunused-value issue with clang, and it works with GCC too.
35095         Problem with targeting reported by Eric Blake in
35096         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35097         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35098         debugging the fwrite issue.
35100         stdio: port --enable-gcc-warnings to clang
35101         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35102         since the GCC workaround for fwrite does not pacify clang.
35104         sig2str: port --enable-gcc-warnings to clang
35105         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35107         obstack: port --enable-gcc-warnings to clang
35108         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35109         Avoid casts from looser to stricter-aligned pointers.
35111         memchr2: port --enable-gcc-warnings to clang
35112         * lib/memchr2.c (memchr2):
35113         Avoid casts from looser to stricter-aligned pointers.
35115         mbsstr: port --enable-gcc-warnings to clang
35116         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35117         Avoid casts from looser to stricter-aligned pointers.
35119         malloca: port --enable-gcc-warnings to clang
35120         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35121         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35123         inttostr: port --enable-gcc-warnings to clang
35124         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35126         warnings: port to clang
35127         Problem reported by Daniel P. Berrange via Eric Blake in
35128         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35129         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35130         (gl_WARN_ADD): Use it.
35132 2013-05-11  Jim Meyering  <meyering@fb.com>
35134         quotearg: do not read beyond end of buffer
35135         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35136         end of an ARG for which no length was specified.  With an N-byte
35137         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35138         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35139         via coreutils' misc/sort-debug-keys.sh test and detected by running
35140         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35141         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35142         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35143         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35144         characters correctly."
35146 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35148         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35149         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35150         compilation target is Mac OS X 10.6.
35151         Problem reported by parafin and Andoni Morales in
35152         <http://savannah.gnu.org/bugs/?37844> and
35153         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35155 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35157         mkdir-p: remove assumptions about umask and mode
35158         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35159         umask is 0, or that MODE is a subset of MODE_BITS.
35161 2013-05-10  Eric Blake  <eblake@redhat.com>
35163         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35164         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35166 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35168         deps: require Automake >= 1.9.6 in generated Makefile fragments
35170         That is the same minimal version required in the DEPENDENCIES file.
35171         Moreover, the old code generated a requirement of Automake >= 1.5,
35172         and that is an insanely outdated version.
35174         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35175         * tests/havelib/rpathlx/Makefile.am: Likewise.
35176         * tests/havelib/rpathly/Makefile.am: Likewise.
35177         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35178         * tests/havelib/rpathlz/Makefile.am: Likewise.
35179         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35180         * tests/havelib/rpathx/Makefile.am: Likewise.
35181         * tests/havelib/rpathy/Makefile.am: Likewise.
35182         * tests/havelib/rpathz/Makefile.am: Likewise.
35184 2013-05-08  Eric Blake  <eblake@redhat.com>
35186         bootstrap: AC_INIT may have more than four parameters
35187         * build-aux/bootstrap (extract_package_name): Correctly extract
35188         non-empty tarname field.  Avoid range in regex.
35189         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35191 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35193         qacl: port to MS-Windows port of GNU Emacs
35194         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35195         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35196         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35197         <http://bugs.gnu.org/14295#14>.
35199 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35201         acl: include quote.h
35202         * lib/copy-acl.c: Include quote.h.
35203         * lib/set-acl.c: Likewise.
35205 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35207         fchownat, renameat, unlinkat: update statat dependencies
35208         These modules use statat and lstatat, not fstatat; so depend on
35209         the statat module, which was split out recently from fstatat.
35210         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35211         * modules/renameat: Likewise.  Also delete fstat.
35212         URL: http://bugs.gentoo.org/468790
35214 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35216         Assume gnulib is checked out from Git, not CVS
35218         In fact, access to the gnulib repository through CVS has been
35219         disabled, or more precisely, got broken and was never restored; see:
35220         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35222         Note that support for CVS is not removed completely and unthinkingly
35223         by this change: only support for CVS checkouts of gnulib itself is
35224         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35225         files and CVS directories, for the benefit of those poor gnulib clients
35226         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35228         * gnulib-tool: Simplify accordingly.
35229         * posix-modules: Likewise.
35230         * MODULES.html.sh: Likewise.
35231         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35232         repository.
35233         * doc/gnulib-intro.texi: Likewise.
35234         * doc/gnulib-readme.texi: Likewise.
35235         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35236         sample '.gitignore' file rather than a sample '.cvsignore'.
35237         * NEWS: Update.
35238         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35239         to "CVS Autoconf" rather than "git Autoconf".
35241 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35243         utimensat-tests, etc.: try to fix some races
35244         Problem reported by Bernhard Voelker in
35245         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35246         I don't know whether this patch fixes that race condition, but it
35247         fixes *some* race conditions, so it should be a win.
35248         * modules/chown-tests (Depends-on):
35249         * modules/fchownat-tests (Depends-on):
35250         * modules/fdutimensat-tests (Depends-on):
35251         * modules/futimens-tests (Depends-on):
35252         * modules/lchown-tests (Depends-on):
35253         * modules/stat-time-tests (Depends-on):
35254         * modules/utimens-tests (Depends-on):
35255         * modules/utimensat-tests (Depends-on):
35256         Depend on nanosleep, not usleep.
35257         * modules/chown-tests (test_chown_LDADD):
35258         * modules/lchown-tests (test_lchown_LDADD):
35259         * modules/stat-time-tests (test_stat_time_LDADD):
35260         New macro.
35261         * modules/fchownat-tests (test_fchownat_LDADD):
35262         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35263         * modules/futimens-tests (test_futimens_LDADD):
35264         * modules/utimens-tests (test_utimens_LDADD):
35265         * modules/utimensat-tests (test_utimensat_LDADD):
35266         Add $(LIB_NANOSLEEP).
35267         * modules/stat-time-tests (Files): Add tests/nap.h.
35268         * tests/nap.h: Include <limits.h>, for INT_MAX.
35269         (lt_mtime): Remove.
35270         (diff_timespec): New function.
35271         (get_stat): Rename from get_mtime.  All callers changed.
35272         (nap_works): Determine the needed delay by inspecting the
35273         file system's timestamp jumps; this should be more reliable.
35274         Look at both mtime and ctime, and take the maximum of the two jumps.
35275         (nap_works, guess_delay):
35276         Return a nanosecond count, not a microsecond count.
35277         All callers changed.
35278         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35279         failure.
35280         (nap): Multiply the guess by 1.125, to accommodate the case where
35281         the file system's clock is a bit slower than nanosleep's clock.
35282         * tests/test-stat-time.c (BASE): New macro.
35283         Include nap.h.
35284         (nap): Remove; nap.h now defines this.  This removes a duplicate
35285         implementation of 'nap'.
35287         utimens, utimensat: work around Solaris UTIME_OMIT bug
35288         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35289         Linux kernel 2.6.32 does.  Work around it in the same way.
35290         * doc/posix-functions/futimens.texi (futimens):
35291         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35292         * lib/utimens.c (fdutimens, lutimens):
35293         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35295         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35296         Formerly, it was your responsibility to do this for all Makefile.ams
35297         other than Gnulib's.  Now it's your responsibility to do it for
35298         Gnulib's Makefile.am, too.
35299         * NEWS: Document this.
35300         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35302         acl: include errno.h to get errno
35303         Reported by Daiki Ueno in
35304         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35305         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35307 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35309         tests: don't assume getdtablesize () <= 10000000
35310         * modules/cloexec-tests:
35311         * modules/dup2-tests:
35312         * modules/dup3-tests:
35313         * modules/nonblocking-tests:
35314         * modules/posix_spawn_file_actions_addclose-tests:
35315         * modules/posix_spawn_file_actions_adddup2-tests:
35316         * modules/posix_spawn_file_actions_addopen-tests:
35317         * modules/unistd-safer-tests:
35318         Depend on the getdtablesize module.
35319         * tests/test-cloexec.c:
35320         * tests/test-dup-safer.c:
35321         * tests/test-dup2.c:
35322         * tests/test-dup3.c:
35323         * tests/test-fcntl.c:
35324         * tests/test-nonblocking.c:
35325         * tests/test-posix_spawn_file_actions_addclose.c:
35326         * tests/test-posix_spawn_file_actions_adddup2.c:
35327         * tests/test-posix_spawn_file_actions_addopen.c:
35328         Don't assume getdtablesize () <= 10000000.
35330 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35332         extern-inline: work around bug in Sun c99
35333         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35334         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35336 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35338         qacl: new module, broken out from the acl module
35339         This is for GNU Emacs, which wants the acl functions but does
35340         not want 'error' invoked when they fail.
35341         * lib/acl-internal.h: Do not include error.h, quote.h.
35342         (ENOSYS, ENOTSUP): Remove; no longer needed.
35343         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35344         * lib/acl.h: Include <stdbool.h>.
35345         (acl_errno_valid): New function.
35346         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35347         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35348         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35349         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35350         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35351         * lib/file-has-acl.c (file_has_acl):
35352         * lib/qcopy-acl.c (qcopy_acl):
35353         * lib/qset-acl.c (qset_acl):
35354         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35355         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35356         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35357         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35358         Add lib/set-acl.c.
35359         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35360         Add qacl.
35361         (configure.ac): Move gl_FUNC_ACL to qacl module.
35362         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35363         Rename set-mode-acl.c to set-acl.c.
35364         * lib/acl-errno-valid.c: New file.
35365         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35366         copy_acl function remains in copy-acl.c.
35367         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35368         (_): Remove; not needed.
35369         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35370         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35371         * modules/qacl: New file, moved from the old modules/acl.
35372         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35373         Remove set-mode-acl.c, copy-acl.c.
35374         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35376         alignof, intprops, malloca: port better to IBM's C compiler
35377         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35378         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35379         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35381 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35383         wctype-h: fix gettext link error on mingw
35384         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35385         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35386         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35387         rpl_towupper and rpl_towupper.
35389 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35391         regex-tests, regex: allow glibc re_search behavior
35392         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35393         re_search input data to make the multi-character collating element
35394         in it clearly visible, and treat re_search return code 0 as valid.
35395         * m4/regex.m4 (gl_REGEX): Likewise.
35397 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35399         stdalign: doc fix
35400         * doc/posix-headers/stdalign.texi (stdalign.h):
35401         Gnulib doesn't support '_Alignof expr'.
35403 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35405         stdalign: port to stricter ISO C11
35406         ISO C11 says that _Alignof's operand must be a parenthesized type.
35407         Problem reported by Eli Zaretskii in
35408         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35409         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35410         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35412 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35414         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35415         Problem reported by Marco Atzeri in
35416         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35417         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35418         Simply delegate to the system <sys/select.h> in this case too.
35419         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35420         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35421         be needed on Solaris either.
35422         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35423         Simply delegate to the system <sys/time.h> in this case.
35425 2013-03-19  Karl Berry  <karl@gnu.org>
35427         * build-aux/gnupload: check for erroneous (with gnupload) use of
35428         ftp-upload.gnu.org, tweak help.
35430 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35432         copy-file, rpmatch: fix problems found by cppcheck
35433         Reported by Arno Onken in
35434         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35435         * lib/rpmatch.c (try): Fix memory leak.
35436         * lib/copy-file.c: Include "ignore-value.h".
35437         (qcopy_file_preserving): Ignore chown value.
35438         * modules/copy-file (Depends-on): Add ignore-value.
35440 2013-01-27  Jim Meyering  <jim@meyering.net>
35442         prefix-gnulib-mk: give better diagnostics
35443         * build-aux/prefix-gnulib-mk: Don't just "die".
35444         Give better diagnostics upon failure.
35446 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35448         putenv: port to Solaris 10
35449         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35450         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35451         is not what is wanted here.
35452         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35453         declaration, not for its existence.
35455 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35457         mktime: fix configure typo
35458         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35460 2013-03-12  Eric Blake  <eblake@redhat.com>
35462         regex-tests: skip UTF-8 test on mingw
35463         * modules/regex-tests (Depends-on): Add localcharset.
35464         * tests/test-regex.c (main): Use it to skip test on mingw.
35466 2013-03-11  Eric Blake  <eblake@redhat.com>
35468         tests: make it easier to bypass alarm time in debugger
35469         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35470         * tests/test-memmem.c (main): Likewise.
35471         * tests/test-passfd.c (main): Likewise.
35472         * tests/test-ptsname.c (main): Likewise.
35473         * tests/test-ptsname_r.c (main): Likewise.
35474         * tests/test-strcasestr.c (main): Likewise.
35475         * tests/test-strstr.c (main): Likewise.
35477         regex: port to mingw's recent addition of undeclared alarm
35478         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35479         exists but still doesn't work in newer mingw.
35480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35481         not existence.  Ensure SIGALRM is not trapped.
35482         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35483         * m4/regex.m4 (gl_REGEX): Likewise.
35484         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35485         * tests/test-regex.c (main): Use correct probe for alarm.
35487         putenv: avoid compilation warning on mingw
35488         * lib/putenv.c (_unsetenv): Protect variable declaration.
35489         (putenv): Fix indentation.
35491 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35493         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35494         * lib/unistd.in.h: be careful not to include un-needed system
35495         stdlib.h from here, because that prevents gnulib stdlib.h from
35496         defining rpl_strtod correctly.
35498 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35500         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35501         changesets, but for the 'precision 0' test.
35502         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35503         round-to-even, since POSIX says rounding is implementation-defined
35504         and OS X 10.8.2 rounds 1.51 to 1 here.
35506         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35507         changeset.
35508         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35509         round-to-even, since POSIX says rounding is implementation-defined
35510         and OS X 10.8.2 rounds 1.5 to 1 here.
35512 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35514         vasnprintf-posix-tests: allow rounding 1.5 to 1
35515         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35516         round-to-even, since POSIX says rounding is implementation-defined
35517         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35518         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35520         bootstrap: port to FreeBSD
35521         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35522         that treat '--' differently.  Reported by Mats Erik Andersson in
35523         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35525 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35527         regex: rename remaining __attribute calls to __attribute__.
35528         2012-02-25 changed definition of __attribute, but left some uses
35529         unchanged, preventing compilation of regex module on most non-gcc
35530         environments.
35531         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35532         (lookup_collation_sequence_value, build_range_exp)
35533         (build_collating_symbol): Set attributes with newly renamed
35534         __attribute__ decorator.
35535         * lib/regex_internal.c (re_string_peek_byte_case)
35536         (re_node_set_compare, re_node_set_contains): Likewise.
35537         * lib/regexec.c (acquire_init_state_context): Likewise.
35539 2013-03-06  Bruno Haible  <bruno@clisp.org>
35541         execute: Revert last change, but use a different condition.
35542         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35543         on Windows.
35545 2013-03-05  Eric Blake  <eblake@redhat.com>
35547         execute: drop dead code
35548         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35550 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35552         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35553         * m4/non-recursive-gnulib-prefix-hack.m4
35554         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35555         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35556         <http://bugs.gnu.org/10305#237>.
35558 2013-03-04  Eric Blake  <eblake@redhat.com>
35560         test-getsockopt: avoid compiler warning
35561         * tests/test-getsockopt.c (includes): Ensure close is declared.
35563 2013-03-02  Bruno Haible  <bruno@clisp.org>
35565         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35566         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35568 2013-03-02  Bruno Haible  <bruno@clisp.org>
35570         gettext: Update to version 0.18.2.
35571         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35572         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35573                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35575 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35577         regex: merge patches from libc
35579         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35580         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35581         All uses changed.
35582         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35583         (re_string_wchar_at, re_string_elem_size_at):
35584         Mark function as possibly unused.
35586         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35587         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35588         elements compare against the byte sequence of it, not its name.
35590 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35592         putenv: port better to native Windows
35593         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35594         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35595         (_unsetenv): Use _putenv if available.
35596         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35597         a bit less likely to cause damage.
35598         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35599         Fix the wrong value with SetEnvironmentVariable.
35600         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35601         code better.
35603 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35605         regex: ignore old-style-definition warnings
35606         * lib/regex.c: Add pragma to ignore these warnings.
35607         Problem reported for GNU tar by Pavel Raiskup.
35609 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35611         getcwd: support coreutils better
35612         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35613         but this might not be correct in coreutils, which disables
35614         the raw decl checks.  Problem reported by Nagendra in
35615         <http://bugs.gnu.org/10305#192>.
35616         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35618         Test the getcwd function, not any macro, since getcwd.c wants the
35619         function.
35620         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35621         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35622         compile, as might happen if there's a macro but no function.
35624         strtod: support coreutils better
35625         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35626         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35627         disables the raw decl checks.  This assumes there is an underlying
35628         strtod, but that's a safe assumption these days.
35629         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35631         mountlist: port to HP NonStop
35632         Reported by Joachim Schmitz in
35633         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35634         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35635         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35637 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35639         extern-inline: avoid compilation error with HP-UX cc
35640         Reported by Richard Lloyd in
35641         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35642         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35643         Suppress extern inline with HP-UX cc.  This should be safe,
35644         though it may hurt performance.  Perhaps someone with some HP-UX
35645         experience can come up with a higher-performance fix.
35647 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35649         putenv: fix heap corruption with mixed putenv/_putenv
35650         Problem reported by Michael Goffioul in
35651         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35652         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35653         Rely on _putenv to allocate the new environment.
35654         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35655         * modules/putenv (configure.ac): Use it.
35657 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35659         unsetenv etc.: port to Solaris 11 + GNU Emacs
35660         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35661         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35662         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35663         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35664         idea but is too painful to fix right now), and without this gnulib
35665         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35666         compiling unsetenv.c on Solaris 11.  Fix the problem for
35667         unsetenv.c, and fix other similar occurrences.
35669 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35671         secure_getenv: fix C++ declaration typo
35672         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35673         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35674         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35676 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35678         careadlinkat: stop exporting careadlinkatcwd
35679         Only Emacs used it directly, and Emacs no longer needs it.
35680         * NEWS: Document this simplification.
35681         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35682         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35683         for readlink.
35684         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35685         Don't include stdlib.h; no longer needed.
35686         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35687         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35688         * modules/areadlink (Depends-on): Add readlink.
35689         (Maintainer): Add self.
35690         * modules/careadlinkat (Depends-on): Remove readlink.
35692         extensions: port better to HP-UX
35693         This is merged from git Autoconf.
35694         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35695         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35696         so that it's compatible with the value used when compiling.
35698         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35699         Problem reported by Mats Erik Andersson in
35700         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35701         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35702         openpty function exists, not merely when we intend to replace it.
35703         This corrects the 2013-01-31 patch, which mistakenly defined
35704         HAVE_OPENPTY even on hosts that lacked it.
35706 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35708         secure_getenv: fix include typo
35709         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35711         secure_getenv: port better to FreeBSD and Solaris
35712         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35713         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35714         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35715         This works better on BSDish platforms.
35716         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35717         Test for issetugid if __secure_getenv is missing.
35719 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35721         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35722         Some of these changes are merged in from git Autoconf.
35723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35724         When deciding whether to define _XOPEN_SOURCE, inspect the
35725         preprocessor macro __hpux instead of the more-heavyweight
35726         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35727         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35728         as the key for __EXTENSIONS__.
35730         unistd: avoid namespace pollution on non-glibc systems
35731         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35732         This avoids namespace pollution on non-glibc systems, by causing
35733         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35734         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35735         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35737 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35739         tmpdir: use secure_getenv
35740         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35741         Define to secure_getenv, not getenv.
35742         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35743         as that's now secure_getenv's job.
35744         * modules/tmpdir (Depends-on): Add secure_getenv.
35746         tempname: use secure_getenv
35747         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35748         Define to secure_getenv, not getenv.
35749         * modules/tempname (Depends-on):
35750         Add secure_getenv.
35752         secure_getenv: new module
35753         * MODULES.html.sh (Extra functions based on ANSI C 89):
35754         Add secure_getenv.
35755         * doc/glibc-functions/secure_getenv.texi: New file.
35756         * doc/gnulib.texi: Include it.
35757         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35758         New files.
35759         * lib/stdlib.in.h (secure_getenv): New decl.
35760         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35761         * modules/stdlib (stdlib.h):
35762         Add secure_getenv checks.
35764 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35766         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35767         Reported for OS X 10.8.2 by Assaf Gordon in
35768         <http://bugs.gnu.org/13516>.
35769         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35770         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35771         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35772         so that they can be kept in sync more easily.  Avoid PATH_MAX
35773         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35774         mkdir or chdir failure.
35775         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35776         lib/getcwd.c.
35777         (test_abort_bug): Do not test for the deep directory bug unless we
35778         have openat support.  Avoid PATH_MAX test on the Hurd.
35780         regex-tests, regex: fix bug: memset undeclared
35781         * tests/test-regex.c: Don't include regex.h twice.  Include
35782         string.h, to declare memset.  Christensen's report also mentioned
35783         this issue.
35784         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35785         test-regex.c, to avoid future problems like this.  Remove
35786         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35787         twice.
35789         regex-tests: fix link errors on older Solaris
35790         These need to link with @LIBINTL@ to get libintl_gettext.
35791         Problem reported by Tom G. Christensen in
35792         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35793         * modules/regex-tests (test_regex_LDADD): New macro.
35795 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35797         regex-tests: new module
35798         * modules/regex-tests, tests/test-regex.c: New files.
35800         regex: fix off-by-one error in configure test
35801         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35803 2013-01-31  Eric Blake  <eblake@redhat.com>
35805         regex: avoid infinite configure test
35806         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35808 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35810         openpty: fix bug where HAVE_OPENPTY wasn't defined
35811         See the thread starting at:
35812         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35813         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35814         openpty function exists, not merely when we intend to replace it.
35816 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35818         sys_time: port to Solaris 2.6
35819         There is a circularity problem on Solaris 2.6, where <time.h> includes
35820         <sys/time.h> for struct timespec.  The include nesting is gnulib
35821         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35822         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35823         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35824         <sys/siginfo.h>; the last, innermost file needs struct
35825         timestruc_t, which is defined in <sys/time.h>, which has not been
35826         fully parsed.  Problem reported by Tom G. Christensen in
35827         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35828         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35829         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35830         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35831         uses split double-inclusion guards.
35833 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35835         regex: test for buffer overrun
35836         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35837         for the just-fixed regex bug.
35839 2013-01-29  Andreas Schwab  <schwab@suse.de>
35841         regex: fix buffer overrun in regexp matcher [BZ #15078]
35842         * lib/regexec.c (extend_buffers): Add parameter min_len.
35843         (check_matching): Pass minimum needed length.
35844         (clean_state_log_if_needed): Likewise.
35845         (get_subexp): Likewise.
35847 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35849         mountlist: don't consider "devtmpfs" as dummy
35850         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35851         as there is storage associcated with it.
35853 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35855         futimens-tests, utimens-tests: Depend on gettext.
35856         This works around a problem introduced in my 2013-01-12 patch,
35857         which added @LIBINTL@ to these modules.
35858         * modules/futimens-tests (Depends-on):
35859         * modules/utimens-tests (Depends-on): Add gettext.
35861 2013-01-26  Eric Blake  <eblake@redhat.com>
35863         test-getpeername: fix typo
35864         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35866 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35868         bootstrap: remove the need for a sorted .gitignore file
35869         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35870         rename to insert_if_absent(), so that we don't need or generate
35871         a sorted .gitignore file.  We do require a .gitignore with no
35872         existing duplicate entries and enforce that.
35873         (sort_patterns): Remove this function as we now use the simpler
35874         technigue of inserting blacklist entries at the top of the file,
35875         assuming gnulib won't be inserting !whitelist entries.
35877 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35879         readlinkat: don't depend on gl_FUNC_OPENAT
35880         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35881         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35882         renameat.m4, symlinkat.m4; but one thing at a time.
35884         statat: new module, split out from fstatat
35885         GNU Emacs needs the POSIX-specified fstatat, but not the
35886         gnulib-specified statat and lstat.  Split the latter two into a
35887         new module 'statat'.
35888         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35889         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35890         Rename from FSTATAT_INLINE. All uses changed.
35891         * modules/fstatat (Files): Remove lib/statat.c.
35892         (gl_MODULE_INDICATOR([fstatat])): Remove.
35893         (lib_SOURCES): Remove.
35894         (Maintainer): Add self.
35895         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35896         * tests/test-fstatat.c (BASE): Don't define if already defined.
35897         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35899 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35901         tests: don't assume fd 99 is closed
35902         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35903         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35904         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35905         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35906         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35907         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35908         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35909         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35910         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35911         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35912         * tests/test-fwrite.c, tests/test-getpeername.c:
35913         * tests/test-getsockname.c, tests/test-getsockopt.c:
35914         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35915         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35916         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35917         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35918         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35919         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35920         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35921         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35922         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35923         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35924         Close file descriptor 99, instead of assuming it's already closed.
35926 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35928         stpncpy: port to OS X 10.8
35929         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35930         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35932 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35934         unistd: port to recent mingw
35935         * lib/unistd.in.h: Remove special invocation convention for mingw,
35936         which breaks for the latest mingw version.  See John W. Eaton in
35937         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35939         largefile: port better to Mac OS X 10.5
35940         This patch is backported from Autoconf git.
35941         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35942         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35943         with ino_t size being different for configuration time versus
35944         build/run time.  Problem reported by PHO in
35945         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35947 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35949         doc: clarify -Werror
35950         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35951         clarify that it's intended for developers, not for ordinary builds,
35952         and mention --enable-gcc-warnings as one possible use.
35954 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35956         stdint: fix build with Android's Bionic fox x86
35957         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35958         was already included as _SSIZE_T_DEFINED_ might also be defined
35959         in include/machine/_types.h, which is included by stdio.h
35961 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35963         net_if-tests: port to Solaris 7 + GCC 3.4.6
35964         Problem reported by Tom G. Christensen in
35965         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35966         * tests/test-net_if.c (ni): Move to next the code that uses it,
35967         so that it's declared only if needed.
35969 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35971         net_if-tests: port to older Solaris
35972         Problem reported by Tom G. Christensen in
35973         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35974         * modules/net_if-tests (NET_IF_LIB): New substitution.
35975         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35976         (HAVE_IF_NAMEINDEX): New C macro.
35977         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35979         system-quote-tests: port to older Solaris
35980         Problem reported by Tom G. Christensen in
35981         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35982         * tests/test-system-quote-child.c (fopen, fread): Undef.
35984         c-xvasprintf etc.: fix link errors on older Solaris
35985         These need to link with @LIBINTL@ to get libintl_gettext.
35986         Problem reported by Tom G. Christensen in
35987         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35988         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35989         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35990         * modules/futimens-tests (test_futimens_LDADD):
35991         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35993 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35995         locale: port to Solaris 2.6 and 7 + GNU gettext
35996         * lib/locale.in.h: Just include_next <locale.h> when
35997         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35998         when combining the localename module with GNU gettext 0.18.2.
35999         Problem reported by Tom G. Christensen in
36000         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36002 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36004         stdlib: port to Solaris 2.6
36005         Also, the code worked on Solaris 7 through 9 only by accident.
36006         Problem reported by Tom G. Christensen in
36007         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36008         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36009         simply include the system stdlib.h.
36010         * lib/getopt.in.h (__need_system_stdlib_h):
36011         * lib/pthread.in.h (__need_system_stdlib_h):
36012         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36013         Define when including <stdlib.h>, to avoid problems at least for
36014         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36015         with the system stdlib.h.
36017 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36019         doc: update main copyright year
36020         * doc/gnulib.texi: Update copyright date.
36022         doc: improve ISO 8601 discussion
36023         * doc/parse-datetime.texi (Combined date and time of day items):
36024         Specify more carefully what formats are supported and what is
36025         done with excess precision.
36027 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36029         doc: avoid small caps
36030         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36031         they're more trouble than they're worth.  Suggested by Karl Berry
36032         in <http://bugs.gnu.org/13360>.
36034         regex: conform to strict C
36035         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36036         From Aharon Robbins.
36038         gnulib-tool: fix incompatibility with autopoint 0.18.2
36039         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36040         Problem reported by Tom G. Christensen in
36041         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36043 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36045         fprintftime: bring back and reword fwrite comment
36046         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36048         stdio: remove now-unnecessary stdio.c
36049         Since stdio.in.h no longer uses inline functions, we no longer
36050         need to compile the extern versions.
36051         * lib/stdio.c: Remove.
36052         * modules/stdio (Files): Remove lib/stdio.c.
36053         (lib_SOURCES): Remove.
36055         unicodeio: depend on stdio, not ignore-value
36056         * lib/unicodeio.c: Do not include ignore-value.h.
36057         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36058         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36060         fprintftime: depend on stdio, not ignore-value
36061         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36062         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36063         since the stdio module arranges to silence that warning now.
36064         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36066 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36068         stdint-tests: Fix expanded-before-required-warning.
36069         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36071 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36073         fwrite: silence __wur only for older glibc versions
36074         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36075         This will help us remove this workaround some time in the far future.
36077 2013-01-03  Eric Blake  <eblake@redhat.com>
36079         fwrite: silence __wur without using inline
36080         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36081         just gcc, and in a way that avoids inline issues.
36082         * modules/stdio (Depends-on): Drop extern-inline.
36084 2013-01-03  Jim Meyering  <jim@meyering.net>
36086         update-copyright: avoid copyright notice date corruption
36087         Given a sequence of copyright year numbers in which the final
36088         one was a two-digit number that happened to be a substring of
36089         a preceding four-digit year number, we would mistakenly update
36090         the substring (from two- to four-digit) rather than the two-digit
36091         number at the end, which, combined with the addition of the current
36092         4-digit year number would yield two 5-digit year numbers, e.g.,
36093         here, it would convert the first "99" to "1999, 2013" rather than
36094         the final one:
36095           1991, 99
36096           11999, 20131, 1999
36097         * build-aux/update-copyright: Tighten a regexp.
36098         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36099         Reported by Joseph Myers in
36100         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36102 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36104         regex: omit needless signed-pointer casts
36105         * lib/regcomp.c (build_charclass, build_charclass_op):
36106         Use char *, not unsigned char *, for class name and extra.
36107         The char values are always nonnegative so there's no need to
36108         insist on unsigned char * here, and using char * removes the need
36109         for casts.  Reported by Aharon Robbins in
36110         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36112         regex: support Gawk, which never uses alloca
36113         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36114         Do not include in this case.  Gawk doesn't supply a substitute
36115         alloca.h and doesn't need one.
36117         regex: port __libc_lock_define usage to C89
36118         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36119         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36120         does not conform to C89, as it has an empty macro argument.
36121         Reported by Aharon Robbins in
36122         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36124 2013-01-01  Eric Blake  <eblake@redhat.com>
36126         maint: update all copyright year number ranges
36127         Run "make update-copyright".
36129         version-etc: bump copyright year reported in --version
36130         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36132 2012-12-31  Eric Blake  <eblake@redhat.com>
36134         sigprocmask-tests: skip test if pid is unexpectedly large
36135         * tests/test-sigprocmask.c (main): Add range check.
36137         git-version-gen: avoid test -z portability glitch
36138         * build-aux/git-version-gen: Prefer portable test spelling, since
36139         git-version-gen is run on more than just developer machines.
36141 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36143         git-version-gen: add --fallback option to use if git is not present
36144         * build-aux/git-version-gen: Add support for the new option --fallback,
36145         which comes into play when there is no $tarball_version_file and
36146         git is not working.
36147         (scriptversion): Update.
36149         maint.mk: handle missing git with more grace
36150         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36151         Quietly proceed if git is not present.
36153 2012-12-31  Eric Blake  <eblake@redhat.com>
36155         dup2: work around cygwin bug
36156         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36157         * lib/dup2.c (rpl_dup2): Work around it.
36158         * doc/posix-functions/dup2.texi (dup2): Document it.
36160 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36162         regex: remove unnecessary dependency on localcharset.h
36163         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36164         hasn't been needed for years.
36165         * modules/regex (Depends-on): Remove localcharset.
36167         regex: revert single-byte change
36168         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36169         to this function.  This was alredy fixed in a different way, at
36170         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36171         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36172         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36174         regex: simplify based on Gawk version
36175         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36176         Reported by Aharon Robbins in
36177         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36179 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36181         regex: check that pattern char is single-byte
36182         Reported by Aharon Robbins in
36183         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36184         * lib/regexec.c (check_node_accept_bytes):
36185         Return 0 if the pattern string has a multibyte character here.
36187         regex: implement rational ranges
36188         Reported by Aharon Robbins in
36189         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36190         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36191         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36192         Implement rational ranges.
36194         regex: avoid redefining __wctype
36195         Reported by Aharon Robbins in
36196         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36197         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36198         #undef before defining.
36200         regex: port to hosts where malloc (0) == NULL
36201         Reported by Aharon Robbins in
36202         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36203         * lib/regex_internal.c (re_node_set_alloc):
36204         Don't assume that malloc (0) yields nonnull.
36205         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36206         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36207         * modules/regex (Files): Add m4/eealloc.m4.
36209         regex: port to C89
36210         Reported by Aharon Robbins in
36211         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36212         * lib/regcomp.c (init_word_char): Declaration before statement.
36214         regex: merge glibc changes
36215         Also, copy the license wording from glibc.  This simplifies
36216         merging changes.  gnulib-tool will change the wording to GPL as
36217         appropriate, when importing it to other packages.  The only
36218         glibc change made since the last merge, which needs merging, is:
36219         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36220         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36222         * users.txt: Add Emacs.
36224         doc: omit mention of version when not needed
36225         * doc/gnulib-intro.texi (Portability and Application Code):
36226         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36227         Don't mention particular dates or versions when not necessary, so
36228         that the documentation won't go out of date so quickly.
36230         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36232 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36234         bootstrap: pass --force to autoreconf.
36235         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36236         Add "--force" so that Automake's ylwrap and other such tools
36237         be updated at each bootstrap invocation.
36238         Use it.
36240 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36242         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36243         The earlier patch forgot to update one of the #if conditions, causing
36244         a problem on Debian testing i386 reported by Mats Erik Andersson
36245         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36246         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36247         (__argp_fmtstream_puts, argp_fmtstream_puts)
36248         (__argp_fmtstream_write, argp_fmtstream_write)
36249         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36251         * doc/gnulib-readme.texi: Minor fixups.
36252         (Portability guidelines): Modernize URLs.  Remove some repetition.
36253         (Indent with spaces not TABs): Reword to avoid too-long lines.
36254         Remove some '@ifset standalone' stuff that isn't used.
36256         * doc/gnulib-readme.texi (Portability guidelines):
36257         ctype.h, not ctime.h.
36259         Correct name of POSIX.1-2001.
36260         * doc/posix-functions/fgetc.texi (fgetc):
36261         * doc/posix-functions/fgets.texi (fgets):
36262         * doc/posix-functions/fread.texi (fread):
36263         * doc/posix-functions/fscanf.texi (fscanf):
36264         * doc/posix-functions/getc.texi (getc):
36265         * doc/posix-functions/getchar.texi (getchar):
36266         * doc/posix-functions/scanf.texi (scanf):
36267         POSIX.1-2001, not POSIX-2001.
36269         doc: move README into manual
36270         * README: Move contents to new file doc/gnulib-readme.texi.
36271         Replace with a one-line summary.
36272         * doc/gnulib.texi (Brief Overview): New section,
36273         with old intro preface.  Include gnulib-readme.texi for contents.
36274         (Philosophy): Rename from "Introduction", since this
36275         section no longer introduces the rest.  Write a new preface.
36276         * doc/gnulib-readme.texi: New file, with the old contents of
36277         README texinfo-ized.  This way, the README info appears
36278         in the online and printed manual.
36280 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36282         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36283         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36284         c_vasprintf() prototype.
36286 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36288         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36289         * lib/c-vasprintf.h: Remove stray semicolon.
36291 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36293         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36294         It is obsolete and is planned to be removed from Automake 1.14; see
36295         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36296         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36297         (installdirs-data, installdirs-data-yes):
36298         Use $(MKDIR_P), not $(mkdir_p).
36299         * m4/intl.m4 (AM_INTL_SUBDIR):
36300         * m4/po.m4 (AM_PO_SUBDIRS):
36301         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36303 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36305         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36306         On this platform, we are not optimizing but we are using
36307         the substitute for extern inlines, so compile as if
36308         C99-style extern inline, or a substitute, is available.
36309         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36310         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36311         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36312         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36313         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36314         Declare as ARGP_FS_EI, not as extern.
36315         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36316         (__option_is_short, _option_is_end, __option_is_end)
36317         [!_LIBC && __USE_EXTERN_INLINES]:
36318         Declare as ARGP_EI, not as extern.
36320 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36322         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36323         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36324         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36325         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36326         ...), as the latter is fatal with older Autoconfs.
36327         Problem reported and fix suggested by Eric Blake in thread starting at
36328         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36330 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36332         AC_PROG_MKDIR_P: don't workaround if not buggy
36333         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36334         Define only for Autoconf versions before 2.62.
36335         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36336         undocumented m4_PACKAGE_VERSION, for consistency with the
36337         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36338         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36339         was introduced in 2.62.
36341 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36343         New 'c-*printf' modules for formatted output in C locale.
36345         New module 'c-vasnprintf'.
36346         * modules/c-vasnprintf: New file.
36347         * lib/c-vasnprintf.c: New file.
36348         * lib/c-vasnprintf.h: New file.
36350         New module 'c-snprintf'.
36351         * modules/c-snprintf: New file.
36352         * modules/c-snprintf-tests: New file.
36353         * lib/c-snprintf.c: New file.
36354         * lib/c-snprintf.h: New file.
36355         * tests/test-c-snprintf.c: New file.
36356         * tests/test-c-snprintf.sh: New file.
36358         New module 'c-vsnprintf'.
36359         * modules/c-vsnprintf: New file.
36360         * modules/c-vsnprintf-tests: New file.
36361         * lib/c-vsnprintf.c: New file.
36362         * lib/c-vsnprintf.h: New file.
36363         * tests/test-c-vsnprintf.c: New file.
36364         * tests/test-c-vsnprintf.sh: New file.
36366         New module 'c-vasprintf'.
36367         * modules/c-vasprintf: New file.
36368         * modules/c-vasprintf-tests: New file.
36369         * lib/c-asprintf.c: New file.
36370         * lib/c-vasprintf.c: New file.
36371         * lib/c-vasprintf.h: New file.
36372         * tests/test-c-vasprintf.c  +: New file.
36373         * tests/test-c-vasprintf.sh: New file.
36375         New module 'c-xvasprintf'.
36376         * modules/c-xvasprintf: New file.
36377         * modules/c-xvasprintf-tests: New file.
36378         * lib/c-xasprintf.c: New file.
36379         * lib/c-xvasprintf.c: New file.
36380         * lib/c-xvasprintf.h: New file.
36381         * tests/test-c-xvasprintf.c: New file.
36382         * tests/test-c-xvasprintf.sh: New file.
36384 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36386         argp: better 'inline'
36387         Use extern-inline module to declare extern inline functions.
36388         This avoids some bogus warning diagnostics.  Problem discovered
36389         when modifying GNU tar to use the manywarnings module.
36390         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36391         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36392         Define based on extern-inline.
36393         * modules/argp (Depends-on): Add extern-inline.
36395 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36397         filemode, sys_stat: Handle MPX files a la AIX.
36398         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36399         * lib/sys_stat.in.h (S_ISMPX): New macro.
36400         * tests/test-sys_stat.c: Add tests for MPX files.
36402 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36404         x-to-1: honor $PERL
36405         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36406         a chance to use his preferred version of Perl.  This is typically
36407         required by Darwin users whose default /usr/bin/perl does not have all
36408         the libraries required by help2man, and who need to use their MacPorts
36409         installation of Perl instead.
36411 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36413         gnu-web-doc-update: add all the new files, even in new directories
36414         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36415         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36416         Use it.
36417         (main): Don't use cvsutils to get the list of unknown files,
36418         just add all the existing files and directories.
36420 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36422         gnu-web-doc-update: improve --help
36423         * build-aux/gnu-web-doc-update: Move comments into --help.
36425 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36427         mountlist: recognize more "dummy" file systems
36428         * lib/mountlist.c (ME_DUMMY_0):
36429         Add these dummy FS names to the list:
36430         - "debugfs" virtual filesystem for kernel debugging
36431         - "devpts" PTY slave filesystem
36432         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36433         - "fusectl" control filesystem for FUSE
36434         - "mqueue" enumerates POSIX message queues
36435         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36436         - "sysfs" is for exporting kernel objects
36437         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36439 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36441         extern-inline: avoid incompatibility with Darwin Libc
36442         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36443         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36444         Problem reported by Akim Demaille in
36445         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36447 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36449         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36450         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36451         let it handle password prompting.
36453 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36455         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36456         * lib/canonicalize.c (canonicalize_filename_mode):
36457         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36458         fetching the current directory.  Don't overrun the beginning of
36459         rpath if there's no slashes after the MS-Windows drive letter.
36461 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36463         maint.mk: avoid extra forks
36464         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36465         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36466         So use that instead of "$(shell test -f FILE && echo FILE)".
36468 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36470         vasnprintf: fix ASCII_ONLY typo
36471         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36472         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36473         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36474         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36475         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36477 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36479         list, oset, xlist, xoset: fix extern inline issue with C99
36480         This was introduced by my recent changes for 'inline'.
36481         Problem reported for gettext by Daiki Ueno in
36482         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36483         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36484         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36485         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36486         (gl_list_previous_node, gl_list_get_at)
36487         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36488         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36489         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36490         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36491         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36492         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36493         (gl_list_iterator_free, gl_sortedlist_search)
36494         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36495         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36496         (gl_sortedlist_remove):
36497         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36498         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36499         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36500         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36501         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36502         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36503         (gl_list_add_at, gl_sortedlist_add):
36504         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36505         Wrap these extern decls inside "#if 0", because they are implemented
36506         as inline functions, and extern inline is not what's wanted here.
36507         It would simplify these .h files to remove the extern decls entirely,
36508         although a downside would be less-clear separation between
36509         specification and implementation.
36511 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36513         sys_stat: no 'static inline'
36514         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36515         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36517         extern-inline: no 'static inline'
36518         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36519         Do not require AC_C_INLINE.
36520         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36521         'static inline', for older compilers.
36523         snippet/warn-on-use: no 'static inline'
36524         * build-aux/snippet/warn-on-use.h:
36525         Remove unnecessary 'inline' in comment.
36527         rbtree-list, rbtreehash-list: no 'static inline'
36528         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36529         * lib/gl_anytree_list2.h (node_at):
36530         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36531         (gl_oset_first, add_nodes_to_buckets):
36532         Now static, not static inline.
36534         regex: no 'static inline'
36535         * lib/regex_internal.c (calc_state_hash):
36536         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36537         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36538         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36539         Now static, not static inline.
36540         (inline) [__GNUC__ < 3 && _LIBC]:
36541         Remove macro; no longer needed.
36543         xvasprintf: no 'static inline'
36544         * lib/xvasprintf.c (xstrcat):
36545         Now static, not static inline.
36546         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36547         Do not require AC_C_INLINE.
36549         parse-datetime, parse-duration: no 'static inline'
36550         * lib/parse-datetime.y (to_uchar):
36551         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36552         (scale_n_add):
36553         Now static, not static inline.
36554         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36555         * modules/parse-duration (configure.ac):
36556         Do not require AC_C_INLINE.
36558         getaddrinfo: no 'static inline'
36559         * lib/getaddrinfo.c (validate_family):
36560         Now static, not static inline.
36561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36562         Do not require AC_C_INLINE.
36564         ftruncate, fts, lstat, openat, raise: no 'static inline'
36565         * lib/ftruncate.c (chsize_nothrow):
36566         * lib/fts.c (opendirat, diropen):
36567         * lib/lstat.c (orig_lstat):
36568         * lib/openat.c (orig_openat):
36569         * lib/raise.c (raise_nothrow):
36570         Now static, not static inline.
36571         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36572         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36573         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36574         * m4/openat.m4 (gl_PREREQ_OPENAT):
36575         * m4/raise.m4 (gl_PREREQ_RAISE):
36576         Do not require AC_C_INLINE.
36578         fflush, stat: no 'static inline'
36579         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36580         (clear_ungetc_buffer, disable_seek_optimization)
36581         (restore_seek_optimization, update_fpos_cache):
36582         * lib/stat.c (orig_stat):
36583         Now static, not static inline.
36584         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36585         (update_fpos_cache):
36586         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36587         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36588         * m4/stat.m4 (gl_PREREQ_STAT):
36589         Do not require AC_C_INLINE.
36591         error, filevercmp: no 'static inline'
36592         * lib/error.c (is_open, flush_stdout):
36593         * lib/filevercmp.c (order):
36594         Now static, not static inline.
36595         * m4/error.m4 (gl_PREREQ_ERROR):
36596         * modules/filevercmp (configure.ac):
36597         Do not require AC_C_INLINE.
36599         dup, execute, fatal-signal, etc.: no 'static inline'
36600         * lib/dup.c (dup_nothrow):
36601         * lib/execute.c (nonintr_close, nonintr_open):
36602         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36603         * lib/fopen.c (orig_fopen):
36604         * lib/freadseek.c (freadptrinc):
36605         * lib/freopen.c (orig_freopen):
36606         * lib/fstat.c (orig_fstat, fstat_nothrow):
36607         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36608         (get_rusage_as_via_iterator):
36609         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36610         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36611         * lib/isatty.c (_isatty_nothrow):
36612         * lib/open.c (orig_open):
36613         * lib/read.c (read_nothrow):
36614         * lib/sigprocmask.c (signal_nothrow):
36615         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36616         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36617         * lib/wait-process.c (unregister_slave_subprocess):
36618         * lib/write.c (write_nothrow):
36619         Now static, not static inline.
36620         * lib/spawn-pipe.c (nonintr_open): Define only if
36621         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36622         * m4/dup.m4 (gl_PREREQ_DUP):
36623         * m4/execute.m4 (gl_EXECUTE):
36624         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36625         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36626         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36627         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36628         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36629         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36630         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36631         * m4/open.m4 (gl_PREREQ_OPEN):
36632         * m4/read.m4 (gl_PREREQ_READ):
36633         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36634         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36636         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36637         * m4/write.m4 (gl_PREREQ_WRITE):
36638         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36639         Do not require AC_C_INLINE.
36641         c-strtod, memcoll, readutmp: no 'static inline'
36642         * lib/c-strtod.c (c_locale):
36643         * lib/memcoll.c (strcoll_loop):
36644         * lib/readutmp.c (desirable_utmp_entry):
36645         Now static, not static inline.
36646         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36647         * m4/memcoll.m4 (gl_MEMCOLL):
36648         * m4/readutmp.m4 (gl_READUTMP):
36649         Do not require AC_C_INLINE.
36651         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36652         * lib/arctwo.c (to_uchar):
36653         * lib/md4.c (set_uint32):
36654         * lib/md5.c (set_uint32):
36655         * lib/sha1.c (set_uint32):
36656         * lib/sha256.c (set_uint32):
36657         * lib/sha512.c (set_uint64):
36658         Now static, not static inline.  This is a bit simpler, and doesn't
36659         affect performance with GCC and default optimization.
36660         * m4/arctwo.m4 (gl_ARCTWO):
36661         * m4/md4.m4 (gl_MD4):
36662         * m4/md5.m4 (gl_MD5):
36663         * m4/sha1.m4 (gl_SHA1):
36664         * m4/sha256.m4 (gl_SHA256):
36665         * m4/sha512.m4 (gl_SHA512):
36666         Do not require AC_C_INLINE.
36668         cond, lock, thread: better 'inline'
36669         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36670         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36671         New macros.  Use them instead of static inline, for header functions.
36672         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36673         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36674         * lib/glthread/lock.c (gl_waitqueue_init)
36675         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36676         * lib/glthread/thread.c (get_current_thread_handle):
36677         Change 'static inline' to 'inline'.
36678         * lib/glthread/cond.h, lib/glthread/thread.h:
36679         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36680         * m4/cond.m4 (gl_COND):
36681         * m4/lock.m4 (gl_PREREQ_LOCK):
36682         * m4/thread.m4 (gl_THREAD):
36683         Do not require AC_C_INLINE.
36684         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36686         chdir-long, cycle-check, savewd: better 'inline'
36687         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36688         (find_non_slash):
36689         * lib/cycle-check.c (is_zero_or_power_of_two):
36690         * lib/savewd.c (savewd_delegating):
36691         Change 'static inline' to 'inline'.
36692         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36693         Replace all remaining uses of 'static inline' with it.
36694         * lib/savewd.h:
36695         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36696         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36697         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36698         * m4/savewd.m4 (gl_SAVEWD):
36699         Do not require AC_C_INLINE.
36700         * modules/savewd (Depends-on): Add extern-inline.
36702         base32, base64: no need for 'inline'
36703         * lib/base32.c (to_uchar, get_8, decode_8):
36704         * lib/base64.c (to_uchar, get_4, decode_4):
36705         Change 'static inline' to 'inline'.
36706         * m4/base32.m4 (gl_PREREQ_BASE32):
36707         * m4/base64.m4 (gl_PREREQ_BASE64):
36708         Do not require AC_C_INLINE.
36710         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36711         * lib/gl_array_oset.c (gl_array_nx_add_at):
36712         (gl_array_remove_at):
36713         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36714         (add_to_bucket, remove_from_bucket):
36715         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36716         Change 'static inline' to 'static', as it's simpler to omit
36717         'inline' unless there's a significant performance advantage.
36719         list, oset, xlist, xoset, xsublist: simplify via extern inline
36720         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36721         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36722         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36723         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36724         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36725         New macro.  Replace all uses of 'static inline' with it.
36726         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36727         instead of as macros FOO that are defined to static inline
36728         functions FOO_inline.
36729         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36730         * lib/gl_xsublist.c:
36731         Reimplement from scratch, by defining the corresponding *_INLINE
36732         macro and including the corresponding .h file.  This is simpler.
36733         * modules/list, modules/oset, modules/xlist, modules/xoset:
36734         (Files): Remove m4/gl_list.m4.
36735         (configure.ac): Remove gl_LIST.
36736         * m4/gl_list.m4: Remove.
36737         * modules/list, modules/oset, modules/xlist, modules/xoset:
36738         * modules/xsublist:
36739         (Depends-on): Depend on extern-inline, not inline.
36741         xalloc: better 'inline'
36742         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36743         New macro.  Replace all uses of 'static inline' with it.
36744         (static_inline): Remove.
36745         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36746         Let 'extern inline' do the work automatically, instead of doing
36747         it by hand.
36748         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36749         Remove.  All uses removed.
36750         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36752         gethrxtime: better 'inline'
36753         * lib/xtime.c: New file.
36754         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36755         * lib/xtime.h (XTIME_INCLUDE):
36756         New macros.  Replace all uses of 'static inline' with them.
36757         * lib/gethrxtime.c (gethrxtime): Define only if
36758         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36759         this source file is now always compiled, because of the extern inline.
36760         * lib/gethrxtime.h, lib/xtime.h:
36761         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36762         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36763         if gethrtime works, as they're not needed in that case.
36764         (gl_XTIME): Do not require AC_C_INLINE.
36765         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36766         compiled now.  Move the check into gl_GETHRXTIME.
36767         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36768         (Depends-on): Add extern-inline.
36769         (configure.ac): gethrxtime is always compiled now.
36770         (lib_SOURCES): Add gethrxtime.c.
36772         wctype-h: better 'inline'
36773         * lib/wctype-h.c: New file.
36774         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36775         New macro.  Replace all uses of 'static inline' with it.
36776         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36777         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36778         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36779         (Depends-on): Add extern-inline.
36781         unistd: better 'inline'
36782         * lib/unistd.c: New file.
36783         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36784         New macro.  Replace all uses of 'static inline' with it.
36785         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36786         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36787         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36788         (Depends-on): Add extern-inline.
36790         sys_socket: better 'inline'
36791         * lib/sys_socket.c: New file.
36792         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36793         New macro.  Replace all uses of 'static inline' with it.
36794         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36796         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36797         (Depends-on): Add extern-inline.
36799         stdio: better 'inline'
36800         * lib/stdio.c: New file.
36801         * lib/stdio.in.h (_GL_STDIO_INLINE):
36802         New macro.  Replace all uses of 'static inline' with it.
36803         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36804         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36805         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36806         (Depends-on): Add extern-inline.
36808         sigaction: better 'inline'
36809         * lib/sig-handler.c: New file.
36810         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36811         New macro.  Replace all uses of 'static inline' with it.
36812         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36813         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36814         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36815         (Depends-on): Add extern-inline.
36817         selinux-h: better 'inline'
36818         * lib/se-context.c, lib/se-selinux.c: New files.
36819         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36820         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36821         New macro.  Replace all uses of 'static inline' with it.
36822         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36823         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36824         New macro.  Replace all uses of 'static inline' with it.
36825         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36826         * modules/selinux-h (Files, lib_SOURCES):
36827         Add lib/se-context.c, lib/se-selinux.c.
36828         (Depends-on): Add extern-inline.
36829         (configure.ac): Do not require AC_C_INLINE.
36831         pthread: better 'inline'
36832         * lib/pthread.c: New file.
36833         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36834         New macro.  Replace all uses of 'static inline' with it.
36835         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36836         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36837         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36838         * modules/pthread (Files): Add lib/pthread.c.
36839         (Depends-on): Add extern-inline.
36841         math: better 'inline'
36842         * lib/math.c: New file.
36843         * lib/math.in.h (_GL_MATH_INLINE):
36844         New macro.  Replace all uses of 'static inline' with it.
36845         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36846         * m4/math_h.m4 (gl_MATH_H):
36847         Do not require AC_C_INLINE.
36848         * modules/math (Files, lib_SOURCES):
36849         Add lib/math.c.
36850         (Depends-on): Add extern-inline.
36852         count-one-bits: better 'inline'
36853         * lib/count-one-bits.c: New file.
36854         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36855         New macro.  Replace all uses of 'static inline' with it.
36856         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36857         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36858         Do not require AC_C_INLINE.
36859         * modules/count-one-bits (Files, lib_SOURCES):
36860         Add lib/count-one-bits.c.
36861         (Depends-on): Add extern-inline.
36863         count-leading-zeros: better 'inline'
36864         * lib/count-leading-zeros.c: New file.
36865         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36866         New macro.  Replace all uses of 'static inline' with it.
36867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36868         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36869         Do not require AC_C_INLINE.
36870         * modules/count-leading-zeros (Files, lib_SOURCES):
36871         Add lib/count-leading-zeros.c.
36872         (Depends-on): Add extern-inline.
36874         bitrotate: better 'inline'
36875         * lib/bitrotate.c: New file.
36876         * lib/bitrotate.h (BITROTATE_INLINE):
36877         New macros.
36878         Replace all uses of 'static inline' with them.
36879         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36880         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36881         (Depends-on): Add extern-inline.
36882         (configure.ac): Do not require AC_C_INLINE.
36884 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36886         maint.mk: avoid gratuitous failure
36887         Reported by Stefano Lattarini in
36888         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36889         * top/maint.mk (public-submodule-commit): Quote more safely.
36891 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36893         canonicalize, canonicalize-lgpl: support MS-Windows file names
36894         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36895         for test cases, which it'd be nice to add at some point.
36896         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36897         * lib/canonicalize.c (canonicalize_filename_mode):
36898         * lib/canonicalize-lgpl.c (__realpath):
36899         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36900         slash is at the beginning of the file name.  Use ISSLASH, instead
36901         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36902         the first character with '/'.  Test for
36903         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36904         with a drive letter.
36905         * lib/canonicalize.c (SLASHES): New macro.
36906         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36908 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36910         fts: introduce FTS_VERBATIM
36911         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36912         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36913         * lib/fts.c (fts_open): Honor it.
36915 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36917         getlogin-tests: allow errno == ENXIO
36918         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36919         with errno == ENXIO (No controlling tty).
36920         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36921         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36922         with errno == ENOENT.  This was reported to happen in various
36923         situations on GNU/Linux.
36925 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36927         getlogin-tests: allow errno == ENOENT
36928         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36929         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36930         when running a test in an Emacs shell buffer.
36932 2012-11-08  Jim Meyering  <jim@meyering.net>
36934         tests/nap.h: avoid warning about unused variable
36935         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36937         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36938         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36939         white space before each of the special-cased file names, to avoid
36940         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36941         in http://bugs.gnu.org/12830.
36943 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36945         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36946         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36947         fails with errno == EBADF when fd is opened with O_PATH.
36948         Reported by Jim Meyering in
36949         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36950         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36951         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36953 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36955         test-utimens: speed up by taking shorter naps
36956         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36957         New functions.
36958         (nap): Use them, to do a better job of guessing the delay.
36959         On Fedora 17 with ext4 atop md atop hard disks, this made
36960         test-utimens run 10x faster, because the test napped for
36961         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36962         <http://bugs.gnu.org/12820#11>.
36964 2012-11-07  Jim Meyering  <jim@meyering.net>
36966         mountlist.c: fix a compilation failure
36967         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36968         I introduced while transforming commit v0.0-7683-g613bcb6
36970 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36972         errno: port to LynxOS 178 2.2.2
36973         Problem reported by Joel Brobecker in
36974         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36975         * doc/posix-headers/errno.texi (errno.h): Document this.
36976         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36977         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36978         Supply a string for EILSEQ.
36979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36981 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36983         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36984         Linux kernel 2.6.39 introduced O_PATH (see
36985         <http://lwn.net/Articles/433854/>) and this is a better fallback
36986         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36987         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36988         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36989         * lib/fcntl.in.h (O_ACCMODE):
36990         * tests/test-fcntl-h.c (main):
36991         Do not reject O_ACCMODE merely because it has more than the
36992         minimal number of bits, as POSIX allows extensions here.
36994 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36996         mountlist: do not classify a bind-mounted dir entry as "dummy"
36997         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36998         the "none"-testing clause.
36999         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37000         exception for bind-mounted directories.
37002 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37004         quote: provide a means to escape strings with nul characters
37005         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37006         (quote, quote_n): Rename formal arguments for consistency with
37007         quotearg.
37009 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37011         test-raise: don't assume 199 is an invalid signal
37012         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37014         sh-quote-tests: port to Solaris 9
37015         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37016         Problem reported by Dagobert Michelsen in
37017         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37019 2012-10-28  Jim Meyering  <jim@meyering.net>
37021         maint.mk: rename a new configurable variable
37022         * top/maint.mk (_gl_translatable_string_re): Rename from
37023         translation-markers: _gl_ prefix to insulate from user Makefile code,
37024         and the _re suffix to inform that it's a regular expression.
37026 2012-10-26  Eric Blake  <eblake@redhat.com>
37028         maint.mk: let packages tweak sc_po_check pattern
37029         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37030         finding files with other translation markers.
37032 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37034         euidaccess: speed up 'configure' on GNU hosts
37035         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37036         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37037         it's needed only in this case.  Use AC_CHECK_DECLS, not
37038         AC_CHECK_DECLS_ONCE.
37039         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37040         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37042         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37044 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37046         fchmodat, fchownat, fstatat: port to non-inlining compilers
37047         Problem reported for FreeBSD 9 by Jim Meyering in
37048         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37049         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37050         New files, which define FCHMODAT_INLINE etc.
37051         * lib/fchmodat.c (FCHMODAT_INLINE):
37052         * lib/fchownat.c (FCHOWNAT_INLINE):
37053         * lib/fstatat.c (FSTATAT_INLINE):
37054         Remove, as chmodat.c etc. now do this.
37055         * modules/fchmodat (Files): Add lib/chmodat.c.
37056         * modules/fchownat (Files): Add lib/chownat.c.
37057         * modules/fstatat (Files): Add lib/statat.c.
37059 2012-10-15  Jim Meyering  <jim@meyering.net>
37061         fchmodat.c, fchownat.c: compile-impeding typos
37062         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37063         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37064         Introduced in commit v0.0-7636-gd202279.
37066 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37068         fcntl-h: support GNU flags like O_IGNORE_CTTY
37069         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37070         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37071         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37072         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37073         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37074         Define to 0 if not already defined.
37075         * tests/test-fcntl-h.c: Test these new flags.
37077 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37079         faccessat, etc.: support AT_FDCWD-only use
37080         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37081         this function only if its first argument is AT_FDCWD.
37082         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37083         values other than AT_FDCWD, so it doesn't want all the openat
37084         machinery with fchdir etc.
37085         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37086         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37087         * modules/unlinkat (Files):
37088         Remove lib/openat-priv.h, as at-internal supplies this file.
37089         Removing this file here allows us to support programs like Emacs
37090         that avoid at-internal.
37092         faccessat: speed up 'configure' on mainstream hosts
37093         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37094         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37095         since it's only on unusual platforms that we need to check for
37096         'access', and it's better not to slow 'configure' down on all
37097         platforms.
37099         faccessat: port to Solaris 10
37100         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37101         Needed on Solaris 10, which doesn't have AT_EACCESS,
37102         so we need the Gnulib fcntl.h, which defines it.
37104 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37105         canonicalize: fix C89 compilation
37106         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37107         declarations so C89 is supported.  Also remove the comment
37108         referencing memorty allocation as the suggested feature could
37109         not be implemented as suggested.
37110         Reported by Michael Goffioul.
37112 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37114         group-member: omit unnecessary dependencies
37115         This is for Emacs, which has its own allocator and where we
37116         don't want to use xalloc.
37117         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37118         since we no longer use xmalloc.  Do not include stdbool.h, since
37119         the changes below happen to remove the only use of bool.
37120         (GROUPBUF_SIZE): New constant.
37121         (struct group_info): Remove n_groups member.  Add groupbuf member.
37122         This lets us get the groups without using malloc, usually.
37123         (free_group_info, get_group_info): Adjust to this.
37124         (get_group_info): Return the number of groups found, or -1 on error.
37125         Use plain malloc not xmalloc, and treat its failure as if there
37126         are no groups, as the user already loses in case of error.
37127         (group_member): Simplify, based on changes to get_group_info.
37128         * modules/group-member (Depends-on): Remove dependencies on
37129         xalloc and stdbool.  Add dependency on xalloc-oversized.
37131 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37133         gethrxtime: port to C++
37134         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37136 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37138         ptsname: fix macro-name typo
37139         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37141 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37143         inttostr: Relax license.
37144         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37146 2012-10-03  Eric Blake  <eblake@redhat.com>
37148         ptsname_r: support ptys returned by FreeBSD posix_openpt
37149         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37150         lives in /dev/pts/.
37152 2012-10-02  Eric Blake  <eblake@redhat.com>
37154         pselect: reject invalid file descriptors
37155         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37156         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37157         * modules/pselect (Depends-on): Add dup2.
37158         * doc/posix-functions/pselect.texi (pselect): Document this.
37160         select: reject invalid file descriptors
37161         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37162         * lib/select.c (rpl_select) [!win32]: Work around it.
37163         * modules/select (Depends-on): Add dup2.
37164         * doc/posix-functions/select.texi (select): Document this.
37166         select: enhance test
37167         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37168         New functions.
37169         (test_function): Enhance test.
37170         (do_select_bad_fd): Avoid any stale errno values.
37172         ptsname: reject invalid file descriptors
37173         http://www.austingroupbugs.net/view.php?id=503
37174         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37176         * modules/stdlib (Makefile.am): Replace witness.
37177         * lib/stdlib.in.h (ptsname): Allow for replacement.
37178         * modules/ptsname (configure.ac): Trigger replacement.
37179         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37181 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37183         hash-pjw-bare: new module
37184         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37185         * lib/hash-pjw-bare.h: Likewise.
37186         * modules/hash-pjw-bare: New file.
37187         * MODULES.html.sh (Misc): Add it.
37189 2012-10-02  Eric Blake  <eblake@redhat.com>
37191         manywarnings: cater to more gcc infelicities
37192         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37193         -Wuninitialized without -O.
37195 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37197         select, poll tests: Make setsockopt invocation effective.
37198         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37199         the bind() call.
37200         * tests/test-select.h (open_server_socket): Likewise.
37202 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37204         sockets, sys_stat: restore AC_C_INLINE
37205         This undoes the 2012-09-22 patch.
37206         * m4/sockets.m4 (gl_SOCKETS):
37207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37208         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37209         and does not support plain 'inline'.  Reported by Bruno Haible in
37210         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37212 2012-09-30  Bruno Haible  <bruno@clisp.org>
37214         localeconv tests: Avoid test failure on OpenIndiana.
37215         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37216         skip the 'grouping' and 'mon_grouping' tests.
37217         Reported by Jim Meyering.
37219 2012-09-30  Bruno Haible  <bruno@clisp.org>
37221         havelib: Follow libtool developments.
37222         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37223         Suggested by Simon Josefsson.
37225 2012-09-29  Jim Meyering  <meyering@redhat.com>
37227         fstatat.c: fix a compile-impeding typo
37228         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37229         Introduced in commit v0.0-7636-gd202279.
37230         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37232 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37234         extern-inline: provide a -Wundef safe config.h
37235         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37236         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37237         to produce a -Wundef warning free config.h.
37239 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37241         hash-pjw: relax license to LGPLv2+
37242         * modules/hash-pjw (License): Relax, with consent of author.
37244 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37246         maint.mk: fix strict vs. lazy variable issues with RELEASE
37247         * top/maint.mk (_equal): New function.
37248         (member_check): Strip the result to avoid spurious spaces.
37249         (url_dir_list): Do not use ifeq, which is strict, as it will
37250         require RELEASE_TYPE to be defined.
37251         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37252         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37253         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37254         (announcement_Cc_beta,announcement_mail_headers_beta)
37255         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37256         (release): Do not depend on $(release-type), as it forces its
37257         evaluation.  Bounce to it.
37259 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37261         maint.mk: formatting changes
37262         * top/maint.mk: Indent bodies of if's.
37264 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37266         maint.mk: factor the validation of RELEASE_TYPE
37267         With help from Jim Meyering.
37268         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37269         * top/maint.mk (_empty, _sp): Move their definition earlier.
37270         (member-check, release-type): New.
37271         Use the latter instead of $(RELEASE_TYPE).
37272         Remove now useless local checks.
37274 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37276         maint.mk: provide "make upload" to ease uploading
37277         See
37278         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37279         Do not depend simply on the current $(VERSION), as there may have been
37280         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37281         as "make release-commit" already does.
37283         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37284         "make TYPE".
37286         * top/maint.mk (upload_command, upload, release): New.
37287         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37288         (VERSION): first word of $(RELEASE) is always right.
37289         (emit_upload_commands): Adjust.
37290         * top/README-release: Update.
37292 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37294         maint.mk: silent rules
37295         With help from Stefano Lattarini.
37296         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37297         (announcement): Use $(AM_V_at).
37299 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37301         localename: port gl_locale_name_thread_unsafe to FreeBSD
37302         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37303         and use the simpler FreeBSD implementation on Mac OS X as well.
37304         Original idea suggested by Ed Maste in
37305         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37307 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37309         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37310         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37311         * lib/mbuiter.c, lib/xsize.c: New files.
37312         * lib/binary-io.h (BINARY_IO_INLINE):
37313         * lib/eealloc.h (EEALLOC_INLINE):
37314         * lib/mbfile.h (MBFILE_INLINE):
37315         * lib/mbiter.h (MBITER_INLINE):
37316         * lib/mbuiter.h (MBUITER_INLINE):
37317         * lib/xsize.h (XSIZE_INLINE):
37318         New macros.
37319         Replace all uses of 'static inline' with them.
37320         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37321         * m4/eealloc.m4 (gl_EEALLOC):
37322         * m4/mbfile.m4 (gl_MBFILE):
37323         * m4/mbiter.m4 (gl_MBITER):
37324         * m4/xsize.m4 (gl_XSIZE):
37325         Do not require AC_C_INLINE.
37326         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37327         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37328         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37329         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37330         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37331         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37332         * modules/binary-io, modules/eealloc, modules/mbfile:
37333         * modules/mbiter, modules/mbuiter:
37334         (Depends-on): Add extern-inline.
37336         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37337         * lib/pipe-filter-aux.c: New file.
37338         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37339         Replace all uses of 'static inline' with it.
37340         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37341         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37342         (filter_retcode): No real need for inline here.
37343         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37344         (Files): Add lib/pipe-filter-aux.c.
37345         (Depends-on): Add extern-inline.
37346         (configure.ac): Do not require AC_C_INLINE.
37347         (lib_SOURCES): Add pipe-filter-aux.c.
37349         fdutimensat: omit unnecessary AC_C_INLINE
37350         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37352         fchmodat, fchownat, fstatat: use extern-inline
37353         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37354         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37355         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37356         New macros.
37357         * lib/openat.h:
37358         Replace all uses of 'static inline' with them.
37359         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37360         * modules/fchmodat, modules/fchownat, modules/fstatat:
37361         * modules/openat-h:
37362         (Depends-on):
37363         Add extern-inline.
37364         (configure.ac): Remove AC_C_INLINE.
37366         acl, mbchar, priv-set: use extern-inline
37367         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37368         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37369         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37370         New macros.
37371         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37372         Replace all uses of 'static inline' with it.
37373         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37374         * m4/acl.m4 (gl_FUNC_ACL):
37375         * m4/mbchar.m4 (gl_MBCHAR):
37376         * m4/priv-set.m4 (gl_PRIV_SET):
37377         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37378         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37379         Add extern-inline.
37381         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37382         * m4/sockets.m4 (gl_SOCKETS):
37383         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37384         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37385         environments where it's already guaranteed to work, so we needn't
37386         check for it at 'configure'-time.
37388         tls-tests: omit unnecessary 'inline'
37389         * tests/test-tls.c (perhaps_yield): No longer inline.
37390         Simplicity and portability trump efficiency in test cases.
37392         utimens-tests: avoid unnecessary 'inline'
37393         * modules/fdutimensat-tests (configure.ac):
37394         * modules/futimens-tests (configure.ac):
37395         * modules/utimens-tests (configure.ac):
37396         * modules/utimensat-tests (configure.ac):
37397         Remove AC_C_INLINE.
37398         * tests/test-utimens-common.h (ctime_compare):
37399         No longer inline.  Simplicity and portability trump efficiency here.
37401         misc: don't limit commentary to inline functions
37402         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37403         * lib/xalloc-oversized.h, lib/xsize.h:
37404         Contrast macros to functions in general, not just to inline functions,
37405         when the commentary does not apply only to inline functions.
37407 2012-09-20  Jim Meyering  <meyering@redhat.com>
37409         non-recursive-gnulib-prefix-hack: new module
37410         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37411         the file that originated in Bison.
37412         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37413         largely copied from a snippet that resided in bison's configure.ac.
37414         * modules/non-recursive-gnulib-prefix-hack: New file.
37415         * MODULES.html.sh (Support for maintaining and releasing projects):
37416         Add it.
37418 2012-09-18  Jim Meyering  <meyering@redhat.com>
37420         maint.mk: generalize _gl_tight_scope for non-recursive make
37421         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37422         that *.h would describe additional .h files in the directory
37423         specified by $(_gl_TS_dir).  I.e., add this...
37424         (_gl_TS_other_headers): New variable.
37426         maint.mk: exempt trailing blanks found in "binary" files
37427         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37428         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37429         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37431 2012-09-17  Jim Meyering  <meyering@redhat.com>
37433         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37434         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37435         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37436         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37438 2012-09-17  Jim Meyering  <meyering@redhat.com>
37440         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37441         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37442         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37443         It is not in the same category as "exit (0)" or "exit (1)", and
37444         besides, I know of no symbolic name for that 77.  Reported by
37445         Richard W.M. Jones in
37446         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37448 2012-09-17  Jim Meyering  <meyering@redhat.com>
37450         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37451         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37452         all uses of #define, not just those that start in column 1.
37453         Richard W.M. Jones reported a false positive in
37454         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37456 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37458         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37459         * lib/localcharset.c (locale_charset) [DARWIN7]:
37460         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37461         as these two values are incompatible.  Problem reported by Max Horn.
37462         For more discussion, please see
37463         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37465         doc: document sticky-EOF issue
37466         * doc/posix-functions/fgetc.texi (fgetc):
37467         * doc/posix-functions/fgets.texi (fgets):
37468         * doc/posix-functions/fread.texi (fread):
37469         * doc/posix-functions/fscanf.texi (fscanf):
37470         * doc/posix-functions/getc.texi (getc):
37471         * doc/posix-functions/getchar.texi (getchar):
37472         * doc/posix-functions/scanf.texi (scanf):
37473         Mention that glibc and default Solaris do not conform to
37474         C99 and POSIX-2001 or later, with respect to how getchar
37475         etc. behave when feof reports nonzero.
37477 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37479         poll: fix poll(0, NULL, msec)
37480         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37481         but nfd is 0.  In that case poll should behave like select.
37483 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37484             Paolo Bonzini  <bonzini@gnu.org>
37486         poll: fix for systems that can't recv() on a non-socket
37487         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37488         is readable.  In this case POLLHUP will not be supported.
37489         * doc/posix-functions/poll.texi: Document this.
37491 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37493         poll/select: document portability problems not fixed by Gnulib.
37494         * doc/posix-functions/poll.texi: poll does not work well on
37495         pipes under Windows.  It has the same limitations as select on
37496         BeOS.
37497         * doc/posix-functions/select.texi: select does not work well
37498         on pipes under Windows.
37500 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37502         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37503         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37504         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37505         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37507 2012-09-06  Eric Blake  <eblake@redhat.com>
37509         net_if: give more details about the bug being fixed
37510         * doc/posix-headers/net_if.texi: Add clarification.
37512 2012-09-05  Eric Blake  <eblake@redhat.com>
37514         net_if: new module
37515         * modules/net_if: New module, borrowing ideas from netinet_in.
37516         * m4/net_if_h.m4: New file.
37517         * lib/net_if.in.h: Likewise.
37518         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37519         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37520         * tests/test-net_if.c: Make function checks conditional.
37521         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37523 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37525         readutmp: fix non-portable UT_PID use
37526         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37527         Use `UT_PID (u) > 0' as absolute condition.
37529 2012-09-04  Jim Meyering  <meyering@redhat.com>
37531         fts: reduce two or more trailing spaces to just one, usually
37532         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37533         or more slashes, trim all but the final one.  But if a name consists
37534         solely of two slashes, don't modify it.  If it consists solely of
37535         three or more slashes, strip all but one.
37537         This is part of the solution to a minor problem with rm:
37538         it would print a bogus ELOOP diagnostic when failing to remove
37539         the slash-decorated name of a symlink-to-directory:
37541             $ mkdir d && ln -s d s && env rm -r s/
37542             rm: cannot remove 's': Too many levels of symbolic links
37544         With the change below and a trivial don't-trim-trailing-slashes
37545         adjustment to remove.c, it does this:
37547             $ env rm -r s/
37548             rm: cannot remove 's/': Not a directory
37550         Improved by: Eric Blake
37552         fts: when there is no risk of overlap, use memcpy, not memmove
37553         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37555 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37557         stdbool: be more compatible with mixed C/C++ compiles
37558         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37559         Define to bool, true, false, respectively, as GCC's builtin
37560         stdbool.h does.  Problem reported by Michael Goffioul in
37561         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37563 2012-08-28  Jim Meyering  <meyering@redhat.com>
37565         revert last change: it was not needed
37566         * tests/test-vc-list-files-git.sh: There's already a test for
37567         a working git, just below.
37569 2012-08-28  Jim Meyering  <meyering@redhat.com>
37571         tests: test-vc-list-files-git.sh: skip if git is not available
37572         * tests/test-vc-list-files-git.sh: Skip this test when git is
37573         not available.
37575 2012-08-26  Bruno Haible  <bruno@clisp.org>
37577         gnulib-tool: Remove no-op option --no-changelog.
37578         * gnulib-tool (func_usage): Don't mention --no-changelog.
37579         (do_changelog): Remove variable.
37580         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37582 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37584         doc: remove fdl-1.2.texi
37585         It is no longer used or maintained, and its use of @acronym
37586         is problematic.  See the thread containing
37587         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37588         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37589         * doc/old-licenses/fdl-1.2.texi: Remove.
37591         execinfo: port to FreeBSD
37592         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37593         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37594         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37595         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37597 2012-08-23  Jim Meyering  <meyering@redhat.com>
37599         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37600         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37601         to placate gcc's -Wold-style-declaration.
37603 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37605         doc: do not use @acronym
37606         * doc/inet_ntoa.texi (inet_ntoa):
37607         * doc/parse-datetime.texi (Seconds since the Epoch)
37608         (Specifying time zone rules):
37609         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37610         Don't use @acronym.  Problem reported by John Darlington in
37611         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37613 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37615         stdnoreturn: port to newer GCCs
37616         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37617         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37618         Problem reported by Jim Meyering in
37619         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37620         Also, rename the 'test' function to a void a clash with the
37621         already-supplied 'main' function; this fixes a bug that incorrectly
37622         rejected GCC 4.7.1's <stdnoreturn.h>.
37623         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37624         Document GCC problem.
37626 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37628         pipe-filter: fix comment typo
37629         * lib/pipe-filter.h: Mention correct function.
37631 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37633         execinfo: new module
37634         This is for Emacs.  Currently, it provides a no-effect stub
37635         on all platforms where it does not already work.
37636         It already works on glibc-based systems, and on Solaris 11.
37637         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37638         New files.
37639         * doc/glibc-headers/execinfo.texi (execinfo.h):
37640         * MODULES.html.sh (Misc): Document it.
37642 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37644         extern-inline: support old GCC 'inline'
37645         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37646         if available.  This applies to GCC versions 2.7 through 4.2, or
37647         when newer GCC is using -fgnu89-inline.  The goal is to address
37648         some of the performance issues mentioned by Bruno Haible in
37649         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37651 2012-08-20  Eric Blake  <eblake@redhat.com>
37653         maint.mk: avoid redundant file name in message
37654         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37655         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37656         (sc_makefile_path_separator_check): Remove bogus $(ME).
37658 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37660         timer-time: fix link order when static linking on glibc
37661         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37662         _after_ -lrt so that it's significant.
37664 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37666         timespec: omit unnecessary AC_C_INLINE
37667         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37669         stat-time: omit unnecessary AC_C_INLINE
37670         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37671         Do not require AC_C_INLINE.
37673         ignore-value: omit unnecessary AC_C_INLINE
37674         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37676         sys_select: avoid 'static inline'
37677         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37679         mktime: avoid 'static inline'
37680         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37681         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37683 2012-08-19  Bruno Haible  <bruno@clisp.org>
37685         gnulib-tool: Improve coding style.
37686         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37687         func_emit_lib_Makefile_am.
37688         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37690 2012-08-19  Bruno Haible  <bruno@clisp.org>
37692         gnulib-tool: Fix indentation.
37693         * gnulib-tool (func_import): Fix indentation.
37695 2012-08-19  Bruno Haible  <bruno@clisp.org>
37697         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37698         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37699         on the list of removed files.
37701 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37703         test-parse-datetime: avoid glibc leap-second glitch
37704         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37705         with the 2012 rules.  Problem reported by Bruce Dubbs in
37706         <http://bugs.gnu.org/12206>.
37708 2012-08-14  Bruno Haible  <bruno@clisp.org>
37710         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37711         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37712         from argument.
37713         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37715 2012-08-14  Eric Blake  <eblake@redhat.com>
37717         ldexp: relax license
37718         * modules/ldexp (License): Trivial relax, since the module only
37719         provides a permissively licensed m4 file.
37721 2012-08-13  Bruno Haible  <bruno@clisp.org>
37723         gnulib-tool: Fix persistence of --witness-c-macro option.
37724         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37725         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37727 2012-08-11  Eric Blake  <eblake@redhat.com>
37729         count-leading-zeros: use a lookup table on non-gcc compilers
37730         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37731         alternate implementation, suggested by Jim Meyering.
37733 2012-08-10  Eric Blake  <eblake@redhat.com>
37735         count-leading-zeros: new module
37736         * modules/count-leading-zeros: New module.
37737         * m4/count-leading-zeros.m4: New file.
37738         * lib/count-leading-zeros.h: Likewise.
37739         * modules/count-leading-zeros-tests: New test.
37740         * tests/test-count-leading-zeros.c: New file.
37741         * MODULES.html.sh (Integer arithmetic functions): Document it.
37743 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37744             Jim Meyering  <meyering@redhat.com>
37746         maintainer-makefile: Fix syntax error with dash.
37747         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37748         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37750 2012-08-05  Jim Meyering  <meyering@redhat.com>
37752         extern-inline: also ignore -Wmissing-declarations
37753         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37754         required with gcc-4.8.0-to-be.
37756         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37757         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37758         for /error ?([^,]*)/.  This avoids false-positives for strings like
37759         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37761 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37763         gnumakefile: better interaction with Automake-NG
37764         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37765         Automake-NG always contain a definition of VPATH, even in non-VPATH
37766         builds (its value being simply '.' in that case).  So, in the
37767         'clean-GNUmakefile' rule, to determine whether running under a
37768         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37769         '$(VPATH)' expands to the empty string.
37771 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37773         base64: Use extern C scope in header file, for C++.
37774         * lib/base64.h: Add C++ namespace protection.
37776 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37778         stat-time, timespec, u64: support naive out-of-dir builds
37779         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37780         Use '#include "foo.h"', not '#include <foo.h>', when including
37781         one's own interface.  This works better when configuring with
37782         out-of-directory builds, since packages need not add an
37783         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37785 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37787         utimens: use extern-inline
37788         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37789         * lib/utimens.h: Add copyright notice, since this is now large enough
37790         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37791         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37792         * modules/utimens (Depends-on): Add extern-inline.
37794         u64: use extern-inline
37795         * lib/u64.c: New file.
37796         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37797         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37798         * modules/u64 (Files): Add lib/u64.c.
37799         (Depends-on): Add extern-inline.
37800         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37801         does that now.
37802         (lib_SOURCES): Add u64.c.
37804         timespec: use extern-inline
37805         * lib/timespec.c: New file.
37806         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37807         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37808         * modules/timespec (Files): Add lib/timespec.c.
37809         (Depends-on): Add extern-inline.
37810         (lib_SOURCES): Add timespec.c.
37812         stat-time: use extern-inline
37813         * lib/stat-time.c: New file.
37814         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37815         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37816         * modules/stat-time (Files): Add lib/stat-time.c.
37817         (Depends-on): Add extern-inline.
37818         (lib_SOURCES): Add stat-time.c.
37820         extern-inline: new module
37821         * modules/extern-inline, m4/extern-inline.m4: New files.
37822         This is for better support of 'extern inline' a la ISO C99,
37823         with a portable alternative on compilers that do not support
37824         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37825         of the Emacs executable, when compiled with debugging disabled,
37826         which is a typical way that Emacs is built while developing.
37828 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37830         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37831         * build-aux/do-release-commit-and-tag: Move variable definitions
37832         together.
37833         ($branch): Instead of defaulting to "master", default to the current
37834         branch (as gnu-web-doc-update does).
37835         (help): Display the current values of the option arguments.
37836         * top/maint.mk (release-commit): New.
37837         * top/README-release: Simplify the corresponding step.
37839 2012-07-30  Eric Blake  <eblake@redhat.com>
37841         passfd: fix comment on recvfd
37842         * lib/passfd.c (recvfd): Fix comment.
37843         Reported by Jann Horn <jannhorn@googlemail.com>.
37845 2012-07-30  Jim Meyering  <meyering@redhat.com>
37847         maint.mk: avoid a sub-shell
37848         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37850 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37852         maint.mk: use silent-rules support from Automake
37853         * top/maint.mk (news-check, vc-diff-check, announcement)
37854         (no-submodule-changes, alpha beta stable, release-prep)
37855         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37857 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37859         maint.mk: provide a web-manual-update target
37860         * top/maint.mk: here.
37861         * top/README-release: Use it to simplify the web manual update step.
37863 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37865         README-release: shorten the circuit to post a news
37866         * top/README-release: Point directly to the news submission form.
37868 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37870         gnu-web-doc-update: fix --help
37871         * build-aux/gnu-web-doc-update: The information "top level" was written
37872         twice.
37874 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37876         maint.mk: absolute VPATH issue
37877         * top/maint.mk (release-prep): Help Git find .git/.
37878         From Jim Meyering.
37880 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37882         gitlog-to-changelog: fix previous change
37883         * build-aux/gitlog-to-changelog: Fix condition.
37884         Add missing ";".
37886 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37888         gitlog-to-changelog: don't expect .git to be in $srcdir
37889         Reported by Bruno Haible.
37890         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37891         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37892         Use it.
37894 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37896         maint.mk: absolute VPATH build fix
37897         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37898         $(srcdir) is not a parent of $(builddir).
37900 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37902         clean-temp: Fix memory leak.
37903         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37904         'files' members of tmpdir.
37906 2012-07-27  Jim Meyering  <meyering@redhat.com>
37908         maint.mk: new rule: refresh-gnulib-patches
37909         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37910         Use this rule to refresh them.
37911         * top/maint.mk (refresh-gnulib-patches): New rule.
37913 2012-07-24  Bruno Haible  <bruno@clisp.org>
37915         gnulib-tool: Fix handling of inctests variable.
37916         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37917         Reported by Nick Bowler <nbowler@elliptictech.com>.
37919 2012-07-22  Bruno Haible  <bruno@clisp.org>
37921         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37922         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37923         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37924         Remove exemption for getpass.h.
37925         Suggested by Eric Blake.
37927 2012-07-20  Eric Blake  <eblake@redhat.com>
37929         verify: document conflict with -Wnested-externs
37930         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37932         maint.mk: forbid exit(-1)
37933         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37935 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37937         fsusage: port back to Solaris
37938         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37939         error (fsd not declared) on Solaris 10.  Reported privately by
37940         Andrew Borodin.
37942 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37944         gnu-web-doc-update: fix error messages
37945         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37947         gnu-web-doc-update: check the requirements.
37948         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37949         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37950         * build-aux/bootstrap (find_tool): Comment change.
37952 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37954         maint.mk: minor simplication.
37955         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37956         for default values.
37958 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37960         gitlog-to-changelog: VPATH build issues
37961         If builddir is not a subdirectory of srcdir, running git from it will
37962         fail.
37963         * build-aux/gitlog-to-changelog (--srcdir): New option.
37965 2012-07-15  Bruno Haible  <bruno@clisp.org>
37967         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37968         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37969         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37970         Remove exemption for fpending.h.
37971         Suggested by Eric Blake.
37973 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37975         pthread_sigmask: fix bug on FreeBSD 9
37976         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37977         Include string.h.
37978         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37979         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37980         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37981         but pthread_sigmask (1729, NULL, NULL) returns zero.
37982         See <http://bugs.gnu.org/11884>.
37983         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37984         by inspecting whether the main call changed the old mask.
37986 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37988         README-release: make it more legible
37989         * top/README-release: Improve typography slightly.
37991 2012-07-15  Jim Meyering  <meyering@redhat.com>
37993         maint: require that each sc_... command start with "@"
37994         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37995         "make sc_maint" helps us avoid this nit.
37997 2012-07-15  Jim Meyering  <meyering@redhat.com>
37999         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38000         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38002 2012-07-13  Eric Blake  <eblake@redhat.com>
38004         maint.mk: new syntax check for HAVE_DECL checks
38005         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38006         * cfg.mk
38007         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38008         Exempt some false positives.
38009         Based on a report by Karel Zak.
38011         argp: make HAVE_DECL usage consistent
38012         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38013         macros, not whether they are defined.
38014         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38015         convention with other declaration checks.
38016         Reported by Karel Zak, with suggestions from Paul Eggert.
38018         stat-time: relax license to LGPLv2+
38019         * modules/stat-time (License): Relax, with consent of all authors.
38021         strndup: fix m4 usage error
38022         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38023         defined, to either 0 or 1.
38024         Reported by Karel Zak.
38026 2012-07-11  Jim Meyering  <meyering@redhat.com>
38028         maint: enable the sc_avoid_if_before_free syntax-check rule
38029         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38030         (if_before_free_offenders_): Define.
38031         (if_before_free_basename_re_): Define.
38032         Exempt current files with useless if-before-free.
38034 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38036         gettext: do not assume '#define ... defined ...' behavior
38037         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38038         Do not use '#define FOO ... defined BAR ...', as the C standard says
38039         it's not portable to expect that this works after macro expansion.
38040         Problem reported for gzip by Steven M. Schweda in
38041         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38043 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38045         getloadavg: clean out old Emacs and Autoconf cruft
38046         See Glenn Morris in <http://bugs.gnu.org/11905>.
38047         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38048         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38049         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38050         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38052 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38054         bootstrap: let warn be like tests/init.sh's warn_
38055         Reported by Jim Meyering.
38056         * build-aux/bootstrap (warn): Remove, replaced by...
38057         (warnf_, warn_): these.
38058         Adjust callers.
38059         Shorten messages that no longer fit in 80 columns.
38061 2012-07-09  Bruno Haible  <bruno@clisp.org>
38063         getopt: Simplify after Emacs changed.
38064         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38065         (gl_GETOPT_IFELSE): Remove macro.
38067 2012-07-09  Jim Meyering  <meyering@redhat.com>
38069         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38070         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38072         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38073         Bugs in both of those conspired to make the
38074         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38075         _sc_search_regexp's handling of non-empty $in_files would filter
38076         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38077         choice of in_files value meant there would be no match in most
38078         projects, due to the presence of two or more Makefile.in files.
38079         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38080         Fix a bug in how a non-empty $$in_files was processed:
38081         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38082         in spite of the name, it's a regexp, not a list of file names.
38084 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38086         getloadavg, getopt: fix commentary re configure.in
38087         Autoconf is deprecating the name 'configure.in', so change it to
38088         to the new name 'configure.ac' in a couple of places.
38089         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38090         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38091         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38092         Emacs has renamed it to configure.ac, and it no longer refers
38093         to these macros anyway.
38095         timespec: mark functions with const attributes
38096         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38097         Mark with _GL_ATTRIBUTE_CONST.
38099 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38101         canonicalize[-lgpl]: handle "guessing" values when cross-building
38102         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38103         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38104         matches "*yes" instead of just "yes".  Regression introduced in commit
38105         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38107 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38108             Bruno Haible  <bruno@clisp.org>
38110         canonicalize: make the right guess when cross-compiling to GNU
38111         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38112         determine whether cross-compiling to glibc systems, so as to
38113         include GNU/Hurd.
38115 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38117         timespec-sub: avoid duplicate include
38118         * lib/timespec-sub.c: Do not include <config.h> twice.
38119         Reported by Juanma Barranquero.
38121 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38123         bootstrap: use a more consistent error reporting scheme
38124         * build-aux/bootstrap (warn, die): New.
38125         Use them.
38127 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38129         sys_time: allow too-wide tv_sec
38130         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38131         timeval even if tv_sec is wider than time_t.  This allows
38132         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38133         as without this patch gnulib replaces struct timeval
38134         and OpenBSD futimes therefore has a type mismatch.
38135         * doc/posix-headers/sys_time.texi: Mention this.
38137         pthread: check for both pthread_create and pthread_join
38138         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38139         alter the check so that it tests for both pthread_create and
38140         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38141         Suggested by Bruno Haible and Richard Yao in
38142         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38144         parse-datetime: doc tuneup
38145         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38146         spacing issues.
38148 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38150         do-release-commit-and-tag: fix the previous commit
38151         * build-aux/do-release-commit-and-tag: Actually the test was right,
38152         but the comment and the error message were misleading.
38153         Fix comment, and improve error message.
38154         Perform check first, so that NEWS is not modified uselessly.
38156         do-release-commit-and-tag: fix typo
38157         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38158         _not_ start with a stub.
38160 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38162         pthread: check for pthread_create, not pthread_join
38163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38164         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38165         pthread_join in libc.  I hope this removes the need for all the
38166         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38167         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38169 2012-07-04  Jim Meyering  <meyering@redhat.com>
38171         parse-datetime: fix failure to diagnose invalid input
38172         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38173         rather than diagnosing the invalid input.  Now it reports this:
38174         date: invalid date '\260'
38175         * lib/parse-datetime.y (to_uchar): Define.
38176         (yylex): Don't sign-extend "other" bytes.
38177         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38178         Thanks to Bruno Haible for the patch to this file.
38179         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38180         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38182 2012-07-03  Jim Meyering  <meyering@redhat.com>
38184         bootstrap: do not require now-removed build-aux/missing
38185         Now that build-aux/missing is, er, missing, bootstrap would
38186         silently fail.
38187         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38188         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38189         no longer part of gnulib.
38190         Diagnose the failure.
38192 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38194         alloca: add support for HP NonStop TNS/E native
38195         * lib/alloca.in.h (alloca): Support the new host.
38196         From a suggestion by Joachim Schmitz in
38197         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38199 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38201         fsusage: remove code not needed on non GNU/Linux systems.
38203         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38204         Don't include headers no longer needed in this case.
38205         * lib/fsusage.c [STAT_STATVFS &&
38206         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38207         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38209 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38211         fsusage: include files needed for glibc 2.6 fallback
38212         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38213         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38214         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38215         Problem reported by Ludovic Courtès in
38216         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38218         fsusage: avoid needless check on GNU/Linux
38219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38220         on GNU/Linux systems, since it can't possibly work.
38222 2012-07-01  Bruno Haible  <bruno@clisp.org>
38224         log: Fix an autoconf >= 2.64 warning.
38225         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38226         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38228 2012-06-28  Bruno Haible  <bruno@clisp.org>
38230         log10f: Fix possible configuration problem.
38231         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38232         $LOGF_LIBM.
38233         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38235 2012-06-28  Bruno Haible  <bruno@clisp.org>
38237         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38238         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38239         not gl_cv_func_unlink_works.
38240         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38242 2012-06-27  Eric Blake  <eblake@redhat.com>
38244         config: drop scripts that automake says are not independent
38245         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38246         * build-aux/elisp-comp: Delete.
38247         * build-aux/missing: Likewise.
38248         * build-aux/ylwrap: Likewise.
38249         * modules/elisp-comp: Likewise.
38250         * MODULES.html.sh: Drop mention of elisp-comp.
38251         * NEWS: Mention this.
38253 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38255         root-uid: new module
38256         This is for portability to Tandem's NonStop Kernel.
38257         * lib/root-uid.h, modules/root-uid: New files.
38258         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38259         * lib/write-any-file.c, tests/test-sethostname2.c:
38260         Include "root-uid.h".
38261         * lib/euidaccess.c (euidaccess):
38262         * lib/pt_chown.c (main):
38263         * lib/unlinkdir.c (cannot_unlink_dir):
38264         * lib/write-any-file.c (can_write_any_file):
38265         * m4/mknod.m4 (gl_FUNC_MKNOD):
38266         * tests/test-sethostname2.c (geteuid, main):
38267         Don't assume ROOT_UID == 0.
38268         * modules/euidaccess (Depends-on):
38269         * modules/pt_chown (Depends-on):
38270         * modules/sethostname-tests (Depends-on):
38271         * modules/unlinkdir (Depends-on):
38272         * modules/write-any-file (Depends-on):
38273         Add root-uid.
38275         regex: use locale-independent comparison for codeset name
38276         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38277         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38278         for codeset name.
38279         * lib/regex_internal.h: Do not include <strings.h>, since we
38280         no longer use strcasecmp.
38281         * modules/regex (Depends-on): Remove strcase.
38283 2012-06-23  Bruno Haible  <bruno@clisp.org>
38285         getopt-posix: No longer guarantee that option processing is resettable.
38286         * doc/posix-functions/getopt.texi: Drop description of problem with
38287         internal state. Fix info about mingw and msvc9.
38288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38289         option processing by getopt(). Run three test programs instead of one.
38290         Simplify cross-compilation guess.
38291         * NEWS: Mention the change.
38292         Reported by Rich Felker <dalias@aerifal.cx>.
38294 2012-06-26  Bruno Haible  <bruno@clisp.org>
38296         argp, regex: Ensure strcasecmp gets declared.
38297         * lib/argp-help.c: Include <strings.h>.
38298         * lib/regex_internal.h: Likewise.
38299         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38301 2012-06-24  Bruno Haible  <bruno@clisp.org>
38303         ptsname_r: Make it consistent with ptsname on AIX.
38304         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38305         implementation as for OSF/1.
38306         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38307         a pty master.
38309         ptsname_r: Make it consistent with ptsname on OSF/1.
38310         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38311         OSF/1.
38313 2012-06-24  Bruno Haible  <bruno@clisp.org>
38315         ttyname_r: Fix result on OSF/1, Solaris.
38316         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38318 2012-06-24  Bruno Haible  <bruno@clisp.org>
38320         ptsname_r: Add support for Solaris.
38321         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38322         Solaris.
38324         ptsname_r: Fix test failure on native Windows.
38325         * modules/ptsname_r (Depends-on): Add isatty.
38327         ptsname_r: Fix test failures on IRIX, Solaris.
38328         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38329         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38330         accordingly.
38331         * lib/ptsname_r.c: Include <fcntl.h>.
38332         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38333         set errno if fd is invalid.
38334         * tests/test-isatty.c (main): Update comments.
38336 2012-06-24  Bruno Haible  <bruno@clisp.org>
38338         ptsname test: Extend test.
38339         * tests/test-ptsname.c: Include <errno.h>.
38340         (main): Test behaviour with invalid file descriptor.
38342 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38344         time: fix obsolete comment
38345         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38346         reference to HAVE_STRUCT_TIMESPEC in comment.
38348 2012-06-23  Bruno Haible  <bruno@clisp.org>
38350         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38352         does not handle abbreviated long options with equivalent
38353         disambiguations, set gl_replace_getopt to yes.
38354         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38356 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38358         time_r: fix typo that always overrode localtime_r decl
38359         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38360         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38361         not in a standard include.
38363 2012-06-22  Bruno Haible  <bruno@clisp.org>
38365         Write "Mac OS X" instead of "MacOS X".
38366         * README: Write "Mac OS X" instead of "MacOS X".
38367         * build-aux/bootstrap: Likewise.
38368         * build-aux/install-reloc: Likewise.
38369         * lib/acl-internal.h: Likewise.
38370         * lib/acl_entries.c: Likewise.
38371         * lib/argp-ba.c: Likewise.
38372         * lib/argp-pv.c: Likewise.
38373         * lib/config.charset: Likewise.
38374         * lib/copy-acl.c: Likewise.
38375         * lib/csharpexec.c: Likewise.
38376         * lib/euidaccess.c: Likewise.
38377         * lib/fbufmode.c: Likewise.
38378         * lib/fflush.c: Likewise.
38379         * lib/file-has-acl.c: Likewise.
38380         * lib/filemode.h: Likewise.
38381         * lib/fpurge.c: Likewise.
38382         * lib/freadable.c: Likewise.
38383         * lib/freadahead.c: Likewise.
38384         * lib/freading.c: Likewise.
38385         * lib/freadptr.c: Likewise.
38386         * lib/freadseek.c: Likewise.
38387         * lib/fseeko.c: Likewise.
38388         * lib/fseterr.c: Likewise.
38389         * lib/fsusage.c: Likewise.
38390         * lib/fwritable.c: Likewise.
38391         * lib/fwriting.c: Likewise.
38392         * lib/get-rusage-as.c: Likewise.
38393         * lib/get-rusage-data.c: Likewise.
38394         * lib/getdomainname.c: Likewise.
38395         * lib/idpriv-drop.c: Likewise.
38396         * lib/idpriv-droptemp.c: Likewise.
38397         * lib/localcharset.c: Likewise.
38398         * lib/locale.in.h: Likewise.
38399         * lib/localename.c: Likewise.
38400         * lib/mbsrtowcs-state.c: Likewise.
38401         * lib/nproc.c: Likewise.
38402         * lib/passfd.c: Likewise.
38403         * lib/posix_openpt.c: Likewise.
38404         * lib/printf-parse.c: Likewise.
38405         * lib/progreloc.c: Likewise.
38406         * lib/safe-read.h: Likewise.
38407         * lib/safe-write.h: Likewise.
38408         * lib/sched.in.h: Likewise.
38409         * lib/set-mode-acl.c: Likewise.
38410         * lib/signal.in.h: Likewise.
38411         * lib/stdint.in.h: Likewise.
38412         * lib/stdio-impl.h: Likewise.
38413         * lib/stdlib.in.h: Likewise.
38414         * lib/strtod.c: Likewise.
38415         * lib/sys_select.in.h: Likewise.
38416         * lib/tcgetsid.c: Likewise.
38417         * lib/unistd.in.h: Likewise.
38418         * lib/unlockpt.c: Likewise.
38419         * lib/vasnprintf.c: Likewise.
38420         * lib/vma-iter.c: Likewise.
38421         * lib/wcsrtombs-state.c: Likewise.
38422         * m4/acl.m4: Likewise.
38423         * m4/acosl.m4: Likewise.
38424         * m4/asinl.m4: Likewise.
38425         * m4/atanl.m4: Likewise.
38426         * m4/c-stack.m4: Likewise.
38427         * m4/cosl.m4: Likewise.
38428         * m4/expl.m4: Likewise.
38429         * m4/extensions.m4: Likewise.
38430         * m4/fdatasync.m4: Likewise.
38431         * m4/fmal.m4: Likewise.
38432         * m4/frexp.m4: Likewise.
38433         * m4/frexpf.m4: Likewise.
38434         * m4/frexpl.m4: Likewise.
38435         * m4/fsusage.m4: Likewise.
38436         * m4/getdomainname.m4: Likewise.
38437         * m4/getloadavg.m4: Likewise.
38438         * m4/getopt.m4: Likewise.
38439         * m4/gettext.m4: Likewise.
38440         * m4/gnulib-common.m4: Likewise.
38441         * m4/intdiv0.m4: Likewise.
38442         * m4/intlmacosx.m4: Likewise.
38443         * m4/largefile.m4: Likewise.
38444         * m4/ldexpl.m4: Likewise.
38445         * m4/link-follow.m4: Likewise.
38446         * m4/locale-ar.m4: Likewise.
38447         * m4/locale-fr.m4: Likewise.
38448         * m4/locale-ja.m4: Likewise.
38449         * m4/locale-tr.m4: Likewise.
38450         * m4/locale-zh.m4: Likewise.
38451         * m4/locale_h.m4: Likewise.
38452         * m4/lock.m4: Likewise.
38453         * m4/logl.m4: Likewise.
38454         * m4/mathfunc.m4: Likewise.
38455         * m4/minus-zero.m4: Likewise.
38456         * m4/mktime.m4: Likewise.
38457         * m4/mmap-anon.m4: Likewise.
38458         * m4/multiarch.m4: Likewise.
38459         * m4/nanosleep.m4: Likewise.
38460         * m4/nocrash.m4: Likewise.
38461         * m4/poll.m4: Likewise.
38462         * m4/printf-frexpl.m4: Likewise.
38463         * m4/printf.m4: Likewise.
38464         * m4/signbit.m4: Likewise.
38465         * m4/sinl.m4: Likewise.
38466         * m4/sqrtl.m4: Likewise.
38467         * m4/strerror_r.m4: Likewise.
38468         * m4/tanl.m4: Likewise.
38469         * m4/threadlib.m4: Likewise.
38470         * m4/ttyname_r.m4: Likewise.
38471         * m4/unlink.m4: Likewise.
38472         * m4/visibility.m4: Likewise.
38473         * m4/wcwidth.m4: Likewise.
38474         * tests/minus-zero.h: Likewise.
38475         * tests/test-alloca-opt.c: Likewise.
38476         * tests/test-copy-acl.sh: Likewise.
38477         * tests/test-copy-file.sh: Likewise.
38478         * tests/test-fdatasync.c: Likewise.
38479         * tests/test-file-has-acl.sh: Likewise.
38480         * tests/test-flock.c: Likewise.
38481         * tests/test-fsync.c: Likewise.
38482         * tests/test-localename.c: Likewise.
38483         * tests/test-malloca.c: Likewise.
38484         * tests/test-nonblocking-pipe.h: Likewise.
38485         * tests/test-nonblocking-socket.h: Likewise.
38486         * tests/test-openpty.c: Likewise.
38487         * tests/test-posix_openpt.c: Likewise.
38488         * tests/test-ptsname.c: Likewise.
38489         * tests/test-ptsname_r.c: Likewise.
38490         * tests/test-sameacls.c: Likewise.
38491         * tests/test-select.h: Likewise.
38492         * tests/test-set-mode-acl.sh: Likewise.
38493         * tests/test-snprintf-posix.h: Likewise.
38494         * tests/test-sprintf-posix.h: Likewise.
38495         * tests/test-strtod.c: Likewise.
38496         * tests/test-time.c: Likewise.
38497         * tests/test-vasnprintf-posix.c: Likewise.
38498         * tests/test-vasprintf-posix.c: Likewise.
38499         * doc/acl-resources.txt: Likewise.
38500         * doc/**/*.texi: Likewise.
38501         Reported by Max Horn <max@quendi.de>.
38503 2012-06-22  Bruno Haible  <bruno@clisp.org>
38505         grantpt: Relax requirement regarding invalid file descriptors.
38506         * lib/grantpt.c: Don't include <fcntl.h>.
38507         (grantpt): Don't verify the validity of the file descriptor.
38508         * modules/grantpt (Depends-on): Remove fcntl-h.
38509         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38510         file descriptors.
38511         * doc/posix-functions/grantpt.texi: Document more platforms on which
38512         grantpt succeeds for invalid file descriptors.
38513         Reported by Rich Felker <dalias@aerifal.cx>.
38515 2012-06-22  Bruno Haible  <bruno@clisp.org>
38517         fbufmode test: Don't test unportable behaviour.
38518         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38519         (main): Invoke it three times.
38520         Reported by Szabolcs Nagy <nsz@port70.net>
38521         and Rich Felker <dalias@aerifal.cx>.
38523 2012-06-21  Bruno Haible  <bruno@clisp.org>
38525         gnulib-tool: Refactor inctests variable.
38526         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38527         (func_modules_transitive_closure,
38528         func_modules_transitive_closure_separately,
38529         func_import, func_create_testdir): Update.
38531         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38532         * gnulib-tool: Accept option --without-tests.
38533         (func_usage): Document --without-tests option. Rearrange.
38534         (inctests): Normalize according to the mode.
38535         * NEWS: Mention the change.
38536         Suggested by Simon Josefsson.
38538 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38540         parse-duration test: Avoid spurious output.
38541         * tests/test-parse-duration.sh: Reindent with leading tabs.
38543 2012-06-21  Jim Meyering  <meyering@redhat.com>
38545         maint: disable the strncpy prohibition
38546         * cfg.mk: Do not prohibit strncpy here.
38548 2012-06-21  Bruno Haible  <bruno@clisp.org>
38550         nonblocking: Avoid compilation error on mingw64.
38551         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38552         fscanf.
38553         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38554         * modules/vfscanf (configure.ac): Likewise.
38555         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38556         definition only if stdio.h has prepared it.
38557         Reported by Daniel P. Berrange <berrange@redhat.com>.
38559 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38561         gnulib-tool: Use readlink if it is available.
38562         * gnulib-tool (func_readlink): Choose function more appropriately.
38564 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38566         posixtm-tests: port to buggy compiler
38567         Problem reported by Simon Josefsson in
38568         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38569         * modules/posixtm-tests (Depends-on): Add stdint.
38570         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38571         Now of type int_least64_t, not int64_t, both because that's
38572         what INT64_C returns and because int_least64_t works even
38573         on 72-bit hosts.
38574         (T): Use INT64_C on constants outside the traditional int range,
38575         to work around compiler bug noted by Simon.
38577         mktime: fix integer overflow in 'configure'-time test
38578         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38579         after integer overflow.  Problem reported by Rich Felker in
38580         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38581         Also, don't look for further instances of a bug if we've already
38582         found one instance; this helps 'configure' run faster.
38584 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38586         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38587         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38588         GetVersionEx correctly.
38589         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38591 2012-06-20  Bruno Haible  <bruno@clisp.org>
38593         fdopen: Allow implementations that don't reject invalid fd arguments.
38594         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38595         succeeds.
38596         Reported by Rich Felker <dalias@aerifal.cx>.
38598 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38600         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38601         bring in LIBINTL.
38603 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38605         init.sh: do not rely on autoupated PWD
38606         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38607         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38608         Although Nelson's bug was not necessarily fixed by this patch,
38609         it seems wise to make the change for safety.
38610         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38611         automagically after 'cd'; this is not reliable on older shells.
38612         (setup_): Fail if we cannot cd to temporary directory.
38614 2012-06-19  Bruno Haible  <bruno@clisp.org>
38616         stat, fstat: Avoid warnings on mingw64.
38617         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38618         redefining.
38619         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38620         Reported by Daniel P. Berrange <berrange@redhat.com>.
38622 2012-06-19  Bruno Haible  <bruno@clisp.org>
38624         stdioext: Add support for musl libc.
38626         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38627         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38629         * m4/fseterr.m4: New file.
38630         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38631         function exists.
38632         * modules/fseterr (Files): Add m4/fseterr.m4.
38633         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38634         __fseterr does not exist.
38635         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38637         * lib/freadable.h: Update comment.
38639         * lib/fwritable.h: Update comment.
38641         * lib/freading.h: Update comment.
38643         * lib/fwriting.h: Update comment.
38645         * m4/freadahead.m4: New file.
38646         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38647         that function exists.
38648         * modules/freadahead (Files): Add m4/freadahead.m4.
38649         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38650         __freadahead does not exist.
38651         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38653         * m4/freadptr.m4: New file.
38654         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38655         function exists.
38656         * modules/freadptr (Files): Add m4/freadptr.m4.
38657         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38658         __freadptr does not exist.
38659         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38661         * m4/freadseek.m4: New file.
38662         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38663         exists.
38664         * modules/freadseek (Files): Add m4/freadseek.m4.
38665         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38667         * lib/fpurge.c (fpurge): Update comment.
38669         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38671 2012-06-19  Bruno Haible  <bruno@clisp.org>
38673         *printf-posix: Put more info into config.log.
38674         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38675         exit code into config.log.
38677 2012-06-19  Bruno Haible  <bruno@clisp.org>
38679         getopt-gnu: Fix exit code overflow in autoconf test.
38680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38681         to keep them below < 128.
38683 2012-06-17  Jim Meyering  <meyering@redhat.com>
38685         maint.mk: fix typo in code to derive GPG key at release time
38686         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38688 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38690         regex: avoid warning when pointers are not long
38691         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38692         and uintptr_t, not long, for portability to hosts where pointers and
38693         long have different sizes.  Issue noted by Daniel P. Berrange in
38694         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38695         and fix suggested by Bruno Haible in
38696         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38698 2012-06-17  Bruno Haible  <bruno@clisp.org>
38700         dummy: Relicense into the public domain.
38701         * modules/dummy (License): Set to "public domain".
38702         Suggested by Reuben Thomas.
38704 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38706         announce-gen: VPATH issues
38707         * build-aux/announce-gen (--srcdir): New option, used to trim the
38708         $srcdir part of the path from $builddir to NEWS.
38709         * top/maint.mk (announcement): Adjust.
38711 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38713         gnu-web-doc-update: VPATH builds
38714         * build-aux/gnu-web-doc-update (--builddir): New option.
38715         Revamp the handling of options.
38716         Prefer $(...) to `...`.
38717         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38718         the template, and it is GNU mktemp specific.
38719         Prefer set -e to long series of &&.
38720         Restore the initial git branch, not "master".
38721         Properly initialize submodules (don't rely only on bootstrap).
38722         Do not reconfigure blindly, use config.status.
38723         * top/README-release: Update instructions for gnu-web-doc-update.
38725 2012-06-11  Jim Meyering  <meyering@redhat.com>
38727         maint.mk: revert most of the previous change re "all these"
38728         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38729         For rationale, see the discussion at
38730         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38732 2012-06-10  Karl Berry  <karl@gnu.org>
38734         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38736         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38738 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38740         parse-duration: Relicense under LGPLv2+.
38741         * modules/parse-duration (License): Change to LGPLv2+.
38743 2012-06-10  Jim Meyering  <meyering@redhat.com>
38745         maint.mk: prohibit common grammar error: "all these"
38746         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38747         the list of prohibited word sequences.  It should be "all of these".
38748         * lib/tempname.c (__gen_tempname): Fix one of them.
38750 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38752         do-release-commit-and-tag: support VPATH builds
38753         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38754         (noteworthy): Defined earlier to factor its value.
38755         (noteworthy_stub): New.
38756         Use it to factor.
38757         (help_version): Split into...
38758         (help, version): these.
38759         Adjust the option processing part.
38760         Support "--option=value" in addition to "--option value".
38761         (builddir): New.
38762         (--builddir): New option.
38763         * top/README-release: Document this.
38764         Reword slightly so that the reader cannot understand that he
38765         has to do these steps before calling do-release-commit-and-tag.
38767 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38769         readme-release: also require announce-gen and maintainer-makefile
38770         * modules/readme-release (Depends-on): here.
38771         * modules/announce-gen, modules/do-release-commit-and-tag,
38772         modules/gnu-web-doc-update, modules/maintainer-makefile
38773         (Description): Point to readme-release.
38775 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38777         maint.mk: fix VPATH issues.
38778         * top/maint.mk (news-check): GNU Make understand $< very well.
38779         (release-prep): NEWS is in $(srcdir).
38781 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38783         readme-release: require the promoted modules.
38784         * modules/readme-release (Depends-on): Add
38785         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38786         in this text.
38788 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38789             Bruno Haible  <bruno@clisp.org>
38791         error, strerror-override: Support mingw64 from Fedora 17.
38792         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38793         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38794         EINPROGRESS.
38795         * lib/strerror-override.h (strerror_override): Test it.
38796         * lib/strerror-override.c (strerror_override): Likewise.
38797         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38799 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38800             Bruno Haible  <bruno@clisp.org>
38802         error, strerror-override: Support mingw64 from Fedora 17.
38803         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38804         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38805         * lib/strerror-override.h (strerror_override): Test it.
38806         * lib/strerror-override.c (strerror_override): Likewise.
38808 2012-06-03  Bruno Haible  <bruno@clisp.org>
38810         error, strerror-override: Support new errno values from POSIX:2008.
38811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38812         ENOTRECOVERABLE.
38813         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38814         platforms.
38815         * lib/strerror-override.c (strerror_override): Conditionalize the
38816         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38817         * lib/strerror-override.h (strerror_override): Declare also if
38818         GNULIB_defined_EOWNERDEAD is defined.
38819         * tests/test-errno.c (e130, e131): New variables.
38820         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38821         ENOTRECOVERABLE.
38822         Reported by Paolo Bonzini.
38824 2012-05-31  Jim Meyering  <meyering@redhat.com>
38826         savewd: add missing dependency on sys_wait module
38827         * modules/savewd (Depends-on): Add sys_wait, needed at least
38828         for MSVC.  Report and suggested change by Michael Goffioul.
38830 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38832         system-quote-tests: port to CentOS 5
38833         Problem reported by Tom G. Christensen in
38834         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38835         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38837 2012-05-29  Jim Meyering  <meyering@redhat.com>
38839         maint: fix typos in comments and ChangeLog
38840         Culprits identified and fixed mostly automatically using these commands:
38841         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38842         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38843         using http://github.com/lyda/misspell-check
38844         * ChangeLog: Fix typos.
38845         * doc/solaris-versions: Likewise.
38846         * lib/regexec.c (re_search_stub): Likewise.
38847         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38849 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38851         manywarnings: remove duplicate -Wmultichar entry
38852         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38853         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38854         so keep the entry marked as documented.
38856 2012-05-27  Karl Berry  <karl@gnu.org>
38858         * config/srclist.txt (mktime.c): remove last libc sync,
38859         perhaps just temporarily.
38861 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38863         regex: don't assume uint64_t or uint32_t
38864         * lib/regcomp.c (init_word_char): Don't assume that the types
38865         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38866         them, and on some 32-bit compilers there is no uint64_t.
38867         Problem reported by Gianluigi Tiesi in
38868         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38870 2012-05-25  Jim Meyering  <meyering@redhat.com>
38872         maint.mk: add strncpy-prohibiting syntax-check rule
38873         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38875 2012-05-24  Jim Meyering  <meyering@redhat.com>
38877         maint.mk: compute $(gpg_key_ID) more portably
38878         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38879         That use of sed is not portable to some fringe systems.
38880         Reported by Paul Eggert in
38881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38883 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38885         mktime: sync from glibc
38886         * config/srclist.txt: Uncomment mktime.c.
38887         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38888         First, indent with tabs, since glibc uses tabs and doesn't want to
38889         change and we'd rather be identical to glibc.  Also, two small
38890         coding changes:
38891         (isdst_differ): Use &&, not &, as && is the usual style.
38892         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38893         for clarity.
38895 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38897         announce-gen: du -h is more portable than du --human
38898         * build-aux/announce-gen (sizes): Invoke du with -h instead
38899         of --human.  Accept leading white space in its output.
38901 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38903         announce-gen: Improve diagnostics.
38904         * build-aux/announce-gen: When parsing command line options,
38905         prefer "announce-gen: option --release-type requires an argument"
38906         to "Option release-type requires an argument".
38908 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38910         maint.mk: gpg_key_ID: use sed more portably
38911         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38912         the closing brace.
38913         (refresh-po): Fuse two sed invocations into one.
38915 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38917         gitlog-to-changelog: support the log message format used in Bison.
38918         * build-aux/gitlog-to-changelog: Support --strip-tab and
38919         --strip-cherry-picked.
38921 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38923         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38924         the rest of the current time slice to another thread in the current
38925         process. So if the thread that feeds the file decscriptor we're
38926         polling is not in the current process, we get busy-waiting.
38927         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38928         Patch from Theodore Leblond.
38929         * lib/select.c: Split polling out of the loop that sets the output
38930         fd_sets.  Check for zero result and loop if the wait timeout is
38931         infinite.
38933 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38935         select: Fix build error on IRIX 6.5.
38936         * lib/select.c: Include stddef.h for NULL.
38938 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38940         gc: fix libgcrypt detection on older machines.
38941         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38942         copyright years because the file has been distributed every year
38943         since it was created.
38945 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38947         crypto: fix bug in large buffer handling
38948         Problem reported by Serge Belyshev for glibc in
38949         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38950         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38951         * lib/md4.c (md4_process_block):
38952         * lib/md5.c (md5_process_block):
38953         * lib/sha1.c (sha1_process_block):
38954         * lib/sha256.c (sha256_process_block):
38955         Don't assume the buffer length is less than 2**32.
38956         * lib/sha512.c (sha512_process_block): Likewise.
38957         Here, the bug is present only in the rare case where the host does
38958         not support uint64_t or where size_t is wider than 64 bits.
38959         Use u64size to work around the problems.
38960         * lib/u64.h (u64size): New macro.
38962 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38964         fsusage: fix block size returned on older Linux 2.6
38966         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38967         which is available since Linux 2.6.
38968         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38969         when the member is available so it can be used as a fallback.
38970         * doc/posix-functions/statvfs.texi: Mention the hang issue
38971         on Linux < 2.6.36.
38973 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38975         bootstrap: suppress stderr chatter
38976         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38977         Omit unnecessary chatter to stderr.  The main program chatter
38978         was there only inadvertantly.
38980         bootstrap: .gitignore files created by autopoint, libtool
38981         I ran into this problem when bootstrapping the latest diffutils.
38982         After './bootstrap', 'git status' reported lots of untracked files
38983         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38984         autopoint and do not need to be version-controlled.
38985         * build-aux/bootstrap: Put into .gitignore the files that
38986         autopoint and libtool create, by keeping track of files that exist
38987         after but not before these programs are run.
38988         (version_controlled_file): Move up.  2nd arg is now full file
38989         name, not base name; this is more convenient.  Put CVS at the end,
38990         as it's now somewhat deprecated.
38992 2012-05-14  Jim Meyering  <meyering@redhat.com>
38994         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38995         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38996         definition.  Reported by Bruno Haible.
38998 2012-05-13  Bruno Haible  <bruno@clisp.org>
38999             Paul Eggert  <eggert@cs.ucla.edu>
39001         binary-io: Define set_binary_mode function.
39002         * lib/binary-io.h (set_binary_mode): New function.
39003         (SET_BINARY): Define in terms of set_binary_mode.
39004         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39005         * tests/test-binary-io.c (main): Accept an argument, and test either
39006         set_binary_mode or SET_BINARY depending on the argument.
39007         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39008         argument. Clean up also t-bin-out0.tmp.
39010 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39012         bootstrap: take advantage of POSIX shell features
39014         The 'bootstrap' script offered by Gnulib script already uses POSIX
39015         shell features (like $((...)) arithmetic expansions) that are not
39016         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39017         means that bootstrap must already be run using a proper POSIX shell,
39018         which will thus provide more features, like ${var#pattern} parameter
39019         expansion or inversion of a command exit status with '!'.  We can
39020         thus use these features to improve the clarity and the performances
39021         of the bootstrap script.
39023         Suggested by Eric Blake.
39025         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39026         of sed/expr plus command substitutions, to save some forks.  While
39027         we are at it, prefer the POSIX $(...) form of command substitution,
39028         rather than the legacy form `...` (since the former is visually
39029         clearer and interacts better with quoting), and prefer the idiom:
39030           "if ! CMD; then ACTION ..."
39031         over the idiom:
39032           "if CMD; then :; else ACTION ..."
39033         which was required by legacy Bourne shells not supporting '!'.
39035 2012-05-12  Bruno Haible  <bruno@clisp.org>
39037         system-quote: Add more comments.
39038         * lib/system-quote.h: Add more comments about wilcards and limitations.
39039         Suggested by Eli Zaretskii <eliz@gnu.org>.
39041         sh-quote, system-quote: Add comments about wildcards.
39042         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39043         * lib/system-quote.h: Likewise.
39044         Reported by Eli Zaretskii <eliz@gnu.org>.
39046 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39048         fsusage: check for GNU/Linux statvfs problem dynamically
39049         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39050         Define STAT_STATFS2_BSIZE too, since in this case the code now
39051         checks dynamically whether statvfs is reliable, falling back on
39052         Linux-style statfs otherwise.
39053         (statvfs_works): New function, for dynamically testing statvfs.
39054         (get_fs_usage) [STAT_STATVFS]: Use it.
39055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39056         statvfs on GNU/Linux hosts, since it's now done dynamically.
39058 2012-05-10  Bruno Haible  <bruno@clisp.org>
39060         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39061         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39062         '?' character.
39063         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39064         * tests/test-system-quote-main.c (check_all): Check also strings like
39065         "??????????".
39066         Reported by Eli Zaretskii <eliz@gnu.org>.
39068 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39070         _Noreturn: port config.h to gcc -Wundef
39071         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39072         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39073         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39075 2012-05-10  Bruno Haible  <bruno@clisp.org>
39077         system-quote: Refactor.
39078         * lib/system-quote.h (system_quote_copy): Fix comment.
39079         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39080         New functions, extracted from system_quote_copy.
39081         (system_quote_length, system_quote_copy): Use these functions.
39082         Reported by Paul Eggert.
39084 2012-05-08  Bruno Haible  <bruno@clisp.org>
39086         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39087         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39089 2012-05-08  Bruno Haible  <bruno@clisp.org>
39091         Tests for module 'system-quote'.
39092         * modules/system-quote-tests: New file.
39093         * tests/test-system-quote.sh: New file.
39094         * tests/test-system-quote-main.c: New file.
39095         * tests/test-system-quote-child.c: New file.
39097         New module 'system-quote'.
39098         * lib/system-quote.h: New file.
39099         * lib/system-quote.c: New file.
39100         * modules/system-quote: New file.
39102 2012-05-08  Bruno Haible  <bruno@clisp.org>
39104         sh-quote: Make C++ safe and allow multiple inclusion.
39105         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39106         declarations in extern "C".
39108 2012-05-08  Bruno Haible  <bruno@clisp.org>
39110         sh-quote tests: Make tests stricter.
39111         * tests/test-sh-quote.c (check_one): Check the return value of
39112         shell_quote_copy.
39113         (main): Check a string with a CR character. Check a string that
39114         contains UCHAR_MAX.
39116 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39118         warnings.m4: provide a means to specify the program to compile.
39119         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39120         (gl_WARN_ADD): here.
39121         Use gl_AS_VAR_APPEND.
39122         Support an argument to specify the program to compile.
39123         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39124         AC_SUBST the WARN_CFLAGS when they are used.
39125         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39126         leave this to gl_WARN_ADD.
39128 2012-05-08  Eric Blake  <eblake@redhat.com>
39130         doc: recommendations on gettext version
39131         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39132         choice between versions.
39133         * DEPENDENCIES (gettext): Cover both approaches.
39135 2012-05-08  Jim Meyering  <meyering@redhat.com>
39137         init.sh: explain why EXEEXT support uses aliases rather than functions
39138         * tests/init.sh: Add a comment.
39140         init.sh: don't let bash aliases interfere with tests
39141         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39142         is bash.  This avoids problems for those who alias standard commands to
39143         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39144         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39146 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39148         stdint: be more consistent with glibc, SunOS libc
39149         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39150         (gl_int_fast16_t, gl_uint_fast16_t)
39151         (gl_int_fast32_t, gl_uint_fast32_t)
39152         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39153         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39154         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39155         Be consistent with glibc by default, and with SunOS 5.10 and later
39156         if __sun is defined.  This lessens the likelihood of clashes if
39157         code compiled for older hosts is combined with code compiled for
39158         newer ones.  Problem reported by Niels Möller in
39159         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39161 2012-05-07  Eric Blake  <eblake@redhat.com>
39163         isatty: relax license to LGPLv2+
39164         * modules/isatty (License): Relax license.
39166 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39168         stat-size: comment fix
39169         * lib/stat-size.h: Remove obsolete comment about indenting.
39171 2012-05-06  Bruno Haible  <bruno@clisp.org>
39173         Tests for module 'sh-quote'.
39174         * modules/sh-quote-tests: New file.
39175         * tests/test-sh-quote.c: New file.
39177 2012-05-06  Bruno Haible  <bruno@clisp.org>
39179         sh-quote: Improve shell_quote_argv's signature.
39180         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39181         * lib/sh-quote.c (shell_quote_argv): Likewise.
39183 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39185         stdint: document issues with int_fast8_t etc.
39186         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39187         stdint.h substitutes may define these types differently.  See
39188         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39190 2012-05-05  Bruno Haible  <bruno@clisp.org>
39192         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39194         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39195         or 'guessing no (mishandles large arguments)'.
39197 2012-05-05  Bruno Haible  <bruno@clisp.org>
39199         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39200         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39201         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39202         set gl_cv_func_link_follows_symlink to "guessing no".
39204 2012-05-05  Bruno Haible  <bruno@clisp.org>
39206         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39207         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39208         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39209         "guessing no".
39210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39212 2012-05-05  Bruno Haible  <bruno@clisp.org>
39214         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39215         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39216         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39217         set gl_cv_struct_dirent_d_ino to "guessing yes".
39219 2012-05-05  Bruno Haible  <bruno@clisp.org>
39221         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39222         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39223         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39224         "guessing yes".
39226 2012-05-05  Bruno Haible  <bruno@clisp.org>
39228         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39229         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39230         compiling to a glibc system, set gl_cv_func_signbit and
39231         gl_cv_func_signbit_gcc to "guessing yes".
39233 2012-05-05  Bruno Haible  <bruno@clisp.org>
39235         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39236         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39237         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39238         to "guessing yes".
39239         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39240         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39242 2012-05-05  Bruno Haible  <bruno@clisp.org>
39244         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39245         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39246         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39247         gl_cv_func_realpath_works to "guessing yes".
39249 2012-05-05  Bruno Haible  <bruno@clisp.org>
39251         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39252         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39253         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39255 2012-05-04  Bruno Haible  <bruno@clisp.org>
39257         Tweak last commit.
39258         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39259         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39261 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39263         unistd_h: make it easier to avoid sys_types_h
39264         This is useful for Emacs, which has its own method of porting to
39265         Windows, and which therefore does not need the sys_types_h module.
39266         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39267         code moved here from gl_SYS_TYPES_H.
39268         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39269         using the code directly.
39270         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39271         gl_SYS_TYPES_H.
39272         * modules/sys_types (Files):
39273         * modules/unistd (Files): Add m4/off_t.m4.
39275 2012-05-03  Bruno Haible  <bruno@clisp.org>
39277         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39278         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39279         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39280         "guessing yes" or "guessing no".
39281         (gl_FUNC_LSTAT): Update.
39282         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39283         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39284         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39286 2012-05-03  Bruno Haible  <bruno@clisp.org>
39288         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39289         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39290         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39291         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39292         cross-compiling, choose the first alternative on glibc systems.
39293         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39295 2012-05-03  Bruno Haible  <bruno@clisp.org>
39297         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39298         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39299         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39301 2012-05-03  Bruno Haible  <bruno@clisp.org>
39303         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39304         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39306 2012-05-03  Bruno Haible  <bruno@clisp.org>
39308         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39309         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39310         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39311         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39312         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39313         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39314         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39315         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39316         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39317         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39318         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39319         gl_cv_func_chown_ctime_works to "guessing yes".
39320         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39321         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39322         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39323         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39324         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39326         compiling to glibc systems, set gl_cv_func_open_directory_works to
39327         "guessing yes".
39328         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39329         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39330         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39331         "guessing yes".
39332         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39333         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39334         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39335         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39336         "guessing yes".
39337         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39338         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39339         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39340         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39341         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39342         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39343         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39344         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39345         "guessing yes".
39346         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39347         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39348         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39349         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39350         "guessing yes".
39351         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39352         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39353         "guessing yes".
39354         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39355         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39356         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39357         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39358         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39359         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39360         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39361         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39362         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39363         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39364         "guessing yes".
39365         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39366         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39367         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39368         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39369         "guessing yes".
39370         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39371         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39372         "guessing yes".
39373         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39374         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39375         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39376         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39377         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39378         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39379         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39380         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39381         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39382         "guessing yes".
39383         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39384         compiling to glibc systems, set gl_cv_func_mknod_works to
39385         "guessing yes".
39386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39387         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39388         "guessing yes".
39389         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39390         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39391         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39392         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39393         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39394         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39395         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39396         compiling to glibc systems, set gl_cv_func_svid_putenv to
39397         "guessing yes".
39398         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39399         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39400         "guessing yes".
39401         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39402         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39403         "guessing yes".
39404         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39405         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39406         to "guessing yes".
39407         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39408         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39409         to "guessing yes".
39410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39411         compiling to glibc systems, set gl_cv_func_rmdir_works to
39412         "guessing yes".
39413         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39414         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39415         gl_cv_func_unlink_parent_fails to "guessing yes".
39416         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39417         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39418         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39419         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39420         gl_cv_func_rename_dest_works to "guessing yes".
39421         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39422         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39424         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39425         "guessing yes".
39426         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39427         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39428         "guessing yes".
39429         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39430         compiling to glibc systems, set gl_cv_func_setenv_works to
39431         "guessing yes".
39432         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39433         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39434         "guessing yes".
39435         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39436         compiling to glibc systems, set gl_cv_func_sleep_works to
39437         "guessing yes".
39438         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39439         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39440         "guessing yes".
39441         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39442         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39443         "guessing yes".
39444         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39445         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39446         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39447         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39448         "guessing yes".
39449         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39450         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39451         "guessing yes".
39452         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39453         compiling to glibc systems, set gl_cv_func_usleep_works to
39454         "guessing yes".
39455         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39456         compiling to glibc systems, set gl_cv_func_futimesat_works to
39457         "guessing yes".
39459 2012-05-03  Bruno Haible  <bruno@clisp.org>
39461         Say "guessing yes" or "guessing no" when cross-compiling.
39462         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39463         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39464         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39465         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39466         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39467         am_cv_func_working_getline to "guessing yes" or "guessing no".
39468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39469         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39470         (gl_FUNC_MEMMEM): When cross-compiling, set
39471         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39472         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39473         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39475         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39476         "guessing no".
39477         (gl_FUNC_STRCASESTR): When cross-compiling, set
39478         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39479         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39480         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39481         (gl_FUNC_STRSTR): When cross-compiling, set
39482         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39483         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39484         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39485         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39486         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39488 2012-05-01  Bruno Haible  <bruno@clisp.org>
39490         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39491         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39492         * build-aux/reloc-ldflags: Likewise.
39493         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39495 2012-05-01  Bruno Haible  <bruno@clisp.org>
39497         gnulib-tool: Remove transitional code.
39498         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39499         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39501 2012-05-01  Bruno Haible  <bruno@clisp.org>
39503         getcwd: Fix misindentation.
39504         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39506 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39508         exclude: process exclude and include directives in order
39509         This restores the pre-2009 behavior, and is part of a fix of a
39510         grep bug reported by Quentin Arce in
39511         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39512         * lib/exclude.c (struct exclude): Remove 'tail' member.
39513         (new_exclude_segment): Prepend the new segment instead of appending.
39514         Return void, since that's now more convenient.
39515         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39516         (file_name_matches): Renamed from excluded_file_name_p.
39517         (file_pattern_matches, file_name_matches):
39518         Return true if the pattern matches, not if it excludes.
39519         All callers changed.
39520         (excluded_file_name): Process the list in reverse order;
39521         since the list is now reversed this restores the pre-2009 behavior.
39522         (add_exclude): Adjust to new reversed-order list.  Use local var
39523         rather than macro, for clarity.
39524         * tests/test-exclude7.sh: Adjust to corrected behavior.
39526         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39527         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39528         it's not possible here.  Handle the case of \ at end of pattern
39529         without dumping core.
39530         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39532         _Noreturn: future-proof non-GNU and non-MSVC compilers
39533         * build-aux/snippet/_Noreturn.h (_Noreturn):
39534         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39535         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39536         C11 or later.  This is more likely to work with random future C
39537         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39538         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39540         exclude: handle wildcards with FNM_EXTMATCH
39541         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39542         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39543         comment that "has wildcards" really means "has or may have
39544         wildcards".  Simplify by avoiding the need to call strcspn.
39546 2012-04-29  Bruno Haible  <bruno@clisp.org>
39548         gnulib-tool: Fix list of authors.
39549         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39551 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39553         bootstrap: support Automake-NG in $buildreq
39554         * bootstrap (check_versions): Handle automake and aclocal from
39555         Automake-NG specially.  They can be specified as respectively
39556         the "automake-ng" and "aclocal-ng" requirements.
39558 2012-04-25  Eric Blake  <eblake@redhat.com>
39560         bootstrap: only force latest Makefile.in.in for gettext module
39561         * build-aux/bootstrap (with_gettext): Only install latest
39562         Makefile.in.in for projects requesting bleeding edge gettext.
39564 2012-04-22  Bruno Haible  <bruno@clisp.org>
39566         doc: Mention reason for replacement on glibc/Linux systems.
39567         * doc/posix-functions/dprintf.texi: Mention the problem with special
39568         'long double' values.
39569         * doc/posix-functions/fprintf.texi: Likewise.
39570         * doc/posix-functions/printf.texi: Likewise.
39571         * doc/posix-functions/snprintf.texi: Likewise.
39572         * doc/posix-functions/sprintf.texi: Likewise.
39573         * doc/posix-functions/vdprintf.texi: Likewise.
39574         * doc/posix-functions/vfprintf.texi: Likewise.
39575         * doc/posix-functions/vprintf.texi: Likewise.
39576         * doc/posix-functions/vsnprintf.texi: Likewise.
39577         * doc/posix-functions/vsprintf.texi: Likewise.
39578         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39579         platforms with F_DUPFD_CLOEXEC problems.
39580         * doc/posix-functions/glob.texi: Mention which platforms are affected
39581         by the problem with symbolic links.
39582         * doc/posix-functions/linkat.texi: Mention the problem with
39583         AT_SYMLINK_FOLLOW on Linux.
39585 2012-04-22  Bruno Haible  <bruno@clisp.org>
39587         pwrite: Don't replace on all platforms.
39588         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39590 2012-04-22  Bruno Haible  <bruno@clisp.org>
39592         rint* tests: Avoid gcc warnings.
39593         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39594         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39595         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39597 2012-04-21  Bruno Haible  <bruno@clisp.org>
39599         users.txt: Update.
39600         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39601         switched from CVS to git, bzr, or svn.
39603 2012-04-21  Bruno Haible  <bruno@clisp.org>
39605         Large File Support for native Windows platforms.
39607         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39608         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39610         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39611         type.
39612         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39613         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39614         * doc/posix-headers/sys_types.texi: Mention the effect of the
39615         'largefile' module.
39617         * lib/fcntl.in.h: Add comments about off_t.
39618         * modules/fcntl-h (Depends-on): Add sys_types.
39620         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39621         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39622         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39623         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39624         * modules/unistd (Depends-on): Add sys_types.
39625         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39627         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39628         instead of lseek.
39629         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39630         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39631         * modules/lseek (Depends-on): Add sys_types.
39633         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39634         msvc-nothrow.h.
39635         (SetFileSize): New function.
39636         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39638         if Large File Support is requested.
39639         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39640         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39642         * lib/stdio.in.h: Add comments about off_t.
39643         * modules/stdio (Depends-on): Add sys_types.
39645         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39646         instead of ftello.
39647         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39648         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39649         (gl_PREREQ_FTELLO): New macro.
39650         * modules/ftello (Depends-on): Add sys_types.
39651         (configure.ac): Incoke gl_PREREQ_FTELLO.
39653         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39654         instead of fseeko.
39655         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39656         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39657         (gl_PREREQ_FSEEKO): New macro.
39658         * modules/fseeko (Depends-on): Add sys_types.
39659         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39661         * lib/sys_stat.in.h: Add comments about off_t.
39662         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39663         64-bit integer for st_size in 'struct stat'.
39664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39665         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39666         * modules/sys_stat (Depends-on): Add sys_types.
39667         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39669         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39670         instead of stat or _stat.
39672         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39673         'struct _stati64' instead of fstat and 'struct stat'.
39674         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39675         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39677         Reported by Ray Satiro <raysatiro@yahoo.com>.
39679 2012-04-19  Eric Blake  <eblake@redhat.com>
39681         bootstrap: accommodate older libtool
39682         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39683         Reported by Daniel P. Berrange.
39685 2012-04-19  Jim Meyering  <meyering@redhat.com>
39687         announce-gen: avoid failure due to lack of Digest::SHA1
39688         Even with the preferred Digest::SHA available, this script
39689         would fail when the backup module, Digest::SHA1, was not installed.
39690         * build-aux/announce-gen: Quote the conditional use of "use".
39691         Reported by Reuben Thomas in:
39692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39694         bootstrap: don't let a user's CDPATH setting affect this script
39695         When CDPATH is set, cd will sometimes generate output.
39696         When "cd" is run in a subshell whose output matters, that
39697         surprising-to-some output can cause malfunction.
39698         Unsetting CDPATH turns off this shell "feature."
39699         * build-aux/bootstrap (CDPATH): Unset.
39700         Reported by Reuben Thomas in:
39701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39702         and inspired by his patch here:
39703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39705 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39706         and Jim Meyering  <meyering@redhat.com>
39708         maint.mk: catch "see @xref{}" and similar
39709         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39710         prohibit "See also @xref{", "Also see @pxref{", and similar.
39712 2012-04-16  Jim Meyering  <meyering@redhat.com>
39714         bootstrap: really use gnulib's po/Makefile.in.in
39715         * build-aux/bootstrap: Correct the source file name in previous change.
39716         Reported by Akim Demaille.
39718         configmake: correct minor inconsistency in Makefile rule
39719         * modules/configmake (Makefile.am): All other rules like this one
39720         run the final "mv -f ..." in the same backslash-continued command
39721         as the one that does everything else.  This one put the mv -f ...
39722         command on a separate, non-backslash-continued line.
39723         Make it like the others.
39725         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39726         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39727         the one from gettext.  Reported by Akim Demaille.
39729 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39731         Fix recursion of install-* into po directories.
39732         Bison's install-pdf bug reported by Hans Aberg at
39733         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39734         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39735         (install-info, install-pdf, install-ps): New targets.
39737 2012-04-16  Jim Meyering  <meyering@redhat.com>
39739         maint: avoid spurious "make sc_maint" failure
39740         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39741         exempt all *.class file names, for lib/javaversion.class.
39743 2012-04-15  Bruno Haible  <bruno@clisp.org>
39745         lseek: Make configure test independent of environment.
39746         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39747         Windows, we know that lseek() on pipes is broken; skip the runtime
39748         test.
39750 2012-04-14  Bruno Haible  <bruno@clisp.org>
39752         stat: Bypass buggy override in mingw64.
39753         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39754         * lib/stat.c (stat) [mingw64]: Define to _stat.
39755         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39757 2012-04-14  Bruno Haible  <bruno@clisp.org>
39759         pathmax: Fix compilation error on MSVC 9.
39760         * modules/pathmax (Depends-on): Add unistd.
39762 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39764         README: document pointer comparison assumption
39765         * README (Portability guidelines): Document assumption about
39766         pointer comparisons, in response to a recent bug-gnulib comment by
39767         Jeffrey Kegler.
39769 2012-04-12  Bruno Haible  <bruno@clisp.org>
39771         Tests for module 'getrusage'.
39772         * modules/getrusage-tests: New file.
39773         * tests/test-getrusage.c: New file.
39775         New module 'getrusage'.
39776         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39777         warn-on-use.h.
39778         (getrusage): New declaration.
39779         * lib/getrusage.c: New file.
39780         * m4/getrusage.m4: New file.
39781         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39782         is declared.
39783         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39784         HAVE_GETRUSAGE.
39785         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39786         snippet/c++defs, snippet/warn-on-use.
39787         (Makefile.am): Update generation of sys/resource.h. Substitute
39788         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39789         * modules/getrusage: New file.
39790         * doc/posix-functions/getrusage.texi: Mention the new module.
39792 2012-04-12  Bruno Haible  <bruno@clisp.org>
39794         Tests for module 'sys_resource'.
39795         * modules/sys_resource-tests: New file.
39796         * tests/test-sys_resource.c: New file.
39798         New module 'sys_resource'.
39799         * lib/sys_resource.in.h: New file.
39800         * m4/sys_resource_h.m4: New file.
39801         * modules/sys_resource: New file.
39802         * doc/posix-headers/sys_resource.texi: Mention the new module.
39804 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39806         ioctl: Fix compilation error on mingw.
39807         * lib/ioctl.c: Include <windows.h>.
39808         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39810 2012-04-04  Jim Meyering  <meyering@redhat.com>
39812         regex: correct #pragma guard expression
39813         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39814         not 4.3.  Correct its cpp guard expression.
39816 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39818         regex: remove unnecessary type punning
39819         Problem reported by Vladimir Serbinenko in
39820         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39821         * lib/regex.h (struct re_pattern_buffer): Change the type of
39822         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39823         Fix comment to match code.
39824         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39825         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39826         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39827         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39828         (set_regs):
39829         Omit no-longer-necessary casts.
39831 2012-04-03  Bruno Haible  <bruno@clisp.org>
39833         Tests for module 'ilogbl'.
39834         * modules/ilogbl-tests: New file.
39835         * tests/test-ilogbl.c: New file.
39837         New module 'ilogbl'.
39838         * lib/math.in.h (ilogbl): New declaration.
39839         * lib/ilogbl.c: New file.
39840         * m4/ilogbl.m4: New file.
39841         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39843         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39844         Split sed invocation, to avoid the limit of 100 substitutions of
39845         HP-UX 'sed'.
39846         * modules/ilogbl: New file.
39847         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39848         * doc/posix-functions/ilogbl.texi: Mention the new module.
39850 2012-04-03  Bruno Haible  <bruno@clisp.org>
39852         Tests for module 'ilogbf'.
39853         * modules/ilogbf-tests: New file.
39854         * tests/test-ilogbf.c: New file.
39856         New module 'ilogbf'.
39857         * lib/math.in.h (ilogbf): New declaration.
39858         * lib/ilogbf.c: New file.
39859         * m4/ilogbf.m4: New file.
39860         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39862         REPLACE_ILOGBF.
39863         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39864         REPLACE_ILOGBF.
39865         * modules/ilogbf: New file.
39866         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39867         * doc/posix-functions/ilogbf.texi: Mention the new module.
39869 2012-04-03  Bruno Haible  <bruno@clisp.org>
39871         Tests for module 'ilogb'.
39872         * modules/ilogb-tests: New file.
39873         * tests/test-ilogb.c: New file.
39874         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39875         tests/test-logb-ieee.h.
39877         New module 'ilogb'.
39878         * lib/math.in.h (ilogb): New declaration.
39879         * lib/ilogb.c: New file.
39880         * m4/ilogb.m4: New file.
39881         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39883         REPLACE_ILOGB.
39884         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39885         REPLACE_ILOGB.
39886         * modules/ilogb: New file.
39887         * tests/test-math-c++.cc: Check the declaration of ilogb.
39888         * doc/posix-functions/ilogb.texi: Mention the new module.
39890 2012-04-03  Bruno Haible  <bruno@clisp.org>
39892         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39893         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39894         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39895         (main): Check their values.
39896         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39897         problem.
39899 2012-04-03  Bruno Haible  <bruno@clisp.org>
39901         Tests for module 'logbl-ieee'.
39902         * modules/logbl-ieee-tests: New file.
39903         * tests/test-logbl-ieee.c: New file.
39905         New module 'logbl-ieee'.
39906         * modules/logbl-ieee: New file.
39908         Tests for module 'logb-ieee'.
39909         * modules/logb-ieee-tests: New file.
39910         * tests/test-logb-ieee.c: New file.
39912         New module 'logb-ieee'.
39913         * modules/logb-ieee: New file.
39915         Tests for module 'logbf-ieee'.
39916         * modules/logbf-ieee-tests: New file.
39917         * tests/test-logbf-ieee.c: New file.
39918         * tests/test-logb-ieee.h: New file.
39920         New module 'logbf-ieee'.
39921         * modules/logbf-ieee: New file.
39923 2012-04-03  Bruno Haible  <bruno@clisp.org>
39925         Tests for module 'logbl'.
39926         * modules/logbl-tests: New file.
39927         * tests/test-logbl.c: New file.
39929         New module 'logbl'.
39930         * lib/math.in.h (logbl): New declaration.
39931         * lib/logbl.c: New file.
39932         * m4/logbl.m4: New file.
39933         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39935         REPLACE_LOGBL.
39936         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39937         REPLACE_LOGBL.
39938         * modules/logbl: New file.
39939         * tests/test-math-c++.cc: Check the declaration of logbl.
39940         * doc/posix-functions/logbl.texi: Mention the new module.
39942 2012-04-02  Bruno Haible  <bruno@clisp.org>
39944         Tests for module 'logbf'.
39945         * modules/logbf-tests: New file.
39946         * tests/test-logbf.c: New file.
39948         New module 'logbf'.
39949         * lib/math.in.h (logbf): New declaration.
39950         * lib/logbf.c: New file.
39951         * m4/logbf.m4: New file.
39952         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39954         REPLACE_LOGBF.
39955         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39956         REPLACE_LOGBF.
39957         * modules/logbf: New file.
39958         * tests/test-math-c++.cc: Check the declaration of logbf.
39959         * doc/posix-functions/logbf.texi: Mention the new module.
39961 2012-04-02  Bruno Haible  <bruno@clisp.org>
39963         logb tests: More tests.
39964         * tests/test-logb.h: New file, based on tests/test-logb.c and
39965         tests/test-frexp.h.
39966         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39967         (main): Just invoke test_function.
39968         * modules/logb-tests (Files): Add tests/test-logb.h,
39969         tests/minus-zero.h, tests/randomd.c.
39970         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39972         logb: Provide replacement and workarounds.
39973         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39974         is 1.
39975         * lib/logb.c: New file.
39976         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39977         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39979         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39980         * modules/logb (Files): Add lib/logb.c.
39981         (Depends-on): Add isfinite, frexp, isnand.
39982         (configure.ac): Compile the replacement code logb.c if needed.
39983         * tests/test-math-c++.cc: Check the declaration of logb.
39984         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39985         with subnormal numbers.
39987 2012-04-02  Bruno Haible  <bruno@clisp.org>
39989         log10* tests: Speed up.
39990         * tests/test-log10.h (test_function): Reduce amount of random numbers
39991         to test.
39993 2012-04-01  Bruno Haible  <bruno@clisp.org>
39995         logf-ieee: Fix test whether logf works.
39996         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39998 2012-04-01  Bruno Haible  <bruno@clisp.org>
40000         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40001         * lib/log10l.c: Include <float.h>
40002         (log10l): On IRIX, normalize the +Infinity value.
40003         * modules/log10l (Depends-on): Add 'float'.
40004         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40005         +Infinity.
40007         log10f-ieee: Work around test failure on NetBSD 5.1.
40008         * m4/log10f-ieee.m4: New file.
40009         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40010         test whether log10f works with a negative argument. Replace it if not.
40011         * lib/log10f.c (log10f): For negative arguments, return NaN.
40012         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40013         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40014         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40016         log10f-ieee: Work around test failure on Solaris 9.
40017         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40018         (configure.ac): Require gl_FUNC_LOG10F.
40020         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40021         * m4/log10-ieee.m4: New file.
40022         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40023         whether log10 works with a negative argument. Replace it if not.
40024         * lib/log10.c (log10): For negative arguments, return NaN.
40025         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40026         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40027         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40029         Tests for module 'log10l-ieee'.
40030         * modules/log10l-ieee-tests: New file.
40031         * tests/test-log10l-ieee.c: New file.
40033         New module 'log10l-ieee'.
40034         * modules/log10l-ieee: New file.
40036         Tests for module 'log10-ieee'.
40037         * modules/log10-ieee-tests: New file.
40038         * tests/test-log10-ieee.c: New file.
40040         New module 'log10-ieee'.
40041         * modules/log10-ieee: New file.
40043         Tests for module 'log10f-ieee'.
40044         * modules/log10f-ieee-tests: New file.
40045         * tests/test-log10f-ieee.c: New file.
40046         * tests/test-log10-ieee.h: New file.
40048         New module 'log10f-ieee'.
40049         * modules/log10f-ieee: New file.
40051 2012-04-01  Bruno Haible  <bruno@clisp.org>
40053         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40054         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40055         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40056         workaround.
40057         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40058         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40060         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40061         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40062         (Depends-on): Update conditions.
40063         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40064         IRIX 6.5, OSF/1 5.1 problems.
40066 2012-04-01  Bruno Haible  <bruno@clisp.org>
40068         log10f: Work around OSF/1 5.1 bug.
40069         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40070         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40071         workaround.
40072         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40073         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40075         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40076         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40077         (Depends-on): Update conditions.
40078         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40080 2012-04-01  Bruno Haible  <bruno@clisp.org>
40082         log10: Work around OSF/1 5.1 bug.
40083         * lib/math.in.h (log10): New declaration.
40084         * lib/log10.c: New file.
40085         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40086         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40087         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40089         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40090         * modules/log10 (Files): Add lib/log10.c.
40091         (Depends-on): Add math.
40092         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40093         * tests/test-math-c++.cc: Check the declaration of log10.
40094         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40096 2012-03-31  Bruno Haible  <bruno@clisp.org>
40098         log10l tests: More tests.
40099         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40100         tests/minus-zero.h, tests/randoml.c.
40101         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40102         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40103         (main): Invoke test_function.
40105         log10f tests: More tests.
40106         * modules/log10f-tests (Files): Add tests/test-log10.h,
40107         tests/minus-zero.h, tests/randomf.c.
40108         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40109         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40110         (main): Invoke test_function.
40112         log10 tests: More tests.
40113         * tests/test-log10.h: New file.
40114         * modules/log10-tests (Files): Add tests/test-log10.h,
40115         tests/minus-zero.h, tests/randomd.c.
40116         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40117         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40118         (main): Invoke test_function.
40120 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40122         fflush: Fix syntax error.
40123         * lib/fflush.c: Include unused-parameter.h, needed for
40124         _GL_UNUSED_PARAMETER.
40125         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40127 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40129         regex: pacify GCC when compiling GRUB
40130         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40131         a diagnostic.  Reported by Vladimir Serbinenko in
40132         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40134 2012-03-29  Eric Blake  <eblake@redhat.com>
40136         stdio: don't assume gets any more
40137         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40138         support.
40139         * modules/stdio (Makefile.am): Likewise.
40140         * lib/stdio-read.c (gets): Likewise.
40141         * tests/test-stdio-c++.cc: Likewise.
40142         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40143         * lib/stdio.in.h (gets): Make warning occur in more places.
40144         * doc/posix-functions/gets.texi (gets): Update documentation.
40145         Reported by Christer Solskogen.
40147         maint.mk: fix syntax checks without exclusions
40148         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40149         Reported by Daniel P. Berrange.
40151         strerror_r: avoid compiler warning
40152         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40153         level.
40155         fflush: avoid compiler warning
40156         * lib/fflush.c (update_fpos_cache): Mark variables that are
40157         potentially unused.
40159 2012-03-25  Bruno Haible  <bruno@clisp.org>
40161         Tests for module 'localeconv'.
40162         * modules/localeconv-tests: New file.
40163         * tests/test-localeconv.c: New file.
40165         New module 'localeconv'.
40166         * lib/locale.in.h (localeconv): New declaration.
40167         * lib/localeconv.c: New file.
40168         * m4/localeconv.m4: New file.
40169         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40170         REPLACE_LOCALECONV.
40171         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40172         REPLACE_LOCALECONV.
40173         * modules/localeconv: New file.
40174         * modules/nl_langinfo (Depends-on): Add localeconv.
40175         * modules/human (Depends-on): Likewise.
40176         * doc/posix-functions/localeconv.texi: Mention the new module.
40178 2012-03-25  Bruno Haible  <bruno@clisp.org>
40180         locale: Provide a complete 'struct lconv'.
40181         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40182         'struct lconv' does not contain int_p_cs_precedes.
40183         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40184         * doc/posix-headers/locale.texi: Update.
40186         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40187         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40188         * doc/posix-headers/locale.texi: Update.
40190         locale: Provide a working 'struct lconv'.
40191         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40192         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40193         'struct lconv' does not even contain decimal_point.
40194         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40195         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40196         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40197         * doc/posix-headers/locale.texi: Mention the problems with
40198         'struct lconv'.
40199         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40201 2012-03-24  Bruno Haible  <bruno@clisp.org>
40203         Enable common subexpression optimization in GCC.
40204         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40205         macros.
40206         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40207         GCC attribute 'const'.
40208         (uc_locale_language): Declare with GCC attribute 'pure'.
40209         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40210         with GCC attribute 'const'.
40211         * lib/unictype.in.h (uc_is_general_category_withtable,
40212         uc_combining_class, uc_combining_class_name,
40213         uc_combining_class_long_name, uc_bidi_class_name,
40214         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40215         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40216         uc_decimal_value, uc_digit_value, uc_numeric_value,
40217         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40218         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40219         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40220         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40221         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40222         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40223         Declare with GCC attribute 'const'.
40224         (uc_general_category_name, uc_general_category_long_name,
40225         uc_general_category_byname, uc_general_category,
40226         uc_is_general_category, uc_combining_class_byname,
40227         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40228         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40229         Declare with GCC attribute 'pure'.
40230         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40231         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40232         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40233         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40234         with GCC attribute 'pure'.
40235         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40236         'const'.
40237         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40238         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40239         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40240         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40241         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40242         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40243         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40244         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40245         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40246         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40247         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40248         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40249         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40250         GCC attribute 'pure'.
40251         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40252         'const'.
40253         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40254         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40255         u32_strwidth): Declare with GCC attribute 'pure'.
40257         Enable common subexpression optimization in GCC.
40258         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40259         (alphasort): Declare with GCC attribute 'pure'.
40260         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40261         (atoll): Declare with GCC attribute 'pure'.
40262         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40263         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40264         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40265         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40266         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40267         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40268         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40270 2012-03-24  Bruno Haible  <bruno@clisp.org>
40272         gnulib-tool: Avoid unintended error output from 'cmp'.
40273         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40274         "cmp -s", not "cmp > /dev/null".
40276 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40278         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40280         It's not just Automake versions < 1.9b that creates an empty
40281         pkgdatadir at installation time if pkgdata_DATA is specified
40282         to empty; modern automake versions do this as well, at least
40283         until automake 1.11.4 (not yet released at the moment of writing,
40284         but soon to appear).  That behaviour was generally considered a
40285         feature rather than a bug, at least until this discussion:
40286         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40288         See also automake bugs #10997 and #11030.
40290         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40291         reference to relevant automake bug numbers.
40292         (func_emit_tests_Makefile_am): Likewise.
40294 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40296         announce-gen: use Digest::SHA when possible
40297         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40298         back to Digest::SHA1 if necessary.
40300 2012-03-20  Jim Meyering  <meyering@redhat.com>
40302         tests: avoid gcc warnings about argv vs. const initializers
40303         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40304         warnings about discarding 'const' qualifier from pointer target type.
40305         * tests/test-posix_spawn2.c (main): Likewise.
40307 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40309         README-release: simplify slightly
40310         * top/README-release: Run "git checkout master" only once.
40312 2012-03-15  Mark Wielaard  <mark@klomp.org>
40314         git-merge-changelog: add specific example on how to use with hg.
40315         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40317 2012-03-18  Mark Wielaard  <mark@klomp.org>
40319         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40321 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40323         git-version-gen: don't let "prefix" envvar cause trouble
40324         * build-aux/git-version-gen (prefix): Initialize properly,
40325         so as not to use a value specified via the environment.
40326         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40328 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40330         regex: diagnose too-large repeat counts in EREs
40331         Previously, the code did not diagnose the too-large repeat count
40332         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40333         as if it were 'b\{1000000000}', which is unexpected.
40334         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40335         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40336         is a reasonable one for this problem.  Another option would be to
40337         create a new REG_OVERFLOW error for repeat counts that are too large.
40338         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40339         count is too large, so that the caller can distinguish the two cases.
40340         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40341         "Too large" return code, and that repeat counts are one example of this.
40343 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40345         doc: some glibc x32 integer width issues
40346         * doc/posix-headers/sys_types.texi (sys/types.h):
40347         * doc/posix-headers/time.texi (time.h):
40348         Mention that glibc x32 does not conform to POSIX in a couple of
40349         areas related to integer widths.
40351 2012-03-15  Bruno Haible  <bruno@clisp.org>
40353         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40354         * lib/fma.c (VOLATILE): New macro.
40355         (FUNC): Use it to work around a GCC compiler bug.
40357 2012-03-13  Bruno Haible  <bruno@clisp.org>
40359         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40360         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40361         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40362         REPLACE_HYPOTL to 1.
40363         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40365 2012-03-13  Bruno Haible  <bruno@clisp.org>
40367         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40368         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40369         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40370         REPLACE_REMAINDERL to 1.
40371         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40372         bug.
40374 2012-03-13  Bruno Haible  <bruno@clisp.org>
40376         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40377         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40378         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40379         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40380         too big rounding errors.
40381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40382         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40383         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40384         (Depends-on): Update conditions.
40385         * tests/test-sqrtl.c (my_ldexpl): New function.
40386         (main): Add test of a particular value.
40387         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40389 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40391         doc: Update timer_* platform portability notes.
40392         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40393         that always return ENOSYS.
40394         * doc/posix-functions/timer_delete.texi: Likewise.
40395         * doc/posix-functions/timer_gettime.texi: Likewise.
40396         * doc/posix-functions/timer_settime.texi: Likewise.
40398 2012-03-13  Bruno Haible  <bruno@clisp.org>
40400         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40401         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40402         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40403         REPLACE_CBRTL to 1.
40404         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40406 2012-03-13  Bruno Haible  <bruno@clisp.org>
40408         remainderl: Avoid compilation error on AIX >= 5.2.
40409         * lib/math.in.h (remainderl): Undefine macro from the system header.
40411 2012-03-13  Bruno Haible  <bruno@clisp.org>
40413         Avoid compilation errors with MSVC option -fp:strict.
40414         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40415         * lib/cbrtf.c: Likewise.
40416         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40418 2012-03-12  Bruno Haible  <bruno@clisp.org>
40420         uninorm: Don't crash in out-of-memory conditions.
40421         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40422         gracefully.
40423         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40424         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40426 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40428         quote: fix syntax-check
40429         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40430         also exports quote_quoting_options.
40432 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40434         Collapse list of copyright years to ranges.  See
40435         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40436         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40437         build-aux/csharpexec.sh.in, build-aux/gnupload,
40438         build-aux/install-reloc, build-aux/javacomp.sh.in,
40439         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40440         build-aux/move-if-change, build-aux/reloc-ldflags,
40441         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40443 2012-03-11  Bruno Haible  <bruno@clisp.org>
40445         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40446         * m4/log2f-ieee.m4: New file.
40447         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40448         whether log2f works with a minus zero argument. Replace it if not.
40449         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40450         (Depends-on): Add log2-ieee.
40451         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40452         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40454         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40455         * m4/log2-ieee.m4: New file.
40456         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40457         whether log2 works with a minus zero argument. Replace it if not.
40458         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40459         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40460         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40462         Tests for module 'log2l-ieee'.
40463         * modules/log2l-ieee-tests: New file.
40464         * tests/test-log2l-ieee.c: New file.
40466         New module 'log2l-ieee'.
40467         * modules/log2l-ieee: New file.
40469         Tests for module 'log2-ieee'.
40470         * modules/log2-ieee-tests: New file.
40471         * tests/test-log2-ieee.c: New file.
40473         New module 'log2-ieee'.
40474         * modules/log2-ieee: New file.
40476         Tests for module 'log2f-ieee'.
40477         * modules/log2f-ieee-tests: New file.
40478         * tests/test-log2f-ieee.c: New file.
40479         * tests/test-log2-ieee.h: New file.
40481         New module 'log2f-ieee'.
40482         * modules/log2f-ieee: New file.
40484 2012-03-11  Bruno Haible  <bruno@clisp.org>
40486         Tests for module 'log2l'.
40487         * modules/log2l-tests: New file.
40488         * tests/test-log2l.c: New file.
40490         New module 'log2l'.
40491         * lib/math.in.h (log2l): New declaration.
40492         * lib/log2l.c: New file.
40493         * m4/log2l.m4: New file.
40494         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40496         REPLACE_LOG2L.
40497         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40498         REPLACE_LOG2L.
40499         * modules/log2l: New file.
40500         * tests/test-math-c++.cc: Check the declaration of log2l.
40501         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40502         and OSF/1 problems.
40504 2012-03-11  Bruno Haible  <bruno@clisp.org>
40506         Tests for module 'log2f'.
40507         * modules/log2f-tests: New file.
40508         * tests/test-log2f.c: New file.
40510         New module 'log2f'.
40511         * lib/math.in.h (log2f): New declaration.
40512         * lib/log2f.c: New file.
40513         * m4/log2f.m4: New file.
40514         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40516         REPLACE_LOG2F.
40517         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40518         REPLACE_LOG2F.
40519         * modules/log2f: New file.
40520         * tests/test-math-c++.cc: Check the declaration of log2f.
40521         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40522         and OSF/1 and Cygwin problems.
40524 2012-03-11  Bruno Haible  <bruno@clisp.org>
40526         Tests for module 'log2'.
40527         * modules/log2-tests: New file.
40528         * tests/test-log2.c: New file.
40529         * tests/test-log2.h: New file.
40531         New module 'log2'.
40532         * lib/math.in.h (log2): New declaration.
40533         * lib/log2.c: New file.
40534         * m4/log2.m4: New file.
40535         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40537         REPLACE_LOG2.
40538         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40539         REPLACE_LOG2.
40540         * modules/log2: New file.
40541         * tests/test-math-c++.cc: Check the declaration of log2.
40542         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40543         and OSF/1 and Cygwin problems.
40545 2012-03-11  Bruno Haible  <bruno@clisp.org>
40547         exp2* tests: More tests.
40548         * tests/test-exp2.h (test_function): Test all integral arguments that
40549         don't need to overflow or denormalized numbers.
40550         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40551         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40552         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40554 2012-03-10  Bruno Haible  <bruno@clisp.org>
40556         log1pl-ieee: Work around test failure on AIX 7.1.
40557         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40559         log1pl-ieee: Work around test failure on IRIX 6.5.
40560         * m4/log1pl-ieee.m4: New file.
40561         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40562         test whether log1pl works with a minus zero argument. Replace it if
40563         not.
40564         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40566         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40567         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40568         (Depends-on): Update conditions.
40569         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40570         m4/signbit.m4.
40571         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40572         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40574         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40575         * m4/log1pf-ieee.m4: New file.
40576         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40577         test whether log1pf works with a minus zero argument. Replace it if
40578         not.
40579         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40580         m4/signbit.m4.
40581         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40582         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40584         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40585         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40586         (configure.ac): Require gl_FUNC_LOG1PF.
40588         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40589         * m4/log1p-ieee.m4: New file.
40590         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40591         whether log1p works with a minus zero argument. Replace it if not.
40592         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40594         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40595         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40596         (Depends-on): Update conditions.
40597         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40598         m4/signbit.m4.
40599         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40600         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40602         Tests for module 'log1pl-ieee'.
40603         * modules/log1pl-ieee-tests: New file.
40604         * tests/test-log1pl-ieee.c: New file.
40606         New module 'log1pl-ieee'.
40607         * modules/log1pl-ieee: New file.
40609         Tests for module 'log1p-ieee'.
40610         * modules/log1p-ieee-tests: New file.
40611         * tests/test-log1p-ieee.c: New file.
40613         New module 'log1p-ieee'.
40614         * modules/log1p-ieee: New file.
40616         Tests for module 'log1pf-ieee'.
40617         * modules/log1pf-ieee-tests: New file.
40618         * tests/test-log1pf-ieee.c: New file.
40619         * tests/test-log1p-ieee.h: New file.
40621         New module 'log1pf-ieee'.
40622         * modules/log1pf-ieee: New file.
40624 2012-03-10  Bruno Haible  <bruno@clisp.org>
40626         Tests for module 'log1pl'.
40627         * modules/log1pl-tests: New file.
40628         * tests/test-log1pl.c: New file.
40630         New module 'log1pl'.
40631         * lib/math.in.h (log1pl): New declaration.
40632         * lib/log1pl.c: New file.
40633         * m4/log1pl.m4: New file.
40634         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40636         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40637         * modules/log1pl: New file.
40638         * tests/test-math-c++.cc: Check the declaration of log1pl.
40639         * doc/posix-functions/log1pl.texi: Mention the new module.
40641 2012-03-10  Bruno Haible  <bruno@clisp.org>
40643         Tests for module 'log1pf'.
40644         * modules/log1pf-tests: New file.
40645         * tests/test-log1pf.c: New file.
40647         New module 'log1pf'.
40648         * lib/math.in.h (log1pf): New declaration.
40649         * lib/log1pf.c: New file.
40650         * m4/log1pf.m4: New file.
40651         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40653         REPLACE_LOG1PF.
40654         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40655         REPLACE_LOG1PF.
40656         * modules/log1pf: New file.
40657         * tests/test-math-c++.cc: Check the declaration of log1pf.
40658         * doc/posix-functions/log1pf.texi: Mention the new module.
40660 2012-03-10  Bruno Haible  <bruno@clisp.org>
40662         log1p tests: More tests.
40663         * tests/test-log1p.h: New file.
40664         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40665         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40666         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40667         (main): Invoke test_function.
40669         log1p: Provide replacement for Minix and MSVC.
40670         * lib/math.in.h (log1p): New declaration.
40671         * lib/log1p.c: New file.
40672         * m4/log1p.m4: New file.
40673         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40675         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40676         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40677         (Depends-on): Add math, isnand, log, round.
40678         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40679         HAVE_LOG1P is 0.
40680         * tests/test-math-c++.cc: Check the declaration of log1p.
40681         * doc/posix-functions/log1p.texi: Mention the replacement.
40683 2012-03-10  Bruno Haible  <bruno@clisp.org>
40685         math tests: Small simplification.
40686         * tests/test-exp.h (test_function): Use the same err_bound for
40687         'double' on platforms with sizeof (long double) == sizeof (double)
40688         than on platforms with sizeof (long double) > sizeof (double).
40689         * tests/test-exp2.h (test_function): Likewise.
40690         * tests/test-expm1.h (test_function): Likewise.
40691         * tests/test-log.h (test_function): Likewise.
40693 2012-03-10  Bruno Haible  <bruno@clisp.org>
40695         Fix some comments.
40696         * lib/expl.c: Fix an ambiguous comment.
40697         * lib/expm1.c: Likewise.
40698         * lib/expm1l.c: Likewise.
40699         * lib/exp2.c: Likewise.
40700         * lib/exp2l.c: Likewise.
40702 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40704         regex: allow inclusion of <regex.h> before <limits.h>
40705         Without this patch, portable programs had to include <limits.h> before
40706         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40707         I ran into this problem with a test version of GNU grep on Solaris 8.
40708         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40709         This is done conditionally so that this change can be merged
40710         back to glibc.
40711         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40712         using the included regex.
40714         fts: depend on fdopendir
40715         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40716         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40717         problem was introduced when fdopendir was split out.
40719 2012-03-10  Bruno Haible  <bruno@clisp.org>
40721         Remove unused variables.
40722         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40723         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40725 2012-03-10  Bruno Haible  <bruno@clisp.org>
40727         isnanf-nolibm: Fix last commit.
40728         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40730         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40731         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40733 2012-03-10  Bruno Haible  <bruno@clisp.org>
40735         logf-ieee: Work around test failure on NetBSD 5.1.
40736         * m4/logf-ieee.m4: New file.
40737         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40738         whether logf works with a negative argument. Replace it if not.
40739         * lib/logf.c (logf): For negative arguments, return NaN.
40740         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40741         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40742         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40744         logf-ieee: Work around test failure on Solaris 9.
40745         * modules/logf-ieee (Depends-on): Add log-ieee.
40746         (configure.ac): Require gl_FUNC_LOGF.
40748         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40749         * m4/log-ieee.m4: New file.
40750         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40751         log works with a negative argument. Replace it if not.
40752         * lib/log.c (log): For negative arguments, return NaN.
40753         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40754         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40755         * doc/posix-functions/log.texi: Mention the log-ieee module.
40757         Tests for module 'logl-ieee'.
40758         * modules/logl-ieee-tests: New file.
40759         * tests/test-logl-ieee.c: New file.
40761         New module 'logl-ieee'.
40762         * modules/logl-ieee: New file.
40764         Tests for module 'log-ieee'.
40765         * modules/log-ieee-tests: New file.
40766         * tests/test-log-ieee.c: New file.
40768         New module 'log-ieee'.
40769         * modules/log-ieee: New file.
40771         Tests for module 'logf-ieee'.
40772         * modules/logf-ieee-tests: New file.
40773         * tests/test-logf-ieee.c: New file.
40774         * tests/test-log-ieee.h: New file.
40776         New module 'logf-ieee'.
40777         * modules/logf-ieee: New file.
40779 2012-03-10  Bruno Haible  <bruno@clisp.org>
40781         log: Fix bug introduced on 2012-03-09.
40782         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40784 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40786         timer-time: link explicitly with pthreads on glibc
40787         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40788         to support static linking, when newer glibc is
40789         detected, as that contains pthread emulation of
40790         POSIX timer functions where required.
40791         * modules/timer-time: Depend on threadlib to
40792         pull in the appropriate library to link.
40794 2012-03-10  Bruno Haible  <bruno@clisp.org>
40796         log* tests: More tests.
40797         * tests/test-log.h: New file.
40798         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40799         (main): Invoke test_function.
40800         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40801         (main): Invoke test_function.
40802         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40803         (main): Invoke test_function.
40804         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40805         tests/randomd.c.
40806         (Makefile.am): Add randomd.c to test_log_SOURCES.
40807         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40808         tests/randomf.c.
40809         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40810         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40811         tests/randoml.c.
40812         (Depends-on): Add 'float'.
40813         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40815 2012-03-09  Bruno Haible  <bruno@clisp.org>
40817         logl: Work around OSF/1 5.1 bug.
40818         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40819         * lib/logl.c (logl): If logl exists, use it and provide just the
40820         workaround.
40821         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40822         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40824         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40825         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40826         (Depends-on): Update conditions.
40827         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40829 2012-03-09  Bruno Haible  <bruno@clisp.org>
40831         logf: Work around OSF/1 5.1 bug.
40832         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40833         * lib/logf.c (logf): If logf exists, use it and provide just the
40834         workaround.
40835         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40836         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40838         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40839         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40840         (Depends-on): Update conditions.
40841         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40843 2012-03-09  Bruno Haible  <bruno@clisp.org>
40845         log: Work around OSF/1 5.1 bug.
40846         * lib/math.in.h (log): New declaration.
40847         * lib/log.c: New file.
40848         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40849         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40850         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40852         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40853         * modules/log (Files): Add lib/log.c.
40854         (Depends-on): Add math.
40855         (configure.ac): If REPLACE_LOG is 1, compile an override.
40856         * tests/test-math-c++.cc: Check the declaration of log.
40857         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40859 2012-03-09  Jim Meyering  <meyering@redhat.com>
40861         readtokens.c: adjust wording in a comment
40862         * lib/readtokens.c: Insert omitted "that" in a comment.
40864 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40866         modechange: add notations +40, 00440, etc.
40867         * lib/modechange.c (mode_compile): Support new notations
40868         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40870 2012-03-08  Bruno Haible  <bruno@clisp.org>
40872         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40873         * m4/exp2l-ieee.m4: New file.
40874         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40875         test whether exp2l works with a NaN argument and with a negative
40876         infinity argument. Replace it if not.
40877         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40879         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40880         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40881         (Depends-on): Update conditions.
40882         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40883         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40884         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40886         Tests for module 'exp2l-ieee'.
40887         * modules/exp2l-ieee-tests: New file.
40888         * tests/test-exp2l-ieee.c: New file.
40890         New module 'exp2l-ieee'.
40891         * modules/exp2l-ieee: New file.
40893         Tests for module 'exp2-ieee'.
40894         * modules/exp2-ieee-tests: New file.
40895         * tests/test-exp2-ieee.c: New file.
40897         New module 'exp2-ieee'.
40898         * modules/exp2-ieee: New file.
40900         Tests for module 'exp2f-ieee'.
40901         * modules/exp2f-ieee-tests: New file.
40902         * tests/test-exp2f-ieee.c: New file.
40903         * tests/test-exp2-ieee.h: New file.
40905         New module 'exp2f-ieee'.
40906         * modules/exp2f-ieee: New file.
40908 2012-03-08  Bruno Haible  <bruno@clisp.org>
40910         Tests for module 'exp2l'.
40911         * modules/exp2l-tests: New file.
40912         * tests/test-exp2l.c: New file.
40914         New module 'exp2l'.
40915         * lib/math.in.h (exp2l): New declaration.
40916         * lib/exp2l.c: New file.
40917         * lib/expl-table.c: New file, extracted from lib/expl.c.
40918         * lib/expl.c (gl_expl_table): New declaration.
40919         (expl): Remove expl_table. Update reference.
40920         * m4/exp2l.m4: New file.
40921         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40923         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40924         * modules/exp2l: New file.
40925         * modules/expl (Files): Add lib/expl-table.c.
40926         (configure.ac): Compile also expl-table.c.
40927         * tests/test-math-c++.cc: Check the declaration of exp2l.
40928         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40929         problem.
40931 2012-03-08  Bruno Haible  <bruno@clisp.org>
40933         Tests for module 'exp2f'.
40934         * modules/exp2f-tests: New file.
40935         * tests/test-exp2f.c: New file.
40937         New module 'exp2f'.
40938         * lib/math.in.h (exp2f): New declaration.
40939         * lib/exp2f.c: New file.
40940         * m4/exp2f.m4: New file.
40941         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40943         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40944         * modules/exp2f: New file.
40945         * tests/test-math-c++.cc: Check the declaration of exp2f.
40946         * doc/posix-functions/exp2f.texi: Mention the new module and the
40947         IRIX problem.
40949 2012-03-08  Bruno Haible  <bruno@clisp.org>
40951         Tests for module 'exp2'.
40952         * modules/exp2-tests: New file.
40953         * tests/test-exp2.c: New file.
40954         * tests/test-exp2.h: New file.
40956         New module 'exp2'.
40957         * lib/math.in.h (exp2): New declaration.
40958         * lib/exp2.c: New file.
40959         * m4/exp2.m4: New file.
40960         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40962         REPLACE_EXP2.
40963         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40964         REPLACE_EXP2.
40965         * modules/exp2: New file.
40966         * tests/test-math-c++.cc: Check the declaration of exp2.
40967         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40968         and OpenBSD problems.
40970 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40972         savedir: fix comment typo
40973         * lib/savedir.c (savedirstream): Fix typo in comment.
40975 2012-03-08  Bruno Haible  <bruno@clisp.org>
40977         test-readtokens.c: use const; remove unwarranted cast
40978         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40980 2012-03-08  Bruno Haible  <bruno@clisp.org>
40982         fmal: Avoid compilation error on AIX.
40983         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40984         AIX 5.2..7.1.
40986 2012-03-08  Bruno Haible  <bruno@clisp.org>
40988         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40989         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40990         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40991         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40992         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40993         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40994         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40996 2012-03-08  Bruno Haible  <bruno@clisp.org>
40998         remainderf: Override buggy system function on IRIX 6.5.
40999         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41000         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41001         when it exists.
41002         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41004 2012-03-08  Jim Meyering  <meyering@redhat.com>
41006         test-readtokens.c: avoid const-related compilation warnings
41007         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41009 2012-03-07  Jim Meyering  <meyering@redhat.com>
41010             Bruno Haible  <bruno@clisp.org>
41012         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41013         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41014         tests/randomd.c.
41015         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41016         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41017         tests/randoml.c.
41018         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41020 2012-03-07  Bruno Haible  <bruno@clisp.org>
41022         expm1l: Avoid compilation error on AIX.
41023         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41024         AIX 5.2..7.1.
41026 2012-03-07  Bruno Haible  <bruno@clisp.org>
41028         expm1l: Don't override undeclared system function on IRIX 6.5.
41029         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41030         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41031         it exists. Set HAVE_DECL_EXPM1L.
41032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41033         HAVE_EXPM1L.
41034         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41035         HAVE_EXPM1L.
41036         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41038 2012-03-07  Bruno Haible  <bruno@clisp.org>
41040         remainderl: Don't override undeclared system function on IRIX 6.5.
41041         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41042         HAVE_REMAINDERL.
41043         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41044         declared when it exists. Set HAVE_DECL_REMAINDERL.
41045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41046         not HAVE_REMAINDERL.
41047         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41048         HAVE_REMAINDERL.
41049         * doc/posix-functions/remainderl.texi: Mention missing declaration
41050         problem.
41052 2012-03-07  Bruno Haible  <bruno@clisp.org>
41054         rintf: Don't override undeclared system function on IRIX 6.5.
41055         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41056         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41057         exists. Set HAVE_DECL_RINTF.
41058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41059         HAVE_RINTF.
41060         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41061         HAVE_RINTF.
41062         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41064 2012-03-07  Bruno Haible  <bruno@clisp.org>
41066         roundl: Avoid compilation error on AIX.
41067         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41068         AIX 5.2..7.1.
41070 2012-03-07  Bruno Haible  <bruno@clisp.org>
41072         roundl: Don't override undeclared system function on IRIX 6.5.
41073         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41074         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41075         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41076         * modules/roundl (configure.ac): For replacement code, test
41077         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41078         (Depends-on): Update conditions.
41079         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41081 2012-03-07  Bruno Haible  <bruno@clisp.org>
41083         roundf: Don't override undeclared system function on IRIX 6.5.
41084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41085         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41086         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41087         * modules/roundf (configure.ac): For replacement code, test
41088         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41089         (Depends-on): Update conditions.
41090         * modules/roundf-ieee (Depends-on): Update conditions.
41091         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41093 2012-03-07  Bruno Haible  <bruno@clisp.org>
41095         round: Don't override undeclared system function on IRIX 6.5.
41096         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41097         argument.
41098         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41099         also when it is not declared. Set HAVE_ROUND. For replacement code,
41100         test HAVE_ROUND, not HAVE_DECL_ROUND.
41101         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41102         not HAVE_DECL_ROUND.
41103         (Depends-on): Update conditions.
41104         * modules/round-ieee (Depends-on): Update conditions.
41105         * doc/posix-functions/round.texi: Mention the IRIX problem.
41107 2012-03-07  Bruno Haible  <bruno@clisp.org>
41109         copysignf: Don't override undeclared system function on IRIX 6.5.
41110         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41111         HAVE_COPYSIGNF.
41112         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41113         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41115         not HAVE_COPYSIGNF.
41116         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41117         HAVE_COPYSIGNF.
41118         * doc/posix-functions/copysignf.texi: Mention missing declaration
41119         problem.
41121 2012-03-07  Jim Meyering  <meyering@redhat.com>
41123         readtokens: add tests
41124         * modules/readtokens-tests: New file.
41125         * tests/test-readtokens.c: New file.
41127 2012-03-07  Jim Meyering  <meyering@redhat.com>
41129         quotearg: the module must now include quote.h
41130         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41131         So must the module.
41132         * modules/quotearg (Files): Add quote.h.
41134 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41136         readtokens: avoid core dumps with unusual calling patterns
41137         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41138         * lib/readtokens.c: Include limits.h.
41139         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41140         (readtoken): Don't cache the delimiters; the cache code was buggy
41141         if !delim && saved_delim, or if the new n_delim differs from the old.
41142         Also, it wasn't thread-safe.
41144 2012-03-07  Bruno Haible  <bruno@clisp.org>
41146         quote: Adhere to common module description layout.
41147         * modules/quote (Makefile.am): Add back empty section.
41149 2012-03-06  Akim Demaille  <demaille@gostai.com>
41151         quote: fuse into quotearg
41152         This patch is made for the benefit of Bison.
41153         quote does not leave the choice of the quoting style to the user.
41154         quoting_style provides poor customizability, yet quoting_options,
41155         which is very rich, is hidden inside quotearg.c.  So in order to
41156         allow quote customization, move its implementation to quotearg.c.
41157         * lib/quote.c: Remove.
41158         * modules/quote: Adjust.
41159         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41160         warning: provide all the members of literal structs.
41161         (quote_quoting_options): New.
41162         (quote, quote_n): Import implementation from quote.c.
41163         * lib/quote.h: Import the comments from quote.c.
41164         (quote_quoting_options): New.
41166 2012-03-06  Bruno Haible  <bruno@clisp.org>
41168         Tests for module 'expm1l-ieee'.
41169         * modules/expm1l-ieee-tests: New file.
41170         * tests/test-expm1l-ieee.c: New file.
41172         New module 'expm1l-ieee'.
41173         * modules/expm1l-ieee: New file.
41175         Tests for module 'expm1f-ieee'.
41176         * modules/expm1f-ieee-tests: New file.
41177         * tests/test-expm1f-ieee.c: New file.
41179         New module 'expm1f-ieee'.
41180         * modules/expm1f-ieee: New file.
41182         Tests for module 'expm1-ieee'.
41183         * modules/expm1-ieee-tests: New file.
41184         * tests/test-expm1-ieee.c: New file.
41185         * tests/test-expm1-ieee.h: New file.
41187         New module 'expm1-ieee'.
41188         * modules/expm1-ieee: New file.
41189         * m4/expm1-ieee.m4: New file.
41190         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41191         whether expm1 works with a minus zero argument. Replace it if not.
41192         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41194         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41195         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41196         (Depends-on): Update conditions.
41197         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41198         AIX problem.
41200 2012-03-06  Bruno Haible  <bruno@clisp.org>
41202         Work around expm1f bug on IRIX 6.5.
41203         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41204         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41205         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41206         not work.
41207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41208         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41209         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41210         (Depends-on): Update conditions.
41211         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41213 2012-03-06  Bruno Haible  <bruno@clisp.org>
41215         Tests for module 'expm1l'.
41216         * modules/expm1l-tests: New file.
41217         * tests/test-expm1l.c: New file.
41219         New module 'expm1l'.
41220         * lib/math.in.h (expm1l): New declaration.
41221         * lib/expm1l.c: New file.
41222         * m4/expm1l.m4: New file.
41223         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41225         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41226         * modules/expm1l: New file.
41227         * tests/test-math-c++.cc: Check the declaration of expm1l.
41228         * doc/posix-functions/expm1l.texi: Mention the new module.
41230 2012-03-06  Bruno Haible  <bruno@clisp.org>
41232         Tests for module 'expm1f'.
41233         * modules/expm1f-tests: New file.
41234         * tests/test-expm1f.c: New file.
41236         New module 'expm1f'.
41237         * lib/math.in.h (expm1f): New declaration.
41238         * lib/expm1f.c: New file.
41239         * m4/expm1f.m4: New file.
41240         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41242         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41243         * modules/expm1f: New file.
41244         * tests/test-math-c++.cc: Check the declaration of expm1f.
41245         * doc/posix-functions/expm1f.texi: Mention the new module.
41247 2012-03-06  Bruno Haible  <bruno@clisp.org>
41249         Tests for module 'expm1'.
41250         * modules/expm1-tests: New file.
41251         * tests/test-expm1.c: New file.
41252         * tests/test-expm1.h: New file.
41254         New module 'expm1'.
41255         * lib/math.in.h (expm1): New declaration.
41256         * lib/expm1.c: New file.
41257         * m4/expm1.m4: New file.
41258         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41260         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41261         * modules/expm1: New file.
41262         * tests/test-math-c++.cc: Check the declaration of expm1.
41263         * doc/posix-functions/expm1.texi: Mention the new module.
41265 2012-03-06  Bruno Haible  <bruno@clisp.org>
41267         math: Ensure declarations of math functions.
41268         * modules/acosf (Depends-on): Add 'extensions'.
41269         * modules/asinf (Depends-on): Likewise.
41270         * modules/atan2f (Depends-on): Likewise.
41271         * modules/atanf (Depends-on): Likewise.
41272         * modules/cbrt (Depends-on): Likewise.
41273         * modules/cbrtf (Depends-on): Likewise.
41274         * modules/cbrtl (Depends-on): Likewise.
41275         * modules/copysignf (Depends-on): Likewise.
41276         * modules/copysignl (Depends-on): Likewise.
41277         * modules/cosf (Depends-on): Likewise.
41278         * modules/coshf (Depends-on): Likewise.
41279         * modules/expf (Depends-on): Likewise.
41280         * modules/fabsf (Depends-on): Likewise.
41281         * modules/fabsl (Depends-on): Likewise.
41282         * modules/fmaf (Depends-on): Likewise.
41283         * modules/fmal (Depends-on): Likewise.
41284         * modules/fmodf (Depends-on): Likewise.
41285         * modules/fmodl (Depends-on): Likewise.
41286         * modules/frexpf (Depends-on): Likewise.
41287         * modules/frexpl (Depends-on): Likewise.
41288         * modules/hypot (Depends-on): Likewise.
41289         * modules/hypotf (Depends-on): Likewise.
41290         * modules/hypotl (Depends-on): Likewise.
41291         * modules/ldexpf (Depends-on): Likewise.
41292         * modules/ldexpl (Depends-on): Likewise.
41293         * modules/log10f (Depends-on): Likewise.
41294         * modules/log10l (Depends-on): Likewise.
41295         * modules/log1p (Depends-on): Likewise.
41296         * modules/logb (Depends-on): Likewise.
41297         * modules/logf (Depends-on): Likewise.
41298         * modules/modff (Depends-on): Likewise.
41299         * modules/modfl (Depends-on): Likewise.
41300         * modules/powf (Depends-on): Likewise.
41301         * modules/remainderf (Depends-on): Likewise.
41302         * modules/remainderl (Depends-on): Likewise.
41303         * modules/rintf (Depends-on): Likewise.
41304         * modules/rintl (Depends-on): Likewise.
41305         * modules/sinf (Depends-on): Likewise.
41306         * modules/sinhf (Depends-on): Likewise.
41307         * modules/sqrtf (Depends-on): Likewise.
41308         * modules/tanf (Depends-on): Likewise.
41309         * modules/tanhf (Depends-on): Likewise.
41310         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41311         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41312         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41313         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41314         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41315         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41316         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41317         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41318         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41319         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41320         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41321         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41322         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41323         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41324         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41325         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41326         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41327         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41328         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41329         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41330         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41331         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41332         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41333         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41335         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41336         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41337         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41338         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41339         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41340         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41341         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41342         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41343         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41344         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41345         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41346         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41347         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41348         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41349         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41350         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41352 2012-03-06  Bruno Haible  <bruno@clisp.org>
41354         math: Update module names in warnings.
41355         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41356         tanl): Use specific module name in warn-on-use warning.
41358 2012-03-06  Bruno Haible  <bruno@clisp.org>
41360         expl: Simplify computation.
41361         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41363 2012-03-05  Bruno Haible  <bruno@clisp.org>
41365         exp* tests: More tests.
41366         * tests/test-exp.h: New file.
41367         * tests/test-exp.c: Include <float.h> and test-exp.h.
41368         (main): Invoke test_function.
41369         * tests/test-expf.c: Include <float.h> and test-exp.h.
41370         (main): Invoke test_function.
41371         * tests/test-expl.c: Include <float.h> and test-exp.h.
41372         (main): Invoke test_function.
41373         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41374         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41375         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41376         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41377         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41378         (Depends-on): Add 'float'.
41379         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41381         expl: Fix precision of computed result.
41382         * lib/expl.c: Completely rewritten.
41383         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41384         (Maintainer): Add me.
41385         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41387 2012-03-05  Bruno Haible  <bruno@clisp.org>
41389         cbrt* tests: More tests.
41390         * tests/test-cbrt.h: New file.
41391         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41392         (main): Invoke test_function.
41393         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41394         (main): Invoke test_function.
41395         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41396         (main): Invoke test_function.
41397         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41398         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41399         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41400         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41401         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41402         (Depends-on): Add 'float'.
41403         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41405 2012-03-05  Bruno Haible  <bruno@clisp.org>
41407         hypot* tests: More tests.
41408         * tests/test-hypot.h: New file, partially extracted from
41409         tests/test-hypotl.c.
41410         * tests/test-hypot.c: Include test-hypot.h.
41411         (main): Invoke test_function.
41412         * tests/test-hypotf.c: Include test-hypot.h.
41413         (main): Invoke test_function.
41414         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41415         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41416         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41417         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41418         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41419         tests/randomf.c.
41420         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41421         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41422         tests/randoml.c.
41423         (Depends-on): Add 'fpucw', 'float'.
41424         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41426 2012-03-05  Bruno Haible  <bruno@clisp.org>
41428         fpucw: Doc about FreeBSD.
41429         * lib/fpucw.h: Mention FreeBSD in comments.
41431 2012-03-04  Bruno Haible  <bruno@clisp.org>
41433         sqrt* tests: More tests.
41434         * tests/test-sqrt.h: New file.
41435         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41436         (main): Invoke test_function.
41437         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41438         (main): Invoke test_function.
41439         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41440         (main): Invoke test_function.
41441         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41442         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41443         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41444         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41445         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41446         (Depends-on): Add 'float'.
41447         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41449 2012-03-04  Bruno Haible  <bruno@clisp.org>
41451         remainder* tests: More tests.
41452         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41453         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41454         (main): Invoke test_function.
41455         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41456         (main): Invoke test_function.
41457         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41458         (main): Invoke test_function.
41459         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41460         tests/randomd.c.
41461         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41462         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41463         tests/randomf.c.
41464         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41465         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41466         tests/randoml.c.
41467         (Depends-on): Add 'float'.
41468         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41470 2012-03-04  Bruno Haible  <bruno@clisp.org>
41472         remainder, remainderf, remainderl: Fix computation for large quotients.
41473         * lib/remainder.c: Completely rewritten.
41474         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41475         USE_FLOAT.
41476         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41477         USE_LONG_DOUBLE.
41478         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41479         isnand, isinf. Remove round, fma.
41480         * modules/remainderf (Files): Add lib/remainder.c.
41481         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41482         Remove roundf, fmaf.
41483         * modules/remainderl (Files): Add lib/remainder.c.
41484         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41485         isinf. Remove roundl, fmal.
41486         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41487         REMAINDER_LIBM.
41488         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41489         REMAINDERF_LIBM.
41490         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41491         REMAINDERL_LIBM.
41493 2012-03-04  Bruno Haible  <bruno@clisp.org>
41495         fmod* tests: More tests.
41496         * tests/test-fmod.h (my_ldexp): New function.
41497         (test_function): Reduce amount of random numbers to test. Add tests
41498         of very large quotients x / y.
41499         * tests/test-fmod.c (MAX_EXP): New macro.
41500         * tests/test-fmodf.c (MAX_EXP): Likewise.
41501         * tests/test-fmodl.c (MAX_EXP): Likewise.
41503 2012-03-04  Bruno Haible  <bruno@clisp.org>
41505         fmod, fmodl: Fix computation for large quotients x / y.
41506         * lib/fmod.c: Completely rewritten.
41507         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41508         USE_LONG_DOUBLE.
41509         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41510         isnand. Remove fma.
41511         * modules/fmodl (Files): Add lib/fmod.c.
41512         (Depends-on): Add float, isfinite, signbit, fabsl,
41513         frexpl, ldexpl, isnanl. Remove fma.
41514         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41515         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41517 2012-03-03  Bruno Haible  <bruno@clisp.org>
41519         fmod* tests: More tests.
41520         * tests/test-fmod.h: New file.
41521         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41522         (main): Invoke test_function.
41523         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41524         (main): Invoke test_function.
41525         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41526         (main): Invoke test_function.
41527         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41528         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41529         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41530         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41531         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41532         (Depends-on): Add 'float'.
41533         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41535 2012-03-03  Bruno Haible  <bruno@clisp.org>
41537         rint* tests: More tests.
41538         * tests/test-rint.h: New file, partially extracted from
41539         tests/test-rintl.c.
41540         * tests/test-rint.c: Include test-rint.h.
41541         (main): Invoke test_function.
41542         * tests/test-rintf.c: Include test-rint.h.
41543         (main): Invoke test_function.
41544         * tests/test-rintl.c: Include test-rint.h.
41545         (main): Invoke test_function.
41546         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41547         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41548         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41549         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41550         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41551         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41553 2012-03-03  Bruno Haible  <bruno@clisp.org>
41555         modf* tests: More tests.
41556         * tests/test-modf.h: New file.
41557         * tests/test-modf.c: Include <float.h> and test-modf.h.
41558         (main): Invoke test_function.
41559         * tests/test-modff.c: Include <float.h> and test-modf.h.
41560         (main): Invoke test_function.
41561         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41562         (main): Invoke test_function.
41563         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41564         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41565         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41566         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41567         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41568         (Depends-on): Add 'float'.
41569         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41571 2012-03-03  Bruno Haible  <bruno@clisp.org>
41573         fabs* tests: More tests.
41574         * tests/test-fabs.h: New file, partially extracted from
41575         tests/test-fabsl.c.
41576         * tests/test-fabs.c (RANDOM): New macro.
41577         * tests/test-fabsf.c (RANDOM): New macro.
41578         * tests/test-fabsl.c (RANDOM): New macro.
41579         * modules/fabs-tests (Files): Add tests/randomd.c.
41580         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41581         * modules/fabsf-tests (Files): Add tests/randomf.c.
41582         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41583         * modules/fabsl-tests (Files): Add tests/randoml.c.
41584         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41586 2012-03-03  Bruno Haible  <bruno@clisp.org>
41588         ldexp* tests: More tests.
41589         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41590         * tests/test-ldexp.c (RANDOM): New macro.
41591         * tests/test-ldexpf.c (RANDOM): New macro.
41592         * tests/test-ldexpl.c (RANDOM): New macro.
41593         * modules/ldexp-tests (Files): Add tests/randomd.c.
41594         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41595         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41596         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41597         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41598         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41600 2012-03-03  Bruno Haible  <bruno@clisp.org>
41602         frexp* tests: More tests.
41603         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41604         * tests/test-frexp.c (RANDOM): New macro.
41605         * tests/test-frexpf.c (RANDOM): New macro.
41606         * tests/test-frexpl.c (RANDOM): New macro.
41607         * modules/frexp-tests (Files): Add tests/randomd.c.
41608         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41609         * modules/frexpf-tests (Files): Add tests/randomf.c.
41610         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41611         * modules/frexpl-tests (Files): Add tests/randoml.c.
41612         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41614 2012-03-03  Bruno Haible  <bruno@clisp.org>
41616         Support for pseudo-random numbers in tests.
41617         * tests/randomf.c: New file.
41618         * tests/randomd.c: New file.
41619         * tests/randoml.c: New file.
41620         * tests/macros.h (randomf, randomd, randoml): New declarations.
41622 2012-03-03  Bruno Haible  <bruno@clisp.org>
41624         frexp* tests: Refactor.
41625         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41626         * tests/test-frexp.c: Include and use it.
41627         * tests/test-frexpf.c: Likewise.
41628         * tests/test-frexpl.c: Likewise.
41629         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41630         * modules/frexpf-tests (Files): Likewise.
41631         * modules/frexpl-tests (Files): Likewise.
41633 2012-03-02  Jim Meyering  <meyering@redhat.com>
41635         maint: don't specify XZ_OPT=-9ev in dist-related rule
41636         Using xz's -9 option is warranted only if you have a very large
41637         tarball (see xz's documentation for the sizes vs. presets), and
41638         requires 64MiB of memory at decompression time.
41639         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41640         Automake's default of just "-e" is fine.  Override on a
41641         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41643 2012-03-01  Eric Blake  <eblake@redhat.com>
41645         maint.mk: allow announcement for non-gnulib project
41646         * maint.mk (announcement): Skip gnulib version if not used.
41648 2012-03-01  Jim Meyering  <meyering@redhat.com>
41650         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41651         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41652         envvar settings cannot interfere.  Otherwise, setting envvars like
41653         prohibit=foo require=bar, etc. would cause spurious test failures.
41655 2012-03-01  Eric Blake  <eblake@redhat.com>
41657         maint.mk: add per-line exclusions to prohibitions
41658         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41659         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41660         (sc_const_long_option): Use it.
41662 2012-03-01  Bruno Haible  <bruno@clisp.org>
41664         Tests for module 'expl-ieee'.
41665         * modules/expl-ieee-tests: New file.
41666         * tests/test-expl-ieee.c: New file.
41668         New module 'expl-ieee'.
41669         * modules/expl-ieee: New file.
41671         Tests for module 'exp-ieee'.
41672         * modules/exp-ieee-tests: New file.
41673         * tests/test-exp-ieee.c: New file.
41675         New module 'exp-ieee'.
41676         * modules/exp-ieee: New file.
41678         Tests for module 'expf-ieee'.
41679         * modules/expf-ieee-tests: New file.
41680         * tests/test-expf-ieee.c: New file.
41681         * tests/test-exp-ieee.h: New file.
41683         New module 'expf-ieee'.
41684         * modules/expf-ieee: New file.
41686 2012-02-29  Bruno Haible  <bruno@clisp.org>
41688         cbrtl-ieee: Work around test failure on IRIX 6.5.
41689         * m4/cbrtl-ieee.m4: New file.
41690         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41691         test whether cbrtl works with a minus zero argument. Replace it if not.
41692         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41694         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41695         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41696         (Depends-on): Update conditions.
41697         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41698         m4/signbit.m4.
41699         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41700         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41701         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41703         Tests for module 'cbrtl-ieee'.
41704         * modules/cbrtl-ieee-tests: New file.
41705         * tests/test-cbrtl-ieee.c: New file.
41707         New module 'cbrtl-ieee'.
41708         * modules/cbrtl-ieee: New file.
41710         Tests for module 'cbrt-ieee'.
41711         * modules/cbrt-ieee-tests: New file.
41712         * tests/test-cbrt-ieee.c: New file.
41714         New module 'cbrt-ieee'.
41715         * modules/cbrt-ieee: New file.
41717         Tests for module 'cbrtf-ieee'.
41718         * modules/cbrtf-ieee-tests: New file.
41719         * tests/test-cbrtf-ieee.c: New file.
41720         * tests/test-cbrt-ieee.h: New file.
41722         New module 'cbrtf-ieee'.
41723         * modules/cbrtf-ieee: New file.
41725 2012-02-29  Bruno Haible  <bruno@clisp.org>
41727         cbrtf: Work around bug in IRIX 6.5 system function.
41728         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41729         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41730         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41731         work.
41732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41733         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41734         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41735         (Depends-on): Update conditions.
41736         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41738 2012-02-29  Bruno Haible  <bruno@clisp.org>
41740         Tests for module 'cbrtl'.
41741         * modules/cbrtl-tests: New file.
41742         * tests/test-cbrtl.c: New file.
41744         New module 'cbrtl'.
41745         * lib/math.in.h (cbrtl): New declaration.
41746         * lib/cbrtl.c: New file.
41747         * m4/cbrtl.m4: New file.
41748         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41750         HAVE_DECL_CBRTL.
41751         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41752         HAVE_DECL_CBRTL.
41753         * modules/cbrtl: New file.
41754         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41755         * doc/posix-functions/cbrtl.texi: Mention the new module.
41757 2012-02-29  Bruno Haible  <bruno@clisp.org>
41759         Tests for module 'cbrtf'.
41760         * modules/cbrtf-tests: New file.
41761         * tests/test-cbrtf.c: New file.
41763         New module 'cbrtf'.
41764         * lib/math.in.h (cbrtf): New declaration.
41765         * lib/cbrtf.c: New file.
41766         * m4/cbrtf.m4: New file.
41767         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41769         HAVE_DECL_CBRTF.
41770         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41771         HAVE_DECL_CBRTF.
41772         * modules/cbrtf: New file.
41773         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41774         * doc/posix-functions/cbrtf.texi: Mention the new module.
41776 2012-02-29  Bruno Haible  <bruno@clisp.org>
41778         cbrt: Provide replacement on MSVC and Minix.
41779         * lib/math.in.h (cbrt): New declaration.
41780         * lib/cbrt.c: New file.
41781         * m4/cbrt.m4: New file.
41782         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41784         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41785         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41786         (Depends-on): Add dependencies.
41787         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41788         * tests/test-math-c++.cc: Check the declaration of cbrt.
41789         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41790         replacement.
41792 2012-02-29  Bruno Haible  <bruno@clisp.org>
41794         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41795         * m4/hypotl-ieee.m4: New file.
41796         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41797         test whether hypotl works with mixed NaN and Infinity arguments.
41798         Replace it if not.
41799         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41801         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41802         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41803         (Depends-on): Update conditions.
41804         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41805         (Depends-on): Add hypot-ieee.
41806         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41807         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41809         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41810         * m4/hypotf-ieee.m4: New file.
41811         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41812         test whether hypotf works with mixed NaN and Infinity arguments.
41813         Replace it if not.
41814         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41815         (Depends-on): Add hypot-ieee.
41816         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41817         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41819         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41820         * lib/math.in.h (hypot): New declaration.
41821         * lib/hypot.c: New file.
41822         * m4/hypot-ieee.m4: New file.
41823         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41824         whether hypot works with mixed NaN and Infinity arguments. Replace it
41825         if not.
41826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41827         REPLACE_HYPOT.
41828         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41829         * modules/hypot (Files): Add lib/hypot.c.
41830         (Depends-on): Add dependencies.
41831         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41832         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41833         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41834         * tests/test-math-c++.cc: Check the declaration of hypot.
41835         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41837         Tests for module 'hypotl-ieee'.
41838         * modules/hypotl-ieee-tests: New file.
41839         * tests/test-hypotl-ieee.c: New file.
41841         New module 'hypotl-ieee'.
41842         * modules/hypotl-ieee: New file.
41844         Tests for module 'hypot-ieee'.
41845         * modules/hypot-ieee-tests: New file.
41846         * tests/test-hypot-ieee.c: New file.
41848         New module 'hypot-ieee'.
41849         * modules/hypot-ieee: New file.
41851         Tests for module 'hypotf-ieee'.
41852         * modules/hypotf-ieee-tests: New file.
41853         * tests/test-hypotf-ieee.c: New file.
41854         * tests/test-hypot-ieee.h: New file.
41856         New module 'hypotf-ieee'.
41857         * modules/hypotf-ieee: New file.
41859 2012-02-29  Bruno Haible  <bruno@clisp.org>
41861         Remove unused variables.
41862         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41863         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41864         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41865         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41867 2012-02-29  Eric Blake  <eblake@redhat.com>
41869         termios: fix pid_t always, not just for tcgetsid
41870         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41871         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41872         just when building tcgetsid.
41874 2012-02-29  Bruno Haible  <bruno@clisp.org>
41876         Tests for module 'hypotl'.
41877         * modules/hypotl-tests: New file.
41878         * tests/test-hypotl.c: New file.
41880         New module 'hypotl'.
41881         * lib/math.in.h (hypotl): New declaration.
41882         * lib/hypotl.c: New file.
41883         * m4/hypotl.m4: New file.
41884         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41886         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41887         * modules/hypotl: New file.
41888         * tests/test-math-c++.cc: Check the hypotl declaration.
41889         * doc/posix-functions/hypotl.texi: Mention the new module.
41891 2012-02-29  Eric Blake  <eblake@redhat.com>
41893         tcgetsid: fix cygwin header bug
41894         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41896         docs: update cygwin progress
41897         * doc/posix-functions/llround.texi (llround): Added in cygwin
41898         1.7.8.
41899         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41900         * doc/glibc-functions/program_invocation_name.texi
41901         (program_invocation_name): Likewise.
41902         * doc/glibc-functions/program_invocation_short_name.texi
41903         (program_invocation_short_name): Likewise.
41904         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41905         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41906         Likewise.
41907         * doc/posix-functions/pthread_spin_destroy.texi
41908         (pthread_spin_destroy): Added in cygwin 1.7.10.
41909         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41910         Likewise.
41911         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41912         Likewise.
41913         * doc/posix-functions/pthread_spin_trylock.texi
41914         (pthread_spin_trylock): Likewise.
41915         * doc/posix-functions/pthread_spin_unlock.texi
41916         (pthread_spin_unlock): Likewise.
41917         * doc/posix-functions/pthread_setschedprio.texi
41918         (pthread_setschedprio): Likewise.
41919         * doc/posix-functions/pthread_attr_getstack.texi
41920         (pthread_attr_getstack): Likewise.
41921         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41922         (pthread_attr_getstackaddr): Likewise.
41923         * doc/glibc-functions/pthread_getattr_np.texi
41924         (pthread_getattr_np): Likewise.
41925         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41926         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41927         * doc/posix-functions/clock_settime.texi (clock_settime):
41928         Likewise.
41929         * doc/posix-functions/pthread_attr_getguardsize.texi
41930         (pthread_attr_getguardsize): Likewise.
41931         * doc/posix-functions/pthread_attr_setguardsize.texi
41932         (pthread_attr_setguardsize): Likewise.
41933         * doc/posix-functions/pthread_attr_setstack.texi
41934         (pthread_attr_setstack): Likewise.
41935         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41936         (pthread_attr_setstackaddr): Likewise.
41937         * doc/posix-functions/clock_getcpuclockid.texi
41938         (clock_getcpuclockid): Likewise.
41939         * doc/posix-functions/pthread_getcpuclockid.texi
41940         (pthread_getcpuclockid): Likewise.
41941         * doc/glibc-functions/error.texi (error): Likewise.
41942         * doc/glibc-functions/error_at_line.texi (error_at_line):
41943         Likewise.
41944         * doc/glibc-functions/error_message_count.texi
41945         (error_message_count): Likewise.
41946         * doc/glibc-functions/error_one_per_line.texi
41947         (error_one_per_line): Likewise.
41948         * doc/glibc-functions/error_print_progname.texi
41949         (error_print_progname): Likewise.
41950         * doc/posix-functions/pthread_condattr_getclock.texi
41951         (pthread_condattr_getclock): Likewise.
41952         * doc/posix-functions/pthread_condattr_setclock.texi
41953         (pthread_condattr_setclock): Likewise.
41954         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41955         Likewise.
41956         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41957         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41958         * doc/glibc-functions/get_current_dir_name.texi
41959         (get_current_dir_name): Likewise.
41960         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41961         Likewise.
41962         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41963         wrong return type.
41964         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41965         1.7.11.
41967 2012-02-29  Bruno Haible  <bruno@clisp.org>
41969         Tests for module 'hypotf'.
41970         * modules/hypotf-tests: New file.
41971         * tests/test-hypotf.c: New file.
41973         New module 'hypotf'.
41974         * lib/math.in.h (hypotf): New declaration.
41975         * lib/hypotf.c: New file.
41976         * m4/hypotf.m4: New file.
41977         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41979         REPLACE_HYPOTF.
41980         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41981         REPLACE_HYPOTF.
41982         * modules/hypotf: New file.
41983         * tests/test-math-c++.cc: Check the hypotf declaration.
41984         * doc/posix-functions/hypotf.texi: Mention the new module.
41986         hypot: Prepare for hypotf module.
41987         * m4/hypot.m4: New file.
41988         * modules/hypot (Files): Add m4/hypot.m4.
41989         (configure.ac): Invoke gl_FUNC_HYPOT.
41991 2012-02-29  Bruno Haible  <bruno@clisp.org>
41993         hypot tests: More tests.
41994         * tests/test-hypot.c: Include <float.h>.
41995         (main): Add tests about overflow and underflow.
41997 2012-02-29  Bruno Haible  <bruno@clisp.org>
41999         math code: Add comments.
42000         * lib/acosl.c: Add comment about related glibc source files.
42001         * lib/asinl.c: Likewise.
42002         * lib/atanl.c: Likewise.
42003         * lib/expl.c: Likewise.
42004         * lib/logl.c: Likewise.
42005         * lib/sincosl.c: Likewise.
42006         * lib/sinl.c: Likewise.
42007         * lib/tanl.c: Likewise.
42008         * lib/trigl.c: Likewise.
42009         * lib/cosl.c: Likewise. Fix comments.
42011 2012-02-28  Bruno Haible  <bruno@clisp.org>
42013         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42014         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42015         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42016         HUGE_VALL are defined.
42017         (numeric_equald): Renamed from numeric_equal.
42018         (numeric_equalf, numeric_equall): New functions.
42019         (main): Check also HUGE_VALF, HUGE_VALL.
42020         * modules/math-tests (Files): Add tests/macros.h.
42021         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42022         HUGE_VALL.
42024 2012-02-28  Bruno Haible  <bruno@clisp.org>
42026         doc: Move ISO C11 feature notes into POSIX chapters.
42027         * doc/posix-functions/aligned_alloc.texi: Renamed from
42028         doc/glibc-functions/aligned_alloc.texi.
42029         * doc/posix-functions/quick_exit.texi: Renamed from
42030         doc/glibc-functions/quick_exit.texi.
42031         * doc/posix-headers/uchar.texi: Renamed from
42032         doc/glibc-headers/uchar.texi.
42033         * doc/posix-functions/c16rtomb.texi: Renamed from
42034         doc/glibc-functions/c16rtomb.texi.
42035         * doc/posix-functions/c32rtomb.texi: Renamed from
42036         doc/glibc-functions/c32rtomb.texi.
42037         * doc/posix-functions/mbrtoc16.texi: Renamed from
42038         doc/glibc-functions/mbrtoc16.texi.
42039         * doc/posix-functions/mbrtoc32.texi: Renamed from
42040         doc/glibc-functions/mbrtoc32.texi.
42041         * doc/gnulib.texi: Update.
42042         (Glibc uchar.h): Remove section.
42043         Suggested by Eric Blake.
42045 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42047         stdnoreturn: port to MSVC better
42048         MSVC standard headers use __declspec(noreturn), so #define noreturn
42049         to empty on that platform.  Reported by Bruno Haible in
42050         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42051         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42052         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42054 2012-02-28  Bruno Haible  <bruno@clisp.org>
42056         doc: Mention new glibc headers and functions.
42057         * doc/glibc-headers/uchar.texi: New file.
42058         * doc/glibc-functions/aligned_alloc.texi: New file.
42059         * doc/glibc-functions/c16rtomb.texi: New file.
42060         * doc/glibc-functions/c32rtomb.texi: New file.
42061         * doc/glibc-functions/clock_adjtime.texi: New file.
42062         * doc/glibc-functions/fanotify_init.texi: New file.
42063         * doc/glibc-functions/fanotify_mark.texi: New file.
42064         * doc/glibc-functions/inet6_opt_append.texi: New file.
42065         * doc/glibc-functions/inet6_opt_find.texi: New file.
42066         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42067         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42068         * doc/glibc-functions/inet6_opt_init.texi: New file.
42069         * doc/glibc-functions/inet6_opt_next.texi: New file.
42070         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42071         * doc/glibc-functions/inet6_rth_add.texi: New file.
42072         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42073         * doc/glibc-functions/inet6_rth_init.texi: New file.
42074         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42075         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42076         * doc/glibc-functions/inet6_rth_space.texi: New file.
42077         * doc/glibc-functions/login.texi: New file.
42078         * doc/glibc-functions/mbrtoc16.texi: New file.
42079         * doc/glibc-functions/mbrtoc32.texi: New file.
42080         * doc/glibc-functions/name_to_handle_at.texi: New file.
42081         * doc/glibc-functions/ntp_gettimex.texi: New file.
42082         * doc/glibc-functions/open_by_handle_at.texi: New file.
42083         * doc/glibc-functions/prlimit.texi: New file.
42084         * doc/glibc-functions/process_vm_readv.texi: New file.
42085         * doc/glibc-functions/process_vm_writev.texi: New file.
42086         * doc/glibc-functions/recvmmsg.texi: New file.
42087         * doc/glibc-functions/scandirat.texi: New file.
42088         * doc/glibc-functions/sendmmsg.texi: New file.
42089         * doc/glibc-functions/setns.texi: New file.
42090         * doc/glibc-functions/timespec_get.texi: New file.
42091         * doc/gnulib.texi: Include them.
42092         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42093         sections.
42094         Reported by Eric Blake.
42096 2012-02-28  Bruno Haible  <bruno@clisp.org>
42098         Avoid compilation errors with MSVC option -fp:strict.
42099         * lib/floor.c: Use MSVC specific pragma fenv_access.
42100         * lib/ceil.c: Likewise.
42101         * lib/trunc.c: Likewise.
42102         * lib/round.c: Likewise.
42103         * lib/rint.c: Likewise.
42104         * lib/fma.c: Likewise.
42105         * lib/integer_length.c: Likewise.
42106         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42108         * tests/test-floor2.c: Likewise.
42109         * tests/test-floorf2.c: Likewise.
42110         * tests/test-ceil2.c: Likewise.
42111         * tests/test-ceilf2.c: Likewise.
42112         * tests/test-trunc2.c: Likewise.
42113         * tests/test-truncf2.c: Likewise.
42114         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42116 2012-02-27  Bruno Haible  <bruno@clisp.org>
42118         Tests for module 'sqrtl-ieee'.
42119         * modules/sqrtl-ieee-tests: New file.
42120         * tests/test-sqrtl-ieee.c: New file.
42122         New module 'sqrtl-ieee'.
42123         * modules/sqrtl-ieee: New file.
42125         Tests for module 'sqrt-ieee'.
42126         * modules/sqrt-ieee-tests: New file.
42127         * tests/test-sqrt-ieee.c: New file.
42129         New module 'sqrt-ieee'.
42130         * modules/sqrt-ieee: New file.
42132         Tests for module 'sqrtf-ieee'.
42133         * modules/sqrtf-ieee-tests: New file.
42134         * tests/test-sqrtf-ieee.c: New file.
42135         * tests/test-sqrt-ieee.h: New file.
42137         New module 'sqrtf-ieee'.
42138         * modules/sqrtf-ieee: New file.
42140 2012-02-27  Bruno Haible  <bruno@clisp.org>
42142         remainderl-ieee: Work around test failure on OSF/1.
42143         * m4/remainderl-ieee.m4: New file.
42144         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42145         present, test whether remainderl works with a zero second argument.
42146         Replace it if not.
42147         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42149         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42150         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42151         (Depends-on): Update conditions.
42152         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42153         (Depends-on): Add remainder-ieee.
42154         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42155         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42156         module.
42158         remainderf-ieee: Work around test failure on OSF/1.
42159         * m4/remainderf-ieee.m4: New file.
42160         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42161         present, test whether remainderf works with a zero second argument.
42162         Replace it if not.
42163         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42165         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42166         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42167         (Depends-on): Update conditions.
42168         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42169         (Depends-on): Add remainder-ieee.
42170         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42171         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42172         module.
42174         remainder-ieee: Work around test failure on OSF/1.
42175         * m4/remainder-ieee.m4: New file.
42176         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42177         present, test whether remainder works with a zero second argument.
42178         Replace it if not.
42179         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42181         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42182         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42183         (Depends-on): Update dependencies.
42184         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42185         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42186         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42188         Tests for module 'remainderl-ieee'.
42189         * modules/remainderl-ieee-tests: New file.
42190         * tests/test-remainderl-ieee.c: New file.
42192         New module 'remainderl-ieee'.
42193         * modules/remainderl-ieee: New file.
42195         Tests for module 'remainder-ieee'.
42196         * modules/remainder-ieee-tests: New file.
42197         * tests/test-remainder-ieee.c: New file.
42199         New module 'remainder-ieee'.
42200         * modules/remainder-ieee: New file.
42202         Tests for module 'remainderf-ieee'.
42203         * modules/remainderf-ieee-tests: New file.
42204         * tests/test-remainderf-ieee.c: New file.
42205         * tests/test-remainder-ieee.h: New file.
42207         New module 'remainderf-ieee'.
42208         * modules/remainderf-ieee: New file.
42210 2012-02-27  Bruno Haible  <bruno@clisp.org>
42212         modff, modfl: Fix configure syntax error.
42213         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42214         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42216 2012-02-27  Bruno Haible  <bruno@clisp.org>
42218         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42219         * m4/fmodl-ieee.m4: New file.
42220         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42221         whether fmodl works with zero arguments. Replace it if not.
42222         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42223         (Depends-on): Add fmod-ieee.
42224         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42225         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42227         fmodf-ieee: Work around test failure on OSF/1.
42228         * m4/fmodf-ieee.m4: New file.
42229         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42230         whether fmodf works with zero arguments. Replace it if not.
42231         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42233         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42234         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42235         (Depends-on): Update dependencies.
42236         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42237         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42238         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42240         fmodf-ieee: Work around test failure on MSVC 9.
42241         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42242         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42244         fmod-ieee: Work around test failures on OSF/1, mingw.
42245         * m4/fmod-ieee.m4: New file.
42246         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42247         whether fmod works with zero arguments. Replace it if not.
42248         * lib/math.in.h (fmod): New declaration.
42249         * lib/fmod.c: New file.
42250         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42252         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42253         * modules/fmod (Files): Add lib/fmod.c.
42254         (Depends-on): Add math, isinf, trunc, fma.
42255         (configure.ac): Arrange to compile lib/fmod.c if needed.
42256         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42257         m4/signbit.m4.
42258         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42259         * tests/test-math-c++.cc: Check the declaration of fmod.
42260         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42262         fmodl-ieee: Fix test failures.
42263         * lib/fmodl.c (fmodl): Treat Inf specially.
42264         * modules/fmodl (Depends-on): Add isinf.
42266         Tests for module 'fmodl-ieee'.
42267         * modules/fmodl-ieee-tests: New file.
42268         * tests/test-fmodl-ieee.c: New file.
42270         New module 'fmodl-ieee'.
42271         * modules/fmodl-ieee: New file.
42273         Tests for module 'fmod-ieee'.
42274         * modules/fmod-ieee-tests: New file.
42275         * tests/test-fmod-ieee.c: New file.
42277         New module 'fmod-ieee'.
42278         * modules/fmod-ieee: New file.
42280         Tests for module 'fmodf-ieee'.
42281         * modules/fmodf-ieee-tests: New file.
42282         * tests/test-fmodf-ieee.c: New file.
42283         * tests/test-fmod-ieee.h: New file.
42285         New module 'fmodf-ieee'.
42286         * modules/fmodf-ieee: New file.
42288 2012-02-27  Bruno Haible  <bruno@clisp.org>
42290         Tests for module 'rintl-ieee'.
42291         * modules/rintl-ieee-tests: New file.
42292         * tests/test-rintl-ieee.c: New file.
42294         New module 'rintl-ieee'.
42295         * modules/rintl-ieee: New file.
42297         Tests for module 'rint-ieee'.
42298         * modules/rint-ieee-tests: New file.
42299         * tests/test-rint-ieee.c: New file.
42301         New module 'rint-ieee'.
42302         * modules/rint-ieee: New file.
42304         Tests for module 'rintf-ieee'.
42305         * modules/rintf-ieee-tests: New file.
42306         * tests/test-rintf-ieee.c: New file.
42307         * tests/test-rint-ieee.h: New file.
42309         New module 'rintf-ieee'.
42310         * modules/rintf-ieee: New file.
42312 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42314         regex: re_search etc. should return -2 when memory exhausted
42315         This bug was uncovered when testing 'grep'.  Without the fix,
42316         re_search and friends return -1 when memory is exhausted, but -1
42317         means no match, and this causes grep to falsely report no-match
42318         instead of memory-exhaustion.  See
42319         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42320         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42321         trouble; this can occur if re_search_internal ran out of memory.
42323 2012-02-26  Bruno Haible  <bruno@clisp.org>
42325         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42326         * m4/modfl-ieee.m4: New file.
42327         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42328         whether modfl works with Inf. Replace it if not.
42329         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42331         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42332         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42333         (Depends-on): Update dependencies.
42334         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42335         m4/signbit.m4.
42336         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42337         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42339         modfl-ieee: Fix dependencies.
42340         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42342         modfl-ieee: Fix test failures.
42343         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42344         * modules/modfl (Depends-on): Add isfinite, isinf.
42346         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42347         * m4/modff-ieee.m4: New file.
42348         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42349         whether modff works with NaN and Inf. Replace it if not.
42350         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42352         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42353         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42354         (Depends-on): Update dependencies.
42355         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42356         m4/signbit.m4.
42357         (Depends-on): Add modf-ieee.
42358         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42359         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42361         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42362         * m4/modf-ieee.m4: New file.
42363         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42364         whether modf works with NaN and Inf. Replace it if not.
42365         * lib/math.in.h (modf): New declaration.
42366         * lib/modf.c: New file.
42367         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42369         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42370         * modules/modf (Files): Add lib/modf.c.
42371         (Depends-on): Add math, isfinite, trunc, isinf.
42372         (configure.ac): Addrange to compile lib/modf.c if needed.
42373         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42374         m4/signbit.m4.
42375         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42376         * tests/test-math-c++.cc: Check the declaration of modf.
42377         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42379         Tests for module 'modfl-ieee'.
42380         * modules/modfl-ieee-tests: New file.
42381         * tests/test-modfl-ieee.c: New file.
42383         New module 'modfl-ieee'.
42384         * modules/modfl-ieee: New file.
42386         Tests for module 'modf-ieee'.
42387         * modules/modf-ieee-tests: New file.
42388         * tests/test-modf-ieee.c: New file.
42390         New module 'modf-ieee'.
42391         * modules/modf-ieee: New file.
42393         Tests for module 'modff-ieee'.
42394         * modules/modff-ieee-tests: New file.
42395         * tests/test-modff-ieee.c: New file.
42396         * tests/test-modf-ieee.h: New file.
42398         New module 'modff-ieee'.
42399         * modules/modff-ieee: New file.
42401 2012-02-26  Bruno Haible  <bruno@clisp.org>
42403         Tests for module 'fabsl-ieee'.
42404         * modules/fabsl-ieee-tests: New file.
42405         * tests/test-fabsl-ieee.c: New file.
42407         New module 'fabsl-ieee'.
42408         * modules/fabsl-ieee: New file.
42410         Tests for module 'fabs-ieee'.
42411         * modules/fabs-ieee-tests: New file.
42412         * tests/test-fabs-ieee.c: New file.
42414         New module 'fabs-ieee'.
42415         * modules/fabs-ieee: New file.
42417         Tests for module 'fabsf-ieee'.
42418         * modules/fabsf-ieee-tests: New file.
42419         * tests/test-fabsf-ieee.c: New file.
42420         * tests/test-fabs-ieee.h: New file.
42422         New module 'fabsf-ieee'.
42423         * modules/fabsf-ieee: New file.
42425 2012-02-26  Bruno Haible  <bruno@clisp.org>
42427         Tests for module 'fmal-ieee'.
42428         * modules/fmal-ieee-tests: New file.
42429         * tests/test-fmal-ieee.c: New file.
42431         New module 'fmal-ieee'.
42432         * modules/fmal-ieee: New file.
42434         Tests for module 'fma-ieee'.
42435         * modules/fma-ieee-tests: New file.
42436         * tests/test-fma-ieee.c: New file.
42438         New module 'fma-ieee'.
42439         * modules/fma-ieee: New file.
42441         Tests for module 'fmaf-ieee'.
42442         * modules/fmaf-ieee-tests: New file.
42443         * tests/test-fmaf-ieee.c: New file.
42444         * tests/test-fma-ieee.h: New file.
42446         New module 'fmaf-ieee'.
42447         * modules/fmaf-ieee: New file.
42449 2012-02-26  Bruno Haible  <bruno@clisp.org>
42451         Tests for module 'ldexpl-ieee'.
42452         * modules/ldexpl-ieee-tests: New file.
42453         * tests/test-ldexpl-ieee.c: New file.
42455         New module 'ldexpl-ieee'.
42456         * modules/ldexpl-ieee: New file.
42458         Tests for module 'ldexp-ieee'.
42459         * modules/ldexp-ieee-tests: New file.
42460         * tests/test-ldexp-ieee.c: New file.
42462         New module 'ldexp-ieee'.
42463         * modules/ldexp-ieee: New file.
42465         Tests for module 'ldexpf-ieee'.
42466         * modules/ldexpf-ieee-tests: New file.
42467         * tests/test-ldexpf-ieee.c: New file.
42468         * tests/test-ldexp-ieee.h: New file.
42470         New module 'ldexpf-ieee'.
42471         * modules/ldexpf-ieee: New file.
42473 2012-02-26  Bruno Haible  <bruno@clisp.org>
42475         Refactor frexp*-ieee tests.
42476         * tests/test-frexp-ieee.h: New file.
42477         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42478         (main): Just call test_function.
42479         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42480         (main): Just call test_function.
42481         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42482         (main): Just call test_function.
42483         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42484         * modules/frexp-ieee-tests (Files): Likewise.
42485         * modules/frexpl-ieee-tests (Files): Likewise.
42487         Tests for module 'frexpl-ieee'.
42488         * modules/frexpl-ieee-tests: New file.
42489         * tests/test-frexpl-ieee.c: New file.
42491         New module 'frexpl-ieee'.
42492         * modules/frexpl-ieee: New file.
42494         Tests for module 'frexp-ieee'.
42495         * modules/frexp-ieee-tests: New file.
42496         * tests/test-frexp-ieee.c: New file.
42498         New module 'frexp-ieee'.
42499         * modules/frexp-ieee: New file.
42501         Tests for module 'frexpf-ieee'.
42502         * modules/frexpf-ieee-tests: New file.
42503         * tests/test-frexpf-ieee.c: New file.
42505         New module 'frexpf-ieee'.
42506         * modules/frexpf-ieee: New file.
42508 2012-02-26  Bruno Haible  <bruno@clisp.org>
42510         roundl-ieee tests: More tests.
42511         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42512         (main): Add tests for [MX] shaded specification in POSIX.
42513         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42514         (Depends-on): Add isnanl-nolibm.
42516         round-ieee tests: More tests.
42517         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42518         (main): Add tests for [MX] shaded specification in POSIX.
42519         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42520         (Depends-on): Add isnand-nolibm.
42522         roundf-ieee tests: More tests.
42523         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42524         (main): Add tests for [MX] shaded specification in POSIX.
42525         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42526         (Depends-on): Add isnanf-nolibm.
42528         truncl-ieee tests: More tests.
42529         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42530         (main): Add tests for [MX] shaded specification in POSIX.
42531         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42532         (Depends-on): Add isnanl-nolibm.
42534         trunc-ieee tests: More tests.
42535         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42536         (main): Add tests for [MX] shaded specification in POSIX.
42537         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42538         (Depends-on): Add isnand-nolibm.
42540         truncf-ieee tests: More tests.
42541         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42542         (main): Add tests for [MX] shaded specification in POSIX.
42543         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42544         (Depends-on): Add isnanf-nolibm.
42546         ceill-ieee tests: More tests.
42547         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42548         (main): Add tests for [MX] shaded specification in POSIX.
42549         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42550         (Depends-on): Add isnanl-nolibm.
42552         ceil-ieee tests: More tests.
42553         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42554         (main): Add tests for [MX] shaded specification in POSIX.
42555         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42556         (Depends-on): Add isnand-nolibm.
42558         ceilf-ieee tests: More tests.
42559         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42560         (main): Add tests for [MX] shaded specification in POSIX.
42561         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42562         (Depends-on): Add isnanf-nolibm.
42564         floorl-ieee tests: More tests.
42565         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42566         (main): Add tests for [MX] shaded specification in POSIX.
42567         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42568         (Depends-on): Add isnanl-nolibm.
42570         floor-ieee tests: More tests.
42571         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42572         (main): Add tests for [MX] shaded specification in POSIX.
42573         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42574         (Depends-on): Add isnand-nolibm.
42576         floorf-ieee tests: More tests.
42577         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42578         (main): Add tests for [MX] shaded specification in POSIX.
42579         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42580         (Depends-on): Add isnanf-nolibm.
42582 2012-02-26  Bruno Haible  <bruno@clisp.org>
42584         fpieee: More comments.
42585         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42587 2012-02-25  Bruno Haible  <bruno@clisp.org>
42589         Tests for module 'log10l'.
42590         * modules/log10l-tests: New file.
42591         * tests/test-log10l.c: New file.
42592         * tests/test-math-c++.cc: Check the declaration of log10l.
42594         New module 'log10l'.
42595         * lib/math.in.h (log10l): New declaration.
42596         * lib/log10l.c: New file.
42597         * m4/log10l.m4: New file.
42598         * modules/log10l: New file.
42599         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42601         HAVE_DECL_LOG10L.
42602         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42603         HAVE_DECL_LOG10L.
42604         * doc/posix-functions/log10l.texi: Mention the new module.
42606 2012-02-25  Bruno Haible  <bruno@clisp.org>
42608         fmodl, remainder*: Avoid wrong results due to rounding errors.
42609         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42610         expected bounds.
42611         * lib/remainderf.c (remainderf): Likewise.
42612         * lib/remainder.c (remainder): Likewise.
42613         * lib/remainderl.c (remainderl): Likewise.
42615 2012-02-25  Bruno Haible  <bruno@clisp.org>
42617         Tests for module 'remainderl'.
42618         * modules/remainderl-tests: New file.
42619         * tests/test-remainderl.c: New file.
42620         * tests/test-math-c++.cc: Check the declaration of remainderl.
42622         New module 'remainderl'.
42623         * lib/math.in.h (remainderl): New declaration.
42624         * lib/remainderl.c: New file.
42625         * m4/remainderl.m4: New file.
42626         * modules/remainderl: New file.
42627         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42629         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42630         HAVE_REMAINDERL.
42631         * doc/posix-functions/remainderl.texi: Mention the new module.
42633 2012-02-25  Bruno Haible  <bruno@clisp.org>
42635         Tests for module 'remainderf'.
42636         * modules/remainderf-tests: New file.
42637         * tests/test-remainderf.c: New file.
42638         * tests/test-math-c++.cc: Check the declaration of remainderf.
42640         New module 'remainderf'.
42641         * lib/math.in.h (remainderf): New declaration.
42642         * lib/remainderf.c: New file.
42643         * m4/remainderf.m4: New file.
42644         * modules/remainderf: New file.
42645         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42647         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42648         HAVE_REMAINDERF.
42649         * doc/posix-functions/remainderf.texi: Mention the new module.
42651 2012-02-25  Bruno Haible  <bruno@clisp.org>
42653         remainder: Support for MSVC.
42654         * lib/math.in.h (remainder): New declaration.
42655         * lib/remainder.c: New file.
42656         * m4/remainder.m4: New file.
42657         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42658         (Depends-on): Add math, round, fma.
42659         (configure.ac): Use results of gl_FUNC_REMAINDER.
42660         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42662         HAVE_DECL_REMAINDER.
42663         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42664         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42665         * tests/test-math-c++.cc: Check the declaration of remainder.
42666         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42667         problems are fixed.
42669 2012-02-25  Bruno Haible  <bruno@clisp.org>
42671         Tests for module 'fmodl'.
42672         * modules/fmodl-tests: New file.
42673         * tests/test-fmodl.c: New file.
42674         * tests/test-math-c++.cc: Check the declaration of fmodl.
42676         New module 'fmodl'.
42677         * lib/math.in.h (fmodl): New declaration.
42678         * lib/fmodl.c: New file.
42679         * m4/fmodl.m4: New file.
42680         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42682         REPLACE_FMODL.
42683         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42684         REPLACE_FMODL.
42685         * modules/fmodl: New file.
42686         * doc/posix-functions/fmodl.texi: Mention the new module.
42688 2012-02-25  Bruno Haible  <bruno@clisp.org>
42690         Tests for module 'modfl'.
42691         * modules/modfl-tests: New file.
42692         * tests/test-modfl.c: New file.
42693         * tests/test-math-c++.cc: Check the declaration of modfl.
42695         New module 'modfl'.
42696         * lib/math.in.h (modfl): New declaration.
42697         * lib/modfl.c: New file.
42698         * m4/modfl.m4: New file.
42699         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42701         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42702         * modules/modfl: New file.
42703         * doc/posix-functions/modfl.texi: Mention the new module.
42705 2012-02-25  Bruno Haible  <bruno@clisp.org>
42707         Tests for module 'fabsl'.
42708         * modules/fabsl-tests: New file.
42709         * tests/test-fabsl.c: New file.
42710         * tests/test-math-c++.cc: Check the declaration of fabsl.
42712         New module 'fabsl'.
42713         * lib/math.in.h (fabsl): New declaration.
42714         * lib/fabsl.c: New file.
42715         * m4/fabsl.m4: New file.
42716         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42718         REPLACE_FABSL.
42719         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42720         REPLACE_FABSL.
42721         * modules/fabsl: New file.
42722         * doc/posix-functions/fabsl.texi: Mention the new module.
42724 2012-02-25  Bruno Haible  <bruno@clisp.org>
42726         fabs tests: More tests.
42727         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42728         (zero): New variable.
42729         (main): Add tests for signed zero.
42730         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42732         fabsf tests: More tests.
42733         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42734         (zero): New variable.
42735         (main): Add tests for signed zero.
42736         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42738 2012-02-24  Bruno Haible  <bruno@clisp.org>
42740         atanl: Provide function definition on MSVC.
42741         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42742         function pointer.
42743         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42745 2012-02-24  Bruno Haible  <bruno@clisp.org>
42747         acosl: Provide function definition on MSVC.
42748         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42749         function pointer.
42750         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42752 2012-02-24  Bruno Haible  <bruno@clisp.org>
42754         asinl: Provide function definition on MSVC.
42755         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42756         function pointer.
42757         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42759 2012-02-24  Bruno Haible  <bruno@clisp.org>
42761         tanl: Provide function definition on MSVC.
42762         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42763         function pointer.
42764         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42766 2012-02-24  Bruno Haible  <bruno@clisp.org>
42768         cosl: Provide function definition on MSVC.
42769         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42770         function pointer.
42771         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42773 2012-02-24  Bruno Haible  <bruno@clisp.org>
42775         sinl: Provide function definition on MSVC.
42776         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42777         function pointer.
42778         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42780 2012-02-24  Bruno Haible  <bruno@clisp.org>
42782         logl: Provide function definition on MSVC.
42783         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42784         function pointer.
42785         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42787 2012-02-24  Bruno Haible  <bruno@clisp.org>
42789         expl: Provide function definition on MSVC.
42790         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42791         function pointer.
42792         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42794 2012-02-24  Bruno Haible  <bruno@clisp.org>
42796         sqrtl: Provide function definition on MSVC.
42797         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42798         a function pointer.
42799         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42801 2012-02-24  Bruno Haible  <bruno@clisp.org>
42803         ceill: Provide function definition on MSVC.
42804         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42805         used as a function pointer.
42806         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42808 2012-02-24  Bruno Haible  <bruno@clisp.org>
42810         floorl: Provide function definition on MSVC.
42811         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42812         used as a function pointer.
42813         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42815 2012-02-24  Bruno Haible  <bruno@clisp.org>
42817         ceilf: Provide function definition on MSVC.
42818         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42819         used as a function pointer.
42820         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42822 2012-02-24  Bruno Haible  <bruno@clisp.org>
42824         floorf: Provide function definition on MSVC.
42825         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42826         used as a function pointer.
42827         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42829 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42831         stdnoreturn: new module
42832         This implements a replacement for C11's <stdnoreturn.h>.
42833         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42834         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42835         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42836         * tests/test-stdnoreturn.c: New files.
42838 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42840         regex: fix false multibyte matches in some regular expressions
42841         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42842         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42843         * lib/regex_internal.c (re_string_skip_chars):
42844         Fix miscomputation of remain_len that may cause incomplete
42845         multi-byte character and false match.
42847 2012-02-24  Jim Meyering  <meyering@redhat.com>
42849         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42850         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42851         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42852         Remove now-unnecessary str''cmp obfuscation.
42853         Suggested by Akim Demaille.
42855 2012-02-24  Bruno Haible  <bruno@clisp.org>
42857         streq: Rename macro.
42858         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42859         * NEWS: Mention the change.
42860         * lib/mbrtowc.c (mbrtowc): Update.
42861         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42862         * lib/wcwidth.c (wcwidth): Update.
42863         Suggested by Akim Demaille and Jim Meyering.
42865 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42867         regex: fix typo in definition of MIN
42868         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42869         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42871 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42872             Bruno Haible  <bruno@clisp.org>
42874         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42875         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42876         entries into a stack-allocated buffer directly.
42877         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42879 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42880             Bruno Haible  <bruno@clisp.org>
42882         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42884          - There were several instances of this pattern:
42886              for (;;) {
42887                n = acl (f, GETACLCNT, 0, NULL);
42888                [ allocate an array A of size N ]
42889                if (acl (f, GETACL, n, a) == n)
42890                  break;
42891              }
42893            This loop might never terminate if some other process is constantly
42894            manipulating the file's ACL.  The loop should be rewritten to
42895            terminate.
42897          - The acl (... GETACLNT ...) call is merely an optimization; its value
42898            is merely a hint as to how big to make the array.  A better
42899            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42900            and just guess a reasonably-big size, growing the size and trying
42901            again if it's not large enough.  This guarantees termination, and
42902            saves a system call.
42904         * lib/acl-internal.h: Include <limits.h>.
42905         (MIN, SIZE_MAX): New macros.
42906         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42907         a stack-allocated buffer, and use malloc if it does not fit. Don't
42908         use GETACLCNT.
42909         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42911 2012-02-19  Bruno Haible  <bruno@clisp.org>
42913         acl: Fix endless loop on Solaris with vxfs.
42914         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42915         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42916         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42917         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42918         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42919         Reported by Bill Jones in
42920         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42922 2012-02-19  Bruno Haible  <bruno@clisp.org>
42924         acl: Fix copy-acl test failure on Solaris 11.0.
42925         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42926         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42927         that this function returns 0 in some more cases.
42929 2012-02-19  Bruno Haible  <bruno@clisp.org>
42931         acl: Update doc references.
42932         * doc/acl-resources.txt: Update links to Solaris documentation.
42934 2012-02-19  Bruno Haible  <bruno@clisp.org>
42936         Fix test failure in many locales on Solaris 11.
42937         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42938         'tr' arguments.
42939         * tests/test-pipe-filter-ii1.c (main): Likewise.
42940         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42941         expressions in the C locale.
42942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42943         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42945 2012-02-19  Bruno Haible  <bruno@clisp.org>
42947         gnulib-tool: Improve usage message.
42948         * gnulib-tool (func_usage): Move doc of --help and --version to the
42949         section "Operation modes".
42951 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42953         README-release: make it easier to execute commands
42954         * top/README-release: break commands out on to separate lines.
42956 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42958         GNUmakefile: simplify detection of unconfigured trees
42959         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42960         whether the tree make is being run from is already configured or
42961         not.  Related simplifications.
42963 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42965         * gnulib-tool (func_usage): Document --help and --version.
42967 2012-02-11  Jim Meyering  <meyering@redhat.com>
42969         bootstrap: don't exit 0 upon gnulib-tool failure
42970         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42971         its exit status, not 0.
42973 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42975         README-release: various improvements
42976         * top/README-release: Give a command to push changes for the
42977         release.  Add "distcheck" to list of other pre-release checks.
42978         Fix instance of "make stable" which should be "make TYPE".
42980 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42982         maint: replace FSF snail-mail addresses with URLs
42983         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42984         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42985         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42986         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42987         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42988         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42989         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42990         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42991         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42992         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42993         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42994         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42995         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42996         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42997         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42998         * lib/glthread/thread.c, lib/glthread/thread.h:
42999         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43000         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43001         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43002         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43003         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43004         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43005         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43006         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43007         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43008         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43009         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43010         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43011         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43012         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43013         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43014         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43015         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43016         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43017         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43018         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43019         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43020         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43021         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43022         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43023         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43024         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43025         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43026         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43027         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43028         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43029         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43030         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43031         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43032         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43033         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43034         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43035         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43036         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43037         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43038         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43039         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43040         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43041         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43042         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43043         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43044         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43045         * tests/test-poll.c, tests/test-quotearg-simple.c:
43046         * tests/test-quotearg.c, tests/test-quotearg.h:
43047         * tests/test-round-ieee.c, tests/test-round1.c:
43048         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43049         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43050         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43051         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43052         * tests/test-strerror.c, tests/test-strerror_r.c:
43053         * tests/test-strsignal.c, tests/test-strverscmp.c:
43054         * tests/test-xmemdup0.c:
43055         Replace FSF snail mail addresses with URLs, as per GNU coding
43056         standards.  See glibc bug
43057         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43059 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43061         README-release: capitalize a word and split a line
43062         * top/README-release: Fix punctuation and spacing.
43064 2012-02-08  Akim Demaille  <demaille@gostai.com>
43066         fatal-signal: use C prototypes (with explicit void).
43067         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43068         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43070 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43072         regex: spelling fix
43073         * lib/regexec.c: spelling fix
43075         regex: rely on stdint.h for SIZE_MAX
43076         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43078 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43080         regex: merge glibc changes
43082         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43083         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43084         (init_word_char): Work even if bitset words are not exactly 32 or
43085         64 bits wide.  Don't assume there are no padding bits.
43086         * lib/regex.c [_LIBC]: Do not include <config.h>.
43087         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43088         and -Wtype-limits.
43089         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43090         needless disagreement with glibc.  All uses changed.  Define it to
43091         1 only if _GNU_SOURCE, to match glibc.
43092         (_REG_RM_NAME): Remove; no longer needed, since the names in
43093         question are now all protected by __USE_GNU.
43094         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43095         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43096         * lib/regex_internal.h (MIN): New macro.
43098         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43099         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43101         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43102         * lib/regex_internal.c (re_string_fetch_byte_case):
43103         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43104         is miscompiled, and it turns out it is because of an incorrect
43105         attribute on re_string_fetch_byte_case.  Unlike
43106         re_string_peek_byte_case, this one is really not pure, it modifies
43107         memory (increments pstr->cur_idx), and with the pure attribute GCC
43108         assumed it doesn't and it cached the presumed value of
43109         regexp->cur_idx in a variable across the
43110          for (;; ++i)
43111            {
43112              if (i >= BRACKET_NAME_BUF_SIZE)
43113                return REG_EBRACK;
43114              if (token->type == OP_OPEN_CHAR_CLASS)
43115                ch = re_string_fetch_byte_case (regexp);
43116              else
43117                ch = re_string_fetch_byte (regexp);
43118              if (re_string_eoi(regexp))
43119                return REG_EBRACK;
43120              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43121                break;
43122              elem->opr.name[i] = ch;
43123            }
43125         2011-11-29 Andreas Schwab <schwab@redhat.com>
43126         * lib/regcomp.c (build_equiv_class):
43127         Fix access after end of search string in regex matcher.
43129         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43130         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43132         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43133         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43135         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43136         * lib/regcomp.c (parse_branch, parse_sub_exp):
43137         More regex memory leak fixes and tests.
43138         (parse_sub_exp, parse_bracket_exp):
43139         Fix memory leak for some invalid regular expressions.
43141         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43142         * lib/regex_internal.c, lib/regexec.c:
43143         Fix unnecessary overallocation due to incomplete character.  When
43144         incomplete characters are found at the end of a string the code
43145         ran amok and allocated lots of memory.  Stricter limits are now in
43146         place.
43148         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43149         * lib/regex.h: Update documentation.
43151         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43152         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43154         2010-05-05 Andreas Schwab <schwab@redhat.com>
43155         * lib/regexec.c (find_collation_sequence_value):
43156         Fix lookup of collation sequence value during regexp matching.
43158         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43159         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43161         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43162         * lib/regex.h: Cleanup namespace.
43164         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43165         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43167         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43168         * lib/regex_internal.h: Prevent some declarations and definitions
43169         to be seen when used in tests.
43171         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43172         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43173         __libc_lock_* macros if not _LIBC.
43174         (struct re_dfa_t): Add lock.
43176 2012-02-07  Eric Blake  <eblake@redhat.com>
43178         maint.mk: also prohibit lower-case @var@
43179         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43180         lower case, like @top_srcdir@.
43182 2012-02-04  Eric Blake  <eblake@redhat.com>
43184         canonicalize: avoid uninitialized memory use
43185         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43186         random '/' left in dest.
43187         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43189 2012-02-04  Bruno Haible  <bruno@clisp.org>
43191         isatty: Fix test failure of ptsname_r on native Windows.
43192         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43193         and don't set errno.
43194         (isatty): Test first whether fd is valid. Set errno when returning 0.
43196 2012-02-04  Bruno Haible  <bruno@clisp.org>
43198         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43199         * tests/test-spawn-pipe-main.c: Include progname.h.
43200         (main): Invoke set_program_name.
43201         * modules/spawn-pipe-tests (Depends-on): Add progname.
43203         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43204         * tests/test-nonblocking-socket-main.c: Include progname.h.
43205         (main): Invoke set_program_name.
43206         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43208         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43209         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43210         (main): Invoke set_program_name.
43211         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43213 2012-02-04  Eric Blake  <eblake@redhat.com>
43215         canonicalize-lgpl: fix // handling
43216         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43218         canonicalize: fix // handling
43219         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43220         /// to //, since only // is special.
43222 2012-02-04  Bruno Haible  <bruno@clisp.org>
43224         ioctl: Fix test failure on native Windows.
43225         * lib/ioctl.c: Include msvc-nothrow.h.
43226         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43228 2012-02-04  Bruno Haible  <bruno@clisp.org>
43230         fsync: Avoid test failure on native Windows.
43231         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43232         read-only.
43234 2012-02-04  Bruno Haible  <bruno@clisp.org>
43236         sys_select: Avoid syntax error on OpenBSD 5.0.
43237         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43238         currently being included, just include the system's <sys/select.h>.
43240 2012-02-04  Bruno Haible  <bruno@clisp.org>
43242         sys_select: Avoid syntax error on OpenBSD 5.0.
43243         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43244         <sys/select.h>, not before.
43245         Reported by Jiri B <jirib@devio.us>.
43247 2012-02-04  Bruno Haible  <bruno@clisp.org>
43249         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43250         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43251         global variables.
43252         * tests/test-get-rusage-data.c (main): Likewise.
43253         Reported by Jim Meyering.
43255 2012-02-04  Bruno Haible  <bruno@clisp.org>
43257         stdioext: Fix last commit.
43258         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43260 2012-02-03  Bruno Haible  <bruno@clisp.org>
43262         stdioext: Add tentative support for Plan9.
43263         * lib/stdio-impl.h: Include <errno.h>.
43264         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43265         * lib/freadable.c (freadable): Likewise.
43266         * lib/fwritable.c (fwritable): Likewise.
43267         * lib/fbufmode.c (fbufmode): Likewise.
43268         * lib/freading.c (freading): Likewise.
43269         * lib/fwriting.c (fwriting): Likewise.
43270         * lib/freadptr.c (freadptr): Likewise.
43271         * lib/freadseek.c (freadptrinc): Likewise.
43272         * lib/freadahead.c (freadahead): Likewise.
43273         * lib/fpurge.c (fpurge): Likewise.
43274         * lib/fseeko.c (rpl_fseeko): Likewise.
43275         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43276         Reported by Jens Staal <staal1978@gmail.com>.
43278 2012-02-02  Jim Meyering  <meyering@redhat.com>
43280         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43281         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43282         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43283         not even to try to add the attribute.  Instead, add a pragma to suppress
43284         the suggestion/warning.
43286 2012-01-31  Karl Berry  <karl@gnu.org>
43288         setstate doc: typo.
43289         * doc/posix-functions/setstate.texi (setstate): { not (.
43291 2012-01-31  Bruno Haible  <bruno@clisp.org>
43293         popen: Make more robust on Windows.
43294         * lib/popen.c: On native Windows, use the _popen based code even if
43295         HAVE_POPEN is set.
43296         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43297         environment variable on native Windows.
43299 2012-01-30  Bruno Haible  <bruno@clisp.org>
43301         pclose: Fix typo.
43302         * lib/stdio.in.h (pclose): Fix typo in warning message.
43304 2012-01-30  Bruno Haible  <bruno@clisp.org>
43306         doc about getlogin_r, setstate.
43307         * doc/posix-functions/getlogin_r.texi: List the incompatible
43308         declaration problem under "not fixed by gnulib".
43309         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43310         problem on Solaris 11 and other platforms.
43312 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43313             Bruno Haible  <bruno@clisp.org>
43315         poll tests: Make test more robust.
43316         * tests/test-poll.c: Include macros.h.
43317         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43318         return value of various I/O operations.
43319         * modules/poll-tests (Files): Add tests/macros.h.
43321 2012-01-30  Bruno Haible  <bruno@clisp.org>
43323         sys_stat: Fix support for mingw64 and MSVC.
43324         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43325         header files already do it.
43326         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43327         stat itself.
43328         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43330 2012-01-30  Bruno Haible  <bruno@clisp.org>
43332         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43334         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43336 2012-01-29  Bruno Haible  <bruno@clisp.org>
43338         quotearg: Fix test failure on MacOS X 10.5.
43339         * tests/test-quotearg-simple.c: Include localcharset.h.
43340         (main): If the locale encoding is not ASCII, bypass the tests of
43341         locale_quoting_style and clocale_quoting_style.
43342         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43344 2012-01-29  Jim Meyering  <meyering@redhat.com>
43346         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43347         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43348         detect uses of canonicalize_file_name.
43350 2012-01-28  Bruno Haible  <bruno@clisp.org>
43352         test-framework-sh: Fix test failure with AIX 7.1 diff.
43353         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43354         in column 1, like 'diff -c' does.
43355         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43356         whether 'diff -u' is used. Instead, test whether the output contains
43357         some '@' character.
43359 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43361         strtoimax: eliminate need for stdint.h, inttypes.h checks
43362         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43363         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43364         the prerequisites for a recently-introduced strtoimax test.
43365         I guess this might cause strtoimax to be replaced when not
43366         strictly necessary on older hosts, but this shouldn't introduce
43367         any bugs and it should make Emacs 'configure' faster on typical
43368         modern hosts.  Problem discovered when importing the latest gnulib
43369         to an Emacs test version.
43370         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43372 2012-01-28  Bruno Haible  <bruno@clisp.org>
43374         sys_time: Override 'struct timeval' on some native Windows platforms.
43375         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43376         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43377         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43378         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43379         needs to be overridden.
43380         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43381         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43382         * tests/test-sys_select.c: Check that the tv_sec member has the same
43383         size as a 'time_t'.
43384         * tests/test-sys_time.c: Likewise.
43385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43386         is set, set also REPLACE_GETTIMEOFDAY.
43387         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43388         convert the resulting 'struct timeval' before returning.
43389         * lib/select.c: Include <sys/time.h>.
43390         (select, timeval): Undefine at the right place.
43391         * modules/select (Depends-on): Add sys_time.
43392         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43393         some Windows platforms.
43394         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43396 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43398         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43399         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43400         an integer.
43401         * lib/fcntl.c (dupfd): Likewise.
43402         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43404 2012-01-28  Bruno Haible  <bruno@clisp.org>
43406         fcntl: Avoid compilation error on native Windows.
43407         * modules/fcntl (Depends-on): Add 'close'.
43409 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43411         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43412         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43413         pointer to an integer.
43414         * lib/poll.c (IsConsoleHandle): Likewise.
43415         * lib/isatty.c (IsConsoleHandle): Likewise.
43417 2012-01-28  Jim Meyering  <meyering@redhat.com>
43419         doc: clarify README-release
43420         * top/README-release: Clarify: you should make a point to have
43421         the latest stable versions of build tools in your PATH, and the
43422         reference to buildreq is solely for its list of tool names, not
43423         for its minimal-functional version numbers.
43424         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43426         maint.mk: use more readable (yet functionally equivalent) quoting
43427         It is common to quote a single quote in a single quoted string like
43428         this:  '...'\''...'.  Unless you know the idiom, that looks like
43429         gibberish, so prefer to double-quote the string when possible.
43430         Then you can use a more readable, lone single quote: "...'..."
43431         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43432         "don't" is more readable than the equivalent 'don'\''t'.
43433         (sc_cast_of_x_alloc_return_value): Likewise.
43434         (sc_cast_of_alloca_return_value): Likewise.
43435         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43436         rather than '\'':'\''.
43438 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43440         stdalign: relax _Alignof and tighten _Alignas test
43441         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43442         as it was too strict: alignof must divide offsetof, but it need
43443         not equal offsetof.  Inspired by Joseph S. Myers's comment
43444         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43445         Conversely, tighten the _Alignas test a bit, as the resulting
43446         alignment must be exactly 8.
43448 2012-01-27  Bruno Haible  <bruno@clisp.org>
43450         stdalign: Document the last change.
43451         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43453 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43455         stdalign: check that alignof and offsetof are consistent
43456         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43457         Problem reported for gnulib by Richard W.M. Jones in
43458         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43460 2012-01-27  Jim Meyering  <meyering@redhat.com>
43462         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43463         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43464         convert a sequence with gaps to the minimal containing range.
43465         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43466         * tests/test-update-copyright.sh: Test for this.
43467         The FSF confirmed it is ok to do this, assuming there is at
43468         least one significant change per year in the affected range:
43469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43471 2012-01-26  Bruno Haible  <bruno@clisp.org>
43473         pipe2: refine doc about thread-safety
43474         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43475         multithread-safety problem.
43476         * doc/glibc-functions/accept4.texi: Likewise.
43478 2012-01-26  Bruno Haible  <bruno@clisp.org>
43480         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43481         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43482         In the test program, include <fcntl.h>, for O_RDONLY.
43484 2012-01-26  Eric Blake  <eblake@redhat.com>
43486         pipe2: document lack of thread-safety in replacement
43487         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43488         issue in replacement.
43489         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43490         Based on a report by Eric Wong.
43492 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43493             Bruno Haible  <bruno@clisp.org>
43495         malloca: Avoid warnings on x86_64 mingw64.
43496         * lib/malloca.c: Include <stdint.h>.
43497         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43498         * modules/malloca (Depends-on): Add stdint.
43499         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43501 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43503         obstack: remove __STDC__ conditionals
43504         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43505         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43506         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43507         m4/include_next.m4 as the only gnulib-maintained places that still
43508         refer to __STDC__.
43510 2012-01-24  Bruno Haible  <bruno@clisp.org>
43512         havelib: Modern quoting.
43513         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43514         the recent change to the GNU coding standards.
43516 2012-01-24  Bruno Haible  <bruno@clisp.org>
43518         stdint: Improve support for Android.
43519         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43520         Reported by Simon Josefsson <simon@josefsson.org>.
43522 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43524         doc: omit trailing empty lines from INSTALL etc.
43525         * doc/Makefile (INSTALL): Omit trailing empty lines.
43526         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43527         omit trailing empty lines.  This simplifies the build procedure.
43529 2012-01-23  Jim Meyering  <meyering@redhat.com>
43531         tests: avoid spurious warnings about gl_sockets_startup
43532         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43533         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43534         reporting a "statement with no effect".
43535         * tests/test-accept.c (main): Mark as "(void)".
43536         * tests/test-accept4.c (main): Likewise.
43537         * tests/test-bind.c (main): Likewise.
43538         * tests/test-connect.c (main): Likewise.
43539         * tests/test-getpeername.c (main): Likewise.
43540         * tests/test-getsockname.c (main): Likewise.
43541         * tests/test-getsockopt.c (main): Likewise.
43542         * tests/test-listen.c (main): Likewise.
43543         * tests/test-recv.c (main): Likewise.
43544         * tests/test-recvfrom.c (main): Likewise.
43545         * tests/test-send.c (main): Likewise.
43546         * tests/test-sendto.c (main): Likewise.
43547         * tests/test-setsockopt.c (main): Likewise.
43548         * tests/test-shutdown.c (main): Likewise.
43550 2012-01-21  Bruno Haible  <bruno@clisp.org>
43552         locale-fr.m4: Fix for Android.
43553         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43554         failure of the test program on Bionic libc.
43556 2012-01-21  Jim Meyering  <meyering@redhat.com>
43558         bootstrap: fail when bootstrap_post_import_hook fails
43559         Otherwise, it's far too easy to miss diagnostics emitted
43560         between gnulib-tool's output and that of running configure.
43561         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43563 2012-01-17  Jim Meyering  <meyering@redhat.com>
43565         maint: enable sc_trailing_blank
43566         * build-aux/pmccabe.css: Remove trailing blanks.
43567         * doc/acl-cygwin.txt: Likewise.
43568         * doc/gnu-oids.texi: Likewise
43569         * cfg.mk: Enable sc_trailing_blank.
43570         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43572 2012-01-17  Jim Meyering  <meyering@redhat.com>
43574         maint: enable sc_prohibit_openat_without_use
43575         * cfg.mk: Enable sc_prohibit_openat_without_use.
43576         Exempt lib/selinux-at.c.
43578 2012-01-17  Jim Meyering  <meyering@redhat.com>
43580         maint: enable sc_prohibit_cloexec_without_use
43581         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43582         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43584 2012-01-17  Jim Meyering  <meyering@redhat.com>
43586         maint: enable sc_prohibit_intprops_without_use
43587         * cfg.mk: Enable sc_prohibit_intprops_without_use
43588         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43590 2012-01-17  Jim Meyering  <meyering@redhat.com>
43592         maint: enable sc_prohibit_hash_pjw_without_use
43593         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43594         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43595         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43596         following " (".
43598 2012-01-17  Jim Meyering  <meyering@redhat.com>
43600         maint: enable double-word-prohibiting rule
43601         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43602         Exempt three files.
43604 2012-01-17  Jim Meyering  <meyering@redhat.com>
43606         maint: remove empty lines at EOF, but excluding modules/*
43607         Apply syntax rules at home as well as abroad.  Most changes
43608         were induced by running this:
43609           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43610             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43611             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43612         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43613         Exempt modules/* and two binary files.
43614         Also exempt doc/INSTALL*, per request from Bruno Haible.
43615         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43616         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43617         * doc/Copyright/request-assign.future: Likewise.
43618         * doc/Copyright/request-disclaim.changes: Likewise.
43619         * doc/INSTALL: Likewise.
43620         * doc/INSTALL.ISO: Likewise.
43621         * doc/INSTALL.UTF-8: Likewise.
43622         * doc/acl-cygwin.txt: Likewise.
43623         * doc/acl-resources.txt: Likewise.
43624         * doc/fdl-1.2.texi: Likewise.
43625         * doc/fdl-1.3.texi: Likewise.
43626         * doc/fdl.texi: Likewise.
43627         * lib/argp-pin.c: Likewise.
43628         * lib/round.c: Likewise.
43629         * lib/unicase/u16-totitle.c: Likewise.
43630         * lib/unictype/block_test.c: Likewise.
43631         * lib/uninorm/canonical-decomposition.c: Likewise.
43632         * m4/README: Likewise.
43633         * m4/relocatable-lib.m4: Likewise.
43634         * tests/test-isnand-nolibm.c: Likewise.
43635         * tests/test-isnand.c: Likewise.
43636         * tests/uninorm/NormalizationTest.txt: Likewise.
43638 2012-01-17  Jim Meyering  <meyering@redhat.com>
43640         maint: add framework to run syntax-check rules against gnulib sources
43641         * cfg.mk: New file, to disable all currently-failing tests.
43642         We'll enable them one by one, as they are made to pass.
43643         * Makefile (sc_maint): New rule.
43645 2012-01-21  Bruno Haible  <bruno@clisp.org>
43647         stdint: Add support for Android.
43648         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43649         include the system's <stdint.h>.
43650         Reported by Simon Josefsson <simon@josefsson.org>.
43652 2012-01-19  Jim Meyering  <meyering@redhat.com>
43654         bootstrap: add bootstrap_post_import_hook
43655         Bison does still need something like the gnulib_mk_hook whose
43656         invocation I had to remove along with slurp in commit 767ccd40.
43657         Technically, we could get along without it, but doing so would
43658         have required living with a warning and a mandatory post-bootstrap
43659         automake rerun.
43660         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43661         (bootstrap_post_import_hook): New function.
43662         Invoke it after gnulib-tool --import and before autoreconf.
43664 2012-01-18  Jim Meyering  <meyering@redhat.com>
43666         gitlog-to-changelog: don't use "no_"-prefixed variable name
43667         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43668         to enable both --cluster and --no-cluster.  Change variable name,
43669         s/\$no_cluster/$cluster/, and reverse usage to match.
43671         gitlog-to-changelog: use "||", not "or" in expressions
43672         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43673         expressions.
43675 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43677         gitlog-to-changelog: new option --no-cluster
43678         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43679         clustering of adjacent commit messages.
43681 2012-01-17  Jim Meyering  <meyering@redhat.com>
43683         maint: spell file systems with two words, not one
43684         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43685         two words, not one.
43687 2012-01-16  Jim Meyering  <meyering@redhat.com>
43689         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43690         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43692 2012-01-16  Eric Blake  <eblake@redhat.com>
43694         bootstrap: cater to autoconf 2.59
43695         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43696         is not available.
43698         bootstrap: properly check for libtool
43699         * build-aux/bootstrap (libtoolize): Also run libtool when older
43700         usage is detected.
43702 2012-01-15  Bruno Haible  <bruno@clisp.org>
43704         Improve support for MSVC 9.
43705         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43706         clashes on MSVC.
43707         * lib/fcntl.in.h: Likewise.
43708         * lib/stdlib.in.h: Likewise.
43709         * lib/sys_stat.in.h: Likewise.
43711 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43713         gnupload: we hold the master copy of this script now
43714         For motivation and more information, see:
43715         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43716         * build-aux/gnupload: Make it clear in the heading comments that the
43717         master copy of this file is maintained by gnulib.  Since we are at
43718         it, bump its copyright year and ...
43719         ($scriptversion): ... the date in its version.
43720         ($usage): Patches and bug reports should be sent to the gnulib list,
43721         not the automake one.
43722         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43723         anymore.
43725 2012-01-15  Bruno Haible  <bruno@clisp.org>
43727         Fix module 'random'.
43728         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43729         initstate, setstate are declared.
43731 2012-01-14  Bruno Haible  <bruno@clisp.org>
43733         Tests for module 'random'.
43734         * modules/random-tests: New file.
43735         * tests/test-random.c: New file, based on tests/test-random_r.c.
43737         New module 'random'.
43738         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43739         declarations.
43740         * lib/random.c: New file, based on glibc/stdlib/random.c.
43741         * m4/random.m4: New file.
43742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43743         HAVE_RANDOM.
43744         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43745         * modules/random: New file.
43746         * config/srclist.txt: Add an entry for random.c.
43747         * doc/posix-functions/random.texi: Mention the 'random' module.
43748         * doc/posix-functions/initstate.texi: Likewise.
43749         * doc/posix-functions/setstate.texi: Likewise.
43750         * doc/posix-functions/srandom.texi: Likewise.
43752 2012-01-12  Bruno Haible  <bruno@clisp.org>
43754         random_r: Use common idioms.
43755         * lib/random_r.c: Include <stdlib.h> first.
43757         random_r: Override incompatible API on AIX, OSF/1.
43758         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43759         Override the system function if REPLACE_RANDOM_R is 1.
43760         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43761         and OSF/1, set REPLACE_RANDOM_R.
43762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43763         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43764         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43765         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43766         * doc/glibc-functions/random_r.texi: Likewise.
43767         * doc/glibc-functions/setstate_r.texi: Likewise.
43769         random_r: Support for MSVC 9.
43770         * lib/random_r.c: Include stdint.h, not inttypes.h.
43772 2012-01-12  Eric Blake  <eblake@redhat.com>
43774         inet_ntop: guard extra work by IF_LINT
43775         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43776         better code generation when not checking for warnings.
43777         Suggested by Paul Eggert and Jim Meyering.
43779         strptime: fix regression on mingw
43780         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43781         Fix regression.  Reported by Bruno Haible.
43783 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43784             Bruno Haible  <bruno@clisp.org>
43786         copy-file: add error-code-returning variant.
43787         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43788         (qcopy_file_preserving): New declaration.
43789         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43790         copy_file_preserving. Change return type to 'int'. Don't emit an error
43791         message here.
43792         (copy_file_preserving): New function.
43793         * tests/test-copy-file.c: Include <stdlib.h>.
43794         (main): Test qcopy_file_preserving if the environment variable
43795         NO_STDERR_OUTPUT is set.
43796         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43797         with NO_STDERR_OUTPUT
43798         * tests/test-copy-file-2.sh: Likewise.
43800 2012-01-10  Bruno Haible  <bruno@clisp.org>
43802         copy-file: Use 'quote' module consistently.
43803         * lib/copy-file.c (copy_file_preserving): Use quote().
43805         copy-file: Refactor.
43806         * lib/copy-file.c: Include quote.h.
43807         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43808         message here.
43809         * modules/copy-file (Depends-on): Add quote.
43811         acl: Export qcopy_acl.
43812         * lib/acl.h (qcopy_acl): New declaration.
43813         * lib/copy-acl.c (qcopy_acl): Make non-static.
43815         acl: Rename a local variable.
43816         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43818         acl: Align return values of copy_acl and qcopy_acl.
43819         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43820         maybe < -1.
43822 2012-01-11  Eric Blake  <eblake@redhat.com>
43824         strptime: silence gcc warnings
43825         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43826         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43827         Reported by Daniel P. Berrange.
43829         inet_ntop: silence gcc warning
43830         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43831         Reported by Daniel P. Berrange.
43833 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43835         getloadavg test: skip the test on GNU/Linux without /proc mounted
43836         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43837         file.  When /proc is not mounted, it always fails with ENOENT.
43838         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43839         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43841 2012-01-10  Bruno Haible  <bruno@clisp.org>
43843         regex: Avoid link error on MSVC 9.
43844         * modules/regex (Depends-on): Add wctype.
43846 2012-01-10  Bruno Haible  <bruno@clisp.org>
43848         doc: Mention --with-tests option.
43849         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43850         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43851         --with-tests.
43852         Reported by Reuben Thomas.
43854 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43856         users.txt: order package names lexicographically.
43857         * users.txt: Order package names lexicographically.
43859 2012-01-10  Jim Meyering  <meyering@redhat.com>
43861         maint.mk: fix description in comment
43862         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43864         ignore-value: remove deprecated ignore_ptr function
43865         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43866         * NEWS: Note this.
43868 2012-01-09  Jim Meyering  <meyering@redhat.com>
43870         test-init.sh: avoid a subshell
43871         * tests/test-init.sh: Remove protective subshell.
43872         Suggested by Bernhard Voelker.  While a subshell is normally
43873         required to protect against older shells (Solaris, FreeBSD) that
43874         warn about a missing program before performing redirection, the
43875         shell-selection tests performed by init.sh probably exclude any
43876         offending shell.
43878 2012-01-08  Bruno Haible  <bruno@clisp.org>
43880         setlocale tests: Avoid test failure on Solaris 11.0.
43881         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43882         variable.
43884 2012-01-08  Bruno Haible  <bruno@clisp.org>
43886         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43887         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43889         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43890         macro.
43891         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43892         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43893         * lib/spawn_faction_addopen.c: Add workaround implementation if
43894         HAVE_WORKING_POSIX_SPAWN.
43895         * modules/spawn (Makefile): Substitute
43896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43897         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43898         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43899         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43900         (Depends-on): Update conditions.
43901         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43902         the Solaris 11 bug.
43904 2012-01-08  Bruno Haible  <bruno@clisp.org>
43906         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43907         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43908         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43909         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43910         macro.
43911         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43912         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43913         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43914         HAVE_WORKING_POSIX_SPAWN.
43915         * modules/spawn (Makefile): Substitute
43916         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43917         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43918         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43919         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43920         (Depends-on): Update conditions.
43921         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43922         the Solaris 11 bug.
43924 2012-01-08  Bruno Haible  <bruno@clisp.org>
43926         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43927         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43930         HAVE_WORKING_POSIX_SPAWN.
43931         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43932         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43933         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43934         * lib/spawn_faction_addclose.c: Add workaround implementation if
43935         HAVE_WORKING_POSIX_SPAWN.
43936         * modules/spawn (Makefile): Substitute
43937         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43938         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43939         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43940         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43941         (Depends-on): Update conditions.
43942         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43943         the Solaris 11 bug.
43945 2012-01-08  Bruno Haible  <bruno@clisp.org>
43947         doc: Update for Solaris 11.0.
43948         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43949         * m4/printf.m4: Update comments.
43951 2012-01-08  Bruno Haible  <bruno@clisp.org>
43953         mktime: Avoid compilation error on Solaris 11.
43954         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43956 2012-01-08  Bruno Haible  <bruno@clisp.org>
43958         doc: Small fix.
43959         * doc/posix-headers/nl_types.texi: Correct platforms list.
43961 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43963         Add lgpl-3.0 module.
43964         * MODULES.html.sh (Support for building documentation): Add
43965         lgpl-3.0.
43966         * modules/lgpl-3.0: New file.
43968 2012-01-08  Jim Meyering  <meyering@redhat.com>
43970         select.c: indent with spaces, not TABs
43971         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43973 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43975         quotearg: do not use grave accent for left quote
43976         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43977         locale_quoting_style.
43978         (quotearg_buffer_restyled): Fix example.
43979         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43981 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43983         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43984         Most programs do not have translation catalogs for English and much
43985         less separate catalogs for British and American English.  Drop the
43986         suggestion to translators about these two, and provide it
43987         automatically for Unicode locales.  Like most programs, even those
43988         using American English, we use single quotation marks.  This conflicts
43989         with the American typographic convention, but works better when you
43990         cite the entire error message within double quotes.  It also tries not
43991         to clash with established practice and with what non-gnulib programs
43992         will usually do.
43993         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43994         using an UTF-8 or GB-18030 locale.  The list of other locales with
43995         quotes was provided by Bruno Haible.
43996         (quotearg_buffer_restyled): Adjust instructions to translators.
43997         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43998         text, since this would be wrong when using Unicode.
43999         * modules/quotearg: Depend on c-strcaseeq.
44001 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44003         quotearg: fix Wikipedia link
44004         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44006 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44008         Fix for mingw with MSVC9.
44009         * m4/ld-version-script.m4: Check that compiler rejects version
44010         scripts with syntax errors.  Reported by Bruno Haible
44011         <bruno@clisp.org>.
44013 2012-01-06  Bruno Haible  <bruno@clisp.org>
44015         Talk about "native Windows API", not "Woe32".
44016         * lib/accept4.c: Update comments to mention native Windows.
44017         * lib/execute.c: Likewise.
44018         * lib/fatal-signal.c: Likewise.
44019         * lib/localcharset.c: Likewise.
44020         * lib/nanosleep.c: Likewise.
44021         * lib/nl_langinfo.c: Likewise.
44022         * lib/pclose.c: Likewise.
44023         * lib/pipe-filter-gi.c: Likewise.
44024         * lib/pipe-filter-ii.c: Likewise.
44025         * lib/pipe.c: Likewise.
44026         * lib/pipe2.c: Likewise.
44027         * lib/popen.c: Likewise.
44028         * lib/progreloc.c: Likewise.
44029         * lib/relocatable.c: Likewise.
44030         * lib/sigaction.c: Likewise.
44031         * lib/sigprocmask.c: Likewise.
44032         * lib/spawn-pipe.h: Likewise.
44033         * lib/spawn-pipe.c: Likewise.
44034         * lib/spawni.c: Likewise.
44035         * lib/stat-time.h: Likewise.
44036         * lib/w32spawn.h: Likewise.
44037         * tests/test-isatty.c: Likewise.
44038         * lib/config.charset: More comments.
44039         * doc/gnulib-intro.texi: Mention native Windows.
44040         * doc/posix-functions/_Exit_C99.texi: Likewise.
44041         * doc/posix-headers/fcntl.texi: Likewise.
44043 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44045         argp: Avoid crash if translator uses % characters in a translation.
44046         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44047         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44049 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44051         doc: C11 and C++11 are now official
44052         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44053         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44054         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44055         * modules/stdalign:
44056         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44058 2012-01-06  Bruno Haible  <bruno@clisp.org>
44060         uc-is-grapheme-break tests: Tweak.
44061         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44062         message.
44064 2012-01-06  Bruno Haible  <bruno@clisp.org>
44066         test-init.sh: correct the test for diff -u
44067         * tests/test-init.sh: Also redirect stdout to /dev/null.
44069 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44071         Use ', not `, for quoting output.
44072         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44073         (print_changelog_deltas, get_tool_versions, main program):
44074         * build-aux/git-version-gen:
44075         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44076         * build-aux/move-if-change (help):
44077         * build-aux/useless-if-before-free (usage, main program):
44078         * check-module (parse_module_file, usage)
44079         (find_included_lib_files, check_module):
44080         * lib/argmatch.c (main) [TEST]:
44081         * lib/argp-help.c (_help):
44082         * lib/getopt1.c (main) [TEST]:
44083         * lib/git-merge-changelog.c (usage):
44084         * lib/xstrtol-error.c (xstrtol_error):
44085         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44086         * m4/argz.m4 (gl_FUNC_ARGZ):
44087         * m4/bison.m4 (gl_BISON):
44088         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44089         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44090         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44091         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44092         * m4/gc-random.m4 (gl_GC_RANDOM):
44093         * m4/intl.m4 (gt_CHECK_DECL):
44094         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44096         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44097         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44098         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44099         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44100         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44101         * tests/test-dirname.c (main):
44102         * tests/test-getpass.c (main):
44103         * tests/test-iconvme.c (main):
44104         * tests/test-parse-datetime.c (LOG):
44105         * tests/test-xstrtoimax.sh:
44106         * tests/test-xstrtol.sh:
44107         * tests/test-xstrtoll.sh:
44108         * tests/test-xstrtoumax.sh:
44109         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44110         * top/GNUmakefile (abort-due-to-no-makefile):
44111         Quote 'like this', not `like this', as per the recent change to
44112         the GNU coding standards.
44114 2012-01-05  Bruno Haible  <bruno@clisp.org>
44116         strtoimax: Don't force a replacement on systems where intmax_t is int.
44117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44118         'intmax_t' is not larger than 'int'.
44119         Reported by Pádraig Brady <P@draigBrady.com>.
44121 2012-01-05  Bruno Haible  <bruno@clisp.org>
44123         doc: Mention NetBSD bugs.
44124         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44125         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44127 2012-01-05  Bruno Haible  <bruno@clisp.org>
44129         strtoumax tests: Enhance tests.
44130         * tests/test-strtoumax.c (main): Add tests for large values.
44132 2012-01-05  Bruno Haible  <bruno@clisp.org>
44134         strtoimax: Work around AIX 5.1 bug.
44135         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44136         definition.
44137         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44138         Set HAVE_STRTOIMAX.
44139         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44140         REPLACE_STRTOIMAX.
44141         * modules/inttypes-incomplete (Makefile.am): Substitute
44142         REPLACE_STRTOIMAX.
44143         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44144         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44145         (Depends-on): Update conditions.
44146         * tests/test-strtoimax.c (main): Add tests for large values.
44147         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44149 2012-01-05  Bruno Haible  <bruno@clisp.org>
44151         inttypes: Modernize.
44152         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44153         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44154         (Makefile.am): Update inttypes.h rule.
44156 2012-01-05  Jim Meyering  <meyering@redhat.com>
44158         init.sh: don't waste a subshell just to redirect stderr
44159         * tests/init.sh: In testing for diff -u and diff -c, use a
44160         stderr-redirecting exec inside `...` rather than a subshell.
44162         test-init.sh: avoid failure on HP-UX 11.00
44163         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44164         resolves to diff -c or cmp.  Reported by Bruno Haible.
44166 2012-01-05  Bruno Haible  <bruno@clisp.org>
44168         Tests for module 'strtoull'.
44169         * modules/strtoull-tests: New file.
44170         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44172 2012-01-05  Bruno Haible  <bruno@clisp.org>
44174         Tests for module 'strtoll'.
44175         * modules/strtoll-tests: New file.
44176         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44178 2012-01-05  Bruno Haible  <bruno@clisp.org>
44180         Tests for module 'strtoul'.
44181         * modules/strtoul-tests: New file.
44182         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44184 2012-01-05  Bruno Haible  <bruno@clisp.org>
44186         Tests for module 'strtol'.
44187         * modules/strtol-tests: New file.
44188         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44190 2012-01-04  Jim Meyering  <meyering@redhat.com>
44192         test-init.sh: accommodate Solaris 5.10's different diff -u output
44193         * tests/test-init.sh: Also exempt @@ lines from the comparison
44194         of diff output, since Solaris 5.10 and GNU diff formats differ.
44195         Reported by Stefano Lattarini.
44197 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44199         test-posixtm: don't assume signed integer wraparound
44200         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44201         after signed integer overflow.  Inspired by (though it may not
44202         fix) Bruno Haible's bug report in
44203         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44205         Spell out "Windows 9x" and "Windows XP".
44206         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44207         "Windows 9x" and "WinXP" with "Windows XP".
44209 2012-01-04  Jim Meyering  <meyering@redhat.com>
44211         test-vc-list-files-cvs.sh: remove obsolete comment
44212         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44213         double exit.  Now that's all encapsulated via skip_ and Exit.
44215 2012-01-04  Bruno Haible  <bruno@clisp.org>
44217         Talk about "native Windows API", not "Win32".
44218         * lib/classpath.c: Update comments to mention native Windows.
44219         * lib/csharpexec.c: Likewise.
44220         * lib/dup2.c: Likewise.
44221         * lib/error.c: Likewise.
44222         * lib/fcntl.c: Likewise.
44223         * lib/filename.h: Likewise.
44224         * lib/findprog.c: Likewise.
44225         * lib/get-rusage-as.c: Likewise.
44226         * lib/get-rusage-data.c: Likewise.
44227         * lib/getpagesize.c: Likewise.
44228         * lib/javaexec.c: Likewise.
44229         * lib/msvc-inval.c: Likewise.
44230         * lib/msvc-nothrow.c: Likewise.
44231         * lib/nanosleep.c: Likewise.
44232         * lib/nonblocking.c: Likewise.
44233         * lib/printf-parse.c: Likewise.
44234         * lib/setlocale.c: Likewise.
44235         * lib/sigaction.c: Likewise.
44236         * lib/strerror_r.c: Likewise.
44237         * lib/tmpdir.c: Likewise.
44238         * lib/vasnprintf.c: Likewise.
44239         * lib/w32spawn.h: Likewise.
44240         * lib/waitpid.c: Likewise.
44241         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44242         * m4/locale-ar.m4: Likewise.
44243         * m4/locale-fr.m4: Likewise.
44244         * m4/locale-ja.m4: Likewise.
44245         * m4/locale-tr.m4: Likewise.
44246         * m4/locale-zh.m4: Likewise.
44247         * m4/printf.m4: Likewise.
44248         * tests/test-cloexec.c: Likewise.
44249         * tests/test-copy-acl.sh: Likewise.
44250         * tests/test-copy-file.sh: Likewise.
44251         * tests/test-file-has-acl.sh: Likewise.
44252         * tests/test-set-mode-acl.sh: Likewise.
44253         * tests/test-dup-safer.c: Likewise.
44254         * tests/test-dup2.c: Likewise.
44255         * tests/test-dup3.c: Likewise.
44256         * tests/test-fcntl.c: Likewise.
44257         * tests/test-nonblocking-pipe.h: Likewise.
44258         * tests/test-nonblocking-socket.h: Likewise.
44259         * tests/test-pipe.c: Likewise.
44260         * tests/test-pipe2.c: Likewise.
44261         * tests/test-spawn-pipe-child.c: Likewise.
44262         * doc/acl-resources.txt: Likewise.
44263         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44264         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44265         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44266         * lib/localcharset.c: Update comments to mention native Windows.
44267         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44268         * lib/localename.c: Likewise.
44269         * lib/progreloc.c: Likewise.
44270         * lib/relocatable.c: Likewise.
44271         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44272         (windows_compute_revents): Renamed from win32_compute_revents.
44273         (windows_compute_revents_socket): Renamed from
44274         win32_compute_revents_socket.
44275         * lib/select.c: Update comments to mention native Windows.
44276         (windows_poll_handle): Renamed from win32_poll_handle.
44277         * m4/threadlib.m4: Update comments to mention native Windows.
44278         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44279         --enable-threads=windows instead of --enable-threads=win32. Set
44280         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44281         * lib/glthread/lock.h: Update comments to mention native Windows.
44282         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44283         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44284         USE_WIN32_THREADS.
44285         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44286         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44287         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44288         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44289         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44290         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44291         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44292         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44293         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44294         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44295         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44296         * tests/test-tls.c: Likewise.
44297         Rationale:
44298         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44299         on both 32-bit and 64-bit Windows systems.
44300         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44301         line of distinction is between "native Windows" on one side and Unix/
44302         POSIX systems on the other side. More details in
44303         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44304         Suggested by Paul Eggert.
44306 2012-01-03  Bruno Haible  <bruno@clisp.org>
44308         isatty: Support for MSVC 9.
44309         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44310         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44311         (_isatty_nothrow): New function.
44312         (isatty): Use it instead of _isatty.
44313         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44314         * lib/poll.c (IsConsoleHandle): Likewise.
44315         * lib/select.c (IsConsoleHandle): Likewise.
44316         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44317         (gl_PREREQ_ISATTY): New macro.
44318         * modules/isatty (Depends-on): Add msvc-inval.
44319         (configure.ac): Invoke gl_PREREQ_ISATTY.
44321 2012-01-03  Jim Meyering  <meyering@redhat.com>
44323         maint.mk: remove temporary transition aid from over 1.5 years ago
44324         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44325         purpose was to aid in the transition (avoiding silent malfunction)
44326         from that old name to the new _sc_search_regexp.  This shim was
44327         added by commit 219c504b.
44329         init.sh: do not try to accommodate compare arguments starting with "-"
44330         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44331         compare arguments that start with "-".  Besides, we do not worry
44332         about this when invoking diff or cmp; why start now with sed?
44333         Using "--" to separate options from argument would trigger sed
44334         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44335         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44337 2012-01-02  Bruno Haible  <bruno@clisp.org>
44339         Enhance tests for module 'isatty'.
44340         * modules/isatty-tests (Depends-on): Add pipe-posix.
44341         * tests/test-isatty.c: Include <fcntl.h>.
44342         (DEV_NULL): New macro.
44343         (main): Test the resut of isatty() also on regular files, pipes, and
44344         /dev/null.
44346         New module 'isatty'.
44347         * lib/unistd.in.h (isatty): New declaration.
44348         * lib/isatty.c: New file, based on an idea of
44349         Bastien Roucariès <roucaries.bastien@gmail.com>.
44350         * m4/isatty.m4: New file.
44351         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44352         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44353         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44354         REPLACE_ISATTY.
44355         * modules/isatty: New file.
44356         * doc/posix-functions/isatty.texi: Mention the new module.
44357         Suggested by Paolo Bonzini.
44359 2012-01-02  Bruno Haible  <bruno@clisp.org>
44361         canonicalize: Tweak 2011-12-29 commit.
44362         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44363         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44365 2012-01-02  Jim Meyering  <meyering@redhat.com>
44367         gitlog-to-changelog: describe input syntax in --help output
44368         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44370         gitlog-to-changelog: fix typo in --help: show backslash before email @
44371         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44372         in sources, but not in actual output.
44374 2011-12-30  Jim Meyering  <meyering@redhat.com>
44376         gitlog-to-changelog: don't malfunction when name contains %-directive
44377         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44378         in a name string cause trouble.  E.g., with a user name of "%s",
44379         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44381 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44383         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44384         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44385         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44386         the "  (tiny change)" notation that is appended to the standard
44387         ChangeLog "date  name  email" header line.
44389 2012-01-01  Jim Meyering  <meyering@redhat.com>
44391         test-framework-sh: init.sh: fix "make dist" failure
44392         When using gnulib-tool's --with-tests option and any module that
44393         depends on test-framework-sh, "make dist" would fail due to the
44394         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44395         in the gltests directory, and not in the gllib/ directory.
44396         One way to work around that is to move the EXTRA_DIST += init.sh
44397         from the primary module to the -tests one:
44398         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44399         * modules/test-framework-sh (Makefile.am): ...not here.
44400         Reported by Tom G. Christensen in
44401         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44403         version-etc: update copyright year reported by --version
44404         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44406 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44408         canonicalize: only stat() if required
44409         * lib/canonicalize.c (canonicalize_filename_mode):
44410         Avoid calling l?stat() when both CAN_MISSING,
44411         and CAN_NOLINKS are set, as we neither need
44412         to resolve symlinks or test component existence.
44414 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44416         doc: cover st_ino issues once; add OpenVMS etc.
44417         * doc/posix-functions/stat.texi (stat):
44418         * doc/posix-functions/lstat.texi (lstat):
44419         * doc/posix-functions/fstatat.texi (fstatat):
44420         * doc/posix-functions/fstat.texi (fstat):
44421         Move general 'struct stat' stuff to sys_stat.texi,
44422         leaving behind a pointer.
44423         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44424         Merge duplicate info about 'struct stat' problems into here.
44425         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44426         and suggest partial workarounds.
44428         same-inode: port to OpenVMS
44429         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44430         three st_ino values.
44432 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44434         canonicalize: fix references to stat() and lstat()
44435         * lib/canonicalize.c (canonicalize_filename_mode):
44436         Ensure references always resolve to a replacement
44437         function if required (even via a macro).
44439 2011-12-30  Jim Meyering  <meyering@redhat.com>
44441         gitlog-to-changelog: remove a little duplication
44442         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44443         rather than twice.
44445 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44447         canonicalize: add support for not resolving symlinks
44448         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44449         indicate we don't want to follow symlinks.  Also
44450         provide CAN_MODE_MASK to aid setting these existing
44451         mutually exclusive values.
44452         * lib/canonicalize.c (canonicalize_filename_mode):
44453         Extract the flags from can_mode parameter, which
44454         are currently just used to select between stat()
44455         and lstat().  Also ensure that mutually exclusive
44456         values are flagged immediately as invalid.
44457         * tests/test-canonicalize.c: Verify symlinks are
44458         not followed, and that invalid flag combinations
44459         are diagnosed.
44461 2011-12-25  Jim Meyering  <meyering@redhat.com>
44463         gitlog-to-changelog: do not clump multi-paragraph entries
44464         Identical header lines (date,name,email+coauthors) are suppressed,
44465         thus putting all entries with those same characteristics under
44466         a single header.  However, when a log entry consists of two or
44467         more paragraphs, it may not be clear where it starts and ends.
44468         This change makes it so that such an entry is always separated
44469         from others by a header line, even when that header would
44470         otherwise be suppressed.
44471         * build-aux/gitlog-to-changelog: Implement the above.
44472         Inspired by a related request from Stefano Lattarini in
44473         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44475 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44477         announce-gen: fix `cmd' typo in diagnostic
44478         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44479         diagnostic: a missing '$' meant that the command was not output.
44481 2011-12-23  Jim Meyering  <meyering@redhat.com>
44483         test-framework-sh: distribute init.sh
44484         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44485         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44486         fail due to the lack of init.sh.
44488         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44489         * modules/atexit-tests: Rather than listing tests/init.sh,
44490         now that there's a module for it, simply depend on that new module.
44491         * modules/closein-tests: Likewise.
44492         * modules/exclude-tests: Likewise.
44493         * modules/getcwd-tests: Likewise.
44494         * modules/perror-tests: Likewise.
44495         * modules/pread-tests: Likewise.
44496         * modules/pwrite-tests: Likewise.
44497         * modules/vc-list-files-tests: Likewise.
44498         * modules/verify-tests: Likewise.
44499         * modules/xalloc-die-tests: Likewise.
44500         * modules/xstrtoimax-tests: Likewise.
44501         * modules/xstrtol-tests: Likewise.
44502         * modules/xstrtoll-tests: Likewise.
44503         * modules/xstrtoumax-tests: Likewise.
44504         * modules/yesno-tests: Likewise.
44506 2011-12-22  Jim Meyering  <meyering@redhat.com>
44508         test-framework-sh: add minimal tests of init.sh's compare function
44509         * modules/test-framework-sh-tests: New file.
44510         * tests/test-init.sh: New file.
44512         test-framework-sh: new module
44513         * modules/test-framework-sh: New file.
44514         * MODULES.html.sh (Support for maintaining and releasing projects):
44515         List it.
44517         init.sh: do not emit simulated diff output to stderr
44518         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44520 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44522         .gitignore: ignore gnulib.dvi and regex.info
44523         * doc/.gitignore:add gnulib.dvi and regex.info
44525 2011-12-22  Jim Meyering  <meyering@redhat.com>
44527         init.sh: correct previous change
44528         * tests/init.sh (compare): My previous change was wrong.
44529         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44531         init.sh: avoid unwarranted test failure when using "set -e"
44532         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44533         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44534         a use like "compare exp out" would get evoke an unconditional failure.
44536 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44538         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44539         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44540         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44541         autoreconf that did not.
44542         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44543         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44545 2011-12-17  Jim Meyering  <meyering@redhat.com>
44547         bootstrap: remove some now-unneeded code
44548         This script arose back when gnulib-tool was young.
44549         Since then, it has seen improvements that render much of this
44550         script unnecessary.  In particular, it can now make symlinks
44551         to the files it uses.  Also, I no longer see as much value in
44552         marking files as read-only via comments.
44553         If you relied on the symlink-creation feature of the preceding
44554         version of this script, you can get most of that functionality
44555         by adding the --symlink option to the definition of
44556         gnulib_tool_option_extras in your bootstrap.conf file.
44557         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44558         Run autopoint and libtoolize *before* gnulib-tool.
44559         After it, run an abbreviated autoreconf, rather than a loop around
44560         all tools.
44561         (slirp, bt_mark_as_generated): Remove functions.
44563 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44565         ftoastr: fix typo
44566         * lib/ftoastr.h: Fix misspelling in comment.
44568 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44570         * top/README-release: fix punctuation.
44572 2011-12-17  Jim Meyering  <meyering@redhat.com>
44574         bootstrap: correct the recent buildreq change
44575         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44576         had no effect.
44577         * build-aux/bootstrap (buildreq): Bracket each search term with
44578         "*...*", so that the shell "case" statement works as intended.
44579         Add comments.
44581 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44583         build: let bootstrap resort to wget when downloading .po files
44584         * build-aux/bootstrap (download_po_files): Fallback to wget when
44585         downloading the .po files via rsync fails.  This is necessary to
44586         bootstrap from behind a strict firewall.
44588 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44590         stdint: don't assume C++11 when compiling with g++
44591         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44592         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44593         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44594         work also in C++ before C++11, as that improperly inhibits
44595         generating a substitute stdint.h for that case.
44597 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44599         alloca: protect comment from gnulib-tool
44600         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44601         that gnulib-tool doesn't think it's a license, and munge it to
44602         say "GCC version 3".
44604 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44606         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44607         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44608         $(abs_top_builddir) instead of $(top_builddir).
44610 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44612         strftime-tests: also test nanoseconds
44613         * tests/test-strftime.c (T): Add a test of %N.
44615 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44617         inttypes, stdint: add C++11 support
44618         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44619         when including inttypes.h and stdint.h.  Support this change to
44620         the standard.
44621         * doc/posix-headers/inttypes.texi (inttypes.h):
44622         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44623         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44624         Define if not defined already, for the benefit of pre-C++11 hosts.
44625         Define the standard format macros (e.g., PRId8) always.
44626         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44627         Likewise, if __cpluspus.  Define the standard constant and limit
44628         macros (e.g., INT8_C, INT8_MAX) always.
44629         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44630         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44631         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44632         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44633         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44634         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44635         Likewise.
44637 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44639         nonblocking tests: Fix test failure on Linux/PPC.
44640         Suggested by Prerna Saxena in
44641         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44642         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44643         Set to 1100000.
44645 2011-12-12  Jim Meyering  <meyering@redhat.com>
44647         argmatch: don't hard-code `' when listing valid option arguments
44648         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44649         use the quote function to add quotes.  Use fputs rather than
44650         fprintf for the format string with no format directive.
44652 2011-12-07  Eric Blake  <eblake@redhat.com>
44654         bootstrap: detect tools required by gnulib-tool
44655         * build-aux/bootstrap (buildreq): Provide minimum implicit
44656         dependencies.
44657         * DEPENDENCIES: Mention patch as a prereq.
44659 2011-12-04  Bruno Haible  <bruno@clisp.org>
44661         sethostname: Port to Windows platforms.
44662         * lib/sethostname.c: Provide an alternate implementation for Windows
44663         platforms.
44664         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44665         (main): Skip the test if sethostname() fails with EPERM. On Windows
44666         platforms, don't check the result of gethostname().
44668 2011-12-04  Bruno Haible  <bruno@clisp.org>
44669             Jim Meyering  <meyering@redhat.com>
44671         tests: Avoid spurious error message on platforms without mktemp program.
44672         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44674 2011-12-04  Bruno Haible  <bruno@clisp.org>
44676         sethostname: Fix documentation.
44677         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44678         "not fixed" section.
44680 2011-12-03  Bruno Haible  <bruno@clisp.org>
44682         gnulib-tool: Verify that the License field is present and non-empty.
44683         * gnulib-tool (func_get_license_raw): New function, extracted from
44684         func_get_license.
44685         (func_get_license): Use it. Warn if the module is not a test module and
44686         has no license.
44687         Suggested by Jim Meyering.
44689 2011-12-03  Bruno Haible  <bruno@clisp.org>
44691         sethostname tests: Fix link error on mingw.
44692         * tests/test-sethostname1.c: New file, extracted from
44693         tests/test-sethostname.c.
44694         * tests/test-sethostname2.c: New file, extracted from
44695         tests/test-sethostname.c.
44696         * tests/test-sethostname.c: Remove file.
44697         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44698         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44699         (Depends-on): Add gethostname.
44700         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44701         Link the latter with $(GETHOSTNAME_LIB).
44703         sethostname tests: Fix compilation error on mingw.
44704         * tests/test-sethostname.c: Don't include <sys/types.h>.
44705         (geteuid): Use a dummy value without uid_t.
44706         * modules/sethostname-tests (Depends-on): Remove sys_types.
44708         sethostname tests: Avoid a gcc warning.
44709         * tests/test-sethostname.c (main): Remove an unused variable.
44711         Tweak last commit.
44712         * modules/sethostname-tests (Files): Sort by decreasing importance.
44713         (configure.ac): Check for geteuid.
44714         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44715         the test when there's nothing to test. Drop an unnecessary cast.
44716         Improve an error message. Verify that the final sethostname() call
44717         succeeds.
44719 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44721         Add a test suite for the sethostname module.
44722         * modules/sethostname-tests: New file.  A test program
44723         for the sethostname module.
44724         * tests/test-sethostname.c: Likewise.
44726 2011-12-03  Bruno Haible  <bruno@clisp.org>
44728         Tweak last commit.
44729         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44730         Fix preprocessor directives indentation. Fix typos.
44731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44732         * modules/unistd (Makefile): Likewise.
44734 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44736         Integrate the sethostname module into unistd.
44737         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44738         into the unistd.h header.
44739         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44740         preprocessor directives.
44741         * modules/unistd: Setup the Makefile substitutions of the
44742         SETHOSTNAME preprocessor directives.
44744 2011-12-03  Bruno Haible  <bruno@clisp.org>
44746         Tweak last commit.
44747         * lib/sethostname.c: Don't include <string.h>.
44748         (sethostname): No need to copy the argument string to the stack. Don't
44749         call clearerr. Preserve errno when fprintf failed.
44750         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44751         Don't invoke AC_REPLACE_FUNCS.
44752         * modules/sethostname (Link): Remove empty section.
44753         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44754         failure problem.
44756 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44758         New module 'sethostname'.
44759         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44760         for systems that lack it.
44761         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44762         sethostname declaration and function.
44763         * modules/sethostname: New file.  Define the sethostname module.
44765 2011-12-03  Bruno Haible  <bruno@clisp.org>
44767         Tweak last commit.
44768         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44770 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44772         Split the HOST_NAME_MAX detection into a separate m4 macro.
44773         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44774         macro so it can be used by the pending sethostname module.
44776 2011-12-03  Bruno Haible  <bruno@clisp.org>
44778         Fix module descriptions syntax.
44779         * modules/argv-iter (License): Fix syntax.
44780         * modules/di-set (License): Likewise.
44781         * modules/ino-map (License): Likewise.
44782         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44784 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44786         stdalign: port to Clang 3.0
44787         Problem reported by Simon Josefsson in
44788         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44789         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44790         which has <stdalign.h> but which does not define alignof.
44791         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44793 2011-12-01  Eric Blake  <eblake@redhat.com>
44795         mktempd: silence dd usage
44796         * build-aux/mktempd (rand_bytes): Silence dd.
44798 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44800         manywarnings: Don't mention gcc version in docstring.
44801         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44802         Jim Meyering <meyering@redhat.com>.
44804 2011-11-30  Jim Meyering  <meyering@redhat.com>
44806         hash: mark a few floating point constants with "f" suffix
44807         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44808         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44809         floating point constants with "f", since they're destined to be
44810         saved/used as "float"s.
44812 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44814         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44815         * tests/test-float.c (test_long_double): Correct and re-enable the
44816         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44818 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44820         Avoid subtracting two pointers that don't point into the same block.
44821         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44822         only pointers into the same memory block are subtracted. We cannot
44823         assume that sizeof (ptrdiff_t) == sizeof (void *).
44825 2011-11-29  Eric Blake  <eblake@redhat.com>
44827         maint.mk: add syntax check for use of compare from init.sh
44828         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44829         moved here from coreutils.
44831         manywarnings: drop -Wunsuffixed-float-constants
44832         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44833         '1.0D', which is the only way to silence this warning for 'double'.
44835 2011-11-29  Jim Meyering  <meyering@redhat.com>
44837         hash: mark compute_bucket_size with the pure attribute
44838         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44840         quotearg, propername: correct pragma guard expression
44841         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44842         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44844 2011-11-28  Jim Meyering  <meyering@redhat.com>
44846         propername: do not mark proper_name with the const attribute
44847         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44848         since it examines data pointed to by its parameter.
44849         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44850         the suggestion from -Wsuggest-attribute=const.
44852         propername: mark one more function as const
44853         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44855 2011-11-27  Jim Meyering  <meyering@redhat.com>
44857         mark functions with const and pure attributes
44859         Mark functions per suggestions from gcc-4.6 when using these options:
44860         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44861         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44862         Follow these guidelines: when possible, apply the attribute to
44863         an extern declaration, not to its definition.  Apply it to the
44864         definition only when the definition is static.
44865         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44866         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44867         * lib/base64.h (isbase64): Likewise.
44868         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44869         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44870         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44871         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44872         (c_tolower, c_toupper): Likewise.
44873         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44874         * lib/chdir-long.c (find_non_slash): Likewise.
44875         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44876         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44877         * lib/file-type.h (file_type): Likewise.
44878         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44879         * lib/filevercmp.c (verrevcmp): Likewise.
44880         * lib/freadahead.h (freadahead): Likewise.
44881         * lib/fts.c (fts_maxarglen): Likewise.
44882         * lib/hash-pjw.h (hash_pjw): Likewise.
44883         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44884         * lib/hash.c (is_prime, next_prime): Likewise.
44885         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44886         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44887         (hash_table_ok, hash_get_first, hash_string): Likewise.
44888         (compute_bucket_size): Likewise.
44889         * lib/i-ring.h (i_ring_empty): Likewise.
44890         * lib/isnan.c (isnanl): Likewise.
44891         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44892         * lib/memcasecmp.h (memcasecmp): Likewise.
44893         * lib/memchr2.h (memchr2): Likewise.
44894         * lib/memcmp2.h (memcmp2): Likewise.
44895         * lib/parse-datetime.y (lookup_zone): Likewise.
44896         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44897         [!WINDOWS_SOCKETS]: Likewise.
44898         * lib/strnlen1.h (strnlen1): Likewise.
44899         * lib/uniwidth.in.h (uc_width): Likewise.
44900         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44901         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44902         (quoting_options_from_style): Add a comment.
44903         * lib/propername.h (proper_name): Add a comment.
44905 2011-11-27  Bruno Haible  <bruno@clisp.org>
44907         Remove unused macros from !_LIBC code in glibc-borrowed files.
44908         * lib/fnmatch.c (STRCOLL): Remove macro.
44909         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44910         * lib/glob.c (__stat, __readdir64): Remove macros.
44911         * lib/tempname.c (__open64, __xstat64): Remove macros.
44912         Suggested by Paul Eggert.
44914 2011-11-27  Bruno Haible  <bruno@clisp.org>
44916         getcwd: Fix link error on MSVC 9.
44917         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44919 2011-11-27  Bruno Haible  <bruno@clisp.org>
44921         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44922         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44923         HAVE_OPENDIR is 0.
44924         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44925         HAVE_CLOSEDIR is 0.
44926         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44927         is 0.
44928         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44930 2011-11-27  Bruno Haible  <bruno@clisp.org>
44932         getcwd: Fix bug from 2011-08-17.
44933         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44934         platforms that need it.
44935         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44936         code of 4 to be a failure, not a success. This ensures that
44937         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44939 2011-11-27  Bruno Haible  <bruno@clisp.org>
44941         binary-io tests: Avoid test failure on mingw when libtool is used.
44942         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44943         Don't verify the size of t-bin-out1.tmp here.
44944         * tests/test-binary-io.sh: Verify it here.
44945         Reported by Simon Josefsson.
44947 2011-11-26  Bruno Haible  <bruno@clisp.org>
44949         Fix conflict between two instantiations of module 'unistd'.
44950         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44951         ${include_guard_prefix} also in the autoconf snippet.
44952         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44954         GNULIB_UNISTD_H_GETOPT.
44955         * modules/getopt-posix (configure.ac): Set the
44956         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44957         * modules/getopt-gnu (configure.ac): Likewise.
44958         * modules/unistd (Makefile.am): Change the substitution value of
44959         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44960         Reported by Simon Josefsson.
44962 2011-11-25  Bruno Haible  <bruno@clisp.org>
44964         pagealign_alloc: Doc and comments.
44965         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44966         module.
44967         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44969 2011-11-25  Jim Meyering  <meyering@redhat.com>
44971         test-update-copyright.sh: avoid false-positive failure
44972         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44973         around false positive failure on Cygwin/Windows.  The latter was
44974         matching erroneously-created files with names like
44975         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44977 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44979         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44980         * m4/valgrind-tests.m4: Check that the parameters that will be
44981         used works, not just a subset of them.  Reported by Bruno Haible
44982         <bruno@clisp.org>.
44984 2011-11-24  Jim Meyering  <meyering@redhat.com>
44986         test-stdalign.c: comment out long double tests
44987         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44988         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44989         error: '_Alignas' specifiers cannot reduce alignment of \
44990         'static_longdouble_alignas'.
44992 2011-11-22  Jim Meyering  <meyering@redhat.com>
44994         init.sh: make "compare /dev/null FILE" output more readable
44995         * tests/init.sh (compare_): Document the preferred order of arguments.
44996         (emit_diff_u_header_): New function.
44997         (compare_dev_null_): Emit a simulated diff, rather than just the
44998         contents of the unexpected file.  Suggestion from Bruno Haible.
45000 2011-11-21  Jim Meyering  <meyering@redhat.com>
45001             Eric Blake  <eblake@redhat.com>
45003         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45004         * tests/init.sh: Make our compare function slightly more portable.
45005         Reported by Bruno Haible in
45006         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45008 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45010         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45011         before using it, in code that ends up in config.h.
45013 2011-11-20  Bruno Haible  <bruno@clisp.org>
45015         getcwd: Work around getcwd bug on AIX 5..7.
45016         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45017         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45018         Use a different value for gl_cv_func_getcwd_path_max. Move the
45019         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45020         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45021         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45022         Define HAVE_MINIMALLY_WORKING_GETCWD.
45023         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45024         where it is not even minimally working, that is, on AIX.
45025         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45026         m4/getcwd-path-max.m4.
45027         (main): Update exit code computation.
45028         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45029         getcwd does not handle long file names.
45031 2011-11-20  Bruno Haible  <bruno@clisp.org>
45033         getcwd: Fix bug from 2009-09-10.
45034         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45035         like "no".
45037 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45039         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45041 2011-11-20  Bruno Haible  <bruno@clisp.org>
45043         fma tests: Avoid shadowing local variables.
45044         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45045         expected.
45047 2011-11-20  Bruno Haible  <bruno@clisp.org>
45049         copysignf tests: Fix.
45050         * tests/test-copysignf.c: Fix signature check.
45052 2011-11-20  Bruno Haible  <bruno@clisp.org>
45054         fma: Remove unused code.
45055         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45056         unused macros.
45058 2011-11-20  Bruno Haible  <bruno@clisp.org>
45060         sethostname: Fix doc about AIX.
45061         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45062         sethostname; it has it.
45064         sethostname: Mention more portability problems.
45065         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45066         problem.
45067         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45069 2011-11-19  Bruno Haible  <bruno@clisp.org>
45071         Depend on module fcntl-h when AT_FDCWD is used.
45072         * modules/utimens (Depends-on): Add fcntl-h.
45073         * modules/areadlinkat (Depends-on): Likewise.
45074         * modules/areadlinkat-with-size (Depends-on): Likewise.
45075         * modules/faccessat (Depends-on): Likewise.
45076         * modules/fchmodat (Depends-on): Likewise.
45077         * modules/fchownat (Depends-on): Likewise.
45078         * modules/getcwd (Depends-on): Likewise.
45079         * modules/mkdirat (Depends-on): Likewise.
45080         * modules/mkfifoat (Depends-on): Likewise.
45081         * modules/readlinkat (Depends-on): Likewise.
45082         * modules/symlinkat (Depends-on): Likewise.
45083         * modules/dup2-tests (Depends-on): Likewise.
45084         * modules/fdutimensat-tests (Depends-on): Likewise.
45085         * modules/futimens-tests (Depends-on): Likewise.
45087 2011-11-19  Bruno Haible  <bruno@clisp.org>
45089         euidaccess: Update a comment.
45090         * lib/euidaccess.c: Update comment about platforms with faccessat.
45092 2011-11-19  Bruno Haible  <bruno@clisp.org>
45094         openat: Fix file list.
45095         * modules/openat (Files): Remove lib/at-func.c.
45097 2011-11-19  Bruno Haible  <bruno@clisp.org>
45099         fstatat: Simplify.
45100         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45101         gnulib should define rpl_fstatat, there is a
45102         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45104 2011-11-19  Bruno Haible  <bruno@clisp.org>
45106         Ensure 'inline' can be used in tests/test-utimens-common.h.
45107         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45108         * modules/futimens-tests (configure.ac): Likewise.
45109         * modules/utimens-tests (configure.ac): Likewise.
45110         * modules/utimensat-tests (configure.ac): Likewise.
45112 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45114         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45115         not hash_insert0.
45116         (hash_insert_if_absent): Doc fix.
45118 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45120         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45122 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45124         test-getcwd: disambiguate exit status
45125         * tests/test-getcwd.c (test_long_name): Return 0..7.
45126         (main): Exit with an unambiguous exit status.  The old
45127         code yielded a mysterious mixture of two failure codes.
45129         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45130         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45131         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45132         rpl_fstatat or fstatat.  This should fix the other problem
45133         reported by Kai Habel in
45134         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45135         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45136         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45137         and I reproduced it on a Solaris 8 host we still have in production.
45139 2011-11-18  Jim Meyering  <meyering@redhat.com>
45141         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45142         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45143         Add a sentence to the comment.
45144         (hash_insert0): New function that simply calls hash_insert_if_absent.
45145         * lib/hash.h (hash_insert_if_absent): Declare it.
45146         (hash_insert0): Add deprecation attribute.
45147         (_GL_ATTRIBUTE_DEPRECATED): Define.
45148         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45149         not hash_insert0.
45150         * NEWS: Mention it, even though it's not really an incompatible change.
45152 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45154         openat: avoid compilation failure due to lack of <errno.h> inclusion
45155         * lib/openat.c: Include <errno.h>.
45157 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45159         * modules/getcwd (Depends-on): Add fdopendir.
45160         This fixes one of the two problems reported by Kai Habel in
45161         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45163         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45164         stdalign problem reported by Ian Beckwith in
45165         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45166         * modules/crypto/gc-arcfour (Depends-on):
45167         Depend conditionally on crypto/arcfour.
45168         * modules/crypto/gc-arctwo (Depends-on):
45169         Depend conditionally on crypto/arctwo.
45170         * modules/crypto/gc-des (Depends-on):
45171         Depend conditionally on crypto/des.
45172         * modules/crypto/gc-hmac-md5 (Depends-on):
45173         Depend conditionally on crypto/hmac-md5.
45174         * modules/crypto/gc-hmac-sha1 (Depends-on):
45175         Depend conditionally on crypto/hmac-sha1.
45176         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45177         * modules/crypto/gc-md4 (Depends-on):
45178         Depend conditionally on crypto/md4.
45179         * modules/crypto/gc-md5 (Depends-on):
45180         Depend conditionally on crypto/md5.
45181         * modules/crypto/gc-rijndael (Depends-on):
45182         Depend conditionally on crypto/rijndael.
45183         * modules/crypto/gc-sha1 (Depends-on):
45184         Depend conditionally on crypto/sha1.
45185         * modules/crypto/gc-arcfour:
45186         * modules/crypto/gc-arctwo:
45187         * modules/crypto/gc-des:
45188         * modules/crypto/gc-hmac-md5:
45189         * modules/crypto/gc-hmac-sha1:
45190         * modules/crypto/gc-md2:
45191         * modules/crypto/gc-md4:
45192         * modules/crypto/gc-md5:
45193         * modules/crypto/gc-rijndael:
45194         * modules/crypto/gc-sha1:
45195         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45196         now that the conditional dependencies do the work for us.
45198 2011-11-17  Jim Meyering  <meyering@redhat.com>
45200         tests: factor st_ctime-comparison out of two headers
45201         * tests/test-utimens-common.h (ctime_compare): Define.
45202         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45203         * tests/test-lutimens.h (test_lutimens): Likewise.
45204         * tests/test-utimens.h (test_utimens): Likewise.
45206         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45207         Invoke the test program via an init.sh-using wrapper.
45208         * tests/test-getcwd.sh: New file.
45209         * modules/getcwd-tests (Files): Add it.
45210         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45212 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45214         gitlog-to-changelog: support multi-author commits.
45215         The FSF cares about keeping track of all authors of patches to its
45216         projects, but Git doesn't provide obvious support for multi-author
45217         changesets. Consensus seems to be forming around the use of extra
45218         Signed-off-by inspired lines in the log message formatted as
45219         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45220         multi-author commits between version control systems.
45221         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45222         log message and output in standard ChangeLog multi-author format.
45223         Reported by Peter Rosin <peda@lysator.liu.se>
45225 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45226             Bruno Haible  <bruno@clisp.org>
45228         Fix some modules' file list.
45229         * modules/fstatat (Files): Add m4/lstat.m4.
45230         * modules/openat (Files): Likewise.
45231         * modules/unlinkat (Files): Likewise.
45233 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45235         maint.mk: fix tight-scope.mk generation in VPATH builds.
45236         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45237         reference with $(srcdir) so that the file is found correctly even
45238         when running `make syntax-check' in a VPATH build.
45240 2011-11-13  Bruno Haible  <bruno@clisp.org>
45241             Jim Meyering  <meyering@redhat.com>
45243         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45244         * tests/init.sh (compare): Remove "No differences encountered" or
45245         synonymous output from the 'diff' program.
45247 2011-11-13  Bruno Haible  <bruno@clisp.org>
45249         Makefile: Tweak indentation.
45250         * Makefile: Use tab as first character in every line that contains rule
45251         commands.
45253 2011-11-13  Bruno Haible  <bruno@clisp.org>
45255         Syntax check for copyright statements.
45256         * check-copyright: New file.
45257         * Makefile (sc_check_copyright): New rule.
45259 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45261         * build-aux/git-version-gen: Add --prefix to configure the tag
45262         match string.
45264 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45266         * build-aux/git-version-gen: Add --help and --version.
45268 2011-11-12  Jim Meyering  <meyering@redhat.com>
45270         revamp the other test-exclude?.sh scripts to use init.sh, too
45271         * tests/test-exclude1.sh: Use init.sh.
45272         * tests/test-exclude2.sh: Likewise.
45273         * tests/test-exclude3.sh: Likewise.
45274         * tests/test-exclude4.sh: Likewise.
45275         * tests/test-exclude5.sh: Likewise.
45276         * tests/test-exclude6.sh: Likewise.
45277         * tests/test-exclude7.sh: Likewise.
45278         * tests/test-exclude8.sh: Likewise.
45279         * modules/exclude-tests (Files): List init.sh.
45281         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45282         These shell scripts ignored failure of the binary test-exclude,
45283         so making the latter return 77 didn't cause them to be skipped.
45284         * tests/test-exclude5.sh: Exit with test-exclude's error status
45285         when that program fails.  Revamp to use init.sh.
45286         * tests/test-exclude2.sh: Likewise.
45288         test-exclude: fix a typo
45289         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45291 2011-11-11  Bruno Haible  <bruno@clisp.org>
45293         obstack: Fix compilation error on MSVC 9.
45294         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45296 2011-11-11  Jim Meyering  <meyering@redhat.com>
45298         test-exclude: skip tests rather than failing on deficient systems
45299         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45300         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45301         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45302         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45304 2011-11-10  Bruno Haible  <bruno@clisp.org>
45306         ptsname_r test: Avoid gcc warning on glibc systems.
45307         * tests/test-ptsname_r.c (null_ptr): New function.
45308         (test_errors): Use it.
45310 2011-11-10  Bruno Haible  <bruno@clisp.org>
45312         ptsname_r: Avoid compilation error on OSF/1 5.1.
45313         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45315         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45316         function is not declared or incompatibly declared.
45317         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45318         * modules/ptsname_r (Depends-on, configure.ac): Update.
45319         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45321 2011-11-10  Bruno Haible  <bruno@clisp.org>
45323         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45324         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45325         When cross-compiling, guess yes on all platforms except AIX.
45326         Reported by Ludovic Courtès <ludo@gnu.org>.
45328 2011-11-09  Bruno Haible  <bruno@clisp.org>
45330         ptsname_r tests: Fix bugs.
45331         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45332         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45334 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45336         fstatat: work with cross-compilation
45337         Problem reported by Ludovic Courtès in
45338         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45339         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45340         "cross-compiling" and assume the bug is present.  Replace
45341         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45342         an inverted sense, to be more conservative about our assumptions.
45343         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45345 2011-11-09  Bruno Haible  <bruno@clisp.org>
45347         Improve MODULES.html output.
45348         * modules/mkfifoat (Description): Use the word "function".
45349         * modules/readlinkat (Description): Likewise.
45350         * modules/symlinkat (Description): Likewise.
45352 2011-11-09  Eric Blake  <eblake@redhat.com>
45354         ptsname_r-tests: new test module
45355         * modules/ptsname_r-tests: New module.
45356         * tests/test-ptsname_r.c: New file.
45358         ptsname_r: new module
45359         * modules/ptsname_r: New module.
45360         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45361         * lib/ptsname.c (__ptsname_r): Split...
45362         * lib/ptsname_r.c: ...into new file.
45363         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45364         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45365         * modules/stdlib (Makefile.am): Substitute witnesses.
45366         * lib/stdlib.in.h (ptsname_r): Declare it.
45367         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45368         * MODULES.html.sh (Misc): Likewise.
45369         * modules/ptsname (Depends-on): Alter dependency.
45370         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45372 2011-11-09  Jim Meyering  <meyering@redhat.com>
45374         announce-gen: be more concise when there's only one URL+tarball
45375         * build-aux/announce-gen (get_tool_versions): When you distribute
45376         only one type of tarball, combine the first two "Here are..."
45377         sections and make the key-checking grammar independent of
45378         how many tarballs there are.
45380 2011-11-09  Eric Blake  <eblake@redhat.com>
45382         openpty: provide a stub on mingw
45383         * lib/pty.in.h (includes): Provide forward declarations.
45384         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45386         raise: fix mingw handling of SIGPIPE
45387         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45389 2011-11-08  Bruno Haible  <bruno@clisp.org>
45391         More conditional dependencies.
45392         * modules/faccessat (Depends-on): Add conditions.
45393         * modules/fchmodat (Depends-on): Likewise.
45394         * modules/fchownat (Depends-on): Likewise.
45395         * modules/fstatat (Depends-on): Likewise.
45396         * modules/mkfifoat (Depends-on): Likewise.
45397         * modules/readlinkat (Depends-on): Likewise.
45398         * modules/symlinkat (Depends-on): Likewise.
45399         * modules/unlinkat (Depends-on): Likewise.
45400         * modules/utimensat (Depends-on): Likewise.
45401         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45402         * modules/linkat (Depends-on): Refine the conditions.
45403         * modules/renameat (Depends-on): Likewise.
45405 2011-11-08  Bruno Haible  <bruno@clisp.org>
45407         faccessat: Move AC_LIBOBJ invocation to module description.
45408         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45409         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45410         invocation from here...
45411         * modules/faccessat (configure.ac): ... to here. Invoke
45412         gl_PREREQ_FACCESSAT.
45414 2011-11-08  Bruno Haible  <bruno@clisp.org>
45416         faccessat: Simplify autoconf macro.
45417         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45418         gl_FUNC_EUIDACCESS.
45420 2011-11-08  Bruno Haible  <bruno@clisp.org>
45422         renameat: Fix dependencies.
45423         * modules/renameat (Depends-on): Add stdbool.
45425 2011-11-08  Bruno Haible  <bruno@clisp.org>
45427         mkfifoat: Fix module description.
45428         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45429         not gl_UNISTD_MODULE_INDICATOR.
45431 2011-11-08  Bruno Haible  <bruno@clisp.org>
45433         fstatat: Remove unused dependency.
45434         * modules/fstatat (Depends-on): Remove fstat.
45436 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45438         GNUmakefile: behave when Makefile is missing.
45439         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45441 2011-11-08  Bruno Haible  <bruno@clisp.org>
45443         openat: Conditionalize dependencies.
45444         * lib/openat.c: Reduce the scope of some #includes.
45445         * modules/openat (Depends-on): Add conditions.
45447 2011-11-07  Jim Meyering  <meyering@redhat.com>
45449         maint.mk: extract GPG key ID without using a temporary file
45450         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45451         without using a temporary file.  Based on a suggestion from Werner Koch
45452         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45454 2011-11-07  Eric Blake  <eblake@redhat.com>
45456         grantpt: fix typo
45457         * lib/stdlib.in.h (grantpt): Check correct function.
45459         maint.mk: silence new syntax check
45460         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45462 2011-11-06  Bruno Haible  <bruno@clisp.org>
45464         Doc about floating-point and math API.
45465         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45466         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45468 2011-11-06  Bruno Haible  <bruno@clisp.org>
45470         stdalign tests: Skip the test when compiled by Sun C.
45471         * tests/test-stdalign.c (main): Skip the test on Sun C.
45473 2011-11-06  Bruno Haible  <bruno@clisp.org>
45475         ansi-c++-opt: Complete the 2011-06-05 change.
45476         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45477         does not support namespaces, set the variable to "no", not to ":".
45479 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45481         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45483 2011-11-06  Bruno Haible  <bruno@clisp.org>
45485         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45486         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45487         (minus_zerol) [HP-UX]: New macro.
45488         (unary_minus) [HP-UX]: New function.
45489         (copysignl) [HP-UX]: Use unary_minus function.
45491 2011-11-06  Bruno Haible  <bruno@clisp.org>
45493         ldexp, ldexpf, ldexpl: Enhance tests.
45494         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45495         and tests/test-ldexpl.c.
45496         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45497         LDEXP, MIN_EXP, MAX_EXP): New macros.
45498         Include test-ldexp.h.
45499         (main): Just call test_function.
45500         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45501         infinity.h, nan.h.
45502         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45503         MAX_EXP): New macros.
45504         Include test-ldexp.h.
45505         (x, y): Remove variables.
45506         (main): Just call test_function.
45507         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45508         infinity.h, nan.h.
45509         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45510         MAX_EXP): New macros.
45511         Include test-ldexp.h.
45512         (x, y): Remove variables.
45513         (main): Just call test_function.
45514         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45515         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45516         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45517         (Depends-on): Add isnand-nolibm, signbit, float.
45518         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45519         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45520         (Depends-on): Add isnanf-nolibm, signbit, float.
45522 2011-11-06  Bruno Haible  <bruno@clisp.org>
45524         math tests: Cosmetics.
45525         * tests/test-math-c++.cc: Reorder declarations.
45527 2011-11-05  Bruno Haible  <bruno@clisp.org>
45529         fma*: Simplify test.
45530         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45531         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45533         Tests for module 'fmal'.
45534         * modules/fmal-tests: New file.
45535         * tests/test-fmal1.c: New file.
45536         * tests/test-fmal2.c: New file.
45538         New module 'fmal'.
45539         * lib/math.in.h (fmal): New declaration.
45540         * lib/fmal.c: New file.
45541         * m4/fmal.m4: New file.
45542         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45544         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45545         REPLACE_FMAL.
45546         * modules/fmal: New file.
45547         * doc/posix-functions/fmal.texi: Mention the new module and the various
45548         bugs.
45550         Tests for module 'fmaf'.
45551         * modules/fmaf-tests: New file.
45552         * tests/test-fmaf1.c: New file.
45553         * tests/test-fmaf2.c: New file.
45555         New module 'fmaf'.
45556         * lib/math.in.h (fmaf): New declaration.
45557         * lib/fmaf.c: New file.
45558         * m4/fmaf.m4: New file.
45559         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45561         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45562         REPLACE_FMAF.
45563         * modules/fmaf: New file.
45564         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45565         bugs.
45567         Tests for module 'fma'.
45568         * modules/fma-tests: New file.
45569         * tests/test-fma1.c: New file.
45570         * tests/test-fma1.h: New file.
45571         * tests/test-fma2.c: New file.
45572         * tests/test-fma2.h: New file.
45574         New module 'fma'.
45575         * lib/math.in.h (fma): New declaration.
45576         * lib/fma.c: New file.
45577         * m4/fma.m4: New file.
45578         * m4/fegetround.m4: New file.
45579         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45581         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45582         REPLACE_FMA.
45583         * modules/fma: New file.
45584         * doc/posix-functions/fma.texi: Mention the new module and the various
45585         bugs.
45587         Extend gl_MATHFUNC.
45588         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45589         Support 'void' as argument type.
45590         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45592 2011-11-05  Jim Meyering  <meyering@redhat.com>
45594         maint.mk: also prohibit inclusion of dirent.h without use
45595         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45597 2011-11-05  Bruno Haible  <bruno@clisp.org>
45599         ldexpl tests: Avoid test failure on MSVC 9.
45600         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45601         value. Needed in order to enforce the conversion from a value greater
45602         than LDBL_MAX to Infinity.
45604 2011-11-05  Bruno Haible  <bruno@clisp.org>
45606         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45607         * modules/at-internal: New file, extracted from modules/openat.
45608         * modules/openat-h: New file.
45609         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45610         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45611         * modules/openat (Description): Add reference to POSIX function.
45612         (Files): Remove lib/openat.h, lib/openat-proc.c.
45613         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45614         intprops, unistd.
45615         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45616         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45617         gl_FCNTL_MODULE_INDICATOR.
45618         (Include): Remove unistd.h, openat.h.
45619         * modules/areadlinkat (Files): Add lib/at-func.c.
45620         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45621         openat-die, openat-h, save-cwd.
45622         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45623         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45624         openat-die, openat-h, save-cwd, unistd.
45625         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45626         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45627         openat-h, save-cwd. Remove fcntl-h, openat.
45628         * modules/fchmodat (Files): Remove lib/openat.h.
45629         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45630         openat, stdbool, unistd.
45631         * modules/fchownat (Files): Remove lib/openat.h.
45632         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45633         openat, stdbool, sys_stat.
45634         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45635         lib/openat-proc.c.
45636         (Depends-on): Add at-internal.
45637         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45638         * modules/fstatat (Files): Remove lib/openat.h.
45639         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45640         stdbool, unistd.
45641         * modules/fts (Depends-on): Add openat-h.
45642         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45643         openat.
45644         * modules/mkdirat (Files): Remove lib/openat.h.
45645         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45646         openat, stdbool, sys_stat.
45647         * modules/mkfifoat (Files): Add lib/at-func.c.
45648         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45649         openat-h, save-cwd. Remove fcntl-h, openat.
45650         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45651         * modules/readlinkat (Files): Add lib/at-func.c.
45652         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45653         openat-h, save-cwd. Remove fcntl-h, openat.
45654         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45655         openat.
45656         * modules/selinux-at (Files): Add lib/at-func.c.
45657         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45658         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45659         * modules/symlinkat (Files): Add lib/at-func.c.
45660         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45661         openat-h, save-cwd. Remove fcntl-h, openat.
45662         * modules/unlinkat (Files): Remove lib/openat.h.
45663         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45664         stdbool.
45665         * modules/utimensat (Files): Add lib/at-func.c.
45666         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45667         openat-die, openat-h, save-cwd.
45668         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45669         * modules/fdutimensat-tests (Depends-on): Add openat.
45670         * modules/fstatat-tests (Depends-on): Add openat-h.
45671         * modules/readlinkat-tests (Depends-on): Add openat.
45672         * modules/symlinkat-tests (Depends-on): Add openat.
45674 2011-11-05  Bruno Haible  <bruno@clisp.org>
45676         openat: Include <stdbool.h>.
45677         * lib/openat.c: Include <stdbool.h>.
45679 2011-11-04  Bruno Haible  <bruno@clisp.org>
45681         fchownat, renameat, unlinkat: Fix dependencies.
45682         * modules/fchownat (Depends-on): Add fstatat.
45683         * modules/renameat (Depends-on): Likewise.
45684         * modules/unlinkat (Depends-on): Likewise.
45686 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45688         openat: remove direct dependency on dirent
45689         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45690         and hasn't been needed ever since fdopendir was split into its own
45691         module on 2009-08-31.
45692         * modules/openat (Depends-on): Remove dirent.
45694 2011-11-04  Bruno Haible  <bruno@clisp.org>
45696         renameat: Optimize code size.
45697         * modules/renameat (configure.ac): Don't compile at-func2.c if
45698         REPLACE_RENAMEAT is 1.
45700 2011-11-04  Bruno Haible  <bruno@clisp.org>
45702         openat tests: Fix file list.
45703         * modules/openat-tests (Files): Add tests/test-open.h.
45705 2011-11-04  Bruno Haible  <bruno@clisp.org>
45707         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45708         * modules/fchmodat (Depends-on): Add openat-die.
45709         * modules/fchownat (Depends-on): Likewise.
45710         * modules/linkat (Depends-on): Likewise.
45711         * modules/renameat (Depends-on): Likewise.
45712         * modules/openat (Depends-on): Add dirent.
45714 2011-11-04  Jim Meyering  <meyering@redhat.com>
45716         at-func*.c: fix comments
45717         * lib/at-func2.c: Correct/improve first-line comment.
45718         * lib/at-func.c: Correct grammar in first-line comment.
45720 2011-11-04  Bruno Haible  <bruno@clisp.org>
45722         New module 'mkdirat', split off from module 'openat'.
45723         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45724         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45725         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45726         * modules/mkdirat: New file, extracted from modules/openat.
45727         * modules/openat (Files): Remove lib/mkdirat.c.
45728         (Depends-on): Remove mkdir.
45729         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45730         (Include): Remove <sys/stat.h>.
45731         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45732         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45733         tests/test-mkdir.h.
45734         (Depends-on): Remove ignore-value.
45735         (Makefile.am): Remove rules for test-mkdirat.
45736         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45737         of module 'openat'.
45738         * NEWS: Mention the change.
45740 2011-11-04  Bruno Haible  <bruno@clisp.org>
45742         closedir: Avoid warning on mingw.
45743         * lib/closedir.c: Include <unistd.h>.
45745 2011-11-04  Bruno Haible  <bruno@clisp.org>
45747         New module 'fstatat', split off from module 'openat'.
45748         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45749         defined.
45750         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45751         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45752         gl_FUNC_FSTATAT.
45753         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45754         * modules/fstatat: New file, extracted from modules/openat.
45755         * modules/openat (Files): Remove lib/fstatat.c.
45756         (Depends-on): Remove lstat.
45757         (configure.ac): Remove AC_LIBOBJ of fstatat.
45758         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45759         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45760         tests/test-lstat.h, tests/test-stat.h.
45761         (Depends-on): Remove getcwd-lgpl.
45762         (Makefile.am): Remove rules for test-fstatat.
45763         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45764         of module 'openat'.
45765         * NEWS: Mention the change.
45766         * modules/getcwd (Depends-on): Add fstatat.
45767         * modules/linkat (Depends-on): Likewise.
45768         * modules/mkfifoat-tests (Depends-on): Likewise.
45769         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45771 2011-11-03  Bruno Haible  <bruno@clisp.org>
45773         New module 'unlinkat', split off from module 'openat'.
45774         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45775         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45776         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45777         * modules/unlinkat: New file, extracted from modules/openat. Correct
45778         the dependency conditions.
45779         * modules/openat (Files): Remove lib/unlinkat.c.
45780         (Depends-on): Remove rmdir, unlink.
45781         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45782         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45783         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45784         tests/test-rmdir.h, tests/test-unlink.h.
45785         (Depends-on): Remove unlinkdir.
45786         (Makefile.am): Remove rules for test-unlinkat.
45787         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45788         of module 'openat'.
45789         * NEWS: Mention the change.
45790         * modules/linkat-tests (Depends-on): Add unlinkat.
45791         * modules/mkfifoat-tests (Depends-on): Likewise.
45792         * modules/readlinkat-tests (Depends-on): Likewise.
45794 2011-11-02  Bruno Haible  <bruno@clisp.org>
45796         New module 'fchmodat', split off from module 'openat'.
45797         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45798         defined.
45799         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45800         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45801         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45802         * modules/fchmodat: New file, extracted from modules/openat.
45803         * modules/openat (Files): Remove lib/fchmodat.c.
45804         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45805         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45806         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45807         (Makefile.am): Remove rules for test-fchmodat.
45808         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45809         of module 'openat'.
45810         * NEWS: Mention the change.
45812 2011-11-02  Jim Meyering  <meyering@redhat.com>
45814         putenv: indent #definition of "environ" to placate cppi
45815         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45817         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45818         Git logs are often treated as immutable, because editing them
45819         changes the SHA1 checksums of all descendants.  Thus, errors in
45820         git logs tend to stay there forever.  However, when we generate
45821         a ChangeLog file -- typically for distribution -- from that git log,
45822         we can actually make corrections in the generated file.  The key
45823         lies in recording in machine-readable/applicable form the desired
45824         corrections.  See --help for description and an example.
45825         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45826         (usage): Describe it; alphabetize option descriptions.
45827         (main): Honor the new option, carefully.
45829 2011-11-01  Jim Meyering  <meyering@redhat.com>
45831         gitlog-to-changelog: avoid an infloop
45832         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45833         that ends up being empty.
45835 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45837         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45838         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45839         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45840         contains (possibly-quoted) backslashes.  This should avoid
45841         all-too-common shell bugs if COMPLICATED contains backslashes in
45842         the "wrong" places.  Reported by David Evans in
45843         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45844         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45845         because we want ASCII ranges.  Is there some reason we don't use
45846         the C locale everywhere in this script?
45847         (func_module, top level): Avoid unwanted pathname expansion when
45848         $repo_url_prefix or $repo_url_suffix_repl contain shell
45849         metacharacters like '?' and '*'.
45851 2011-11-01  Bruno Haible  <bruno@clisp.org>
45853         fchownat: Improve description.
45854         * modules/fchownat (Description): Add link to function.
45856 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45858         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45859         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45860         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45861         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45863 2011-11-01  Bruno Haible  <bruno@clisp.org>
45865         alignof: Avoid collision with stdalign module.
45866         * lib/alignof.h (alignof): Remove macro.
45867         * NEWS: Mention the change.
45868         Reported by Paul Eggert.
45870 2011-11-01  Bruno Haible  <bruno@clisp.org>
45872         New module 'fchownat', split off from module 'openat'.
45873         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45874         defined.
45875         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45876         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45877         invoke gl_FUNC_FCHOWNAT.
45878         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45879         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45880         * modules/fchownat: New file, extracted from modules/openat.
45881         * modules/openat (Files): Remove lib/fchownat.c.
45882         (Depends-on): Remove lchown.
45883         (configure.ac): Remove AC_LIBOBJ of fchownat.
45884         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45885         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45886         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45887         (Depends-on): Remove mgetgroups, usleep, stat-time.
45888         (configure.ac): Remove test for getegid.
45889         (Makefile.am): Remove rules for test-fchownat.
45890         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45891         of module 'openat'.
45892         * NEWS: Mention the change.
45894 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45896         stdalign: port better to MSVC and to Sun C 5.11
45897         This fixes some of the problems reported by Bruno Haible in
45898         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45899         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45900         shortcomings of MSVC and of Sun C 5.11.
45901         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45902         around __declspec arg.
45903         * modules/stdalign-tests (Files): Add tests/macros.h.
45904         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45905         Include macros.h, for ASSERT.
45906         (DECLARE_ALIGNED): Remove.
45907         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45908         to catch bug), and to 1 if not (simplifies the rest of the code).
45909         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45910         (CHECK_AUTO): Remove.
45911         (CHECK_ALIGNED): Check only the alignment of the static vars,
45912         since auto var alignment isn't supported by Sun C 5.11.
45913         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45914         ASSERT failures are easier to diagnose.
45916 2011-10-31  Bruno Haible  <bruno@clisp.org>
45918         doc about some IRIX 5.3 problems.
45919         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45920         on IRIX 5.3.
45921         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45922         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45923         5.3.
45924         * doc/posix-functions/grantpt.texi: Likewise.
45925         * doc/posix-functions/unlockpt.texi: Likewise.
45926         * doc/posix-functions/lgamma.texi: Likewise.
45927         * doc/posix-functions/nextafter.texi: Likewise.
45928         * doc/posix-functions/remainder.texi: Likewise.
45929         * doc/posix-functions/select.texi: Mention misplaced declaration on
45930         IRIX 5.3.
45931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45933 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45935         gitlog-to-changelog: fix git-log invocation.
45936         git-log mishandles date strings before 1970-01-01 UTC, and there is
45937         no use to specify --since=1970-01-01 by default anyway.
45938         * build-aux/gitlog-to-changelog: By default, when no --since option
45939         was given, do not specify explicit --since option to git-log.
45941 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45943         gitlog-to-changelog: new option --append-dot.
45944         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45945         first non-blank line of each commit message terminated with a dot.
45947 2011-10-30  Bruno Haible  <bruno@clisp.org>
45949         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45950         * lib/ffsl.h: Include <config.h>.
45951         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45953 2011-10-30  Jim Meyering  <meyering@redhat.com>
45955         GNUmakefile: reenable "make syntax-check" for most projects
45956         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45957         build-aux variable", "syntax-check" would do nothing but succeed with
45958         the "No version control files detected..." diagnostic (unless you
45959         happened to override _build-aux via cfg.mk).
45960         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45961         to precede inclusion of maint.mk.  Otherwise, these variables would
45962         be used undefined in any project that does not override the default.
45964 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45966         gitlog-to-changelog: treat a message with only blank lines as empty.
45967         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45968         trailing blank lines before the code that issues a warning about an
45969         empty commit message.
45971 2011-10-30  Jim Meyering  <meyering@redhat.com>
45973         test-parse-datetime.c: avoid new DST-related false positive test failure
45974         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45975         based on the time/date we'll convert, not the current time.
45976         Otherwise, the moment we cross a DST boundary like today's in
45977         Europe, (CEST to CET), that offset ends up being one hour off.
45979 2011-10-27  Bruno Haible  <bruno@clisp.org>
45981         fstat: Tweak documentation.
45982         * modules/fstat (Description): More precise description.
45984 2011-10-27  Bruno Haible  <bruno@clisp.org>
45986         Update documentation regarding 'largefile' module.
45987         * doc/posix-functions/fstat.texi: Tweak wording.
45988         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45989         problems with huge directories and/or small ino_t types.
45990         * doc/posix-functions/readdir.texi: Likewise.
45991         * doc/posix-functions/rewinddir.texi: Likewise.
45993 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45995         maint.mk: don't maintain a second build-aux variable.
45996         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45997         depends on GNUmakefile, which already maintains a cfg.mk
45998         overridable $(_build-aux) for projects with a non-standard
45999         build-aux directory location, although without the $(srcdir)
46000         prefix.  Use that variable consistently instead of introducing a
46001         second one.  Adjust all call sites.
46003 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46005         Add stdalign module and use it in other modules.
46006         This is based on a previous proposal by Bruno Haible
46007         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46009         stdalign: new module
46010         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46011         * modules/stdalign: New files.
46012         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46013         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46015         stdalign-tests: new module
46016         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46018         argp: use stdalign
46019         * lib/argp-parse.c: Include <stdalign.h>.
46020         (alignof): Remove.
46021         * modules/argp (Depends-on): Add stdalign.
46023         crypto libraries: use stdalign
46024         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46025         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46026         Do not include <stdlib.h> twice, in md4.c.
46027         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46028         because we are accessing a pointer's bit-pattern, not a size.
46029         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46030         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46031         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46032         * modules/crypto/sha512: Likewise.
46034         sys_socket: use stdalign, not alignof
46035         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46036         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46038 2011-10-27  Bruno Haible  <bruno@clisp.org>
46040         raise test: Avoid a test failure on Linux/MIPS.
46041         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46042         because 99 is a valid signal on Linux/MIPS.
46044 2011-10-27  Bruno Haible  <bruno@clisp.org>
46046         nonblocking tests: Fix test failure on Linux/MIPS.
46047         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46048         Set to 270000.
46050 2011-10-27  Bruno Haible  <bruno@clisp.org>
46052         utimensat: Work around problem on Linux/hppa.
46053         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46054         values.
46055         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46057 2011-10-25  Jim Meyering  <meyering@redhat.com>
46059         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46060         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46061         after symbols like NULL, size_t, etc.
46062         Reported by Alfred M. Szmidt.
46064         maint.mk: exempt ENODATA from a syntax-check rule
46065         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46066         from the sc_prohibit_always-defined_macros syntax-check rule.
46067         Add a comment.  See this for more details:
46068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46070 2011-10-23  Jim Meyering  <meyering@redhat.com>
46072         fts: close parent dir FD before returning from post-traversal fts_read
46073         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46074         unlink A, even though an FD open on A remained.  This is suboptimal
46075         (holding a file descriptor open longer than needed), but otherwise not
46076         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46077         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46078         that represents a real problem: it causes the removal of A to fail
46079         with e.g., "rm: cannot remove `A': Device or resource busy"
46081         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46082         directory file descriptors.  After completing the final, FTS_DP,
46083         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46084         cache, but then proceeded to add a new FD to it via the subsequent
46085         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46086         final file descriptor would be closed only via fts_close's call to
46087         fd_ring_clear.  Now, it is usually closed earlier, via the final
46088         FTS_DP-returning fts_read call.
46089         * lib/fts.c (restore_initial_cwd): New function, converted from
46090         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46091         Update callers.
46092         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46093         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46095 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46096             Bruno Haible  <bruno@clisp.org>
46097             Jim Meyering  <jim@meyering.net>
46099         readme-release: improve safety of release prep instructions.
46100         * README-release: Don't git pull all branches when only master
46101         is needed for the release process.
46102         Run make maintainer-clean before changing trees and merging.
46103         Don't try to run ./configure right after git pull in case files
46104         that influence the bootstrap process have changed, move the
46105         ./configure step to after running ./bootstrap.
46106         Don't bootstrap "one last time"... it's the first time!
46108 2011-10-22  Bruno Haible  <bruno@clisp.org>
46110         errno, strerror-override: Support for MSVC 10.
46111         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46112         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46113         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46114         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46115         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46116         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46117         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46118         Assign values compatible with MSVC 10.
46119         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46120         New macros.
46121         (GNULIB_defined_EWINSOCK): New macro.
46122         * lib/strerror-override.c (strerror_override): Update accordingly.
46123         * lib/strerror-override.h: Likewise.
46124         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46125         longer equal to the corresponding errno value.
46126         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46128 2011-10-22  Bruno Haible  <bruno@clisp.org>
46130         perror: Recognize when test program crashes.
46131         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46132         strerror, set gl_cv_func_perror_works to no.
46133         Reported by Daniel Richard G. <skunk@iskunk.org>.
46135         perror: Fix indentation.
46136         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46138 2011-10-22  Bruno Haible  <bruno@clisp.org>
46140         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46141         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46142         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46143         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46144         functions, not as a macro.
46145         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46146         macros.
46147         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46148         absence of macro.
46149         Suggested by Eric Blake.
46150         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46152 2011-10-21  Bruno Haible  <bruno@clisp.org>
46154         relocatable-prog-wrapper: Don't leave object files behind.
46155         * build-aux/install-reloc: Re-synchronize list of .o files to be
46156         removed with list of compilation units.
46158 2011-10-20  Bruno Haible  <bruno@clisp.org>
46160         openpty, posix_openpt: Remove code duplication.
46161         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46162         * lib/openpty.c: Include <stdlib.h>.
46163         (openpty): Use posix_openpt on all platforms except IRIX.
46164         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46166 2011-10-20  Bruno Haible  <bruno@clisp.org>
46168         unlockpt: Detect invalid argument.
46169         * lib/unlockpt.c: Include <fcntl.h>.
46170         (unlockpt): Check whether fd is valid, using fcntl().
46171         * modules/unlockpt (Depends-on): Add fcntl-h.
46173 2011-10-20  Bruno Haible  <bruno@clisp.org>
46175         openpty: Avoid compilation error on AIX 6.1.
46176         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46178 2011-10-20  Bruno Haible  <bruno@clisp.org>
46180         posix_openpt: Support for OpenBSD.
46181         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46182         (posix_openpt) [OpenBSD]: New code.
46183         * lib/grantpt.c: Include <fcntl.h>.
46184         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46185         * modules/grantpt (Depends-on): Add fcntl-h.
46187 2011-10-20  Bruno Haible  <bruno@clisp.org>
46189         posix_openpt test: Coding style.
46190         * tests/test-posix_openpt.c: Use GNU coding style.
46192 2011-10-20  Bruno Haible  <bruno@clisp.org>
46194         grantpt: Support --avoid=pt_chown.
46195         * modules/grantpt (Files): Add lib/pty-private.h.
46197 2011-10-20  Bruno Haible  <bruno@clisp.org>
46199         posix_openpt: Fix autoconf macro.
46200         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46201         unneeded check for _getpty.
46203 2011-10-20  Bruno Haible  <bruno@clisp.org>
46205         openpty: Update comments.
46206         * lib/openpty.c: Add comments about Minix.
46208 2011-10-19  Eric Blake  <eblake@redhat.com>
46210         openpty: relax license
46211         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46213         pt_chown: use configmake to simplify build
46214         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46216         ptsname and others: relax license
46217         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46218         * modules/unlockpt (License): Likewise.
46219         * modules/pt_chown (License): Likewise.
46220         * modules/ptsname (License): Likewise.
46221         * modules/ttyname_r (License): Likewise.
46223 2011-10-19  Jim Meyering  <meyering@redhat.com>
46225         posix_openpt: remove spurious #endif
46226         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46228 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46230         maint.mk: Respect $(build_aux) in web-manual rule.
46231         * top/maint.mk (web-manual): Find gen-announce script in user's
46232         $(build_aux) directory instead of hard-coding 'build-aux'.
46234 2011-10-19  Bruno Haible  <bruno@clisp.org>
46236         posix_openpt: Fix compilation error.
46237         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46238         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46239         Mention the openpty module as an alternative.
46241 2011-10-19  Bruno Haible  <bruno@clisp.org>
46243         Support for old NeXTstep 3.3 frexp().
46244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46245         execution time of the test to 5 seconds.
46246         Reported by Daniel Richard G. <skunk@iskunk.org>.
46248 2011-10-19  Bruno Haible  <bruno@clisp.org>
46250         Support for old NeXTstep 3.3 sed.
46251         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46252         part, use /.../, not \|...|. Escape periods in the header file name.
46253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46254         Reported by Daniel Richard G. <skunk@iskunk.org>.
46256 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46258         Support for old NeXTstep 3.3 gcc.
46259         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46260         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46261         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46262         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46263         * lib/regex.h (_Restrict_arr_): Likewise.
46264         * lib/regex_internal.h (re_token_t): Likewise.
46265         * lib/regexec.c (check_node_accept_bytes): Likewise.
46266         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46268 2011-10-18  Eric Blake  <eblake@redhat.com>
46270         posix_openpt: new module
46271         * modules/posix_openpt: New module.
46272         * m4/posix_openpt.m4: New file.
46273         * lib/posix_openpt.c: Likewise.
46274         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46275         (gl_STDLIB_H_DEFAULTS): Set defaults.
46276         * modules/stdlib (Makefile.am): Substitute macros.
46277         * lib/stdlib.in.h (posix_openpt): Declare.
46278         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46279         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46280         * modules/posix_openpt-tests: New test module.
46281         * tests/test-posix_openpt.c: New test.
46283 2011-10-15  Bruno Haible  <bruno@clisp.org>
46285         xstrtoll: Fix compilation failure.
46286         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46287         from lib/strtol.c.
46288         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46289         some platforms.
46290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46292 2011-10-15  Bruno Haible  <bruno@clisp.org>
46294         vasnprintf: Optimize bit search operation.
46295         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46297         gl_DOUBLE_EXPONENT_LOCATION.
46298         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46299         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46300         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46301         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46302         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46303         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46304         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46305         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46306         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46308 2011-10-15  Bruno Haible  <bruno@clisp.org>
46310         vasnprintf: Fix comments.
46311         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46313 2011-10-14  Bruno Haible  <bruno@clisp.org>
46315         Tests for module 'integer_length_ll'.
46316         * modules/integer_length_ll-tests: New file.
46317         * tests/test-integer_length_ll.c: New file.
46319         New module 'integer_length_ll'.
46320         * lib/integer_length_ll.c: New file.
46321         * modules/integer_length_ll: New file.
46323 2011-10-14  Bruno Haible  <bruno@clisp.org>
46325         Tests for module 'integer_length_l'.
46326         * modules/integer_length_l-tests: New file.
46327         * tests/test-integer_length_l.c: New file.
46329         New module 'integer_length_l'.
46330         * lib/integer_length_l.c: New file.
46331         * modules/integer_length_l: New file.
46333 2011-10-14  Bruno Haible  <bruno@clisp.org>
46335         Tests for module 'integer_length'.
46336         * modules/integer_length-tests: New file.
46337         * tests/test-integer_length.c: New file.
46339         New module 'integer_length'.
46340         * lib/integer_length.h: New file.
46341         * lib/integer_length.c: New file.
46342         * modules/integer_length: New file.
46344 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46346         popen: Fix dependency conditions.
46347         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46349 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46351         perror: Fix autoconf test.
46352         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46353         <stdlib.h> and <string.h>.
46355 2011-10-14  Bruno Haible  <bruno@clisp.org>
46357         ffsl: Optimize on 64-bit platforms.
46358         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46359         unrolling.
46361 2011-10-13  Bruno Haible  <bruno@clisp.org>
46363         ffsl: Optimize on 32-bit platforms.
46364         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46365         use ffs() without a loop.
46367         ffsl, ffsll: Optimize for GCC.
46368         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46369         * lib/ffsl.c (GCC_BUILTIN): New macro.
46370         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46372 2011-10-13  Bruno Haible  <bruno@clisp.org>
46374         ffs, bcopy, memset: Support symbol renaming via config.h.
46375         * lib/ffs.c: Include <config.h>.
46376         * lib/bcopy.c: Likewise.
46377         * lib/memset.c: Likewise.
46379 2011-10-10  Bruno Haible  <bruno@clisp.org>
46381         atanl: Simplify for platforms where 'long double' == 'double'.
46382         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46383         alternative implementation.
46384         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46385         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46386         * modules/atanl (Depends-on): Add atan. Update conditions.
46388 2011-10-10  Bruno Haible  <bruno@clisp.org>
46390         acosl: Simplify for platforms where 'long double' == 'double'.
46391         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46392         alternative implementation.
46393         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46394         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46395         * modules/acosl (Depends-on): Add acos. Update conditions.
46397 2011-10-10  Bruno Haible  <bruno@clisp.org>
46399         asinl: Simplify for platforms where 'long double' == 'double'.
46400         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46401         alternative implementation.
46402         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46403         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46404         * modules/asinl (Depends-on): Add asin. Update conditions.
46406 2011-10-10  Bruno Haible  <bruno@clisp.org>
46408         tanl: Simplify for platforms where 'long double' == 'double'.
46409         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46410         implementation.
46411         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46412         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46413         * modules/tanl (Depends-on): Add tan. Update conditions.
46414         (configure.ac): Don't compile trigl.c if
46415         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46417 2011-10-10  Bruno Haible  <bruno@clisp.org>
46419         cosl: Simplify for platforms where 'long double' == 'double'.
46420         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46421         implementation.
46422         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46423         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46424         * modules/cosl (Depends-on): Add cos. Update conditions.
46425         (configure.ac): Don't compile sincosl.c and trigl.c if
46426         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46428 2011-10-10  Bruno Haible  <bruno@clisp.org>
46430         sinl: Simplify for platforms where 'long double' == 'double'.
46431         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46432         implementation.
46433         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46434         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46435         * modules/sinl (Depends-on): Add sin. Update conditions.
46436         (configure.ac): Don't compile sincosl.c and trigl.c if
46437         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46439 2011-10-10  Bruno Haible  <bruno@clisp.org>
46441         logl: Simplify for platforms where 'long double' == 'double'.
46442         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46443         implementation.
46444         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46445         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46446         * modules/logl (Depends-on): Add log. Update conditions.
46448 2011-10-10  Bruno Haible  <bruno@clisp.org>
46450         expl: Simplify for platforms where 'long double' == 'double'.
46451         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46452         implementation.
46453         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46454         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46455         * modules/expl (Depends-on): Add exp. Update conditions.
46457 2011-10-10  Bruno Haible  <bruno@clisp.org>
46459         sqrtl: Simplify for platforms where 'long double' == 'double'.
46460         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46461         alternative implementation.
46462         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46463         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46464         * modules/sqrtl (Depends-on): Update conditions.
46466 2011-10-10  Bruno Haible  <bruno@clisp.org>
46468         ldexpl: Simplify for platforms where 'long double' == 'double'.
46469         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46470         alternative implementation.
46471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46472         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46473         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46475 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46477         ffsll: set correct witness
46478         * modules/ffsll (configure.ac): Fix typo.
46480 2011-10-10  Bruno Haible  <bruno@clisp.org>
46482         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46483         * lib/printf-frexpl.c: Include <config.h>.
46484         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46485         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46486         second time.
46487         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46488         gl_LONG_DOUBLE_VS_DOUBLE.
46489         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46490         conditions.
46492 2011-10-10  Bruno Haible  <bruno@clisp.org>
46494         frexpl: Simplify for platforms where 'long double' == 'double'.
46495         * lib/frexpl.c: Include <config.h>.
46496         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46497         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46498         time.
46499         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46500         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46501         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46502         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46503         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46504         conditions.
46506 2011-10-10  Jim Meyering  <meyering@redhat.com>
46508         test-renameat: don't leave behind a temporary file
46509         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46510           ERROR: files left in build directory after distclean:
46511           ./gltests/test-renameat.too
46512           make[1]: *** [distcleancheck] Error 1
46513         Reported by Tom G. Christensen.
46515 2011-10-09  Bruno Haible  <bruno@clisp.org>
46517         rint: Determine RINT_LIBM correctly on AIX 7.
46518         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46519         directly, not only through a function pointer. Also accept an optional
46520         4th argument with extra code.
46521         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46522         rintf() call by gcc when optimizing.
46524         mathfunc.m4: Refactor.
46525         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46526         m4 variable.
46528 2011-10-09  Bruno Haible  <bruno@clisp.org>
46530         rintl: Simplify for platforms where 'long double' == 'double'.
46531         * lib/rintl.c: Include <config.h>.
46532         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46533         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46534         time.
46535         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46536         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46537         * modules/rintl (Depends-on): Add rint. Update conditions.
46539 2011-10-09  Bruno Haible  <bruno@clisp.org>
46541         roundl: Simplify for platforms where 'long double' == 'double'.
46542         * lib/roundl.c: Include <config.h>.
46543         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46544         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46545         time.
46546         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46547         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46548         * modules/roundl (Depends-on): Add round. Update conditions.
46550 2011-10-09  Bruno Haible  <bruno@clisp.org>
46552         truncl: Simplify for platforms where 'long double' == 'double'.
46553         * lib/truncl.c: Include <config.h>.
46554         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46555         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46556         time.
46557         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46558         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46559         * modules/truncl (Depends-on): Add trunc. Update conditions.
46561 2011-10-09  Bruno Haible  <bruno@clisp.org>
46563         ceill: Simplify for platforms where 'long double' == 'double'.
46564         * lib/ceill.c: Include <config.h>.
46565         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46566         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46567         time.
46568         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46569         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46570         * modules/ceill (Depends-on): Add ceil. Update conditions.
46572 2011-10-09  Bruno Haible  <bruno@clisp.org>
46574         floorl: Simplify for platforms where 'long double' == 'double'.
46575         * lib/floorl.c: Include <config.h>.
46576         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46577         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46578         time.
46579         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46580         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46581         * modules/floorl (Depends-on): Add floor. Update conditions.
46583 2011-10-09  Bruno Haible  <bruno@clisp.org>
46585         rint: Fix ordering constraints.
46586         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46587         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46588         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46590 2011-10-09  Bruno Haible  <bruno@clisp.org>
46592         copysignl: Simplify for platforms where 'long double' == 'double'.
46593         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46594         alternative.
46595         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46596         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46597         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46599 2011-10-09  Bruno Haible  <bruno@clisp.org>
46601         Tests for module 'rintl'.
46602         * modules/rintl-tests: New file.
46603         * tests/test-rintl.c: New file.
46605         New module 'rintl'.
46606         * lib/math.in.h (rintl): New declaration.
46607         * lib/rintl.c: New file.
46608         * m4/rintl.m4: New file.
46609         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46611         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46612         * modules/rintl: New file.
46613         * tests/test-math-c++.cc: Check the declaration of rintl.
46614         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46615         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46616         * doc/posix-functions/rintl.texi: Mention the new module.
46618 2011-10-09  Bruno Haible  <bruno@clisp.org>
46620         Tests for module 'rintf'.
46621         * modules/rintf-tests: New file.
46622         * tests/test-rintf.c: New file.
46624         New module 'rintf'.
46625         * lib/math.in.h (rintf): New declaration.
46626         * lib/rintf.c: New file.
46627         * m4/rintf.m4: New file.
46628         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46630         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46631         * modules/rintf: New file.
46632         * tests/test-math-c++.cc: Check the declaration of rintf.
46633         * doc/posix-functions/rintf.texi: Mention the new module.
46635 2011-10-09  Bruno Haible  <bruno@clisp.org>
46637         rint: Support for MSVC.
46638         * lib/math.in.h (rint): New declaration.
46639         * lib/rint.c: New file.
46640         * m4/rint.m4: New file.
46641         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46643         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46644         * modules/rint (Description): Fix.
46645         (Files): Add lib/rint.c, m4/rint.m4.
46646         (Depends-on): Add math.
46647         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46648         gl_MATH_MODULE_INDICATOR.
46649         * tests/test-math-c++.cc: Check the declaration of rint.
46650         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46651         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46652         * doc/posix-functions/rint.texi: Mention the replacement provided by
46653         the module.
46655         rint tests: More tests.
46656         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46657         minus-zero.h, infinity.h, nan.h.
46658         (main): Skip the test if the current rounding mode is not standard. Add
46659         tests for negative numbers, minus zero, infinity, NaN.
46660         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46661         tests/nan.h.
46662         (Depends-on): Add isnand-nolibm.
46664 2011-10-09  Bruno Haible  <bruno@clisp.org>
46666         Tests for module 'copysignl'.
46667         * modules/copysignl-tests: New file.
46668         * tests/test-copysignl.c: New file.
46670         New module 'copysignl'.
46671         * lib/math.in.h (copysignl): New declaration.
46672         * lib/copysignl.c: New file.
46673         * m4/copysignl.m4: New file.
46674         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46676         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46677         HAVE_COPYSIGNL.
46678         * modules/copysignl: New file.
46679         * tests/test-math-c++.cc: Check the declaration of copysignl.
46680         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46681         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46682         * doc/posix-functions/copysignl.texi: Mention the new module.
46684 2011-10-09  Bruno Haible  <bruno@clisp.org>
46686         Tests for module 'copysignf'.
46687         * modules/copysignf-tests: New file.
46688         * tests/test-copysignf.c: New file.
46690         New module 'copysignf'.
46691         * lib/math.in.h (copysignf): New declaration.
46692         * lib/copysignf.c: New file.
46693         * m4/copysignf.m4: New file.
46694         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46696         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46697         HAVE_COPYSIGNF.
46698         * modules/copysignf: New file.
46699         * tests/test-math-c++.cc: Check the declaration of copysignf.
46700         * doc/posix-functions/copysignf.texi: Mention the new module.
46702 2011-10-09  Bruno Haible  <bruno@clisp.org>
46704         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46705         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46706         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46707         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46709         gl_SIGNAL_H_DEFAULTS.
46711 2011-10-09  Bruno Haible  <bruno@clisp.org>
46713         poll: Make macro safer.
46714         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46715         ac_cv_header_poll_h is not set.
46717 2011-10-09  Bruno Haible  <bruno@clisp.org>
46719         copysign: Provide replacement.
46720         * lib/math.in.h (copysign): New declaration.
46721         * lib/copysign.c: New file.
46722         * m4/copysign.m4: New file.
46723         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46725         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46726         HAVE_COPYSIGN.
46727         * modules/copysign (Description): Clarify.
46728         (Files): Add lib/copysign.c, m4/copysign.m4.
46729         (Depends-on): Add math, signbit.
46730         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46731         gl_MATH_MODULE_INDICATOR.
46732         * tests/test-math-c++.cc: Check the declaration of copysign.
46733         * doc/posix-functions/copysign.texi: Mention the effects of the module
46734         on Minix and MSVC.
46736 2011-10-09  Bruno Haible  <bruno@clisp.org>
46738         isinf: Ensure macro on AIX 5.1.
46739         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46740         macro.
46741         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46743 2011-10-09  Bruno Haible  <bruno@clisp.org>
46745         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46746         * modules/snprintf-posix-tests (configure.ac): Require
46747         gl_LONG_DOUBLE_VS_DOUBLE.
46748         * modules/sprintf-posix-tests (configure.ac): Likewise.
46749         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46750         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46751         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46752         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46753         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46754         tests on platforms where 'long double' is the same as 'double'.
46755         * tests/test-sprintf-posix.h (test_function): Likewise.
46756         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46757         * tests/test-vasprintf-posix.c (test_function): Likewise.
46759         *printf: Fix for platforms where 'long double' == 'double'.
46760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46761         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46762         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46763         * modules/fprintf-posix (Files): Likewise.
46764         * modules/obstack-printf-posix (Files): Likewise.
46765         * modules/snprintf-posix (Files): Likewise.
46766         * modules/sprintf-posix (Files): Likewise.
46767         * modules/vasnprintf (Files): Likewise.
46768         * modules/vasnprintf-posix (Files): Likewise.
46769         * modules/vasprintf-posix (Files): Likewise.
46770         * modules/vdprintf-posix (Files): Likewise.
46771         * modules/vfprintf-posix (Files): Likewise.
46772         * modules/vsnprintf-posix (Files): Likewise.
46773         * modules/vsprintf-posix (Files): Likewise.
46774         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46775         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46776         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46777         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46778         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46779         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46780         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46782         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46783         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46784         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46785         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46786         'long double'.
46787         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46789         isinf: Fix for platforms where 'long double' == 'double'.
46790         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46791         Don't blindly assume 80-bit 'long double'.
46793         isfinite: Fix for platforms where 'long double' == 'double'.
46794         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46795         Don't blindly assume 80-bit 'long double'.
46797         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46798         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46799         * modules/isfinite-tests (configure.ac): Require
46800         gl_LONG_DOUBLE_VS_DOUBLE.
46801         * modules/isinf-tests (configure.ac): Likewise.
46802         * modules/isnan-tests (configure.ac): Likewise.
46803         * modules/isnanl-tests (configure.ac): Likewise.
46804         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46805         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46806         tests on platforms where 'long double' is the same as 'double'.
46807         * tests/test-isinf.c (test_isinfl): Likewise.
46808         * tests/test-isnan.c (test_long_double): Likewise.
46809         * tests/test-isnanl.h (main): Likewise.
46811 2011-10-08  Bruno Haible  <bruno@clisp.org>
46813         Tests for module 'tanhf'.
46814         * modules/tanhf-tests: New file.
46815         * tests/test-tanhf.c: New file.
46817         New module 'tanhf'.
46818         * lib/math.in.h (tanhf): New declaration.
46819         * lib/tanhf.c: New file.
46820         * m4/tanhf.m4: New file.
46821         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46823         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46824         * modules/tanhf: New file.
46825         * tests/test-math-c++.cc: Check the declaration of tanhf.
46826         * doc/posix-functions/tanhf.texi: Mention the new module.
46828         tanh: Use a .m4 file.
46829         * m4/tanh.m4: New file.
46830         * modules/tanh (Files): Add it.
46831         (configure.ac): Just invoke gl_FUNC_TANH.
46833 2011-10-08  Bruno Haible  <bruno@clisp.org>
46835         Tests for module 'coshf'.
46836         * modules/coshf-tests: New file.
46837         * tests/test-coshf.c: New file.
46839         New module 'coshf'.
46840         * lib/math.in.h (coshf): New declaration.
46841         * lib/coshf.c: New file.
46842         * m4/coshf.m4: New file.
46843         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46845         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46846         * modules/coshf: New file.
46847         * tests/test-math-c++.cc: Check the declaration of coshf.
46848         * doc/posix-functions/coshf.texi: Mention the new module.
46850         cosh: Use a .m4 file.
46851         * m4/cosh.m4: New file.
46852         * modules/cosh (Files): Add it.
46853         (configure.ac): Just invoke gl_FUNC_COSH.
46855 2011-10-08  Bruno Haible  <bruno@clisp.org>
46857         Tests for module 'sinhf'.
46858         * modules/sinhf-tests: New file.
46859         * tests/test-sinhf.c: New file.
46861         New module 'sinhf'.
46862         * lib/math.in.h (sinhf): New declaration.
46863         * lib/sinhf.c: New file.
46864         * m4/sinhf.m4: New file.
46865         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46867         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46868         * modules/sinhf: New file.
46869         * tests/test-math-c++.cc: Check the declaration of sinhf.
46870         * doc/posix-functions/sinhf.texi: Mention the new module.
46872         sinh: Use a .m4 file.
46873         * m4/sinh.m4: New file.
46874         * modules/sinh (Files): Add it.
46875         (configure.ac): Just invoke gl_FUNC_SINH.
46877 2011-10-08  Bruno Haible  <bruno@clisp.org>
46879         Tests for module 'atan2f'.
46880         * modules/atan2f-tests: New file.
46881         * tests/test-atan2f.c: New file.
46883         New module 'atan2f'.
46884         * lib/math.in.h (atan2f): New declaration.
46885         * lib/atan2f.c: New file.
46886         * m4/atan2f.m4: New file.
46887         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46889         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46890         * modules/atan2f: New file.
46891         * tests/test-math-c++.cc: Check the declaration of atan2f.
46892         * doc/posix-functions/atan2f.texi: Mention the new module.
46894         atan2: Use a .m4 file.
46895         * m4/atan2.m4: New file.
46896         * modules/atan2 (Files): Add it.
46897         (configure.ac): Just invoke gl_FUNC_ATAN2.
46899 2011-10-08  Bruno Haible  <bruno@clisp.org>
46901         Tests for module 'atanf'.
46902         * modules/atanf-tests: New file.
46903         * tests/test-atanf.c: New file.
46905         New module 'atanf'.
46906         * lib/math.in.h (atanf): New declaration.
46907         * lib/atanf.c: New file.
46908         * m4/atanf.m4: New file.
46909         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46911         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46912         * modules/atanf: New file.
46913         * tests/test-math-c++.cc: Check the declaration of atanf.
46914         * doc/posix-functions/atanf.texi: Mention the new module.
46916         atan: Use a .m4 file.
46917         * m4/atan.m4: New file.
46918         * modules/atan (Files): Add it.
46919         (configure.ac): Just invoke gl_FUNC_ATAN.
46921 2011-10-08  Bruno Haible  <bruno@clisp.org>
46923         Tests for module 'acosf'.
46924         * modules/acosf-tests: New file.
46925         * tests/test-acosf.c: New file.
46927         New module 'acosf'.
46928         * lib/math.in.h (acosf): New declaration.
46929         * lib/acosf.c: New file.
46930         * m4/acosf.m4: New file.
46931         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46933         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46934         * modules/acosf: New file.
46935         * tests/test-math-c++.cc: Check the declaration of acosf.
46936         * doc/posix-functions/acosf.texi: Mention the new module.
46938         acos: Use a .m4 file.
46939         * m4/acos.m4: New file.
46940         * modules/acos (Files): Add it.
46941         (configure.ac): Just invoke gl_FUNC_ACOS.
46943 2011-10-08  Bruno Haible  <bruno@clisp.org>
46945         Tests for module 'asinf'.
46946         * modules/asinf-tests: New file.
46947         * tests/test-asinf.c: New file.
46949         New module 'asinf'.
46950         * lib/math.in.h (asinf): New declaration.
46951         * lib/asinf.c: New file.
46952         * m4/asinf.m4: New file.
46953         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46955         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46956         * modules/asinf: New file.
46957         * tests/test-math-c++.cc: Check the declaration of asinf.
46958         * doc/posix-functions/asinf.texi: Mention the new module.
46960         asin: Use a .m4 file.
46961         * m4/asin.m4: New file.
46962         * modules/asin (Files): Add it.
46963         (configure.ac): Just invoke gl_FUNC_ASIN.
46965 2011-10-08  Bruno Haible  <bruno@clisp.org>
46967         Tests for module 'tanf'.
46968         * modules/tanf-tests: New file.
46969         * tests/test-tanf.c: New file.
46971         New module 'tanf'.
46972         * lib/math.in.h (tanf): New declaration.
46973         * lib/tanf.c: New file.
46974         * m4/tanf.m4: New file.
46975         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46977         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46978         * modules/tanf: New file.
46979         * tests/test-math-c++.cc: Check the declaration of tanf.
46980         * doc/posix-functions/tanf.texi: Mention the new module.
46982         tan: Use a .m4 file.
46983         * m4/tan.m4: New file.
46984         * modules/tan (Files): Add it.
46985         (configure.ac): Just invoke gl_FUNC_TAN.
46987 2011-10-08  Bruno Haible  <bruno@clisp.org>
46989         Tests for module 'cosf'.
46990         * modules/cosf-tests: New file.
46991         * tests/test-cosf.c: New file.
46993         New module 'cosf'.
46994         * lib/math.in.h (cosf): New declaration.
46995         * lib/cosf.c: New file.
46996         * m4/cosf.m4: New file.
46997         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46999         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47000         * modules/cosf: New file.
47001         * tests/test-math-c++.cc: Check the declaration of cosf.
47002         * doc/posix-functions/cosf.texi: Mention the new module.
47004         cos: Use a .m4 file.
47005         * m4/cos.m4: New file.
47006         * modules/cos (Files): Add it.
47007         (configure.ac): Just invoke gl_FUNC_COS.
47009 2011-10-08  Bruno Haible  <bruno@clisp.org>
47011         Tests for module 'sinf'.
47012         * modules/sinf-tests: New file.
47013         * tests/test-sinf.c: New file.
47015         New module 'sinf'.
47016         * lib/math.in.h (sinf): New declaration.
47017         * lib/sinf.c: New file.
47018         * m4/sinf.m4: New file.
47019         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47021         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47022         * modules/sinf: New file.
47023         * tests/test-math-c++.cc: Check the declaration of sinf.
47024         * doc/posix-functions/sinf.texi: Mention the new module.
47026         sin: Use a .m4 file.
47027         * m4/sin.m4: New file.
47028         * modules/sin (Files): Add it.
47029         (configure.ac): Just invoke gl_FUNC_SIN.
47031 2011-10-08  Bruno Haible  <bruno@clisp.org>
47033         Tests for module 'powf'.
47034         * modules/powf-tests: New file.
47035         * tests/test-powf.c: New file.
47037         New module 'powf'.
47038         * lib/math.in.h (powf): New declaration.
47039         * lib/powf.c: New file.
47040         * m4/powf.m4: New file.
47041         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47043         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47044         * modules/powf: New file.
47045         * tests/test-math-c++.cc: Check the declaration of powf.
47046         * doc/posix-functions/powf.texi: Mention the new module.
47048         pow: Use a .m4 file.
47049         * m4/pow.m4: New file.
47050         * modules/pow (Files): Add it.
47051         (configure.ac): Just invoke gl_FUNC_POW.
47053 2011-10-08  Bruno Haible  <bruno@clisp.org>
47055         Tests for module 'log10f'.
47056         * modules/log10f-tests: New file.
47057         * tests/test-log10f.c: New file.
47059         New module 'log10f'.
47060         * lib/math.in.h (log10f): New declaration.
47061         * lib/log10f.c: New file.
47062         * m4/log10f.m4: New file.
47063         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47065         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47066         * modules/log10f: New file.
47067         * tests/test-math-c++.cc: Check the declaration of log10f.
47068         * doc/posix-functions/log10f.texi: Mention the new module.
47070         log10: Use a .m4 file.
47071         * m4/log10.m4: New file.
47072         * modules/log10 (Files): Add it.
47073         (configure.ac): Just invoke gl_FUNC_LOG10.
47075 2011-10-08  Bruno Haible  <bruno@clisp.org>
47077         Tests for module 'logf'.
47078         * modules/logf-tests: New file.
47079         * tests/test-logf.c: New file.
47081         New module 'logf'.
47082         * lib/math.in.h (logf): New declaration.
47083         * lib/logf.c: New file.
47084         * m4/logf.m4: New file.
47085         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47087         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47088         * modules/logf: New file.
47089         * tests/test-math-c++.cc: Check the declaration of logf.
47090         * doc/posix-functions/logf.texi: Mention the new module.
47092         log: Use a .m4 file.
47093         * m4/log.m4: New file.
47094         * modules/log (Files): Add it.
47095         (configure.ac): Just invoke gl_FUNC_LOG.
47097 2011-10-08  Bruno Haible  <bruno@clisp.org>
47099         Tests for module 'expf'.
47100         * modules/expf-tests: New file.
47101         * tests/test-expf.c: New file.
47103         New module 'expf'.
47104         * lib/math.in.h (expf): New declaration.
47105         * lib/expf.c: New file.
47106         * m4/expf.m4: New file.
47107         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47109         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47110         * modules/expf: New file.
47111         * tests/test-math-c++.cc: Check the declaration of expf.
47112         * doc/posix-functions/expf.texi: Mention the new module.
47114         exp: Use a .m4 file.
47115         * m4/exp.m4: New file.
47116         * modules/exp (Files): Add it.
47117         (configure.ac): Just invoke gl_FUNC_EXP.
47119 2011-10-08  Bruno Haible  <bruno@clisp.org>
47121         Tests for module 'sqrtf'.
47122         * modules/sqrtf-tests: New file.
47123         * tests/test-sqrtf.c: New file.
47125         New module 'sqrtf'.
47126         * lib/math.in.h (sqrtf): New declaration.
47127         * lib/sqrtf.c: New file.
47128         * m4/sqrtf.m4: New file.
47129         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47131         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47132         * modules/sqrtf: New file.
47133         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47134         * doc/posix-functions/sqrtf.texi: Mention the new module.
47136 2011-10-08  Bruno Haible  <bruno@clisp.org>
47138         Tests: Avoid link failures w.r.t. libintl.
47139         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47140         $(LIBINTL).
47141         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47142         $(LIBINTL).
47143         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47144         against $(LIBINTL).
47145         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47146         $(LIBINTL).
47147         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47148         $(LIBINTL).
47149         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47151 2011-10-08  Bruno Haible  <bruno@clisp.org>
47153         pow tests: Defeat compiler optimizations.
47154         * tests/test-pow.c (main): Assign arguments to x and y before use.
47156 2011-10-08  Bruno Haible  <bruno@clisp.org>
47158         gnulib-tool: Improve last commit.
47159         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47160         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47161         ignore dependencies that are not among the modules list.
47163 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47165         gnulib-tool: don't follow dependencies to avoided modules
47166         This fixes a bug that is related to the previous one.
47167         * gnulib-tool (func_modules_transitive_closure)
47168         (func_emit_autoconf_snippets):
47169         Check whether a dependency is acceptable before using it.
47170         (--extract-dependencies): Report an error if --avoid is also used,
47171         since this combination of options is not yet supported.
47173         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47174         Problem reported by Peter Dyballa in
47175         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47176         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47177         when echoing "$condition".
47179 2011-10-07  Bruno Haible  <bruno@clisp.org>
47181         Fix documentation about math functions on MacOS X.
47182         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47183         MacOS X 10.5.
47184         * doc/posix-functions/fdim.texi: Likewise.
47185         * doc/posix-functions/feclearexcept.texi: Likewise.
47186         * doc/posix-functions/fegetenv.texi: Likewise.
47187         * doc/posix-functions/fegetround.texi: Likewise.
47188         * doc/posix-functions/feholdexcept.texi: Likewise.
47189         * doc/posix-functions/feraiseexcept.texi: Likewise.
47190         * doc/posix-functions/fesetenv.texi: Likewise.
47191         * doc/posix-functions/fesetround.texi: Likewise.
47192         * doc/posix-functions/fetestexcept.texi: Likewise.
47193         * doc/posix-functions/feupdateenv.texi: Likewise.
47194         * doc/posix-functions/fmax.texi: Likewise.
47195         * doc/posix-functions/fmin.texi: Likewise.
47196         * doc/posix-functions/log2.texi: Likewise.
47197         * doc/posix-functions/modff.texi: Likewise.
47198         * doc/posix-functions/nan.texi: Likewise.
47199         * doc/posix-functions/nanf.texi: Likewise.
47200         * doc/posix-functions/nextafterf.texi: Likewise.
47201         * doc/posix-functions/remquo.texi: Likewise.
47203 2011-10-07  Bruno Haible  <bruno@clisp.org>
47205         modff: Drop assumption about library that defines modff.
47206         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47207         AC_CHECK_FUNCS.
47208         * modules/modff (Files): Add m4/mathfunc.m4.
47210 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47212         raise tests: Avoid a GCC warning.
47213         * tests/test-raise.c (handler): Use _Noreturn.
47215 2011-10-07  Bruno Haible  <bruno@clisp.org>
47217         Tests for module 'ldexpf'.
47218         * modules/ldexpf-tests: New file.
47219         * tests/test-ldexpf.c: New file.
47221         New module 'ldexpf'.
47222         * lib/math.in.h (ldexpf): New declaration.
47223         * lib/ldexpf.c: New file.
47224         * m4/ldexpf.m4: New file.
47225         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47227         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47228         * modules/ldexpf: New file.
47229         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47230         * doc/posix-functions/ldexpf.texi: Mention the new module.
47232 2011-10-06  Bruno Haible  <bruno@clisp.org>
47234         frexpf: Work around problems on IRIX and mingw.
47235         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47237         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47238         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47239         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47240         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47241         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47243 2011-10-06  Bruno Haible  <bruno@clisp.org>
47245         fabsf: Drop assumption about library that defines fabsf.
47246         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47247         AC_CHECK_FUNCS.
47248         * modules/fabsf (Files): Add m4/mathfunc.m4.
47250 2011-10-06  Bruno Haible  <bruno@clisp.org>
47252         frexpf: Drop assumption about library that defines frexpf.
47253         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47254         'int *', 'float *', 'long double *', 'float', 'long double'.
47255         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47256         AC_CHECK_FUNCS.
47257         * modules/frexpf (Files): Add m4/mathfunc.m4.
47259         Tests for module 'frexpf'.
47260         * modules/frexpf-tests: New file.
47261         * tests/test-frexpf.c: New file.
47263         New module 'frexpf'.
47264         * lib/math.in.h (frexpf): New declaration.
47265         * lib/frexpf.c: New file.
47266         * m4/frexpf.m4: New file.
47267         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47269         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47270         * modules/frexpf: New file.
47271         * tests/test-math-c++.cc: Check the declaration of frexpf.
47272         * doc/posix-functions/frexpf.texi: Mention the new module.
47274 2011-10-06  Bruno Haible  <bruno@clisp.org>
47276         math: Sort function declarations of math.in.h.
47277         * lib/math.in.h (frexp, logb): Move declarations.
47279 2011-10-05  Bruno Haible  <bruno@clisp.org>
47281         Tests for module 'modff'.
47282         * modules/modff-tests: New file.
47283         * tests/test-modff.c: New file.
47285         New module 'modff'.
47286         * lib/math.in.h (modff): New declaration.
47287         * lib/modff.c: New file.
47288         * m4/modff.m4: New file.
47289         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47291         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47292         * modules/modff: New file.
47293         * tests/test-math-c++.cc: Check the declaration of modff.
47294         * doc/posix-functions/modff.texi: Mention the new module.
47296         modf tests: Make test sharper.
47297         * tests/test-modf.c (main): Strengthen upper bound.
47299         modf: Use a .m4 file.
47300         * m4/modf.m4: New file.
47301         * modules/modf (Files): Add it.
47302         (configure.ac): Just invoke gl_FUNC_MODF.
47304 2011-10-05  Bruno Haible  <bruno@clisp.org>
47306         Tests for module 'fmodf'.
47307         * modules/fmodf-tests: New file.
47308         * tests/test-fmodf.c: New file.
47310         New module 'fmodf'.
47311         * lib/math.in.h (fmodf): New declaration.
47312         * lib/fmodf.c: New file.
47313         * m4/fmodf.m4: New file.
47314         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47316         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47317         * modules/fmodf: New file.
47318         * tests/test-math-c++.cc: Check the declaration of fmodf.
47319         * doc/posix-functions/fmodf.texi: Mention the new module.
47321         fmod: Use a .m4 file.
47322         * m4/fmod.m4: New file.
47323         * modules/fmod (Files): Add it.
47324         (configure.ac): Just invoke gl_FUNC_FMOD.
47326 2011-10-05  Bruno Haible  <bruno@clisp.org>
47328         Tests for module 'fabsf'.
47329         * modules/fabsf-tests: New file.
47330         * tests/test-fabsf.c: New file.
47332         New module 'fabsf'.
47333         * lib/math.in.h (fabsf): New declaration.
47334         * lib/fabsf.c: New file.
47335         * m4/fabsf.m4: New file.
47336         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47338         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47339         * modules/fabsf: New file.
47340         * tests/test-math-c++.cc: Check the declaration of fabsf.
47341         * doc/posix-functions/fabsf.texi: Mention the new module.
47343         fabs: Use a .m4 file.
47344         * m4/fabs.m4: New file.
47345         * modules/fabs (Files): Add it.
47346         (configure.ac): Just invoke gl_FUNC_FABS.
47348 2011-10-05  Jim Meyering  <meyering@redhat.com>
47350         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47351         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47352         ls -lL regression introduced in coreutils-8.12, it does so at the
47353         cost of an additional stat call in the common case.  Besides, now
47354         that the kernel change that prompted commit 95f7c57f has been reverted
47355         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47356         we have no use for commit 95f7c57f, "file-has-acl: use
47357         acl_extended_file_nofollow if available".
47359 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47361         file-has-acl: revert unintended change in behavior of ls -L
47362         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47363         derived from...
47364         (file_has_acl): ...code here.  Call it.
47365         This problem was introduced with 2011-07-22 commit 95f7c57f,
47366         "file-has-acl: use acl_extended_file_nofollow if available".
47367         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47369 2011-10-03  Bruno Haible  <bruno@clisp.org>
47371         poll: Avoid link errors on MSVC.
47372         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47373         * modules/poll (Depends-on): Add sockets.
47374         (Link): New section.
47375         * NEWS: Mention the change.
47376         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47377         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47378         $(LIB_POLL) instead of $(LIBSOCKET).
47380 2011-10-03  Bruno Haible  <bruno@clisp.org>
47382         sys_select tests: Fix link error on MSVC 9.
47383         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47384         with $(LIB_SELECT) instead of $(LIBSOCKET).
47386 2011-10-03  Bruno Haible  <bruno@clisp.org>
47388         sys_select: Fix compilation error on mingw.
47389         * lib/sys_select.in.h: On native Windows, include <io.h>.
47391 2011-10-03  Bruno Haible  <bruno@clisp.org>
47393         wmemset: Support for MSVC.
47394         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47395         whether wmemset() exists.
47397 2011-10-03  Bruno Haible  <bruno@clisp.org>
47399         wmemmove: Support for MSVC.
47400         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47401         whether wmemmove() exists.
47403 2011-10-03  Bruno Haible  <bruno@clisp.org>
47405         wmemcpy: Support for MSVC.
47406         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47407         whether wmemcpy() exists.
47409 2011-10-03  Bruno Haible  <bruno@clisp.org>
47411         wmemcmp: Support for MSVC.
47412         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47413         whether wmemcmp() exists.
47415 2011-10-03  Bruno Haible  <bruno@clisp.org>
47417         wmemchr: Support for MSVC.
47418         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47419         whether wmemchr() exists.
47421 2011-10-03  Bruno Haible  <bruno@clisp.org>
47423         glthread/*, strsignal: Support for MSVC.
47424         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47425         including <winsock.h> on MSVC 9.
47426         * lib/glthread/lock.h: Likewise.
47427         * lib/glthread/thread.h: Likewise.
47428         * lib/glthread/tls.h: Likewise.
47429         * lib/glthread/yield.h: Likewise.
47430         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47431         if HAVE_UNISTD_H is false.
47432         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47434 2011-10-03  Bruno Haible  <bruno@clisp.org>
47436         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47437         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47438         Set to 100000.
47440 2011-10-03  Bruno Haible  <bruno@clisp.org>
47442         acl: Fix specification.
47443         * lib/file-has-acl.c (file_has_acl): Fix specification.
47445 2011-10-03  Bruno Haible  <bruno@clisp.org>
47447         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47448         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47449         (compute_curr_prefix, shared_library_fullname,
47450         find_shared_library_fullname, get_shared_library_fullname, relocate):
47451         Use it together with PIC && INSTALLDIR.
47452         Reported by <jojelino@gmail.com>
47453         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47455 2011-10-01  Jim Meyering  <meyering@redhat.com>
47457         maint.mk: adjust a release-related rule not to require use of gzip
47458         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47459         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47460         projects that build only .tar.xz files.  Also fix an erroneous test.
47462         test-linkat: don't leave behind a temporary file
47463         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47464         Otherwise, coreutils' "make distcheck" would fail with this:
47465           Only in /c/cu/tests/torture/coreutils/test/\
47466             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47467           make[2]: *** [my-distcheck] Error 1
47469         float, math: add omitted file
47470         * lib/itold.c: Add file, required for yesterday's float change.
47472 2011-10-01  Bruno Haible  <bruno@clisp.org>
47474         isinf: Fix for OpenBSD/x86.
47475         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47476         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47477         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47479 2011-10-01  Bruno Haible  <bruno@clisp.org>
47481         isfinite: Fix syntax error in configure test.
47482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47484         isfinite: Fix typo.
47485         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47486         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47488 2011-10-01  Bruno Haible  <bruno@clisp.org>
47490         nonblocking tests: Fix test failure on Linux/IA-64.
47491         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47492         Set to 270000.
47494 2011-10-01  Bruno Haible  <bruno@clisp.org>
47496         mkfifoat tests: Fix a test failure on mingw.
47497         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47498         with error ENOSYS.
47500 2011-09-30  Bruno Haible  <bruno@clisp.org>
47502         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47503         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47504         'long double'. Set REPLACE_ITOLD.
47505         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47506         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47507         * lib/itold.c: New file.
47508         * modules/float (Files): Add lib/itold.c.
47509         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47510         (Makefile.am): Substitute REPLACE_ITOLD.
47511         * modules/math (Depends-on): Add float.
47512         (Makefile.am): Substitute REPLACE_ITOLD.
47513         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47514         * doc/posix-headers/math.texi: Likewise.
47515         * doc/posix-functions/logl.texi: Likewise.
47517 2011-09-30  Bruno Haible  <bruno@clisp.org>
47519         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47520         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47521         Set to 140000.
47523 2011-09-30  Bruno Haible  <bruno@clisp.org>
47525         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47526         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47527         invocation, say "right after AC_PROG_CC_STDC", not "right after
47528         AC_PROG_CC".
47529         Reported by Gary V. Vaughan <gary@gnu.org>.
47531 2011-09-30  Bruno Haible  <bruno@clisp.org>
47533         Centralize C99 requirement.
47534         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47535         * modules/stdarg (configure.ac-early): Invoke it instead of
47536         AC_PROG_CC_STDC.
47537         Reported by Gary V. Vaughan and Paul Eggert.
47539 2011-09-29  Bruno Haible  <bruno@clisp.org>
47541         float: Fix LDBL_MAX value on Linux/PowerPC.
47542         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47543         on Linux/PowerPC.
47544         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47545         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47546         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47547         platform.
47548         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47550 2011-09-29  Bruno Haible  <bruno@clisp.org>
47552         doc: Improve doc about gl_EARLY.
47553         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47554         AC_PROG_CC_STDC invocation.
47555         Reported by Gary V. Vaughan <gary@gnu.org>.
47557 2011-09-28  Bruno Haible  <bruno@clisp.org>
47559         fgetc, fputc, fread, fwrite tests: Fix link error.
47560         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47561         on non-MSVC platforms.
47562         * tests/test-fputc.c (main): Likewise.
47563         * tests/test-fread.c (main): Likewise.
47564         * tests/test-fwrite.c (main): Likewise.
47565         Reported by Jim Meyering.
47567 2011-09-27  Bruno Haible  <bruno@clisp.org>
47569         fputc, fwrite tests: Avoid test failure on MSVC.
47570         * tests/test-fgetc.c: Include msvc-inval.h.
47571         (main): Invoke gl_msvc_inval_ensure_handler.
47572         * tests/test-fputc.c: Include msvc-inval.h.
47573         (main): Invoke gl_msvc_inval_ensure_handler.
47574         * tests/test-fread.c: Include msvc-inval.h.
47575         (main): Invoke gl_msvc_inval_ensure_handler.
47576         * tests/test-fwrite.c: Include msvc-inval.h.
47577         (main): Invoke gl_msvc_inval_ensure_handler.
47578         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47579         * modules/fputc-tests (Depends-on): Likewise.
47580         * modules/fread-tests (Depends-on): Likewise.
47581         * modules/fwrite-tests (Depends-on): Likewise.
47583 2011-09-27  Bruno Haible  <bruno@clisp.org>
47585         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47586         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47587         (raise): Remove older, duplicated declaration.
47588         (_gl_raise_SIGPIPE): New declaration.
47589         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47590         (rpl_raise): Remove function.
47591         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47592         a gnulib-defined SIGPIPE here.
47593         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47594         'sigprocmask' has detected missing signal-blocking and the module
47595         'sigpipe' is enabled.
47596         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47598 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47600         base64-tests: avoid memory leak
47601         * tests/test-base64.c (main): Plug memory leak.
47603         base32: new module
47604         * modules/base32: New module.
47605         * lib/base32.c: New file.
47606         * lib/base32.h: Likewise.
47607         * m4/base32.m4: Likewise.
47608         * modules/base32-tests: New test.
47609         * tests/test-base32.c: Likewise.
47610         * MODULES.html.sh (Misc): Mention it.
47612 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47614         gnulib: use more-standard license notice wording
47615         * gnulib-tool (func_emit_copyright_notice): When emitting a
47616         license notice into a file, use the standard wording as suggested
47617         by the current information for GNU maintainers, except say "file"
47618         rather than "program".  The new wording gives a license version
47619         number, which addresses an issue raised by Glenn Morris in
47620         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47621         * m4/onceonly.m4: Use that same wording here, too.
47623         dup2: minor simplification
47624         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47625         as lib/dup2.c no longer uses 'inline'.
47627 2011-09-25  Bruno Haible  <bruno@clisp.org>
47629         strings: Fix compilation error on MSVC.
47630         * lib/strings.in.h: Include <stddef.h> for size_t.
47632 2011-09-25  Bruno Haible  <bruno@clisp.org>
47634         fflush et al.: Document limitation on MSVC.
47635         * doc/posix-functions/fflush.texi: Document possible crash in handling
47636         mode other than DEFAULT_HANDLING.
47637         * doc/posix-functions/fgetc.texi: Likewise.
47638         * doc/posix-functions/fputc.texi: Likewise.
47639         * doc/posix-functions/fread.texi: Likewise.
47640         * doc/posix-functions/fwrite.texi: Likewise.
47642 2011-09-25  Bruno Haible  <bruno@clisp.org>
47644         msvc-inval: Allow three invalid parameter handling modes.
47645         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47646         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47647         macros.
47648         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47649         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47650         SANE_LIBRARY_HANDLING as a no-op.
47651         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47652         <stdlib.h>.
47653         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47655 2011-09-25  Bruno Haible  <bruno@clisp.org>
47657         msvc-inval: Make handler multithread-safe.
47658         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47659         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47660         declarations.
47661         (gl_msvc_inval_current): New declaration.
47662         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47663         Operate on the structure returned by gl_msvc_inval_current().
47664         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47665         Remove varaiables.
47666         (tls_index, tls_initialized): New variables.
47667         (not_per_thread): New variable.
47668         (gl_msvc_inval_current): New function.
47669         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47670         returned by gl_msvc_inval_current().
47672 2011-09-25  Bruno Haible  <bruno@clisp.org>
47674         msvc-inval: Install handler globally.
47675         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47676         !_MSC_VER.
47677         (gl_msvc_invalid_parameter_handler): Remove declaration.
47678         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47679         declarations.
47680         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47681         Install the handler globally, don't uninstall it.
47682         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47683         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47684         currently valid, call RaiseException instead.
47685         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47686         for !_MSC_VER.
47688 2011-09-25  Bruno Haible  <bruno@clisp.org>
47690         strerror_r-posix: Fix for MSVC 9.
47691         * lib/strerror_r.c (local_snprintf): New function.
47692         (snprintf): Define to local_snprintf, not to _snprintf.
47694 2011-09-25  Bruno Haible  <bruno@clisp.org>
47696         ftruncate: Support for MSVC 9.
47697         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47698         (chsize_nothrow): New function.
47699         (chsize): Redefine as a macro.
47700         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47701         * modules/ftruncate (Depends-on): Add msvc-inval.
47703 2011-09-25  Bruno Haible  <bruno@clisp.org>
47705         New module 'fstat'.
47706         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47707         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47708         * lib/fchdir.c (rpl_fstat): Remove function.
47709         * m4/fstat.m4: New file.
47710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47711         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47712         declared.
47713         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47714         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47715         * modules/fstat: New file.
47716         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47717         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47718         is set.
47719         * doc/posix-functions/fstat.texi: Mention the new module and the
47720         problem on MSVC.
47721         * NEWS: Mention the change.
47722         * modules/acl (Depends-on): Add fstat.
47723         * modules/chdir-safer (Depends-on): Likewise.
47724         * modules/chown (Depends-on): Likewise.
47725         * modules/copy-file (Depends-on): Likewise.
47726         * modules/fchdir (Depends-on): Likewise.
47727         * modules/fdopendir (Depends-on): Likewise.
47728         * modules/fopen (Depends-on): Likewise.
47729         * modules/fts (Depends-on): Likewise.
47730         * modules/getcwd (Depends-on): Likewise.
47731         * modules/isapipe (Depends-on): Likewise.
47732         * modules/linkat (Depends-on): Likewise.
47733         * modules/lseek (Depends-on): Likewise.
47734         * modules/mkdir-p (Depends-on): Likewise.
47735         * modules/open (Depends-on): Likewise.
47736         * modules/openat (Depends-on): Likewise.
47737         * modules/read-file (Depends-on): Likewise.
47738         * modules/renameat (Depends-on): Likewise.
47739         * modules/utimens (Depends-on): Likewise.
47741 2011-09-25  Bruno Haible  <bruno@clisp.org>
47743         linkat: Fix compilation on MSVC 9.
47744         * lib/linkat.c: Don't include <stdint.h>.
47746 2011-09-25  Bruno Haible  <bruno@clisp.org>
47748         fclose: Support for MSVC 9.
47749         * lib/fclose.c: Include msvc-inval.h.
47750         (fclose_nothrow): New function.
47751         (rpl_fclose): Use it.
47752         * modules/fclose (Depends-on): Add msvc-inval.
47753         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47755 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47757         dup2: minor simplifications
47758         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47759         that it's a performance win.
47760         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47761         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47763 2011-09-24  Jim Meyering  <meyering@redhat.com>
47765         test-futimens: avoid a warning from gcc -Wshadow
47766         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47767         to avoid a shadowing warning.
47769 2011-09-24  Bruno Haible  <bruno@clisp.org>
47771         fdopen: Support for MSVC 9.
47772         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47773         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47774         * lib/fdopen.c: Include msvc-inval.h.
47775         (fdopen_nothrow): New function.
47776         (rpl_fdopen): Use it.
47777         * modules/fdopen (Depends-on): Add msvc-inval.
47778         * modules/fclose-tests (Depends-on): Add fdopen.
47779         * modules/fflush-tests (Depends-on): Likewise.
47780         * modules/fgetc-tests (Depends-on): Likewise.
47781         * modules/fputc-tests (Depends-on): Likewise.
47782         * modules/fread-tests (Depends-on): Likewise.
47783         * modules/freopen-tests (Depends-on): Likewise.
47784         * modules/fseeko-tests (Depends-on): Likewise.
47785         * modules/ftello-tests (Depends-on): Likewise.
47786         * modules/fwrite-tests  (Depends-on): Likewise.
47787         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47789 2011-09-24  Bruno Haible  <bruno@clisp.org>
47791         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47792         * modules/fgetc-tests (Depends-on): Add unistd.
47793         * modules/fputc-tests (Depends-on): Likewise.
47794         * modules/fread-tests (Depends-on): Likewise.
47795         * modules/fwrite-tests (Depends-on): Likewise.
47797 2011-09-24  Bruno Haible  <bruno@clisp.org>
47799         dup: Simplify autoconf test.
47800         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47801         on gl_MSVC_INVAL's result.
47803 2011-09-24  Bruno Haible  <bruno@clisp.org>
47805         Tests for function fwrite().
47806         * modules/fwrite-tests: New file.
47807         * tests/test-fwrite.c: New file.
47808         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47810         Tests for function fread().
47811         * modules/fread-tests: New file.
47812         * tests/test-fread.c: New file.
47813         * modules/stdio-tests (Depends-on): Add fread-tests.
47815         Activate fputc tests.
47816         * modules/stdio-tests (Depends-on): Add fputc-tests.
47818         Enhance fgetc, fputc tests.
47819         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47820         * tests/test-fputc.c (main): Likewise.
47822 2011-09-24  Bruno Haible  <bruno@clisp.org>
47824         write: Support for MSVC 9.
47825         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47826         is not 1.
47827         * lib/write.c (write_nothrow): New function.
47828         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47829         not 1. Use write_nothrow.
47830         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47831         invalid parameter handler.
47832         (gl_PREREQ_WRITE): New macro.
47833         * modules/write (Depends-on): Add msvc-inval.
47834         (configure.ac): Invoke gl_PREREQ_WRITE.
47835         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47837 2011-09-24  Bruno Haible  <bruno@clisp.org>
47839         read: Fix last commit.
47840         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47842 2011-09-24  Bruno Haible  <bruno@clisp.org>
47844         dup2: Fix last commit.
47845         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47846         (rpl_dup2): Disable fcntl workaround on native Windows.
47848         sigprocmask: Make code safer.
47849         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47850         section that changes macro definitions for this compilation unit.
47852 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47854         dup2: clarify by coalescing Windows-specific material
47855         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47856         "msvc-nothrow.h"' to the Windows-specific section, so that the
47857         Emacs source need not contain these include files.
47858         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47859         Windows-specific fixes into this function rather than just the
47860         nothrow fix, as this shortens and clarifies the code.  Always
47861         define as a function, as that's a bit cleaner than having it be
47862         sometimes a function and sometimes a macro.
47863         (rpl_dup2): Move the Windows-specific stuff out of here and into
47864         ms_windows_dup2.  Don't protect the Haiku-related fix with
47865         "#if !defined __linux__", as the same code also works around
47866         a Linux kernel bug, and it doesn't add any system calls on any
47867         platform.  Add comment about FreeBSD 6.1.
47869         sigprocmask: move #include directive
47870         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47871         Windows-specific section, so that the Emacs source need not
47872         contain msvc-inval.h.
47874 2011-09-23  Bruno Haible  <bruno@clisp.org>
47876         read: Support for MSVC 9.
47877         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47878         is not 1.
47879         * lib/read.c (read_nothrow): New function.
47880         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47881         read_nothrow.
47882         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47883         invalid parameter handler.
47884         (gl_PREREQ_READ): New macro.
47885         * modules/read (Depends-on): Add msvc-inval.
47886         (configure.ac): Invoke gl_PREREQ_READ.
47887         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47889 2011-09-23  Bruno Haible  <bruno@clisp.org>
47891         close: Support for MSVC 9.
47892         * lib/close.c: Include <errno.h>, msvc-inval.h.
47893         (close_nothrow): New function.
47894         (rpl_close): Use it.
47895         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47896         invalid parameter handler.
47897         * modules/close (Depends-on): Add msvc-inval.
47898         * modules/dup2-tests (Depends-on): Add close.
47899         * modules/dup3-tests (Depends-on): Likewise.
47900         * modules/fcntl-tests (Depends-on): Likewise.
47901         * modules/spawn-pipe-tests (Depends-on): Likewise.
47902         * modules/unistd-safer-tests (Depends-on): Likewise.
47903         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47905 2011-09-23  Bruno Haible  <bruno@clisp.org>
47907         New module 'dup'.
47908         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47909         Allow replacement.
47910         * lib/dup.c: New file.
47911         * lib/fchdir.c (rpl_dup): Remove function.
47912         * m4/dup.m4: New file.
47913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47914         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47915         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47916         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47917         * modules/dup: New file.
47918         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47919         'dup' module is in use.
47920         * modules/fdopendir (Depends-on): Add dup.
47921         * modules/fdutimensat-tests (Depends-on): Likewise.
47922         * modules/fts (Depends-on): Likewise.
47923         * modules/futimens-tests (Depends-on): Likewise.
47924         * modules/posix_spawnp-tests (Depends-on): Likewise.
47925         * modules/unistd-safer-tests (Depends-on): Likewise.
47926         * modules/utimens-tests (Depends-on): Likewise.
47927         * doc/posix-functions/dup.texi: Mention the new module and the problem
47928         on MSVC.
47930 2011-09-23  Bruno Haible  <bruno@clisp.org>
47932         getdtablesize: Support for MSVC 9.
47933         * lib/getdtablesize.c: Include msvc-inval.h.
47934         (_setmaxstdio_nothrow): New function.
47935         (_setmaxstdio): Redefine it.
47936         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47937         * modules/getdtablesize (Depends-on): Add msvc-inval.
47938         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47940 2011-09-23  Bruno Haible  <bruno@clisp.org>
47942         signal-h: Rename from signal.
47943         * modules/signal-h: Renamed from modules/signal.
47944         * modules/pthread_sigmask (Depends-on): Update.
47945         * modules/raise (Depends-on): Likewise.
47946         * modules/sigaction (Depends-on): Likewise.
47947         * modules/sigpipe (Depends-on): Likewise.
47948         * modules/sigprocmask (Depends-on): Likewise.
47949         * modules/sys_select (Depends-on): Likewise.
47950         * modules/signal-h-tests: Renamed from modules/signal-tests.
47951         (Files, Depends-on, Makefile.am): Update.
47952         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47953         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47954         (Files, Makefile.am): Update.
47955         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47956         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47957         * modules/signal: New placeholder file.
47958         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47959         * doc/posix-headers/signal.texi: Update.
47960         * NEWS: Mention the change.
47962 2011-09-23  Bruno Haible  <bruno@clisp.org>
47964         sigprocmask: Avoid crashes through signal() on MSVC 9.
47965         * lib/sigprocmask.c: Include msvc-inval.h.
47966         (signal_nothrow): New function.
47967         (signal): Redefine it.
47968         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47969         * modules/sigprocmask (Depends-on): Add msvc-inval.
47970         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47972 2011-09-23  Bruno Haible  <bruno@clisp.org>
47974         Tests for module 'raise'.
47975         * modules/raise-tests: New file.
47976         * tests/test-raise.c: New file.
47978         raise: Support for MSVC.
47979         * lib/signal.in.h (raise): New declaration.
47980         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47981         for native Windows platforms.
47982         * m4/raise.m4: New file.
47983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47984         HAVE_RAISE, REPLACE_RAISE.
47985         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47986         REPLACE_RAISE.
47987         * modules/raise (Status, Notice): Remove fields.
47988         (Files): Add m4/raise.m4.
47989         (Depends-on): Add signal, msvc-inval.
47990         (configure.ac): Use the common idioms.
47991         (Maintainer): Add me.
47992         * tests/test-signal-c++.cc: Check the signature of raise.
47993         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47995 2011-09-23  Bruno Haible  <bruno@clisp.org>
47997         pipe2: Fix compilation on pre-C99 compilers.
47998         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48000 2011-09-23  Bruno Haible  <bruno@clisp.org>
48002         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48003         * lib/msvc-nothrow.h: New file.
48004         * lib/msvc-nothrow.c: New file.
48005         * m4/msvc-nothrow.m4: New file.
48006         * modules/msvc-nothrow: New file.
48007         * lib/dup2.c: Include msvc-nothrow.h.
48008         (rpl_dup2): No need to protect _get_osfhandle call here.
48009         * lib/accept4.c: Include msvc-nothrow.h.
48010         * lib/error.c: Likewise.
48011         * lib/fcntl.c: Likewise.
48012         * lib/lseek.c: Likewise.
48013         * lib/nonblocking.c: Likewise.
48014         * lib/poll.c: Likewise.
48015         * lib/read.c: Likewise.
48016         * lib/select.c: Likewise.
48017         * lib/sockets.h: Likewise.
48018         * lib/sockets.c: Likewise.
48019         * lib/stdio-read.c: Likewise.
48020         * lib/stdio-write.c: Likewise.
48021         * lib/write.c: Likewise.
48022         * lib/w32sock.h: Likewise.
48023         * lib/w32spawn.h: Likewise.
48024         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48025         * lib/fsync.c: Likewise.
48026         * lib/isapipe.c: Likewise.
48027         * modules/dup2 (Depends-on): Add msvc-nothrow.
48028         * modules/accept4 (Depends-on): Likewise.
48029         * modules/error (Depends-on): Likewise.
48030         * modules/fcntl (Depends-on): Likewise.
48031         * modules/lseek (Depends-on): Likewise.
48032         * modules/nonblocking (Depends-on): Likewise.
48033         * modules/poll (Depends-on): Likewise.
48034         * modules/read (Depends-on): Likewise.
48035         * modules/select (Depends-on): Likewise.
48036         * modules/sockets (Depends-on): Likewise.
48037         * modules/sigpipe (Depends-on): Likewise.
48038         * modules/write (Depends-on): Likewise.
48039         * modules/accept (Depends-on): Likewise.
48040         * modules/bind (Depends-on): Likewise.
48041         * modules/connect (Depends-on): Likewise.
48042         * modules/gethostname (Depends-on): Likewise.
48043         * modules/getpeername (Depends-on): Likewise.
48044         * modules/getsockname (Depends-on): Likewise.
48045         * modules/getsockopt (Depends-on): Likewise.
48046         * modules/ioctl (Depends-on): Likewise.
48047         * modules/listen (Depends-on): Likewise.
48048         * modules/recv (Depends-on): Likewise.
48049         * modules/recvfrom (Depends-on): Likewise.
48050         * modules/send (Depends-on): Likewise.
48051         * modules/sendto (Depends-on): Likewise.
48052         * modules/setsockopt (Depends-on): Likewise.
48053         * modules/shutdown (Depends-on): Likewise.
48054         * modules/socket (Depends-on): Likewise.
48055         * modules/execute (Depends-on): Likewise.
48056         * modules/spawn-pipe (Depends-on): Likewise.
48057         * modules/flock (Depends-on): Likewise.
48058         * modules/fsync (Depends-on): Likewise.
48059         * modules/isapipe (Depends-on): Likewise.
48060         * tests/test-cloexec.c: Include msvc-nothrow.h.
48061         * tests/test-dup-safer.c: Likewise.
48062         * tests/test-dup2.c: Likewise.
48063         * tests/test-dup3.c: Likewise.
48064         * tests/test-fcntl.c: Likewise.
48065         * tests/test-pipe.c: Likewise.
48066         * tests/test-pipe2.c: Likewise.
48067         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48068         * modules/unistd-safer-tests (Depends-on): Likewise.
48069         * modules/dup2-tests (Depends-on): Likewise.
48070         * modules/dup3-tests (Depends-on): Likewise.
48071         * modules/fcntl-tests (Depends-on): Likewise.
48072         * modules/pipe-posix-tests (Depends-on): Likewise.
48073         * modules/pipe2-tests (Depends-on): Likewise.
48075 2011-09-23  Bruno Haible  <bruno@clisp.org>
48077         dup2: Make code more maintainable.
48078         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48079         (rpl_dup2): Use it.
48080         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48081         * modules/dup2 (configure.ac): Invoke it.
48082         Reported by Paul Eggert.
48084 2011-09-23  Bruno Haible  <bruno@clisp.org>
48086         msvc-inval: Fix compilation error.
48087         * lib/msvc-inval.h: Include <excpt.h>.
48089 2011-09-23  Bruno Haible  <bruno@clisp.org>
48091         mkdir: Tweak for MSVC 9.
48092         * lib/sys_stat.in.h: Update comments.
48093         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48095         Tests for module 'chdir'.
48096         * modules/chdir-tests: New file.
48097         * tests/test-chdir.c: New file.
48099         New module 'chdir'.
48100         * modules/chdir: New file.
48101         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48102         (chdir): New declaration.
48103         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48104         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48105         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48106         * tests/test-unistd-c++.cc: Check signature of chdir.
48107         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48108         * modules/chdir-long (Depends-on): Add chdir.
48109         * modules/fchdir (Depends-on): Likewise.
48110         * modules/rename (Depends-on): Likewise.
48111         * modules/savewd (Depends-on): Likewise.
48113         rmdir: Support for mingw, MSVC 9.
48114         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48115         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48117         getcwd: Tweak for MSVC 9.
48118         * lib/unistd.in.h: Update comments.
48119         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48121 2011-09-22  Bruno Haible  <bruno@clisp.org>
48123         strerror_r-posix: Avoid a link error on MSVC.
48124         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48125         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48127 2011-09-22  Bruno Haible  <bruno@clisp.org>
48129         select: Avoid link errors on MSVC.
48130         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48131         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48132         * modules/pselect (Link): Likewise.
48133         * NEWS: Mention the change.
48134         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48135         test-select-stdin against $(LIB_SELECT).
48136         * modules/pselect-tests (Makefile.am): Link test-pselect against
48137         $(LIB_SELECT).
48139 2011-09-22  Bruno Haible  <bruno@clisp.org>
48141         select: Avoid compilation error on MSVC.
48142         * lib/select.c: Don't include <stdbool.h>.
48144 2011-09-21  Bruno Haible  <bruno@clisp.org>
48146         Consolidate all uses of PATH_MAX in *.m4 files.
48147         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48148         macros.
48149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48150         and gl_PATHMAX_SNIPPET.
48151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48153         * modules/chdir-long (Files): Add m4/pathmax.m4.
48154         * modules/getcwd (Files): Likewise.
48156 2011-09-21  Bruno Haible  <bruno@clisp.org>
48158         ftruncate: Un-deprecate, concentrate on Win32 support.
48159         * modules/ftruncate (Status, Notice): Remove sections.
48160         (Depends-on): Add largefile.
48161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48162         non-mingw platforms.
48163         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48164         include <io.h>.
48165         * modules/perror-tests (Depends-on): Add ftruncate.
48166         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48167         'ftruncate' module.
48169 2011-09-21  Bruno Haible  <bruno@clisp.org>
48171         Add dependencies to new dirent related modules.
48172         * modules/opendir (Depends-on): Add closedir.
48173         * modules/getcwd (Depends-on): Add opendir, closedir.
48174         * modules/dirent-safer-tests (Depends-on): Likewise.
48175         * modules/fdopendir-tests (Depends-on): Likewise.
48176         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48177         * modules/renameat-tests (Depends-on): Likewise.
48179 2011-09-21  Bruno Haible  <bruno@clisp.org>
48181         opendir: Avoid compilation error on mingw.
48182         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48183         * modules/opendir (Depends-on): Add unistd.
48185 2011-09-21  Bruno Haible  <bruno@clisp.org>
48187         ftruncate tests: Avoid a test failure on mingw.
48188         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48190 2011-09-21  Bruno Haible  <bruno@clisp.org>
48192         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48193         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48194         native Windows.
48196 2011-09-21  Bruno Haible  <bruno@clisp.org>
48198         New module 'fdopen'.
48199         * lib/stdio.in.h (fdopen): New declaration.
48200         * lib/fdopen.c: New file.
48201         * m4/fdopen.m4: New file.
48202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48203         REPLACE_FDOPEN.
48204         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48205         REPLACE_FDOPEN.
48206         * modules/fdopen: New file.
48207         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48208         * tests/test-stdio-c++.cc: Check signature of fdopen.
48209         * doc/posix-functions/fdopen.texi: Mention the new module.
48211 2011-09-21  Bruno Haible  <bruno@clisp.org>
48213         unlockpt tests: Avoid test failure on NetBSD 5.1.
48214         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48215         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48217 2011-09-21  Bruno Haible  <bruno@clisp.org>
48219         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48220         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48221         * tests/test-getlogin_r.c (main): Likewise.
48223 2011-09-20  Bruno Haible  <bruno@clisp.org>
48225         time tests: Don't require pid_t.
48226         * doc/posix-headers/time.texi: Revert last change.
48227         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48228         * tests/test-time.c: Comment out the check for pid_t.
48230 2011-09-20  Bruno Haible  <bruno@clisp.org>
48232         fsync tests: Avoid a test failure on mingw.
48233         * tests/test-fsync.c (main): Allow a failure with EIO.
48235 2011-09-20  Bruno Haible  <bruno@clisp.org>
48237         euidaccess: Update comments.
48238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48240 2011-09-20  Bruno Haible  <bruno@clisp.org>
48242         Ensure EBADF returns for socket functions on mingw.
48243         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48244         descriptor is invalid.
48245         * lib/bind.c (rpl_bind): Likewise.
48246         * lib/connect.c (rpl_connect): Likewise.
48247         * lib/getpeername.c (rpl_getpeername): Likewise.
48248         * lib/getsockname.c (rpl_getsockname): Likewise.
48249         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48250         * lib/listen.c (rpl_listen): Likewise.
48251         * lib/recv.c (rpl_recv): Likewise.
48252         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48253         * lib/send.c (rpl_send): Likewise.
48254         * lib/sendto.c (rpl_sendto): Likewise.
48255         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48256         * lib/shutdown.c (rpl_shutdown): Likewise.
48258 2011-09-20  Bruno Haible  <bruno@clisp.org>
48260         select tests: EBADF tests.
48261         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48262         test_bad_fd): New functions.
48263         (test_function): Invoke also test_bad_fd.
48265 2011-09-20  Bruno Haible  <bruno@clisp.org>
48267         Tests for module 'posix_spawn_file_actions_addopen.
48268         * modules/posix_spawn_file_actions_addopen-tests: New file.
48269         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48271         Tests for module 'posix_spawn_file_actions_adddup2'.
48272         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48273         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48275         Tests for module 'posix_spawn_file_actions_addclose'.
48276         * modules/posix_spawn_file_actions_addclose-tests: New file.
48277         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48279 2011-09-20  Bruno Haible  <bruno@clisp.org>
48281         Tests for module 'unlockpt'.
48282         * modules/unlockpt-tests: New file.
48283         * tests/test-unlockpt.c: New file.
48284         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48286         Tests for module 'grantpt'.
48287         * modules/grantpt-tests: New file.
48288         * tests/test-grantpt.c: New file.
48289         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48291 2011-09-20  Bruno Haible  <bruno@clisp.org>
48293         freopen tests: EBADF tests.
48294         * tests/test-freopen.c: Include errno.h, unistd.h.
48295         (main): Add tests for EBADF, commented out for the moment.
48297         fclose tests: EBADF tests.
48298         * tests/test-fclose.c (main): Add tests for EBADF.
48300         fflush tests: EBADF tests.
48301         * tests/test-fflush.c: Include errno.h, macros.h.
48302         (main): Add tests for EBADF.
48304         ftello tests: EBADF tests.
48305         * tests/test-ftello4.sh: New file.
48306         * tests/test-ftello4.c: New file.
48307         * modules/ftello-tests (Files): Add them.
48308         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48310         fseeko tests: EBADF tests.
48311         * tests/test-fseeko4.sh: New file.
48312         * tests/test-fseeko4.c: New file.
48313         * modules/fseeko-tests (Files): Add them.
48314         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48316         Tests for function fputc().
48317         * modules/fputc-tests: New file.
48318         * tests/test-fputc.c: New file.
48319         * modules/stdio-tests (Depends-on): Add fputc-tests.
48321         Tests for function fgetc().
48322         * modules/fgetc-tests: New file.
48323         * tests/test-fgetc.c: New file.
48324         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48326         Tests for function fdopen().
48327         * modules/fdopen-tests: New file.
48328         * tests/test-fdopen.c: New file.
48329         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48331         Tests for module 'vdprintf'.
48332         * modules/vdprintf-tests: New file.
48333         * tests/test-vdprintf.c: New file.
48335         Tests for module 'dprintf'.
48336         * modules/dprintf-tests: New file.
48337         * tests/test-dprintf.c: New file.
48339 2011-09-20  Bruno Haible  <bruno@clisp.org>
48341         Tests for module 'ioctl'.
48342         * modules/ioctl-tests: New file.
48343         * tests/test-ioctl.c: New file.
48345 2011-09-20  Bruno Haible  <bruno@clisp.org>
48347         fcntl tests: EBADF tests.
48348         * tests/test-fcntl.c (main): Add more tests for EBADF.
48350 2011-09-20  Bruno Haible  <bruno@clisp.org>
48352         utimensat tests: EBADF tests.
48353         * tests/test-utimensat.c (main): Add tests for EBADF.
48355         renameat tests: EBADF tests.
48356         * tests/test-renameat.c (main): Add tests for EBADF.
48358         mkfifoat tests: EBADF tests.
48359         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48361         readlinkat tests: EBADF tests.
48362         * tests/test-readlinkat.c (main): Add tests for EBADF.
48364         symlinkat tests: EBADF tests.
48365         * tests/test-symlinkat.c (main): Add tests for EBADF.
48367         linkat tests: EBADF tests.
48368         * tests/test-linkat.c (main): Add tests for EBADF.
48370         Tests for module 'faccessat'.
48371         * modules/faccessat-tests: New file.
48372         * tests/test-faccessat.c: New file.
48374         fdopendir tests: EBADF tests.
48375         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48377         openat tests: EBADF tests.
48378         * tests/test-fchownat.c (main): Add tests for EBADF.
48379         * tests/test-fstatat.c (main): Likewise.
48380         * tests/test-mkdirat.c (main): Likewise.
48381         * tests/test-openat.c (main): Likewise.
48382         * tests/test-unlinkat.c (main): Likewise.
48383         * tests/test-fchmodat.c: New file.
48384         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48385         (Makefile.am): Also run 'test-fchmodat'.
48387 2011-09-20  Bruno Haible  <bruno@clisp.org>
48389         utimens, futimens, fdutimensat tests: EBADF tests.
48390         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48392         Tests for function fstat().
48393         * modules/fstat-tests: New file.
48394         * tests/test-fstat.c: New file.
48395         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48397 2011-09-20  Bruno Haible  <bruno@clisp.org>
48399         test-ttyname_r tests: EBADF tests.
48400         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48402         Tests for module 'isatty'.
48403         * modules/isatty-tests: New file.
48404         * tests/test-isatty.c: New file.
48406         Tests for module 'write'.
48407         * modules/write-tests: New file.
48408         * tests/test-write.c: New file.
48410         Tests for module 'read'.
48411         * modules/read-tests: New file.
48412         * tests/test-read.c: New file.
48414         pwrite tests: EBADF tests.
48415         * tests/test-pwrite.c (main): Add tests for EBADF.
48417         pread tests: EBADF tests.
48418         * tests/test-pread.c (main): Add tests for EBADF.
48420         lseek tests: EBADF tests.
48421         * tests/test-lseek.c (main): Add more tests for EBADF.
48423         Tests for module 'ftruncate'.
48424         * modules/ftruncate-tests: New file.
48425         * tests/test-ftruncate.sh: New file.
48426         * tests/test-ftruncate.c: New file.
48428         fsync tests: EBADF tests.
48429         * tests/test-fsync.c (main): Add more tests for EBADF.
48431         fdatasync tests: EBADF tests.
48432         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48434         Tests for module 'fchown'.
48435         * modules/fchown-tests: New file.
48436         * tests/test-fchown.c: New file.
48438         Tests for module 'fchmod'.
48439         * modules/fchmod-tests: New file.
48440         * tests/test-fchmod.c: New file.
48442         fchdir tests: EBADF tests.
48443         * tests/test-fchdir.c (main): Add more tests for EBADF.
48445         dup2 tests: EBADF tests.
48446         * tests/test-dup2.c (main): Add more tests for EBADF.
48448         Tests for module 'dup'.
48449         * modules/dup-tests: New file.
48450         * tests/test-dup.c: New file.
48452         Tests for module 'close'.
48453         * modules/close-tests: New file.
48454         * tests/test-close.c: New file.
48456 2011-09-20  Bruno Haible  <bruno@clisp.org>
48458         Tests for module 'shutdown'.
48459         * modules/shutdown-tests: New file.
48460         * tests/test-shutdown.c: New file.
48462         Tests for module 'setsockopt'.
48463         * modules/setsockopt-tests: New file.
48464         * tests/test-setsockopt.c: New file.
48466         Tests for module 'sendto'.
48467         * modules/sendto-tests: New file.
48468         * tests/test-sendto.c: New file.
48470         Tests for module 'send'.
48471         * modules/send-tests: New file.
48472         * tests/test-send.c: New file.
48474         Tests for module 'recvfrom'.
48475         * modules/recvfrom-tests: New file.
48476         * tests/test-recvfrom.c: New file.
48478         Tests for module 'recv'.
48479         * modules/recv-tests: New file.
48480         * tests/test-recv.c: New file.
48482         Tests for module 'listen'.
48483         * modules/listen-tests: New file.
48484         * tests/test-listen.c: New file.
48486         Tests for module 'getsockopt'.
48487         * modules/getsockopt-tests: New file.
48488         * tests/test-getsockopt.c: New file.
48490         Tests for module 'getsockname'.
48491         * modules/getsockname-tests: New file.
48492         * tests/test-getsockname.c: New file.
48494         Tests for module 'getpeername'.
48495         * modules/getpeername-tests: New file.
48496         * tests/test-getpeername.c: New file.
48498         Tests for module 'connect'.
48499         * modules/connect-tests: New file.
48500         * tests/test-connect.c: New file.
48502         Tests for module 'bind'.
48503         * modules/bind-tests: New file.
48504         * tests/test-bind.c: New file.
48506         accept4 tests: Fix for native Windows.
48507         * tests/test-accept4.c: Include sockets.h.
48508         (main): Invoke gl_sockets_startup.
48509         * modules/accept4-tests (Depends-on): Add sockets.
48511         accept tests: Fix for native Windows.
48512         * tests/test-accept.c: Include sockets.h.
48513         (main): Invoke gl_sockets_startup.
48514         * modules/accept-tests (Depends-on): Add sockets.
48516 2011-09-19  Bruno Haible  <bruno@clisp.org>
48518         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48519         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48520         do...while(0).
48521         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48522         Suggested by Paul Eggert.
48524 2011-09-19  Bruno Haible  <bruno@clisp.org>
48526         sched: Ensure pid_t is defined.
48527         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48528         not define pid_t.
48529         * lib/sched.in.h: Include <sys/types.h>.
48530         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48533 2011-09-19  Bruno Haible  <bruno@clisp.org>
48535         msvc-inval: Ensure the entire expansion is a single statement.
48536         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48537         of braces.
48539 2011-09-19  Jim Meyering  <meyering@redhat.com>
48541         tests: use printf, not echo in init.sh's warn_ function
48542         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48543         misbehave when given strings containing a backslash or starting
48544         with e.g., -n.  James Youngman suggested setting IFS.
48546 2011-09-19  Eric Blake  <eblake@redhat.com>
48548         futimens: enhance test
48549         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48550         closed non-negative fd.
48552         date: accept 'hence' as opposite of 'ago'
48553         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48554         * tests/test-parse-datetime.c (main): Enhance test.
48555         Suggested by Jesse Wilson.
48557 2011-09-19  Jim Meyering  <meyering@redhat.com>
48559         getcwd: don't fail in a deep directory on a system without openat
48560         Before this change, getcwd would fail when called from a directory
48561         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48562         the non-openat implementation used "..", "../..", "../../..", etc.
48563         to access ancestor directories.  With too many, that string would
48564         be longer than PATH_MAX.
48565         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48566         using gnulib's openat replacement.
48567         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48568         we're using the replacement function.
48570 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48572         maint.mk: avoid warnings from perl about missing files
48573         * top/maint.mk (def_sym_regex): Ignore files listed in
48574         $(gl_other_headers_) that do not exist, say because a project
48575         does not use a corresponding module.
48577 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48579         stat: use pathmax.h only if needed
48580         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48581         This is better for Emacs, which does not have a mingw port and
48582         therefore can avoid the pathmax module.
48584         utimens: remove dependency on dup2
48585         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48586         to work around the Linux kernel bug.
48587         * modules/utimens (Depends-on): Remove dup2.
48589 2011-09-18  Bruno Haible  <bruno@clisp.org>
48591         inet_ntop, inet_pton: Look for it also in libresolv.
48592         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48593         libnsl, search for it in libresolv.
48594         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48595         Needed on Solaris 7.
48597 2011-09-18  Bruno Haible  <bruno@clisp.org>
48599         accept, accept4 tests: Avoid link error on Solaris.
48600         * modules/accept-tests (Makefile.am): Link test-accept against
48601         $(LIBSOCKET).
48602         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48603         $(LIBSOCKET).
48605         accept4: Avoid link error on Solaris.
48606         * modules/accept4 (Link): New section.
48608         socket functions: Avoid link errors on Solaris.
48609         * modules/accept (Depends-on): Add socketlib.
48610         (Link): New section.
48611         * modules/bind (Depends-on): Add socketlib.
48612         (Link): New section.
48613         * modules/connect (Depends-on): Add socketlib.
48614         (Link): New section.
48615         * modules/getpeername (Depends-on): Add socketlib.
48616         (Link): New section.
48617         * modules/getsockname (Depends-on): Add socketlib.
48618         (Link): New section.
48619         * modules/getsockopt (Depends-on): Add socketlib.
48620         (Link): New section.
48621         * modules/listen (Depends-on): Add socketlib.
48622         (Link): New section.
48623         * modules/recv (Depends-on): Add socketlib.
48624         (Link): New section.
48625         * modules/recvfrom (Depends-on): Add socketlib.
48626         (Link): New section.
48627         * modules/send (Depends-on): Add socketlib.
48628         (Link): New section.
48629         * modules/sendto (Depends-on): Add socketlib.
48630         (Link): New section.
48631         * modules/setsockopt (Depends-on): Add socketlib.
48632         (Link): New section.
48633         * modules/shutdown (Depends-on): Add socketlib.
48634         (Link): New section.
48635         * modules/socket (Depends-on): Add socketlib.
48636         (Link): New section.
48638 2011-09-18  Bruno Haible  <bruno@clisp.org>
48640         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48641         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48642         than 5 seconds.
48643         * modules/ptsname-tests (configure.ac): Test for alarm.
48645 2011-09-18  Bruno Haible  <bruno@clisp.org>
48647         posix_spawn_file_actions_add*: Fix module dependencies.
48648         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48649         posix_spawn_file_actions_init.
48650         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48651         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48653 2011-09-18  Bruno Haible  <bruno@clisp.org>
48655         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48656         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48657         * tests/test-renameat.c (main): Likewise.
48659 2011-09-18  Bruno Haible  <bruno@clisp.org>
48661         Tests for module 'accept4'.
48662         * modules/accept4-tests: New file.
48663         * tests/test-accept4.c: New file.
48665 2011-09-18  Bruno Haible  <bruno@clisp.org>
48667         Tests for module 'accept'.
48668         * modules/accept-tests: New file.
48669         * tests/test-accept.c: New file.
48671 2011-09-18  Bruno Haible  <bruno@clisp.org>
48673         dup2: Support for MSVC.
48674         * lib/dup2.c: Include msvc-inval.h.
48675         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48676         _get_osfhandle calls.
48677         * modules/dup2 (Depends-on): Add msvc-inval.
48678         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48680         New module 'msvc-inval'.
48681         * lib/msvc-inval.h: New file.
48682         * lib/msvc-inval.c: New file.
48683         * m4/msvc-inval.m4: New file.
48684         * modules/msvc-inval: New file.
48686 2011-09-17  Bruno Haible  <bruno@clisp.org>
48688         Tests for module 'pclose'.
48689         * modules/pclose-tests: New file.
48691         New module 'pclose'.
48692         * lib/stdio.in.h (pclose): New declaration.
48693         * lib/pclose.c: New file.
48694         * m4/pclose.m4: New file.
48695         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48696         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48697         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48698         * modules/pclose: New file.
48699         * modules/popen-tests (Depends-on): Add pclose.
48700         * modules/popen-safer-tests (Depends-on): Likewise.
48701         * doc/posix-functions/pclose.texi: Mention the new module.
48703 2011-09-17  Bruno Haible  <bruno@clisp.org>
48705         popen: Support for MSVC.
48706         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48707         * lib/popen.c (popen): Provide alternate definition for native Windows.
48708         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48710         * modules/popen (Depends-on, configure.ac): Update condition.
48711         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48712         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48713         fixed.
48715 2011-09-17  Bruno Haible  <bruno@clisp.org>
48717         isnanl, isnand, isnanf: Work around MSVC bug.
48718         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48720 2011-09-17  Bruno Haible  <bruno@clisp.org>
48722         sys_socket tests: Fix recent mistake.
48723         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48725 2011-09-17  Bruno Haible  <bruno@clisp.org>
48727         putenv: Support for MSVC.
48728         * modules/putenv (Depends-on): Add environ.
48729         * lib/putenv.c (environ): Disable declaration.
48730         * lib/unistd.in.h: Update comment.
48732 2011-09-17  Bruno Haible  <bruno@clisp.org>
48734         math: Avoid macro redefinition warnings on MSVC.
48735         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48736         Undefine before redefining.
48738 2011-09-17  Bruno Haible  <bruno@clisp.org>
48740         doc: Mention functions which are declared as macros.
48741         * doc/posix-functions/*[fl].texi: Mention that some functions are
48742         defined as macros with arguments only.
48744 2011-09-17  Bruno Haible  <bruno@clisp.org>
48746         Add dependencies to new dirent related modules.
48747         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48748         * modules/fts (Depends-on): Likewise.
48749         * modules/glob (Depends-on): Likewise.
48750         * modules/savedir (Depends-on): Likewise.
48751         * modules/scandir (Depends-on): Likewise.
48752         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48753         * modules/fdopendir (Depends-on): Add opendir.
48755 2011-09-17  Bruno Haible  <bruno@clisp.org>
48757         inet_pton: Support for MSVC on Windows Vista or newer.
48758         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48759         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48760         HAVE_DECL_INET_PTON is defined.
48761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48762         On platforms with <winsock2.h>, test whether inet_pton is declared in
48763         <ws2tcpip.h>. If so, arrange to replace it.
48764         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48765         REPLACE_INET_PTON.
48766         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48767         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48768         (Depends-on, configure.ac): Update condition.
48769         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48771 2011-09-17  Bruno Haible  <bruno@clisp.org>
48773         inet_ntop: Support for MSVC on Windows Vista or newer.
48774         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48775         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48776         HAVE_DECL_INET_NTOP is defined.
48777         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48778         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48779         <ws2tcpip.h>. If so, arrange to replace it.
48780         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48781         REPLACE_INET_NTOP.
48782         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48783         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48784         (Depends-on, configure.ac): Update condition.
48785         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48787 2011-09-16  Eric Blake  <eblake@redhat.com>
48789         test-fsync: yet another enhancement
48790         * tests/test-fsync.c (main): Also test behavior on read-only text
48791         file.
48793 2011-09-16  Bruno Haible  <bruno@clisp.org>
48795         Enhance fsync, fdatasync tests.
48796         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48797         * tests/test-fdatasync.c (main): Likewise.
48799 2011-09-16  Bruno Haible  <bruno@clisp.org>
48801         Support for MSVC compiler: Ensure mode_t gets defined.
48802         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48803         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48805         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48806         * tests/test-fcntl-h.c: Check that mode_t is defined.
48807         * tests/test-sys_stat.c: Likewise.
48808         * tests/test-sys_types.c: Likewise.
48809         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48810         * doc/posix-headers/sys_stat.texi: Likewise.
48811         * doc/posix-headers/sys_types.texi: Likewise.
48813 2011-09-16  Bruno Haible  <bruno@clisp.org>
48815         sys_stat: Support for MSVC.
48816         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48817         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48818         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48819         MSVC.
48821 2011-09-16  Bruno Haible  <bruno@clisp.org>
48823         Support for MSVC compiler: Ensure off_t gets defined.
48824         * lib/unistd.in.h: Include <sys/types.h>.
48825         * tests/test-fcntl-h.c: Check that off_t is defined.
48826         * tests/test-sys_stat.c: Likewise.
48827         * tests/test-sys_types.c: Likewise.
48829 2011-09-16  Eric Blake  <eblake@redhat.com>
48831         fdatasync: port to Solaris
48832         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48833         * modules/fdatasync (Link): Document it.
48834         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48836         fdatasync: port to MacOS X 10.7
48837         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48838         declared.
48839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48840         * modules/unistd (Makefile.am): Substitute it.
48841         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48842         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48844         fdatasync: minor improvements
48845         * modules/fdatasync (Depends-on): Add condition for fsync.
48846         * lib/fdatasync.c (fdatasync): Add comment.
48847         * tests/test-unistd-c++.cc: Test fdatasync.
48849         unistd: update refs to newer POSIX
48850         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48851         Suggested by Bruno Haible.
48853         fdatasync: new module
48854         * modules/fsync (Description): Document difference to fdatasync.
48855         * modules/fdatasync: New module.
48856         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48857         * lib/fdatasync.c (fdatasync): Likewise.
48858         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48859         defaults.
48860         * modules/unistd (Makefile.am): Set witnesses.
48861         * lib/unistd.in.h (fdatasync): Declare.
48862         * MODULES.html.sh: Document it.
48863         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48864         * modules/fdatasync-tests: New test.
48865         * tests/test-fdatasync.c: Likewise.
48867 2011-09-16  Eric Blake  <eblake@redhat.com>
48869         test-fsync: enhance tests
48870         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48871         * tests/test-fsync.c (main): Enhance test.
48873 2011-09-15  Bruno Haible  <bruno@clisp.org>
48875         Support for MSVC compiler: Ensure ssize_t gets defined.
48876         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48877         * doc/posix-headers/stdio.texi: Likewise.
48878         * modules/stdio (Depends-on): Add ssize_t.
48879         * modules/sys_socket (Depends-on): Likewise.
48880         * modules/sys_types (Depends-on): Likewise.
48881         * modules/sys_uio (Depends-on): Likewise.
48882         * modules/unistd (Depends-on): Likewise.
48883         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48884         * tests/test-sys_types.c: Check that ssize_t is defined.
48886 2011-09-14  Bruno Haible  <bruno@clisp.org>
48888         Avoid using #, the m4 comment starter character, near brackets.
48889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48890         delimiter character in sed expressions.
48891         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48892         Suggested by Eric Blake.
48894         Properly quote AC_CHECK_DECLS' 4th argument.
48895         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48896         argument.
48897         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48898         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48899         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48900         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48901         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48902         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48903         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48904         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48905         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48907         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48908         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48909         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48910         * m4/isinf.m4 (gl_ISINF): Likewise.
48911         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48912         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48914         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48915         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48916         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48917         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48918         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48919         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48920         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48921         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48922         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48924         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48926         Reported by Eric Blake.
48928         Properly quote AC_CHECK_DECL's 4th argument.
48929         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48930         argument.
48931         * m4/argp.m4 (gl_ARGP): Likewise.
48932         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48933         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48934         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48935         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48936         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48937         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48939         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48940         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48941         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48942         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48943         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48944         Reported by Eric Blake.
48946 2011-09-14  Eric Blake  <eblake@redhat.com>
48948         opendir: avoid compile warning
48949         * lib/opendir.c (includes): Always include errno.h.
48950         Reported by Tatsuro MATSUOKA.
48952 2011-09-14  Jim Meyering  <meyering@redhat.com>
48954         maint.mk: sc_tight_scope: propagate failure from sub-make
48955         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48956         Reported by Martin von Gagern.
48958 2011-09-13  Bruno Haible  <bruno@clisp.org>
48960         tempname: Support for MSVC.
48961         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48962         MSVC.
48963         * modules/tempname (Depends-on): Add fcntl-h.
48965 2011-09-13  Bruno Haible  <bruno@clisp.org>
48967         sys_time: Support for MSVC.
48968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48969         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48970         include <winsock2.h>.
48971         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48972         function declarations that collide with POSIX.
48973         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48974         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48976 2011-09-13  Bruno Haible  <bruno@clisp.org>
48978         stat: Support for MSVC.
48979         * lib/stat.c: Include pathmax.h.
48980         * modules/stat (Depends-on): Add pathmax.
48982         pathmax: Support for native Windows.
48983         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48985 2011-09-12  Bruno Haible  <bruno@clisp.org>
48987         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48988         * lib/dirent.in.h (struct dirent): New type.
48989         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48990         DT_WHT): New macros.
48991         (DIR): New type.
48992         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48993         (readdir, rewinddir): New declarations.
48994         * lib/dirent-private.h: New file.
48995         * lib/opendir.c: New file.
48996         * lib/readdir.c: New file.
48997         * lib/rewinddir.c: New file.
48998         * lib/closedir.c: New file.
48999         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49000         * m4/opendir.m4: New file.
49001         * m4/readdir.m4: New file.
49002         * m4/rewinddir.m4: New file.
49003         * m4/closedir.m4: New file.
49004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49005         REPLACE_CLOSEDIR here.
49006         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49007         readdir, rewinddir are declared.
49008         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49009         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49010         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49011         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49012         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49013         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49014         * modules/opendir: New file.
49015         * modules/readdir: New file.
49016         * modules/rewinddir: New file.
49017         * modules/closedir: New file.
49018         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49019         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49020         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49021         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49022         * NEWS: Mention the 'fchdir' change.
49024 2011-09-11  Bruno Haible  <bruno@clisp.org>
49026         asm-underscore.m4: Support for MSVC.
49027         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49028         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49030 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49032         Doc about crypt functions.
49033         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49034         needing for _GNU_SOURCE to get crypt.
49035         * doc/posix-functions/encrypt.texi: Likewise.
49036         * doc/posix-functions/setkey.texi: Likewise.
49038 2011-09-11  Bruno Haible  <bruno@clisp.org>
49040         doc: Update regarding MSVC 9.
49041         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49042         tested".
49043         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49044         * doc/posix-headers/*.texi: Likewise.
49045         * doc/pastposix-functions/*.texi: Likewise.
49046         * doc/glibc-functions/*.texi: Likewise.
49047         * doc/glibc-headers/*.texi: Likewise.
49049 2011-09-11  Bruno Haible  <bruno@clisp.org>
49051         unistd et al.: Don't assume <unistd.h> exists.
49052         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49053         does not exist.
49054         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49055         exist. But include <stdlib.h>.
49056         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49057         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49058         symlink() does not exist.
49059         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49060         include <io.h> instead.
49061         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49062         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49063         include <direct.h> instead.
49064         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49066         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49067         <io.h> instead.
49068         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49069         correctly if the system does not have hard links.
49070         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49071         <direct.h> instead.
49072         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49073         it when looking for function declarations.
49074         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49075         <direct.h> and <io.h> instead.
49076         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49078 2011-09-11  Bruno Haible  <bruno@clisp.org>
49080         strcase: Support for MSVC.
49081         * modules/strcase (Status, Notice): Remove obsoletion mark.
49082         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49083         * doc/posix-functions/strncasecmp.texi: Likewise.
49085         strings: Don't assume <strings.h> exists.
49086         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49087         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49088         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49089         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49091 2011-09-11  Bruno Haible  <bruno@clisp.org>
49093         dirent: Don't assume <dirent.h> exists.
49094         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49095         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49096         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49097         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49099 2011-09-11  Bruno Haible  <bruno@clisp.org>
49101         Fix wint_t on MSVC.
49102         * lib/wchar.in.h (wint_t): On MSVC, override it.
49103         * lib/wctype.in.h (wint_t): Likewise.
49104         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49105         MSVC.
49106         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49107         * doc/posix-headers/wctype.texi: Likewise.
49109 2011-09-11  Bruno Haible  <bruno@clisp.org>
49111         sys_types: Fix typo.
49112         * lib/sys_types.in.h: Fix typo in comment.
49113         Reported by Paul Eggert.
49115         Support for MSVC compiler: Ensure size_t gets defined.
49116         * modules/strings (Depends-on): Add 'sys_types'.
49117         * modules/sys_uio (Depends-on): Likewise.
49118         * lib/sys_uio.in.h: Update comment.
49120         C++ tests for module 'sys_types'.
49121         * modules/sys_types-c++-tests: New file.
49122         * tests/test-sys_types-c++.cc: New file.
49124         Tests for module 'sys_types'.
49125         * modules/sys_types-tests: New file.
49126         * tests/test-sys_types.c: New file.
49128         New module 'sys_types'.
49129         * lib/sys_types.in.h: New file.
49130         * m4/sys_types_h.m4: New file.
49131         * modules/sys_types: New file.
49132         * doc/posix-headers/sys_types.texi: Mention the new module and the
49133         size_t problem on MSVC 9.
49135 2011-09-11  Bruno Haible  <bruno@clisp.org>
49137         Support for MSVC compiler: Avoid division by a literal 0.
49138         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49139         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49140         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49141         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49142         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49143         * tests/infinity.h: New file.
49144         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49145         on MSVC.
49146         * tests/test-ceilf1.c: Include infinity.h.
49147         (main): Use Infinityf.
49148         * tests/test-ceil1.c: Include infinity.h.
49149         (main): Use Infinityd.
49150         * tests/test-ceill.c: Include infinity.h.
49151         (main): Use Infinityl.
49152         * tests/test-dprintf-posix.c: Include infinity.h.
49153         (test_function): Use Infinityd.
49154         * tests/test-floorf1.c: Include infinity.h.
49155         (main): Use Infinityf.
49156         * tests/test-floor1.c: Include infinity.h.
49157         (main): Use Infinityd.
49158         * tests/test-floorl.c: Include infinity.h.
49159         (main): Use Infinityl.
49160         * tests/test-fprintf-posix.c: Include infinity.h.
49161         (test_function): Use Infinityd.
49162         * tests/test-frexp.c: Include infinity.h.
49163         (main): Use Infinityd.
49164         * tests/test-frexpl.c: Include infinity.h.
49165         (main): Use Infinityl.
49166         * tests/test-isfinite.c: Include infinity.h.
49167         (test_isfinitef): Use Infinityf.
49168         (test_isfinited): Use Infinityd.
49169         (test_isfinitel): Use Infinityl.
49170         * tests/test-isinf.c: Include infinity.h.
49171         (test_isinff): Use Infinityf.
49172         (test_isinfd): Use Infinityd.
49173         (test_isinfl): Use Infinityl.
49174         * tests/test-isnan.c: Include infinity.h.
49175         (test_float): Use Infinityf.
49176         (test_double): Use Infinityd.
49177         (test_long_double): Use Infinityl.
49178         * tests/test-isnanf.h: Include infinity.h.
49179         (main): Use Infinityf.
49180         * tests/test-isnand.h: Include infinity.h.
49181         (main): Use Infinityd.
49182         * tests/test-isnanl.h: Include infinity.h.
49183         (main): Use Infinityl.
49184         * tests/test-ldexpl.c: Include infinity.h.
49185         (main): Use Infinityl.
49186         * tests/test-printf-posix.h: Include infinity.h.
49187         (test_function): Use Infinityd.
49188         * tests/test-roundf1.c: Include infinity.h.
49189         (main): Use Infinityf.
49190         * tests/test-round1.c: Include infinity.h.
49191         (main): Use Infinityd.
49192         * tests/test-roundl.c: Include infinity.h.
49193         (main): Use Infinityl.
49194         * tests/test-signbit.c: Include infinity.h.
49195         (test_signbitf): Use Infinityf.
49196         (test_signbitd): Use Infinityd.
49197         (test_signbitl): Use Infinityl.
49198         * tests/test-snprintf-posix.h: Include infinity.h.
49199         (test_function): Use Infinityd, Infinityl.
49200         * tests/test-sprintf-posix.h: Include infinity.h.
49201         (test_function): Use Infinityd, Infinityl.
49202         * tests/test-truncf1.c: Include infinity.h.
49203         (main): Use Infinityf.
49204         * tests/test-trunc1.c: Include infinity.h.
49205         (main): Use Infinityd.
49206         * tests/test-truncl.c: Include infinity.h.
49207         (main): Use Infinityl.
49208         * tests/test-vasnprintf-posix.c: Include infinity.h.
49209         (test_function): Use Infinityd, Infinityl.
49210         * tests/test-vasprintf-posix.c: Include infinity.h.
49211         (test_function): Use Infinityd, Infinityl.
49212         * modules/ceilf-tests (Files): Add tests/infinity.h.
49213         * modules/ceil-tests (Files): Likewise.
49214         * modules/ceill-tests (Files): Likewise.
49215         * modules/dprintf-posix-tests (Files): Likewise.
49216         * modules/floorf-tests (Files): Likewise.
49217         * modules/floor-tests (Files): Likewise.
49218         * modules/floorl-tests (Files): Likewise.
49219         * modules/fprintf-posix-tests (Files): Likewise.
49220         * modules/frexp-tests (Files): Likewise.
49221         * modules/frexp-nolibm-tests (Files): Likewise.
49222         * modules/frexpl-tests (Files): Likewise.
49223         * modules/frexpl-nolibm-tests (Files): Likewise.
49224         * modules/isfinite-tests (Files): Likewise.
49225         * modules/isinf-tests (Files): Likewise.
49226         * modules/isnan-tests (Files): Likewise.
49227         * modules/isnanf-tests (Files): Likewise.
49228         * modules/isnanf-nolibm-tests (Files): Likewise.
49229         * modules/isnand-tests (Files): Likewise.
49230         * modules/isnand-nolibm-tests (Files): Likewise.
49231         * modules/isnanl-tests (Files): Likewise.
49232         * modules/isnanl-nolibm-tests (Files): Likewise.
49233         * modules/ldexpl-tests (Files): Likewise.
49234         * modules/printf-posix-tests (Files): Likewise.
49235         * modules/roundf-tests (Files): Likewise.
49236         * modules/round-tests (Files): Likewise.
49237         * modules/roundl-tests (Files): Likewise.
49238         * modules/signbit-tests (Files): Likewise.
49239         * modules/snprintf-posix-tests (Files): Likewise.
49240         * modules/sprintf-posix-tests (Files): Likewise.
49241         * modules/truncf-tests (Files): Likewise.
49242         * modules/trunc-tests (Files): Likewise.
49243         * modules/truncl-tests (Files): Likewise.
49244         * modules/vasnprintf-posix-tests (Files): Likewise.
49245         * modules/vasprintf-posix-tests (Files): Likewise.
49246         * modules/vdprintf-posix-tests (Files): Likewise.
49247         * modules/vfprintf-posix-tests (Files): Likewise.
49248         * modules/vprintf-posix-tests (Files): Likewise.
49249         * modules/vsnprintf-posix-tests (Files): Likewise.
49250         * modules/vsprintf-posix-tests (Files): Likewise.
49251         * modules/xprintf-posix-tests (Files): Likewise.
49253 2011-09-11  Bruno Haible  <bruno@clisp.org>
49255         Ensure pid_t gets defined.
49256         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49257         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49259         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49260         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49261         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49262         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49264         * tests/test-fcntl-h.c: Check that pid_t is defined.
49265         * tests/test-sched.c: Likewise.
49266         * tests/test-termios.c: Likewise.
49267         * tests/test-time.c: Likewise.
49268         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49269         * doc/posix-headers/signal.texi: Likewise.
49270         * doc/posix-headers/sys_types.texi: Likewise.
49271         * doc/posix-headers/time.texi: Likewise.
49273 2011-09-11  Bruno Haible  <bruno@clisp.org>
49275         acl: Fix compilation on Solaris 10 (older version).
49276         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49277         of ACE_EVERYONE.
49278         * lib/set-mode-acl.c (qset_acl): Likewise.
49279         Reported by Christian Jullien <eligis@orange.fr>.
49281 2011-09-10  Bruno Haible  <bruno@clisp.org>
49283         iconv, unsetenv: Add support for MSVC compiler.
49284         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49285         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49287 2011-09-10  Bruno Haible  <bruno@clisp.org>
49289         *printf: Add support for MSVC compiler.
49290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49291         handles the exception caused by the %n directive. When cross-compiling,
49292         guess no on native Windows.
49293         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49294         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49295         emulate it through vsnprintf.
49296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49297         * doc/posix-functions/dprintf.texi: Update documentation regarding
49298         MSVC 9.
49299         * doc/posix-functions/fprintf.texi: Likewise.
49300         * doc/posix-functions/printf.texi: Likewise.
49301         * doc/posix-functions/snprintf.texi: Likewise.
49302         * doc/posix-functions/sprintf.texi: Likewise.
49303         * doc/posix-functions/swprintf.texi: Likewise.
49304         * doc/posix-functions/vdprintf.texi: Likewise.
49305         * doc/posix-functions/vfprintf.texi: Likewise.
49306         * doc/posix-functions/vprintf.texi: Likewise.
49307         * doc/posix-functions/vsnprintf.texi: Likewise.
49308         * doc/posix-functions/vsprintf.texi: Likewise.
49309         * doc/glibc-functions/asprintf.texi: Likewise.
49310         * doc/glibc-functions/obstack_printf.texi: Likewise.
49311         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49312         * doc/glibc-functions/vasprintf.texi: Likewise.
49314 2011-09-10  Bruno Haible  <bruno@clisp.org>
49316         nocrash: Add support for native Windows.
49317         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49319 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49320             Bruno Haible  <bruno@clisp.org>
49322         absolute-header, include-next: Add support for MSVC compiler.
49323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49324         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49325         directory separator in #line directives.
49326         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49327         recognize also backslash as directory separator in #line directives.
49329 2011-09-08  Jim Meyering  <meyering@redhat.com>
49331         maint.mk: mark the post-release commit log with "maint: " prefix
49332         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49333         one-line commit-log summary.
49335 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49336             Bruno Haible  <bruno@clisp.org>
49338         Doc about crypt functions.
49339         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49340         systems.
49341         * doc/posix-functions/encrypt.texi: Likewise.
49342         * doc/posix-functions/setkey.texi: Likewise.
49344 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49346         * lib/gc.h: Fix copyright header.
49348 2011-09-07  Bruno Haible  <bruno@clisp.org>
49350         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49351         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49352         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49354 2011-09-07  Bruno Haible  <bruno@clisp.org>
49356         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49357         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49358         * lib/freopen.c: Likewise.
49359         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49360         * lib/lstat.c: Likewise.
49361         * lib/stat.c: Likewise.
49362         * lib/open.c: Use different syntax for include of <fcntl.h>.
49363         * lib/openat.c: Include fcntl.h again, explicitly.
49365 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49367         parse-datetime: document the newly accepted format
49368         * doc/parse-datetime.texi (Combined date and time of day items):
49369         New section.
49371 2011-09-06  Bruno Haible  <bruno@clisp.org>
49373         acl: Fix a test failure on newer Solaris 10 with ZFS.
49374         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49375         ENOSYS as no ACL.
49376         Reported by Jim Meyering.
49378 2011-09-06  Bruno Haible  <bruno@clisp.org>
49380         acl: Update for AIX >= 5.3 with NFS.
49381         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49382         ENOSYS as no ACL.
49384         acl: Fix a test failure on AIX >= 5.3 with NFS.
49385         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49386         as no ACL.
49388 2011-09-06  Bruno Haible  <bruno@clisp.org>
49390         acl: Fix a test failure on IRIX 6.5 with NFS.
49391         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49392         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49393         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49394         * lib/copy-acl.c (qcopy_acl): Likewise.
49396 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49398         openat: port to AIX 7.1 with large files
49399         AIX 7.1 does a "#define openat open64at" if large files are in use,
49400         so we can't simply #undef openat.  Use the orig_openat trick (similar
49401         to orig_open in lib/open.c) to work around the problem.  Problem
49402         reported by Kevin Brott for GNU tar, in the thread containing
49403         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49404         * lib/openat.c (__need_system_fcntl_h): Define first.
49405         Include <fcntl.h> and <sys/types.h> before undefining.
49406         (orig_openat) [HAVE_OPENAT]: New inline function.
49407         (openat) [HAVE_OPENAT]: Do not undef.
49408         (rpl_openat): Use orig_openat, not openat.
49410 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49411             Bruno Haible  <bruno@clisp.org>
49413         acl: Avoid errors on NonStop Kernel.
49414         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49415         ENOTSUP errors.
49417 2011-09-05  Bruno Haible  <bruno@clisp.org>
49419         acl: Clean up Solaris code.
49420         * lib/acl-internal.h: Remove no-op #if.
49421         * lib/file-has-acl.c: Likewise.
49422         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49423         * lib/copy-acl.c (qcopy_acl): Likewise.
49425 2011-09-05  Bruno Haible  <bruno@clisp.org>
49427         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49428         binaries built on the original Solaris 10.
49429         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49430         trivial.
49432 2011-09-05  Bruno Haible  <bruno@clisp.org>
49434         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49435         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49436         10.
49437         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49438         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49439         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49440         instead of acl_get, facl_get, acl_set, facl_set.
49442 2011-09-05  Bruno Haible  <bruno@clisp.org>
49444         copy-file: Try unit tests on more file systems.
49445         * tests/test-copy-file-1.sh: New file.
49446         * tests/test-copy-file-2.sh: New file.
49447         * modules/copy-file-tests (Files): Add them.
49448         (Makefile.am): Add them to TESTS.
49450         acl: Try unit tests on more file systems.
49451         * tests/test-file-has-acl-1.sh: New file.
49452         * tests/test-file-has-acl-2.sh: New file.
49453         * tests/test-set-mode-acl-1.sh: New file.
49454         * tests/test-set-mode-acl-2.sh: New file.
49455         * tests/test-copy-acl-1.sh: New file.
49456         * tests/test-copy-acl-2.sh: New file.
49457         * modules/acl-tests (Files): Add them.
49458         (Makefile.am): Add them to TESTS.
49460 2011-09-04  Bruno Haible  <bruno@clisp.org>
49462         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49463         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49464         10.
49465         (OLD_ALLOW, OLD_DENY): New macros.
49466         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49467         ACE_ACCESS_ALLOWED_ACE_TYPE.
49468         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49469         ACE_ACCESS_DENIED_ACE_TYPE.
49470         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49471         (NEW_ACE_EXECUTE): Fix value.
49472         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49473         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49474         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49475         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49476         NEW_ACE_SYNCHRONIZE): New macros.
49477         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49478         instead of acl_fromtext, acl_set, facl_set.
49479         Fixes a coreutils/tests/cp/perm failure.
49481 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49483         openat: test for fstatat (..., 0) bug
49484         Further testing with tar suggests that fstatat (..., 0)
49485         does not work in general, on AIX 7.1; see
49486         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49487         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49488         replacement fstatat (which is what older AIX releases were using
49489         anyway).
49490         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49491         use is now changed to orig_fstatat.  This was probably the right
49492         thing to do anyway.
49493         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49494         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49495         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49496         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49497         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49498         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49499         if the bug is found.
49501         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49502         This tests for another fstatat bug on AIX 7.1:
49503         fstatat (AT_FDCWD, ..., 0) does not work.  See
49504         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49505         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49506         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49507         (rpl_fstatat): Adjust so that it works around either (or both)
49508         bugs if present.
49509         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49511 2011-09-03  Karl Berry  <karl@gnu.org>
49513         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49514         in index entries.
49516 2011-09-02  Bruno Haible  <bruno@clisp.org>
49518         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49519         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49520         values of AR, ARFLAGS, RANLIB.
49521         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49523 2011-09-02  Bruno Haible  <bruno@clisp.org>
49525         Find 'ar' program that fits with --host argument.
49526         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49528 2011-09-02  Bruno Haible  <bruno@clisp.org>
49530         tests: init.sh: Support any non-GNU diff.
49531         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49532         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49533         Solaris 8.
49535 2011-09-02  Bruno Haible  <bruno@clisp.org>
49537         tests: init.sh: work also with any non-GNU diff that supports -u
49538         * tests/init.sh: Relax check for diff -u support.
49539         Rather than checking for GNU diff via --version, simply check
49540         for support for -u itself.  Useful at least on OpenBSD 4.9,
49541         AIX 7.1, IRIX 6.5, and Solaris 10.
49543 2011-09-01  Bruno Haible  <bruno@clisp.org>
49545         strtoimax, strtoumax: Document problem on HP-UX 11.
49546         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49547         * doc/posix-functions/strtoumax.texi: Likewise.
49549 2011-09-01  Bruno Haible  <bruno@clisp.org>
49551         strtoumax: Avoid link error on OSF/1 with DTK cc.
49552         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49553         defined as a function.
49554         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49555         strtoumax is defined, not whether it is declared.
49557 2011-09-01  Bruno Haible  <bruno@clisp.org>
49559         strtoimax: Avoid link error on OSF/1 with DTK cc.
49560         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49561         defined as a function.
49562         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49563         strtoimax is defined, not whether it is declared.
49565 2011-09-01  Bruno Haible  <bruno@clisp.org>
49567         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49568         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49569         as a function.
49570         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49571         whether it is declared.
49573 2011-09-01  Bruno Haible  <bruno@clisp.org>
49575         imaxabs: Avoid link error on OSF/1 with DTK cc.
49576         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49577         as a function.
49578         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49579         whether it is declared.
49581 2011-09-01  Bruno Haible  <bruno@clisp.org>
49583         Tests for module 'strtoumax'.
49584         * modules/strtoumax-tests: New file.
49585         * tests/test-strtoumax.c: New file.
49587         Tests for module 'strtoimax'.
49588         * modules/strtoimax-tests: New file.
49589         * tests/test-strtoimax.c: New file.
49591         Tests for module 'imaxdiv'.
49592         * modules/imaxdiv-tests: New file.
49593         * tests/test-imaxdiv.c: New file.
49595         Tests for module 'imaxabs'.
49596         * modules/imaxabs-tests: New file.
49597         * tests/test-imaxabs.c: New file.
49599 2011-09-01  Bruno Haible  <bruno@clisp.org>
49601         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49602         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49603         pthread_create.
49605 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49607         openat: work around AIX 7.1 fstatat issue
49608         This should fix the problem that was not properly fixed
49609         in the previous change, dated 2011-08-30.
49610         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49611         __need_system_stat_h defined.
49612         (orig_fstatat) [HAVE_FSTATAT]: New function.
49613         (rpl_fstatat): Go back to the old way of doing things,
49614         except call orig_fstatat instead of fstatat.
49615         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49616         Remove unnecessary check whether fstatat fills in st_size etc.
49618 2011-09-01  Bruno Haible  <bruno@clisp.org>
49620         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49621         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49622         just include the system's header.
49624 2011-08-31  Jim Meyering  <meyering@redhat.com>
49626         tests: avoid spurious assertion failure in test-float.c on ppc64
49627         * tests/test-float.c (test_long_double): Comment out an assertion,
49628         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49629         with gcc-4.4.4.
49631         maint: indent with spaces, not TABs
49632         I need to get in the habit of running gnulib's "make check".
49633         Both of these would have been caught.
49634         * m4/largefile.m4: Indent with spaces, not TABs.
49635         * lib/parse-datetime.y (iso_8601_time): Likewise.
49636         Spotted by Pádraig Brady.
49638         test-parse-datetime.c: accommodate a relatively strict gcc warning
49639         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49640         to avoid a warning from gcc's -Werror=missing-declarations.
49641         Insert a few spaces-before-funcall-parenthesis.
49643 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49645         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49646         The parser now accepts ISO 8601 date-time strings with "T" as the
49647         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49648         with a space between the date and time strings.  Now it also parses
49649         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49650         variants like "2004-02-29T16:21:42.333-07:00"
49651         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49652         of day representation using the 'T' separator character.
49653         * doc/parse-datetime.texi (General date syntax): replace use of
49654         deprecated --iso-8601 option with --rfc-3339 in example of date
49655         command output formats that can be parsed.
49656         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49657         lib/parse-datetime.y.
49658         (gmt_offset): New function.
49659         (main): Add additional test cases to validate ISO8601 extended
49660         date and time of day parsing.
49662 2011-08-31  Bruno Haible  <bruno@clisp.org>
49664         freopen: Documentation.
49665         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49666         name.
49667         Reported by Claudio Bley <claudio.bley@gmail.com>.
49669 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49671         freopen: Don't crash if the filename argument is NULL.
49672         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49673         NULL.
49675 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49677         openat: work around AIX 7.1 fstatat bug
49678         Problem reported by Kevin Brott for GNU tar, in the thread containing
49679         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49680         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49681         FSTATAT_ST_SIZE_ETC_BROKEN.
49682         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49683         rpl_fstatat.
49684         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49685         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49686         AC_CHECK_FUNCS_ONCE for fstatat.
49687         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49688         fchmodat, mkdirat, openat and unlinkat.
49690 2011-08-30  Bruno Haible  <bruno@clisp.org>
49692         Avoid endless recursions if config.h includes some header files.
49693         * lib/fopen.c (__need_FILE): Define already before including config.h.
49694         * lib/freopen.c (__need_FILE): Likewise.
49695         * lib/open.c (__need_system_fcntl_h): Likewise.
49696         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49697         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49698         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49700 2011-08-25  Karl Berry  <karl@gnu.org>
49702         * config/srclist.txt (ylwrap): new try.
49703         * build-aux/ylwrap: new file.
49705 2011-08-23  Bruno Haible  <bruno@clisp.org>
49707         tmpdir: Use a good default directory on native Windows.
49708         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49709         (P_tmpdir): Default to _P_tmpdir on native Windows.
49710         (path_search): On native Windows, try the value returned by GetTempPath
49711         before trying P_tmpdir.
49712         * modules/tmpdir (Depends-on): Add pathmax.
49713         Suggested by John Darrington <john@darrington.wattle.id.au>.
49715 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49717         doc: fix typo in README-release
49718         * top/README-release: Capitalize first word of a sentence.
49720 2011-08-19  Jim Meyering  <meyering@redhat.com>
49722         fts: do not exhaust memory when processing million-entry directories
49723         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49724         directory would require about 256*N bytes of memory.  Thus, it was
49725         easy to construct a directory too large to be processed by any of
49726         those tools.  With this change, fts' maximum memory utilization is
49727         now limited to around 30MB.
49728         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49729         (fts_read): When we've processed the final entry (i.e., when
49730         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49731         using the parent entry to read any remaining entries.  Dispatch
49732         depending on what fts_build returns:
49733         - NULL+stop, aka failure: stop
49734         - NULL otherwise: move up in the dir hierarchy
49735         - non-NULL: handle this new entry
49736         (fts_build): Declare and use new local, continue_readdir.
49737         Prepare to be called from fts_read, when the entries
49738         from a partially-read directory have just been exhausted.
49739         In that case, we'll skip the opendir and instead use the parent's
49740         fts_dirp and derive dir_fd from that.
49741         Finally, in the readdir loop, if we read max_entries entries,
49742         exit the loop ensuring *not* to call closedir.  This is required
49743         so that fts_dirp can be reused on a subsequent call.
49744         Prompted by Ben England's report of memory exhaustion in find
49745         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49747         maint: fts: move decl of `dp' down into while loop; split a long line
49748         * lib/fts.c (fts_build): No semantic change.
49750         fts: add/use new struct member, fts_dirp
49751         We are about to use this to manage any directory with
49752         too many entries to read all of them into memory at once.
49753         To do that, we'll need to save the DIR* pointer in each
49754         affected FTSENT struct.
49755         * lib/fts_.h: Include <dirent.h>.
49756         (struct FTSENT) [fts_dirp]: New member.
49757         * lib/fts.c (closedir_and_clear): Define.
49758         Use it in place of closedir so that we are sure to
49759         clear the new fts_dirp member when done with it.
49760         (fts_alloc): Initialize the new member.
49761         (fts_lfree): Free, if needed.
49763         maint: fts: give __opendir2 a new parameter and rename
49764         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49765         than surreptitiously using sole caller's "dir_fd".
49766         (fts_opendir): Rename from __opendir2.
49768         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49769         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49771         maint: fts.c: correct off-by-one indentation
49772         * lib/fts.c (fts_build): Correct indentation, change style
49773         of a couple of block comments, and bracing style.
49775         maint: fts.c: move __opendir2 #define "up" out of function body
49776         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49778         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49779         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49780         out for a long time and besides was useful only on BSD systems.
49782 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49784         regex: port to Stratus OpenVOS
49785         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49786         define to empty, rather than attempting nonportable optimizations.
49787         Problem reported by Paul Green in:
49788         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49789         and fix suggested by Eric Blake in:
49790         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49792 2011-08-17  Eric Blake  <eblake@redhat.com>
49794         getcwd: fix test failures on mingw
49795         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49796         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49797         test if long directory cannot be created, and allow mingw errno.
49799         getcwd-lgpl: fix m4 to match relaxed test for BSD
49800         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49801         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49802         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49803         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49804         signature problem.
49806         getcwd: fix compilation on mingw64
49807         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49808         getcwd.
49809         Reported by Marc-André Lureau.
49811         pipe2: silence compiler warning
49812         * lib/pipe2.c (pipe2): Hide label if it is not used.
49814 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49816         relocatable-prog: fix link error
49817         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49818         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49819         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49820         into modules/relocatable-lib without noticing that
49821         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49822         also needs to build relocatable.c.
49824 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49826         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49828         shell code: it contained a 'break' that was not in a loop.
49829         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49830         via a shell-language loop; this may have been true in old Autoconf
49831         versions, but it's not true in Autoconf 2.68.  I found this bug
49832         when testing coreutils git on Solaris 8, whose shell complains
49833         about the syntax error.
49835 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49837         * lib/base64.c: Fix comment to reference RFC 4648.
49838         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49839         <gvtulder@gmail.com>.
49841 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49843         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49845         po/Makefile.in.in: fix make -q problem
49846         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49847         rule, since there's no file named 'check-macro-version' and its
49848         use as a file breaks make -q.
49849         (all): Don't depend on check-macro-version.
49850         (CHECK_MACRO_VERSION): New macro.
49851         (stamp-po): Use it.
49853         configmake: fix make -q problem
49854         * modules/configmake (configmake.h): Update configmake.h's time stamp
49855         even if the file does not change.  Otherwise, 'make -q' fails.
49856         Problem reported by Simon Josefsson in
49857         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49859 2011-08-11  Jim Meyering  <meyering@redhat.com>
49861         git-version-gen: correct the advice in a comment
49862         * build-aux/git-version-gen: Correct comment.
49863         Don't recommend to list .tarball-version in .gitignore.
49865 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49867         base64: fix off-by-one buffer size bug
49868         Problem and (trivial) fix reported by Gijs van Tulder in
49869         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49870         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49871         * tests/test-base64.c (main): Catch the bug.
49873 2011-08-10  Eric Blake  <eblake@redhat.com>
49875         closein: correct comments
49876         * lib/closein.c (close_stdin): Improve comments.
49878 2011-08-09  Bruno Haible  <bruno@clisp.org>
49880         More tests for 'fseeko'.
49881         * tests/test-fseeko3.c: New file, from Eric Blake.
49882         * tests/test-fseeko3.sh: New file.
49883         * modules/fseeko-tests (Files): Add them.
49884         (TESTS): Add test-fseeko3.sh.
49885         (check_PROGRAMS): Add test-fseeko3.
49887 2011-08-09  Eric Blake  <eblake@redhat.com>
49889         fseeko: remove unneeded hack
49890         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49892         fseeko: fix bug on glibc
49893         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49894         Reported by John W. Eaton.
49896 2011-08-08  Bruno Haible  <bruno@clisp.org>
49898         unictype/base: Fix interoperability with preinstalled libunistring.
49899         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49900         Reported by Simon Josefsson.
49902 2011-08-08  Bruno Haible  <bruno@clisp.org>
49904         iswblank: Detect declaration correctly.
49905         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49906         AC_CHECK_DECLS invocation.
49908 2011-08-08  Bruno Haible  <bruno@clisp.org>
49910         tcgetsid: Detect declaration correctly.
49911         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49912         AC_CHECK_DECLS invocation.
49913         Reported by Simon Josefsson.
49915 2011-08-08  Eric Blake  <eblake@redhat.com>
49917         largefile: fix typo that regressed large file support
49918         * modules/largefile (configure.ac-early): Fix section name.
49920 2011-08-06  Karl Berry  <karl@gnu.org>
49922         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49923         a separate module.
49925 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49927         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49928         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49929         get prototype for free.
49931 2011-08-04  Bruno Haible  <bruno@clisp.org>
49933         Tests for module 'pathmax'.
49934         * modules/pathmax-tests: New file.
49935         * tests/test-pathmax.c: New file.
49937         canonicalize-lgpl: Support larger filenames on the Hurd.
49938         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49939         Reported by Paul Eggert.
49941         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49942         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49943         * lib/chdir-long.h: Include pathmax.h.
49944         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49945         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49946         (PATH_MAX): Remove code that is done by pathmax.h.
49947         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49948         * lib/tmpfile.c: Add a comment.
49949         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49950         * modules/chdir-long (Depends-on): Add pathmax.
49951         * modules/getcwd (Depends-on): Add pathmax.
49952         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49953         is not defined.
49954         * doc/posix-headers/limits.texi: Mention the pathmax module.
49955         * NEWS: Mention the change.
49957 2011-08-02  Bruno Haible  <bruno@clisp.org>
49959         pthread_sigmask: Actually use results of gl_THREADLIB.
49960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49961         gl_THREADLIB, not gl_[]THREADLIB.
49962         Reported by Eric Blake.
49964 2011-08-02  Jim Meyering  <meyering@redhat.com>
49966         maint.mk: relax the default _gl_TS_function_match regexp
49967         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49968         space between function name and "(" in an "extern" declaration.
49969         That would fail to match a decl with no space there: extern void foo();
49971 2011-07-31  Iain Nicol  <iain@thenicols.net>
49973         git-version-gen: document that EXTRA_DIST must include .version
49974         * build-aux/git-version-gen: In the how-to-use comment, document
49975         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49976         will fail when run from an unpacked distribution tarball.
49978 2011-08-01  Bruno Haible  <bruno@clisp.org>
49980         wctype-h: Fix last change.
49981         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49982         REPLACE_TOWLOWER to 0.
49983         Reported by Sam Steingold <sds@gnu.org>.
49985 2011-07-31  Bruno Haible  <bruno@clisp.org>
49987         frexpl: Update autoconf test.
49988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49989         according to changes of 2011-06-20.
49991 2011-07-31  Bruno Haible  <bruno@clisp.org>
49993         sys_utsname: Add support for Minix.
49994         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49995         <sys/utsname.h>.
49996         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49997         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49999 2011-07-31  Bruno Haible  <bruno@clisp.org>
50001         strings: Add support for Minix.
50002         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50003         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50004         * doc/posix-headers/strings.texi: Document the Minix problem.
50006 2011-07-31  Bruno Haible  <bruno@clisp.org>
50008         wctype-h: Add support for Minix.
50009         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50010         REPLACE_TOWLOWER.
50011         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50012         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50013         REPLACE_ISWCNTRL.
50015 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50017         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50018         This is a performance improvement for 64-bit hosts: it causes the
50019         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50021 2011-07-31  Bruno Haible  <bruno@clisp.org>
50023         stdioext: Add support for Minix.
50024         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50025         * lib/fpurge.c (fpurge): Likewise.
50026         * lib/freadahead.c (freadahead): Likewise.
50027         * lib/freadable.c (freadable): Likewise.
50028         * lib/freading.c (freading): Likewise.
50029         * lib/freadptr.c (freadptr): Likewise.
50030         * lib/freadseek.c (freadptrinc): Likewise.
50031         * lib/fseeko.c (rpl_fseeko): Likewise.
50032         * lib/fseterr.c (fseterr): Likewise.
50033         * lib/fwritable.c (fwritable): Likewise.
50034         * lib/fwriting.c (fwriting): Likewise.
50035         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50036         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50038 2011-07-31  Bruno Haible  <bruno@clisp.org>
50040         errno: Port to Minix.
50041         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50042         ECONNABORTED are defined.
50043         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50044         GNULIB_defined_ECONNABORTED): New macros.
50045         * lib/strerror-override.h (strerror_override): Test also
50046         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50047         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50048         ECONNABORTED.
50049         * doc/posix-headers/errno.texi: Mention the Minix problem.
50051 2011-07-31  Bruno Haible  <bruno@clisp.org>
50053         Work around declaration collisions on Minix.
50054         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50055         defined, set REPLACE_MBSINIT.
50056         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50057         defined, set REPLACE_MBRTOWC.
50058         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50059         set REPLACE_MBRLEN.
50060         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50061         defined, set REPLACE_MBSRTOWCS.
50062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50063         defined, set REPLACE_WCRTOMB.
50064         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50065         defined, set REPLACE_WCSRTOMBS.
50067 2011-07-31  Bruno Haible  <bruno@clisp.org>
50069         Add support for Minix with ACK compiler.
50070         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50071         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50072         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50074 2011-07-31  Bruno Haible  <bruno@clisp.org>
50076         Documentation about Minix.
50077         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50078         * doc/glibc-headers/*.texi: Likewise.
50079         * doc/posix-functions/*.texi: Likewise.
50080         * doc/glibc-functions/*.texi: Likewise.
50082 2011-07-31  Bruno Haible  <bruno@clisp.org>
50084         snippet/warn-on-use: Fix indentation.
50085         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50087 2011-07-25  Jim Meyering  <meyering@redhat.com>
50089         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50090         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50091         commands.
50093 2011-07-27  Jim Meyering  <meyering@redhat.com>
50095         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50096         * top/maint.mk (gl_extract_significant_defines_): Now that
50097         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50098         gnulib/lib/signal.in.h, and now that we recommend to
50099         define-if-undefined those two symbols in application code,
50100         we must filter them out of the "significant" list.
50101         This avoids a "make syntax-check" failure in coreutils.
50103 2011-07-26  Eric Blake  <eblake@redhat.com>
50105         warnings: add comments about previous patch
50106         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50107         * m4/include_next.m4: Likewise.
50108         * m4/warn-on-use.m4: Likewise.
50109         * m4/warnings.m4: Likewise, and simplify use.
50110         Suggested by Stefano Lattarini.
50112         include-next, warnings: support older autoconf
50113         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50114         AS_VAR_PUSHDEF in a way that works with older autoconf.
50115         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50116         Reported by Daniel P. Berrange.
50118 2011-07-25  Bruno Haible  <bruno@clisp.org>
50120         fseek, ftell: Fix doc.
50121         * doc/posix-functions/fseek.texi: Reword statement about
50122         AC_SYS_LARGEFILE.
50123         * doc/posix-functions/ftell.texi: Likewise.
50125 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50126             Bruno Haible  <bruno@clisp.org>
50128         Add dependencies to the 'largefile' module.
50129         * modules/fopen (Depends-on): Add 'largefile'.
50130         * modules/freopen (Depends-on): Likewise.
50131         * modules/fseeko (Depends-on): Likewise.
50132         * modules/ftello (Depends-on): Likewise.
50133         * modules/glob (Depends-on): Likewise.
50134         * modules/lseek (Depends-on): Likewise.
50135         * modules/lstat (Depends-on): Likewise.
50136         * modules/mkostemp (Depends-on): Likewise.
50137         * modules/mkostemps (Depends-on): Likewise.
50138         * modules/mkstemp (Depends-on): Likewise.
50139         * modules/mkstemps (Depends-on): Likewise.
50140         * modules/open (Depends-on): Likewise.
50141         * modules/openat (Depends-on): Likewise.
50142         * modules/pread (Depends-on): Likewise.
50143         * modules/pwrite (Depends-on): Likewise.
50144         * modules/scandir (Depends-on): Likewise.
50145         * modules/stat (Depends-on): Likewise.
50146         * modules/tmpfile (Depends-on): Likewise.
50147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50148         since the containing module now depends on the largefile module.
50149         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50150         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50151         off_t is fixed by gnulib.
50152         * doc/posix-functions/freopen.texi: Likewise.
50153         * doc/posix-functions/fseeko.texi: Likewise.
50154         * doc/posix-functions/fstatat.texi: Likewise.
50155         * doc/posix-functions/ftello.texi: Likewise.
50156         * doc/posix-functions/glob.texi: Likewise.
50157         * doc/posix-functions/lseek.texi: Likewise.
50158         * doc/posix-functions/lstat.texi: Likewise.
50159         * doc/posix-functions/mkstemp.texi: Likewise.
50160         * doc/posix-functions/open.texi: Likewise.
50161         * doc/posix-functions/openat.texi: Likewise.
50162         * doc/posix-functions/pread.texi: Likewise.
50163         * doc/posix-functions/pwrite.texi: Likewise.
50164         * doc/posix-functions/scandir.texi: Likewise.
50165         * doc/posix-functions/stat.texi: Likewise.
50166         * doc/posix-functions/tmpfile.texi: Likewise.
50167         * doc/glibc-functions/mkostemp.texi: Likewise.
50168         * doc/glibc-functions/mkostemps.texi: Likewise.
50169         * doc/glibc-functions/mkstemps.texi: Likewise.
50171 2011-07-25  Bruno Haible  <bruno@clisp.org>
50173         fcntl: Move AC_LIBOBJ invocation to module description.
50174         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50175         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50177         fcntl: Remove call-in from fchdir.m4.
50178         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50181         dup3: Remove potential call-in from fchdir.m4.
50182         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50185         dup2: Move AC_LIBOBJ invocation to module description.
50186         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50187         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50188         Don't invoke AC_LIBOBJ.
50189         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50191         dup2: Remove call-in from fchdir.m4.
50192         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50195         fclose: Move AC_LIBOBJ invocation to module description.
50196         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50197         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50198         to 1.
50199         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50201         fclose: Remove call-in from close.m4.
50202         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50203         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50205         close: Move AC_LIBOBJ invocation to module description.
50206         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50207         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50208         1.
50209         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50211         close: Remove call-in from fchdir.m4.
50212         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50215         open: Move AC_LIBOBJ invocation to module description.
50216         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50217         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50218         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50220         open: Remove call-in from fchdir.m4.
50221         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50224         fchdir: Start to remove gl_REPLACE_* idiom.
50225         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50226         (gl_FUNC_FCHDIR): Invoke it.
50228 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50230         * lib/ftell.c (ftell): Comment out cast.
50232         close: use gl_REPLACE_FCLOSE only if defined
50233         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50234         is defined.  The close module doesn't depend on the fclose module
50235         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50236         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50237         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50239 2011-07-24  Jim Meyering  <meyering@redhat.com>
50241         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50242         * tests/test-select.h (test_function): Declare as "static".
50244 2011-07-24  Bruno Haible  <bruno@clisp.org>
50246         doc: Mention the effects of AC_SYS_LARGEFILE.
50247         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50248         on this function.
50249         * doc/posix-functions/aio_error.texi: Likewise.
50250         * doc/posix-functions/aio_fsync.texi: Likewise.
50251         * doc/posix-functions/aio_read.texi: Likewise.
50252         * doc/posix-functions/aio_return.texi: Likewise.
50253         * doc/posix-functions/aio_suspend.texi: Likewise.
50254         * doc/posix-functions/aio_write.texi: Likewise.
50255         * doc/posix-functions/fgetpos.texi: Likewise.
50256         * doc/posix-functions/fopen.texi: Likewise.
50257         * doc/posix-functions/freopen.texi: Likewise.
50258         * doc/posix-functions/fsetpos.texi: Likewise.
50259         * doc/posix-functions/fstatvfs.texi: Likewise.
50260         * doc/posix-functions/ftruncate.texi: Likewise.
50261         * doc/posix-functions/ftw.texi: Likewise.
50262         * doc/posix-functions/getrlimit.texi: Likewise.
50263         * doc/posix-functions/glob.texi: Likewise.
50264         * doc/posix-functions/lio_listio.texi: Likewise.
50265         * doc/posix-functions/lockf.texi: Likewise.
50266         * doc/posix-functions/mkstemp.texi: Likewise.
50267         * doc/posix-functions/mmap.texi: Likewise.
50268         * doc/posix-functions/nftw.texi: Likewise.
50269         * doc/posix-functions/openat.texi: Likewise.
50270         * doc/posix-functions/opendir.texi: Likewise.
50271         * doc/posix-functions/posix_fadvise.texi: Likewise.
50272         * doc/posix-functions/posix_fallocate.texi: Likewise.
50273         * doc/posix-functions/pread.texi: Likewise.
50274         * doc/posix-functions/pwrite.texi: Likewise.
50275         * doc/posix-functions/readdir.texi: Likewise.
50276         * doc/posix-functions/readdir_r.texi: Likewise.
50277         * doc/posix-functions/rewinddir.texi: Likewise.
50278         * doc/posix-functions/scandir.texi: Likewise.
50279         * doc/posix-functions/seekdir.texi: Likewise.
50280         * doc/posix-functions/setrlimit.texi: Likewise.
50281         * doc/posix-functions/statvfs.texi: Likewise.
50282         * doc/posix-functions/telldir.texi: Likewise.
50283         * doc/posix-functions/tmpfile.texi: Likewise.
50284         * doc/posix-functions/truncate.texi: Likewise.
50285         * doc/glibc-functions/fallocate.texi: Likewise.
50286         * doc/glibc-functions/fstatfs.texi: Likewise.
50287         * doc/glibc-functions/fts_children.texi: Likewise.
50288         * doc/glibc-functions/fts_read.texi: Likewise.
50289         * doc/glibc-functions/getdirentries.texi: Likewise.
50290         * doc/glibc-functions/mkostemp.texi: Likewise.
50291         * doc/glibc-functions/mkostemps.texi: Likewise.
50292         * doc/glibc-functions/mkstemps.texi: Likewise.
50293         * doc/glibc-functions/preadv.texi: Likewise.
50294         * doc/glibc-functions/pwritev.texi: Likewise.
50295         * doc/glibc-functions/sendfile.texi: Likewise.
50296         * doc/glibc-functions/statfs.texi: Likewise.
50298 2011-07-24  Bruno Haible  <bruno@clisp.org>
50300         doc: Fix typo.
50301         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50303 2011-07-24  Bruno Haible  <bruno@clisp.org>
50305         doc: Mention fsusage.
50306         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50308 2011-07-24  Bruno Haible  <bruno@clisp.org>
50310         doc: Mention new glibc headers and functions.
50311         * doc/glibc-headers/gshadow.texi: New file.
50312         * doc/glibc-functions/endsgent.texi: New file.
50313         * doc/glibc-functions/fgetsgent.texi: New file.
50314         * doc/glibc-functions/fgetsgent_r.texi: New file.
50315         * doc/glibc-functions/getsgent.texi: New file.
50316         * doc/glibc-functions/getsgent_r.texi: New file.
50317         * doc/glibc-functions/getsgnam.texi: New file.
50318         * doc/glibc-functions/getsgnam_r.texi: New file.
50319         * doc/glibc-functions/putsgent.texi: New file.
50320         * doc/glibc-functions/setsgent.texi: New file.
50321         * doc/glibc-functions/sgetsgent.texi: New file.
50322         * doc/glibc-functions/sgetsgent_r.texi: New file.
50323         * doc/glibc-functions/malloc_info.texi: New file.
50324         * doc/glibc-functions/preadv.texi: New file.
50325         * doc/glibc-functions/pwritev.texi: New file.
50326         * doc/glibc-functions/register_printf_modifier.texi: New file.
50327         * doc/glibc-functions/register_printf_specifier.texi: New file.
50328         * doc/glibc-functions/register_printf_type.texi: New file.
50329         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50330         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50331         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50332         * doc/glibc-functions/pthread_getname_np.texi: New file.
50333         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50334         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50335         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50336         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50337         * doc/glibc-functions/pthread_setname_np.texi: New file.
50338         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50339         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50340         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50341         * doc/glibc-functions/qsort_r.texi: New file.
50342         * doc/glibc-functions/quick_exit.texi: New file.
50343         * doc/glibc-functions/syncfs.texi: New file.
50344         * doc/gnulib.texi: Include them.
50345         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50346         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50347         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50348         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50349         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50350         * doc/glibc-functions/execvpe.texi: Likewise.
50352 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50354         ftell: don't include <unistd.h>
50355         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50356         guaranteed to define off_t, and the ftell module depends on the
50357         stdio module.
50359         ftell: do not assume wraparound signed arithmetic
50360         * lib/ftell.c: Include <limits.h>.
50361         (ftell): Don't assume wraparound signed arithmetic.
50363 2011-07-24  Bruno Haible  <bruno@clisp.org>
50365         close: No longer depend on module 'fclose'.
50366         * modules/close (Depends-on): Remove fclose.
50367         * NEWS: Mention the change.
50368         Suggested by Sam Steingold <sds@gnu.org>.
50370 2011-07-24  Bruno Haible  <bruno@clisp.org>
50372         fsusage: Enable large volume support on AIX >= 5.2.
50373         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50374         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50375         instead of STAT_STATVFS.
50376         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50378         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50380         f_blocks field only on MacOS X.
50382         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50384         * modules/fsusage (Depends-on): Add largefile.
50386 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50388         * README: Modernize discussion of signed integers.
50389         Assuming overflow wraparound is no longer safe.
50390         Mention ones' complement and signed magnitude.
50392 2011-07-22  Bruno Haible  <bruno@clisp.org>
50394         select tests, pselect tests: Refactor.
50395         * tests/test-select.h: New file, extracted from tests/test-select.c.
50396         (select_fn): New type.
50397         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50398         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50399         test_pipe): Add my_select argument.
50400         (test_function): Renamed from main. Add my_select argument.
50401         * tests/test-select.c: Move most code to tests/test-select.h. Include
50402         test-select.h.
50403         * modules/select-tests (Files): Add tests/test-select.h.
50404         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50405         (my_select, main): New functions.
50406         * modules/pselect-tests (Files): Add tests/test-select.h,
50407         tests/macros.h, tests/signature.h.
50408         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50409         (configure.ac): Check for <sys/wait.h>.
50411 2011-07-22  Bruno Haible  <bruno@clisp.org>
50413         sys_select tests: Check the signature of FD_*.
50414         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50415         signature tests from here...
50416         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50417         here.
50418         * modules/sys_select-tests (Files): Add tests/signature.h.
50420 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50422         largefile: new module, replacing large-inode
50423         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50424         * MODULES.html.sh: Add largefile, remove large-inode.
50425         * modules/largefile, m4/largefile.m4: New files.
50426         * modules/large-inode, m4/large-inode.m4: Remove.
50428         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50429         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50430         implementations that use only 32 bits to count blocks.
50431         On typical hosts with 1024-byte blocks, this fails with file
50432         systems as small as 4 TiB.  Problem reported by Herb Wartens
50433         <http://debbugs.gnu.org/9140> and this should also fix a similar
50434         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50436         large-inode: New module
50437         * MODULES.html.sh: Add it.
50438         * modules/large-inode, m4/large-inode.m4: New files.
50440         extensions: Enable extensions on MacOS X 10.5 and later.
50441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50443 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50445         file-has-acl: use acl_extended_file_nofollow if available
50446         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50447         (acl_extended_file): New macro.
50448         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50449         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50451 2011-07-21  Bruno Haible  <bruno@clisp.org>
50453         Declare system functions in a way that works with C++.
50454         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50455         declare fdopendir as extern "C".
50456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50457         declare frexpl as extern "C".
50458         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50459         declare gai_strerror as extern "C".
50460         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50461         programs, declare gai_strerror as extern "C".
50462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50463         declare getlogin_r as extern "C".
50464         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50465         as extern "C".
50466         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50467         declare ldexpl as extern "C".
50468         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50469         as extern "C".
50470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50471         program, declare getmntinfo as extern "C".
50472         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50473         stpncpy as extern "C".
50474         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50475         program, declare __xpg_strerror_r as extern "C".
50476         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50477         strndup as extern "C".
50478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50479         declare memset and bzero as extern "C".
50480         Reported by Sam Steingold <sds@gnu.org>.
50482 2011-07-12  Jim Meyering  <meyering@redhat.com>
50484         maint.mk: prohibit inclusion of "verify.h" without use
50485         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50487 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50489         timer-time: A new module to check for timer_settime()
50490         * m4/timer_time.m4: Check for the posix function.
50491         * modules/timer-time: Add the new module.
50492         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50493         Mention it.
50495 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50496             Bruno Haible  <bruno@clisp.org>
50498         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50499         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50500         not defined, assume POSIX threads and look for pthread_sigmask in
50501         $LIBS, without changing $CPPFLAGS.
50503 2011-07-19  Bruno Haible  <bruno@clisp.org>
50505         strstr: Update cross-compilation guess.
50506         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50507         CPUs, guess no, in view of glibc
50508         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50509         Suggested by Eric Blake. Reported by Reuben Thomas.
50511 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50513         getopt-gnu: suppress core dumps from detection code
50514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50515         to suppress core dumps that may well occur on glibc systems.
50516         * modules/getopt-gnu: Depend on nocrash.
50518 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50520         pthread_sigmask: ensure usleep is declared
50521         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50522         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50524 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50526         doc: Document NonStop portability issues.
50527         * doc/posix-functions/sigaction.texi (sigaction):
50528         * doc/posix-headers/signal.texi (signal.h):
50529         Document NonStop.  See Joachim Schmitz in
50530         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50532 2011-07-15  Bruno Haible  <bruno@clisp.org>
50534         ffsl, ffsll: Avoid unportable behaviour.
50535         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50537 2011-07-15  Bruno Haible  <bruno@clisp.org>
50539         ffs: More tests.
50540         * tests/test-ffs.c (NBITS): New macro.
50541         (main): Add more tests.
50542         * tests/test-ffsl.c (NBITS): New macro.
50543         (main): Add more tests.
50544         * tests/test-ffsll.c (NBITS): New macro.
50545         (main): Add more tests.
50547 2011-07-15  Eric Blake  <eblake@redhat.com>
50549         ffsl, ffsll: new modules
50550         * modules/ffsl: New file.
50551         * modules/ffsll: Likewise.
50552         * m4/ffsl.m4: Likewise.
50553         * m4/ffsll.m4: Likewise.
50554         * lib/ffsl.c: Likewise.
50555         * lib/ffsl.h: Likewise.
50556         * lib/ffsll.c: Likewise.
50557         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50558         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50559         * modules/string (Makefile.am): Substitute witnesses.
50560         * lib/strings.in.h (ffsl, ffsll): Declare.
50561         * modules/ffsl-tests: New test file.
50562         * modules/ffsll-tests: Likewise.
50563         * tests/test-ffsl.c: Likewise.
50564         * tests/test-ffsll.c: Likewise.
50565         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50566         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50567         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50569         ffs: fix m4 prerequisite
50570         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50572         ffs: avoid undefined behavior
50573         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50574         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50575         Reported by Bruno Haible.
50577 2011-07-12  Bruno Haible  <bruno@clisp.org>
50579         pthread_sigmask: Rely on module 'threadlib'.
50580         * modules/pthread_sigmask (Depends-on): Add threadlib.
50581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50582         is defined.
50584 2011-07-12  Bruno Haible  <bruno@clisp.org>
50586         regex: Depend on module 'strcase'.
50587         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50589 2011-07-12  Jim Meyering  <meyering@redhat.com>
50591         warn-on-use: fix typo in file name
50592         * modules/snippet/warn-on-use (Files): Correct file name:
50593         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50595 2011-07-12  Bruno Haible  <bruno@clisp.org>
50597         strings: Document module.
50598         * doc/posix-headers/strings.texi: Mention module 'strings'.
50600 2011-07-12  Bruno Haible  <bruno@clisp.org>
50602         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50603         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50604         (Files, Makefile.am): Update.
50605         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50606         * modules/stdlib (Depends-on): Update.
50608 2011-07-12  Bruno Haible  <bruno@clisp.org>
50610         * NEWS: Mention the changes.
50612         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50613         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50614         (Files, Makefile.am): Update.
50615         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50616         * modules/arpa_inet (Depends-on): Update.
50617         * modules/ctype (Depends-on): Update.
50618         * modules/dirent (Depends-on): Update.
50619         * modules/fcntl-h (Depends-on): Update.
50620         * modules/glob (Depends-on): Update.
50621         * modules/iconv-h (Depends-on): Update.
50622         * modules/inttypes-incomplete (Depends-on): Update.
50623         * modules/langinfo (Depends-on): Update.
50624         * modules/locale (Depends-on): Update.
50625         * modules/math (Depends-on): Update.
50626         * modules/netdb (Depends-on): Update.
50627         * modules/poll-h (Depends-on): Update.
50628         * modules/pty (Depends-on): Update.
50629         * modules/search (Depends-on): Update.
50630         * modules/signal (Depends-on): Update.
50631         * modules/spawn (Depends-on): Update.
50632         * modules/stdio (Depends-on): Update.
50633         * modules/stdlib (Depends-on): Update.
50634         * modules/string (Depends-on): Update.
50635         * modules/strings (Depends-on): Update.
50636         * modules/sys_file (Depends-on): Update.
50637         * modules/sys_ioctl (Depends-on): Update.
50638         * modules/sys_select (Depends-on): Update.
50639         * modules/sys_socket (Depends-on): Update.
50640         * modules/sys_stat (Depends-on): Update.
50641         * modules/sys_time (Depends-on): Update.
50642         * modules/sys_times (Depends-on): Update.
50643         * modules/sys_utsname (Depends-on): Update.
50644         * modules/sys_wait (Depends-on): Update.
50645         * modules/termios (Depends-on): Update.
50646         * modules/time (Depends-on): Update.
50647         * modules/unistd (Depends-on): Update.
50648         * modules/wchar (Depends-on): Update.
50649         * modules/wctype-h (Depends-on): Update.
50650         * MODULES.html.sh (Support for building libraries and executables):
50651         Update.
50653         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50654         * modules/snippet/unused-parameter: Renamed from
50655         modules/unused-parameter.
50656         (Files, Makefile.am): Update.
50657         * build-aux/snippet/unused-parameter.h: Renamed from
50658         build-aux/unused-parameter.h.
50659         * modules/selinux-h (Depends-on): Update.
50660         * modules/unistr/base (Depends-on): Update.
50661         * MODULES.html.sh (Core language properties): Update.
50663         Rename module 'link-warning' to 'snippet/link-warning'.
50664         * modules/snippet/link-warning: Renamed from modules/link-warning.
50665         (Files, Makefile.am): Update.
50666         * build-aux/snippet/link-warning.h: Renamed from
50667         build-aux/link-warning.h.
50668         * MODULES.html.sh (Support for building libraries and executables):
50669         Update.
50671         Rename module 'c++defs' to 'snippet/c++defs'.
50672         * modules/snippet/c++defs: Renamed from modules/c++defs.
50673         (Files, Makefile.am): Update.
50674         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50675         * modules/arpa_inet (Depends-on): Update.
50676         * modules/ctype (Depends-on): Update.
50677         * modules/dirent (Depends-on): Update.
50678         * modules/fcntl-h (Depends-on): Update.
50679         * modules/glob (Depends-on): Update.
50680         * modules/iconv-h (Depends-on): Update.
50681         * modules/langinfo (Depends-on): Update.
50682         * modules/locale (Depends-on): Update.
50683         * modules/math (Depends-on): Update.
50684         * modules/netdb (Depends-on): Update.
50685         * modules/poll-h (Depends-on): Update.
50686         * modules/pty (Depends-on): Update.
50687         * modules/search (Depends-on): Update.
50688         * modules/signal (Depends-on): Update.
50689         * modules/spawn (Depends-on): Update.
50690         * modules/stdio (Depends-on): Update.
50691         * modules/stdlib (Depends-on): Update.
50692         * modules/string (Depends-on): Update.
50693         * modules/strings (Depends-on): Update.
50694         * modules/sys_ioctl (Depends-on): Update.
50695         * modules/sys_select (Depends-on): Update.
50696         * modules/sys_socket (Depends-on): Update.
50697         * modules/sys_stat (Depends-on): Update.
50698         * modules/sys_time (Depends-on): Update.
50699         * modules/sys_wait (Depends-on): Update.
50700         * modules/termios (Depends-on): Update.
50701         * modules/time (Depends-on): Update.
50702         * modules/unistd (Depends-on): Update.
50703         * modules/wchar (Depends-on): Update.
50704         * modules/wctype-h (Depends-on): Update.
50706         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50707         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50708         (Files, Makefile.am): Update.
50709         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50710         * modules/argv-iter (Depends-on): Update.
50711         * modules/arpa_inet (Depends-on): Update.
50712         * modules/dirent (Depends-on): Update.
50713         * modules/fcntl-h (Depends-on): Update.
50714         * modules/fnmatch (Depends-on): Update.
50715         * modules/getopt-posix (Depends-on): Update.
50716         * modules/glob (Depends-on): Update.
50717         * modules/iconv-h (Depends-on): Update.
50718         * modules/inttypes-incomplete (Depends-on): Update.
50719         * modules/locale (Depends-on): Update.
50720         * modules/math (Depends-on): Update.
50721         * modules/netdb (Depends-on): Update.
50722         * modules/search (Depends-on): Update.
50723         * modules/signal (Depends-on): Update.
50724         * modules/spawn (Depends-on): Update.
50725         * modules/stdio (Depends-on): Update.
50726         * modules/stdlib (Depends-on): Update.
50727         * modules/string (Depends-on): Update.
50728         * modules/strings (Depends-on): Update.
50729         * modules/sys_socket (Depends-on): Update.
50730         * modules/sys_stat (Depends-on): Update.
50731         * modules/sys_time (Depends-on): Update.
50732         * modules/sys_times (Depends-on): Update.
50733         * modules/sys_utsname (Depends-on): Update.
50734         * modules/time (Depends-on): Update.
50735         * modules/unistd (Depends-on): Update.
50736         * modules/wchar (Depends-on): Update.
50737         * MODULES.html.sh (Support for building libraries and executables):
50738         Update.
50740 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50742         Improvements on _Noreturn and related modules.
50744         modules/_Exit-tests: test _Noreturn too
50745         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50746         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50747         (main): Use them.
50749         stdnoreturn, stdnoreturn-tests: remove modules
50750         They're not needed here and a bit premature for use elsewhere.  See
50751         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50752         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50753         * tests/test-stdnoreturn.c: Remove files.
50754         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50755         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50756         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50757         and using noreturn.
50758         * modules/openat, modules/sigpipe-die, modules/xalloc:
50759         * modules/xmemdup0, modules/xstrtol:
50760         Remove dependency on stdnoreturn.
50762         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50763         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50764         Reparenthesize to avoid GCC warning.
50765         Support Microsoft's syntax.
50766         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50768         _Noreturn-tests: remove module
50769         * modules/_Noreturn-tests: Remove.
50770         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50771         * tests/test-_Noreturn.c: Remove.
50772         * tests/test-stdnoreturn.c: Merge from the old
50773         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50775 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50777         _Noreturn, stdnoreturn, and related modules.
50779         * top/maint.mk: Adjust to new noreturn support.
50780         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50781         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50783         xalloc: use stdnoreturn.h
50784         * lib/xalloc.h: Include <stdnoreturn.h>.
50785         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50786         * modules/xalloc (Depends-on): Add stdnoreturn.
50788         xstrtol: use stdnoreturn.h
50789         * lib/xstrtol.h: Include <stdnoreturn.h>.
50790         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50791         * modules/xstrtol (Depends-on): Add stdnoreturn.
50793         xmemdup0: use stdnoreturn.h
50794         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50795         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50796         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50798         sigpipe-die: use stdnoreturn.h
50799         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50800         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50801         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50803         openat: use stdnoreturn.h
50804         * lib/openat.h: Include <stdnoreturn.h>.
50805         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50806         * modules/openat (Depends-on): Add stdnoreturn.
50808         * lib/openat-die.c (openat_save_fail): Modernize comment.
50810         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50812         * lib/glthread/thread.h: Modernize comment.
50814         obstack: use _Noreturn
50815         * lib/obstack.c (__attribute__): Remove macro.
50816         (print_and_abort): Use _Noreturn.
50818         c-stack: use _Noreturn
50819         * lib/c-stack.c (die, overflow_handler, segv_handler):
50820         Use _Noreturn rather than __attribute__((noreturn)).
50822         argmatch-tests, exclude_tests: use _Noreturn
50823         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50824         Remove.
50825         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50827         stdlib: use _Noreturn
50828         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50829         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50830         * modules/stdlib (Depends-on): Add _Noreturn.
50831         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50833         stdnoreturn-tests: new module
50834         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50836         stdnoreturn: new module
50837         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50838         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50840         _Noreturn-tests: new module
50841         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50843         _Noreturn: new module
50844         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50845         New section, mentioning it.
50846         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50850 2011-07-11  Eric Blake  <eblake@redhat.com>
50852         ffs: new module
50853         * modules/ffs: New file.
50854         * m4/ffs.m4: Likewise.
50855         * lib/ffs.c: Likewise.
50856         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50857         * modules/strings (Makefile.am): Substitute witness.
50858         (Depends-on): Add c++defs.
50859         * lib/strings.in.h (ffs): Declare.
50860         * modules/ffs-tests: New test file.
50861         * tests/test-ffs.c: Test new module.
50862         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50863         * doc/posix-functions/ffs.texi (ffs): Likewise.
50865         regex: avoid compiler warning
50866         * lib/regex.c (includes): Include <strings.h>, for use of
50867         strcasecmp in regcomp.c.
50868         Reported by Joachim Schmitz.
50870 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50872         stdint: respect system's intmax_t if INTMAX_MAX
50873         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50874         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50875         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50876         long but int64_t is long long, and where we will clash with the
50877         system intmax_t if we override it.  See
50878         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50879         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50880         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50881         similarly for UINTMAX_C.
50883 2011-07-08  Bruno Haible  <bruno@clisp.org>
50885         pthread_sigmask tests: Avoid a compiler warning.
50886         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50887         non-zero.
50889         sigprocmask tests: A better way to avoid a compiler warning.
50890         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50891         (main): Complain if system() returns non-zero.
50892         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50894 2011-07-08  Bruno Haible  <bruno@clisp.org>
50896         pthread_sigmask: Work around IRIX bug.
50897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50898         bug.
50899         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50900         there may be unblocked pending signals.
50901         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50903 2011-07-08  Bruno Haible  <bruno@clisp.org>
50905         pthread_sigmask: Work around Cygwin bug.
50906         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50907         bug.
50908         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50909         the system's pthread_sigmask function.
50910         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50912 2011-07-08  Bruno Haible  <bruno@clisp.org>
50914         pthread_sigmask: Work around bug in single-threaded implementation.
50915         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50916         FreeBSD, HP-UX, Solaris bug.
50917         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50918         * lib/pthread_sigmask.c: Include <stddef.h>.
50919         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50920         the system's pthread_sigmask function.
50921         * modules/pthread_sigmask (configure.ac): Invoke
50922         gl_PREREQ_PTHREAD_SIGMASK.
50923         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50924         HP-UX, Solaris.
50926 2011-07-08  Eric Blake  <eblake@redhat.com>
50928         test-sigprocmask: avoid compiler warning
50929         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50930         * tests/test-sigprocmask.c (main): Use it to silence warning.
50931         Reported by Jim Meyering.
50933         test-snprintf: avoid compiler warning
50934         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50935         * tests/test-vsnprintf.c (main): Likewise.
50936         Reported by Jim Meyering.
50938 2011-07-08  Bruno Haible  <bruno@clisp.org>
50940         Tests for module 'pthread_sigmask'.
50941         * modules/pthread_sigmask-tests: New file.
50942         * tests/test-pthread_sigmask1.c: New file, based on
50943         tests/test-sigprocmask.c.
50944         * tests/test-pthread_sigmask2.c: New file.
50946 2011-07-08  Jim Meyering  <meyering@redhat.com>
50948         test-getopt.h: avoid warning about an unused variable
50949         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50951 2011-07-07  Jim Meyering  <meyering@redhat.com>
50953         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50954         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50955         now that it no longer contains leading TABs.
50956         Remove unused "url=FIXME" statement.
50958 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50960         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50962         When gl_THREADLIB is not in use, assume that the POSIX sematics
50963         are desired.  This is better for Emacs, which uses POSIX semantics
50964         on GNUish and/or POSIXish platforms, and does not use threads at
50965         all otherwise.
50967         pthread_sigmask: fix typo when testing for libraries
50968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50969         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50971 2011-07-08  Eric Blake  <eblake@redhat.com>
50973         fts: introduce FTS_NOATIME
50974         * lib/fts_.h (FTS_NOATIME): New bit flag.
50975         (FTS_OPTIONMASK): Adjust.
50976         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50977         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50979 2011-07-08  Bruno Haible  <bruno@clisp.org>
50981         Tests for module 'thread'.
50982         * modules/thread-tests: New file.
50983         * tests/test-thread_self.c: New file.
50984         * tests/test-thread_create.cc: New file.
50986 2011-07-08  Bruno Haible  <bruno@clisp.org>
50988         thread: Avoid gcc warnings when using gl_thread_self().
50989         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50990         'void *'.
50991         (gl_thread_self_pointer): Update.
50993 2011-07-07  Bruno Haible  <bruno@clisp.org>
50995         signal-c++-tests: Check declaration of pthread_sigmask.
50996         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50997         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50998         $(LIB_PTHREAD_SIGMASK).
51000 2011-07-07  Bruno Haible  <bruno@clisp.org>
51002         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51003         * lib/signal.in.h (pthread_sigmask): Override if
51004         REPLACE_PTHREAD_SIGMASK is 1.
51005         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51006         REPLACE_PTHREAD_SIGMASK.
51007         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51008         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51009         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51010         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51011         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51013 2011-07-07  Bruno Haible  <bruno@clisp.org>
51015         pthread_sigmask: Ensure declaration in <signal.h>.
51016         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51017         include <pthread.h>.
51018         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51019         problem.
51021 2011-07-07  Bruno Haible  <bruno@clisp.org>
51023         pthread_sigmask: Document the module.
51024         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51026 2011-07-07  Bruno Haible  <bruno@clisp.org>
51028         pthread_sigmask: Follow gnulib conventions.
51029         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51030         gl_PTHREAD_SIGMASK.
51031         * modules/pthread_sigmask (configure.ac): Update.
51033 2011-07-07  Bruno Haible  <bruno@clisp.org>
51035         pthread_sigmask: Make declaration C++ safe.
51036         * lib/signal.in.h: In two special conditions, just do an #include_next.
51037         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51038         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51040         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51041         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51042         not REPLACE_PTHREAD_MASK.
51043         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51044         not REPLACE_PTHREAD_MASK.
51045         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51047 2011-07-07  Bruno Haible  <bruno@clisp.org>
51049         pthread_sigmask: Fix return value.
51050         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51051         * lib/pthread_sigmask.c: New file.
51052         * modules/pthread_sigmask (Files): Add it.
51053         (configure.ac): Invoke AC_LIBOBJ.
51055 2011-07-07  Eric Blake  <eblake@redhat.com>
51057         getopt: more portable argv creation
51058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51059         const, use char arrays rather than strings.
51060         Suggested by Paul Eggert.
51062 2011-07-07  Bruno Haible  <bruno@clisp.org>
51064         Tests for module 'sigprocmask'.
51065         * modules/sigprocmask-tests: New file.
51066         * tests/test-sigprocmask.c: New file.
51068 2011-07-07  Bruno Haible  <bruno@clisp.org>
51070         float tests: Tweak.
51071         * tests/test-float.c (main): Tweak skip message.
51073 2011-07-07  Eric Blake  <eblake@redhat.com>
51075         getopt: avoid compiler warning during configure
51076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51077         assigning string literals to non-const pointer.
51079         getopt-gnu: avoid crash in glibc getopt
51080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51081         * tests/test-getopt.h (test_getopt): Enhance test.
51082         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51083         * doc/posix-functions/getopt.texi (getopt): Document it.
51084         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51085         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51086         Likewise.
51088 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51090         getopt: handle W; without long options in getopt [BZ #12922]
51091         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51092         but no long options are defined, just return 'W'.
51094 2011-07-07  Bruno Haible  <bruno@clisp.org>
51096         Avoid literal tabs.
51097         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51098         variable containing a tab instead of a literal tab.
51099         Reported by Jim Meyering.
51101 2011-07-07  Bruno Haible  <bruno@clisp.org>
51103         Comments.
51104         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51106 2011-07-06  Bruno Haible  <bruno@clisp.org>
51108         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51109         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51110         <winsock2.h>.
51111         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51112         lib/sys_socket.in.h.
51113         (close, gethostname): Hide declarations from <winsock2.h>.
51114         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51115         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51116         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51117         (select): Don't override if gnulib's <sys/select.h> was already
51118         included.
51119         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51120         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51121         setsockopt, shutdown, select): Tweak indentation.
51123 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51125         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51126         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51127         in an application that does not use the sys_select module.
51129 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51131         poll: do not return 0 on timeout=-1
51132         * lib/poll.c: Loop with yield if no events occurred.
51134 2011-07-06  Eric Blake  <eblake@redhat.com>
51136         pthread_sigmask: always replace when not using pthread
51137         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51138         replacement when using some threading other than pthread.  Fix
51139         logic bug.
51141 2011-07-06  Bruno Haible  <bruno@clisp.org>
51143         Comments.
51144         * m4/printf.m4: Update comments about mingw.
51146 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51148         sys_select: define sigset_t more portably
51149         * lib/sys_select.in.h: Always include <sys/types.h>, since
51150         we now need sigset_t and mingw defines it there.
51151         Include <signal.h> before split inclusion guard, to avoid
51152         mishaps on Solaris, whose <signal.h> eventually includes us.
51153         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51154         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51155         which come from ...
51156         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51157         gl_CHECK_TYPE_SIGSET_T.
51158         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51159         does the real work.
51160         * modules/sys_select (Depends-on): Add 'signal'.
51162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51163         Suggested by Bruno Haible.
51165         pselect: Use pthread_sigmask, not sigprocmask.
51166         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51167         multithreaded apps better than sigprocmask does.
51168         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51169         sigprocmask directly.
51171 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51173         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51174         Don't #undef,  since we don't need any underlying pselect.
51175         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51176         (Depends-on): Add select.
51177         (Link): Add $(LIBSOCKET).
51178         These changes suggested by Bruno Haible.
51180         pselect: document better
51181         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51182         * doc/posix-functions/pselect.texi (pselect): Document new module.
51184         pthread_sigmask: new module
51185         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51186         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51187         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51188         This is done only as a macro; I don't know how well that'll
51189         work for C++.  Move <sys/types.h> include before the include_next,
51190         to avoid mishap on Solaris.
51191         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51192         * modules/signal (Makefile.am): Substitute the check's results.
51193         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51195         test-pselect: new module
51196         * modules/pselect-tests, tests/test-pselect.c: New files.
51197         * tests/test-select.c, tests/test-sys_select-c++.cc:
51198         If TEST_PSELECT is defined, test pselect instead of testing select.
51200         * tests/test-sys_select.c (sigset_t): Test for it, too.
51201         Suggested by Bruno Haible.
51203 2011-07-05  Eric Blake  <eblake@redhat.com>
51205         snprintf: guarantee %1$d, for libintl
51206         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51207         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51208         * doc/posix-functions/snprintf.texi (snprintf): Update.
51209         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51210         * tests/test-snprintf.c (main): Enhance test.
51211         * tests/test-vsnprintf.c (main): Likewise.
51213 2011-07-05  Jim Meyering  <meyering@redhat.com>
51215         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51216         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51217         per Bruno's request, to accommodate this idiom (no space after "#")
51218         even when the function is inside an #if block:
51219         char *
51220         gets (char *s)
51221         #undef gets
51222         {
51223           ...
51224         }
51226 2011-07-04  Jim Meyering  <meyering@redhat.com>
51228         maint: indent with spaces, not TABs, and add a rule to check this
51229         * tests/test-userspec.c: Indent with spaces, not TABs.
51230         * tests/test-argp.c: Likewise.
51231         * tests/test-c-stack2.sh: Likewise.
51232         * tests/test-parse-duration.sh: Likewise
51233         * m4/strtod.m4: Likewise.
51234         * m4/alloca.m4: Likewise.
51235         * m4/pselect.m4: Likewise.
51236         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51238 2011-07-03  Jim Meyering  <meyering@redhat.com>
51240         maint.mk: correct omissions in prohibit_argmatch_without_use check
51241         This rule would mistakenly report that argmatch.h is included without
51242         use even when both the argmatch and invalid_arg macro were used.
51243         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51244         of argmatch and invalid_arg.
51246 2011-07-03  Bruno Haible  <bruno@clisp.org>
51248         Comments about EINTR.
51249         * lib/safe-read.h: Explain the purpose of this module.
51250         * lib/safe-write.h: Likewise.
51251         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51252         module.
51253         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51254         module.
51255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51257 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51259         xnanosleep: Rewrite to use new dtotimespec module.
51260         It has the conversion code that used to be in xnanosleep.
51261         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51262         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51263         (TIME_T_MAX): Remove.
51264         (xnanosleep): Rewrite in terms of dtotimespec.
51265         * modules/xnanosleep (Depends-on): Add dtotimespec.
51266         Remove intprops, stdbool.
51268         timespec-add, timespec-sub: new modules
51269         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51270         * lib/timespec-add.c, lib/timespec-sub.c:
51271         * modules/timespec-add, modules/timespec-sub: New files.
51273         dtotimespec: new module
51274         * lib/timespec.h (dtotimespec): New decl.
51275         * lib/dtotimespec.c, modules/dtotimespec: New files.
51277         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51279         pselect: new module
51280         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51281         (pselect): New decls.
51282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51283         since the standard pselect decl uses 'restrict'.
51284         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51285         HAVE_PSELECT, REPLACE_PSELECT.
51286         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51287         HAVE_PSELECT, REPLACE_PSELECT.
51288         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51290         sys_select: don't depend on sys_socket
51291         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51292         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51293         This fix works on GNU and GNU-like platforms, but has not been tested
51294         on native Windows.
51295         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51297         gl_HEADER_SYS_SOCKET.
51298         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51299         gl_PREREQ_SYS_H_WINSOCK2.
51301 2011-06-29  Eric Blake  <eblake@redhat.com>
51303         pipe2: fix C89 compile problem
51304         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51305         Reported by Bruno Haible.
51307         pipe, pipe2: don't corrupt fd on error
51308         * lib/pipe.c (pipe): Leave fd unchanged on error.
51309         * lib/pipe2.c (pipe2): Likewise.
51310         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51311         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51313 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51315         mmap-anon: do not use regular expressions inadvertently
51316         * m4/mmap-anon.m4: Remove trailing period from strings sought
51317         in the output.
51319 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51321         nanosleep: fix integer overflow problem
51322         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51323         arithmetic wraps around on overflow.
51325         nanosleep: simplify carrying
51326         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51327         first call to the underyling nanosleep, not for the last one.
51328         This doesn't fix any bugs, but it simplifies the computation of
51329         the remaining delay.  Found while auditing integer overflow issues.
51331         dup2: remove test for existence of fcntl
51332         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51333         "#if HAVE_FCNTL", in the configure-time test program.
51334         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51335         and therefore speeds up "configure" a bit.  Found while
51336         adding the dup2 module to Emacs.
51338 2011-06-24  Eric Blake  <eblake@redhat.com>
51340         maint.mk: enhance useless header checks
51341         * top/maint.mk (_sc_header_without_use): Check both include
51342         styles.
51343         (sc_prohibit_assert_without_use)
51344         (sc_prohibit_close_stream_without_use)
51345         (sc_prohibit_getopt_without_use)
51346         (sc_prohibit_quotearg_without_use)
51347         (sc_prohibit_quote_without_use)
51348         (sc_prohibit_long_options_without_use)
51349         (sc_prohibit_inttostr_without_use)
51350         (sc_prohibit_ignore_value_without_use)
51351         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51352         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51353         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51354         (sc_prohibit_hash_pjw_without_use)
51355         (sc_prohibit_safe_read_without_use)
51356         (sc_prohibit_argmatch_without_use)
51357         (sc_prohibit_canonicalize_without_use)
51358         (sc_prohibit_root_dev_ino_without_use)
51359         (sc_prohibit_openat_without_use)
51360         (sc_prohibit_c_ctype_without_use)
51361         (sc_prohibit_signal_without_use)
51362         (sc_prohibit_stdio--_without_use)
51363         (sc_prohibit_stdio-safer_without_use)
51364         (sc_prohibit_strings_without_use)
51365         (sc_prohibit_intprops_without_use)
51366         (sc_prohibit_stddef_without_use)
51367         (sc_prohibit_xfreopen_without_use): Update clients.
51369 2011-06-24  Jim Meyering  <meyering@redhat.com>
51371         syntax-check: keep one maint.mk rule in sync with its header
51372         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51373         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51374         I prefer to avoid temporary files here, so use <(...), but that
51375         is not supported by /bin/sh, so...
51376         (SHELL): Define to /bin/bash.
51378 2011-06-24  Eric Blake  <eblake@redhat.com>
51380         maint.mk: update sc_prohibit_intprops_without_use
51381         * top/maint.mk (_intprops_names): Match recent changes.
51383 2011-06-24  Bruno Haible  <bruno@clisp.org>
51385         strerror-override: No-op tweak.
51386         * lib/strerror-override.h (strerror_override): Reorder conditions,
51387         for consistency with lib/strerror-override.c.
51389 2011-06-23  Eric Blake  <eblake@redhat.com>
51391         maint.mk: test further PATH_MAX issues
51392         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51393         (sc_prohibit_path_max_allocation): ...and also test alloca.
51394         Suggested by Jim Meyering.
51396 2011-06-22  Eric Blake  <eblake@redhat.com>
51398         maint.mk: add syntax-check to avoid char[PATH_MAX]
51399         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51401         stat: be robust to PATH_MAX definition
51402         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51403         * modules/stat (Depends-on): Add verify.
51405         link: work around IRIX bug
51406         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51407         * lib/link.c (rpl_link): Work around it.
51408         * tests/test-link.h (test_link): Enhance test.
51409         * doc/posix-functions/link.texi (link): Document the bug.
51411         getopt: silence clang warning
51412         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51413         dereference.
51414         Reported by Gustavo Martin Domato.
51416 2011-06-22  Jim Meyering  <meyering@redhat.com>
51418         bootstrap: do not insert a blank line into each .gitignore file
51419         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51421 2011-06-21  Eric Blake  <eblake@redhat.com>
51423         perror: test for output mismatch
51424         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51425         perror on IRIX.
51427         strerror_r: fix OpenBSD behavior on out-of-range
51428         * lib/strerror_r.c (strerror_r): Always use maximal string.
51429         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51431         strerror_r: fix OpenBSD behavior on 0
51432         * lib/strerror-override.c (strerror_override): Also override 0
51433         when needed.
51434         * lib/strerror-override.h (strerror_override): Likewise.
51435         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51436         earlier.
51437         * lib/strerror_r.c (strerror_r): Likewise.
51438         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51439         behavior...
51440         (gl_FUNC_STRERROR_0): ...into new macro.
51441         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51442         is overridden.
51443         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51444         * modules/strerror-override (Files): Add strerror.m4.
51445         (configure.ac): Also provide override for 0 when needed.
51446         * doc/posix-functions/strerror.texi (strerror): Document this.
51447         * doc/posix-functions/perror.texi (perror): Likewise.
51449         perror: adjust array size
51450         * modules/perror (Depends-on): Add strerror-override.
51451         * lib/perror.c (perror): Use it to avoid magic number.
51453         strerror-override: reduce size
51454         * lib/strerror-override.c (strerror_override): Use fewer lines.
51456 2011-06-20  Bruno Haible  <bruno@clisp.org>
51458         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51459         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51461 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51463         alloca: port to compilers that can optimize like GCC 4.6.0
51464         * lib/alloca.c (find_stack_direction): New signature, taken from
51465         Autoconf git.  This works with GCC 4.6.0.  This code should never
51466         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51467         be used with other compilers that optimize as well as GCC 4.6.0 does.
51468         (alloca): Adjust to new signature.
51469         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51470         New macro, which patches Autoconf in a similar way.
51472         c-stack: stop worrying about stack direction
51473         * lib/c-stack.c (find_stack_direction): Remove.
51474         (segv_handler): Don't worry about stack direction growth, as it's
51475         too much of a pain to configure this correctly, given how compilers
51476         are optimizing-away our stack-growth detection code.  Instead, assume
51477         that any access to just before or just after the stack is OK.
51478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51479         Don't require AC_FUNC_ALLOCA; no longer needed.
51481 2011-06-20  Eric Blake  <eblake@redhat.com>
51483         test-stat: don't allocate PATH_MAX bytes
51484         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51485         PATH_MAX-sized buffer.
51486         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51487         * modules/stat-tests (Depends-on): Likewise.
51488         * tests/test-fstatat.c (includes): Drop pathmax.h.
51489         * tests/test-stat.c (includes): Likewise.
51490         Reported by Bruno Haible.
51492 2011-06-20  Bruno Haible  <bruno@clisp.org>
51494         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51495         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51496         * lib/float.c: New file.
51497         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51498         REPLACE_FLOAT_LDBL.
51499         * modules/float (Files): Add lib/float.c.
51500         (configure.ac): Invoke AC_LIBOBJ.
51501         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51503 2011-06-20  Bruno Haible  <bruno@clisp.org>
51505         Tests for module 'float'.
51506         * modules/float-tests: New file.
51507         * tests/test-float.c: New file.
51509 2011-06-19  Bruno Haible  <bruno@clisp.org>
51511         isinf: Coding style.
51512         * lib/isinf.c: Use GNU coding style.
51514 2011-06-19  Bruno Haible  <bruno@clisp.org>
51516         linkat test: Avoid test failure on AIX 7.1.
51517         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51518         * tests/test-link.h (test_link): Likewise.
51520 2011-06-19  Bruno Haible  <bruno@clisp.org>
51522         pread test: Avoid test failure on OpenBSD 4.9.
51523         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51525 2011-06-19  Bruno Haible  <bruno@clisp.org>
51527         sprintf-posix: Fix test failure on AIX 7.1.
51528         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51529         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51530         on AIX.
51531         * doc/posix-functions/fprintf.texi: Likewise.
51532         * doc/posix-functions/printf.texi: Likewise.
51533         * doc/posix-functions/snprintf.texi: Likewise.
51534         * doc/posix-functions/sprintf.texi: Likewise.
51535         * doc/posix-functions/vdprintf.texi: Likewise.
51536         * doc/posix-functions/vfprintf.texi: Likewise.
51537         * doc/posix-functions/vprintf.texi: Likewise.
51538         * doc/posix-functions/vsnprintf.texi: Likewise.
51539         * doc/posix-functions/vsprintf.texi: Likewise.
51541 2011-06-19  Bruno Haible  <bruno@clisp.org>
51543         roundl-ieee: Fix test failure on AIX 7.1.
51544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51545         * doc/posix-functions/roundl.texi: Mention problem with negative
51546         arguments.
51548 2011-06-19  Bruno Haible  <bruno@clisp.org>
51550         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51551         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51552         * doc/posix-functions/round.texi: Mention problem with negative
51553         arguments.
51554         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51556 2011-06-19  Bruno Haible  <bruno@clisp.org>
51558         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51560         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51561         * doc/posix-functions/roundf.texi: Mention problem with negative
51562         arguments.
51563         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51565 2011-06-19  Bruno Haible  <bruno@clisp.org>
51567         ceilf-ieee: Work around bug on MacOS X 10.5.
51568         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51570         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51571         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51572         IEEE compliant, avoid compiler optimizations.
51573         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51574         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51575         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51576         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51577         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51578         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51580         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51581         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51582         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51584 2011-06-19  Bruno Haible  <bruno@clisp.org>
51586         ceilf-ieee: Work around bug on AIX 7.1.
51587         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51588         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51590 2011-06-19  Bruno Haible  <bruno@clisp.org>
51592         ceil-ieee: Work around bug on AIX 7.1.
51593         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51594         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51596 2011-06-18  Bruno Haible  <bruno@clisp.org>
51598         fsync test: Avoid test failure on MacOS X and AIX.
51599         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51600         EINVAL.
51602 2011-06-18  Bruno Haible  <bruno@clisp.org>
51604         openat, fdopendir tests: Fix link errors.
51605         * modules/openat-tests (Depends-on): Add progname.
51606         * modules/fdopendir-tests (Depends-on): Likewise.
51607         * tests/test-fchownat.c: Include progname.h.
51608         (main): Call set_program_name.
51609         * tests/test-fstatat.c: Include progname.h.
51610         (main): Call set_program_name.
51611         * tests/test-mkdirat.c: Include progname.h.
51612         (main): Call set_program_name.
51613         * tests/test-openat.c: Include progname.h.
51614         (main): Call set_program_name.
51615         * tests/test-unlinkat.c: Include progname.h.
51616         (main): Call set_program_name.
51617         * tests/test-fdopendir.c: Include progname.h.
51618         (main): Call set_program_name.
51620 2011-06-18  Bruno Haible  <bruno@clisp.org>
51622         Doc update.
51623         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51624         HP-UX.
51625         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51627 2011-06-18  Bruno Haible  <bruno@clisp.org>
51629         getcwd tests: Avoid compilation error on HP-UX 11.31.
51630         * modules/getcwd-tests (Depends-on): Add pathmax.
51631         * tests/test-getcwd.c: Include pathmax.h.
51633 2011-06-18  Bruno Haible  <bruno@clisp.org>
51635         isfinite, isinf: Fix link error on AIX 6 and 7.
51636         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51637         needed, also test the macro with a 'float' argument.
51638         * m4/isinf.m4 (gl_ISINF): Likewise.
51640 2011-06-18  Bruno Haible  <bruno@clisp.org>
51642         getloadavg: Don't clobber LIBS. Regression from previous commit.
51643         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51644         AC_CHECK_LIB from here...
51645         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51646         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51647         gl_func_getloadavg_done.
51648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51650 2011-06-18  Bruno Haible  <bruno@clisp.org>
51652         clean-temp: Improve documentation.
51653         * lib/clean-temp.h: Explain better how to use this module.
51654         Reported by John Darrington <john@darrington.wattle.id.au>.
51656 2011-06-17  Bruno Haible  <bruno@clisp.org>
51658         pread, pwrite: Avoid cc warning on AIX.
51659         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51660         (pwrite): Likewise.
51662 2011-06-17  Bruno Haible  <bruno@clisp.org>
51664         spawn-pipe tests: Fix link error.
51665         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51668 2011-06-17  Bruno Haible  <bruno@clisp.org>
51670         Tests: Remove unnecessary dependency.
51671         * modules/canonicalize-tests (Depends-on): Remove progname.
51672         * modules/chown-tests (Depends-on): Likewise.
51673         * modules/dirname-tests (Depends-on): Likewise.
51674         * modules/fdopendir-tests (Depends-on): Likewise.
51675         * modules/fdutimensat-tests (Depends-on): Likewise.
51676         * modules/hash-tests (Depends-on): Likewise.
51677         * modules/lchown-tests (Depends-on): Likewise.
51678         * modules/linkat-tests (Depends-on): Likewise.
51679         * modules/renameat-tests (Depends-on): Likewise.
51680         * modules/spawn-pipe-tests (Depends-on): Likewise.
51681         * modules/utimensat-tests (Depends-on): Likewise.
51683 2011-06-17  Bruno Haible  <bruno@clisp.org>
51685         spawn-pipe tests: Fix link error.
51686         * tests/test-spawn-pipe-child.c: Undefine fflush.
51688 2011-06-17  Bruno Haible  <bruno@clisp.org>
51690         Fix tests link errors.
51691         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51692         * modules/chown-tests (Makefile.am): Don't link test-chown with
51693         LIBINTL.
51694         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51695         LIBINTL.
51696         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51697         LIBINTL.
51698         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51699         LIBINTL.
51701 2011-06-16  Bruno Haible  <bruno@clisp.org>
51703         crypto/gc-sha1: Fix recent regression.
51704         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51705         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51707         crypto/gc-md5: Fix recent regression.
51708         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51710         crypto/gc-md4: Fix recent regression.
51711         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51712         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51714         crypto/gc-arctwo: Fix recent regression.
51715         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51716         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51718         crypto/gc-rijndael: Fix recent regression.
51719         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51720         (configure.ac): Invoke AC_LIBOBJ here.
51721         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51724         crypto/gc-hmac-sha1: Fix recent regression.
51725         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51726         (configure.ac): Invoke AC_LIBOBJ here.
51727         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51730         crypto/gc-hmac-md5: Fix recent regression.
51731         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51732         (configure.ac): Invoke AC_LIBOBJ here.
51733         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51736         crypto/gc-des: Fix recent regression.
51737         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51738         (configure.ac): Invoke AC_LIBOBJ here.
51739         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51742         crypto/gc-arcfour: Fix recent regression.
51743         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51744         (configure.ac): Invoke AC_LIBOBJ here.
51745         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51748 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51750         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51751         After the 2011-05-21 change, this macro requires
51752         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51753         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51755 2011-06-16  Bruno Haible  <bruno@clisp.org>
51757         fprintftime: Move AC_LIBOBJ invocations to module description.
51758         * m4/fprintftime.m4: Remove file.
51759         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51760         (configure.ac): Remove gl_FPRINTFTIME call.
51761         (Makefile.am): Augment lib_SOURCES.
51762         Reported by Jim Meyering.
51764 2011-06-16  Bruno Haible  <bruno@clisp.org>
51766         tmpfile-safer: Finish 2011-05-23 commit.
51767         * m4/stdio-safer.m4: Really remove file.
51768         Reported by Jim Meyering.
51770 2011-06-16  Bruno Haible  <bruno@clisp.org>
51772         syntax-check: Fix typo.
51773         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51774         printf-posix.m4.
51775         Reported by Jim Meyering.
51777 2011-06-13  Jim Meyering  <meyering@redhat.com>
51779         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51780         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51782 2011-05-23  Bruno Haible  <bruno@clisp.org>
51784         yesno: Move AC_LIBOBJ invocations to module description.
51785         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51786         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51788 2011-05-23  Bruno Haible  <bruno@clisp.org>
51790         xstrtol: Move AC_LIBOBJ invocations to module description.
51791         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51792         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51794 2011-05-23  Bruno Haible  <bruno@clisp.org>
51796         xstrtold: Move AC_LIBOBJ invocations to module description.
51797         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51798         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51800 2011-05-23  Bruno Haible  <bruno@clisp.org>
51802         xstrtod: Move AC_LIBOBJ invocations to module description.
51803         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51804         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51806 2011-05-23  Bruno Haible  <bruno@clisp.org>
51808         xnanosleep: Move AC_LIBOBJ invocations to module description.
51809         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51810         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51812 2011-05-23  Bruno Haible  <bruno@clisp.org>
51814         xgetcwd: Move AC_LIBOBJ invocations to module description.
51815         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51816         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51818 2011-05-23  Bruno Haible  <bruno@clisp.org>
51820         xalloc: Move AC_LIBOBJ invocations to module description.
51821         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51822         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51824 2011-05-23  Bruno Haible  <bruno@clisp.org>
51826         write-any-file: Move AC_LIBOBJ invocations to module description.
51827         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51828         invocation.
51829         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51831 2011-05-23  Bruno Haible  <bruno@clisp.org>
51833         utimens: Move AC_LIBOBJ invocations to module description.
51834         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51835         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51837 2011-05-23  Bruno Haible  <bruno@clisp.org>
51839         utimecmp: Move AC_LIBOBJ invocations to module description.
51840         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51841         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51843 2011-05-23  Bruno Haible  <bruno@clisp.org>
51845         userspec: Move AC_LIBOBJ invocations to module description.
51846         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51847         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51849 2011-05-23  Bruno Haible  <bruno@clisp.org>
51851         unlinkdir: Move AC_LIBOBJ invocations to module description.
51852         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51853         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51855 2011-05-23  Bruno Haible  <bruno@clisp.org>
51857         unistd-safer: Move AC_LIBOBJ invocations to module description.
51858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51859         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51861 2011-05-23  Bruno Haible  <bruno@clisp.org>
51863         tempname: Move AC_LIBOBJ invocations to module description.
51864         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51865         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51867 2011-05-23  Bruno Haible  <bruno@clisp.org>
51869         strftime: Move AC_LIBOBJ invocations to module description.
51870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51871         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51873 2011-05-23  Bruno Haible  <bruno@clisp.org>
51875         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51876         * m4/stdlib-safer.m4: Remove file.
51877         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51878         (configure.ac): Remove gl_STDLIB_SAFER call.
51879         (Makefile.am): Augment lib_SOURCES.
51881 2011-05-23  Bruno Haible  <bruno@clisp.org>
51883         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51884         * m4/stdio-safer.m4: Remove file.
51885         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51886         (configure.ac): Remove gl_TMPFILE_SAFER call.
51887         (Makefile.am): Augment lib_SOURCES.
51889 2011-05-23  Bruno Haible  <bruno@clisp.org>
51891         popen-safer: Move AC_LIBOBJ invocations to module description.
51892         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51893         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51894         (configure.ac): Remove gl_POPEN_SAFER call.
51895         (Makefile.am): Augment lib_SOURCES.
51897 2011-05-23  Bruno Haible  <bruno@clisp.org>
51899         freopen-safer: Move AC_LIBOBJ invocations to module description.
51900         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51901         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51902         (configure.ac): Remove gl_FREOPEN_SAFER call.
51903         (Makefile.am): Augment lib_SOURCES.
51905 2011-05-23  Bruno Haible  <bruno@clisp.org>
51907         fopen-safer: Move AC_LIBOBJ invocations to module description.
51908         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51909         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51910         (configure.ac): Remove gl_FOPEN_SAFER call.
51911         (Makefile.am): Augment lib_SOURCES.
51913 2011-05-23  Bruno Haible  <bruno@clisp.org>
51915         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51916         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51917         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51919 2011-05-23  Bruno Haible  <bruno@clisp.org>
51921         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51922         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51923         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51925 2011-05-23  Bruno Haible  <bruno@clisp.org>
51927         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51928         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51929         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51931 2011-05-23  Bruno Haible  <bruno@clisp.org>
51933         settime: Move AC_LIBOBJ invocations to module description.
51934         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51935         * modules/settime (Makefile.am): Augment lib_SOURCES.
51937 2011-05-23  Bruno Haible  <bruno@clisp.org>
51939         savedir: Move AC_LIBOBJ invocations to module description.
51940         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51941         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51943 2011-05-23  Bruno Haible  <bruno@clisp.org>
51945         save-cwd: Move AC_LIBOBJ invocations to module description.
51946         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51947         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51949 2011-05-23  Bruno Haible  <bruno@clisp.org>
51951         same: Move AC_LIBOBJ invocations to module description.
51952         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51953         * modules/same (Makefile.am): Augment lib_SOURCES.
51955 2011-05-23  Bruno Haible  <bruno@clisp.org>
51957         safe-write: Move AC_LIBOBJ invocations to module description.
51958         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51959         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51960         instead of gl_SAFE_WRITE.
51961         (Makefile.am): Augment lib_SOURCES.
51963 2011-05-23  Bruno Haible  <bruno@clisp.org>
51965         safe-read: Move AC_LIBOBJ invocations to module description.
51966         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51967         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51968         of gl_SAFE_READ.
51969         (Makefile.am): Augment lib_SOURCES.
51971 2011-05-23  Bruno Haible  <bruno@clisp.org>
51973         safe-alloc: Move AC_LIBOBJ invocations to module description.
51974         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51975         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51977 2011-05-23  Bruno Haible  <bruno@clisp.org>
51979         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51980         * m4/rijndael.m4: Remove file.
51981         * modules/crypto/rijndael (Files): Remove it.
51982         (configure.ac): Remove gl_RIJNDAEL call.
51983         (Makefile.am): Augment lib_SOURCES.
51985 2011-05-23  Bruno Haible  <bruno@clisp.org>
51987         readtokens: Move AC_LIBOBJ invocations to module description.
51988         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51989         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51991 2011-05-23  Bruno Haible  <bruno@clisp.org>
51993         read-file: Move AC_LIBOBJ invocations to module description.
51994         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51995         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51996         of gl_FUNC_READ_FILE.
51997         (Makefile.am): Augment lib_SOURCES.
51999 2011-05-23  Bruno Haible  <bruno@clisp.org>
52001         quotearg: Move AC_LIBOBJ invocations to module description.
52002         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52003         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52005 2011-05-23  Bruno Haible  <bruno@clisp.org>
52007         quote: Move AC_LIBOBJ invocations to module description.
52008         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52009         * modules/quote (Makefile.am): Augment lib_SOURCES.
52011 2011-05-23  Bruno Haible  <bruno@clisp.org>
52013         posixver: Move AC_LIBOBJ invocations to module description.
52014         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52015         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52017 2011-05-23  Bruno Haible  <bruno@clisp.org>
52019         posixtm: Move AC_LIBOBJ invocations to module description.
52020         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52021         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52023 2011-05-23  Bruno Haible  <bruno@clisp.org>
52025         physmem: Move AC_LIBOBJ invocations to module description.
52026         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52027         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52029 2011-05-23  Bruno Haible  <bruno@clisp.org>
52031         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52032         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52033         invocation.
52034         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52036 2011-05-23  Bruno Haible  <bruno@clisp.org>
52038         mpsort: Move AC_LIBOBJ invocations to module description.
52039         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52040         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52042 2011-05-23  Bruno Haible  <bruno@clisp.org>
52044         modechange: Move AC_LIBOBJ invocations to module description.
52045         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52046         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52048 2011-05-23  Bruno Haible  <bruno@clisp.org>
52050         mkdir-p: Move AC_LIBOBJ invocations to module description.
52051         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52052         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52054 2011-05-23  Bruno Haible  <bruno@clisp.org>
52056         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52057         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52058         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52060 2011-05-23  Bruno Haible  <bruno@clisp.org>
52062         mgetgroups: Move AC_LIBOBJ invocations to module description.
52063         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52064         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52066 2011-05-23  Bruno Haible  <bruno@clisp.org>
52068         memxor: Move AC_LIBOBJ invocations to module description.
52069         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52070         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52072 2011-05-23  Bruno Haible  <bruno@clisp.org>
52074         memcoll: Move AC_LIBOBJ invocations to module description.
52075         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52076         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52078 2011-05-23  Bruno Haible  <bruno@clisp.org>
52080         memcasecmp: Move AC_LIBOBJ invocations to module description.
52081         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52082         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52084 2011-05-23  Bruno Haible  <bruno@clisp.org>
52086         crypto/md5: Move AC_LIBOBJ invocations to module description.
52087         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52088         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52090 2011-05-23  Bruno Haible  <bruno@clisp.org>
52092         crypto/md4: Move AC_LIBOBJ invocations to module description.
52093         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52094         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52096 2011-05-23  Bruno Haible  <bruno@clisp.org>
52098         crypto/md2: Move AC_LIBOBJ invocations to module description.
52099         * m4/md2.m4: Remove file.
52100         * modules/crypto/md2 (Files): Remove it.
52101         (configure.ac): Remove gl_MD2 call.
52102         (Makefile.am): Augment lib_SOURCES.
52104 2011-05-23  Bruno Haible  <bruno@clisp.org>
52106         long-options: Move AC_LIBOBJ invocations to module description.
52107         * m4/long-options.m4: Remove file.
52108         * modules/long-options (Files): Remove it.
52109         (configure.ac): Remove gl_LONG_OPTIONS call.
52110         (Makefile.am): Augment lib_SOURCES.
52112 2011-05-23  Bruno Haible  <bruno@clisp.org>
52114         i-ring: Move AC_LIBOBJ invocations to module description.
52115         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52116         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52118 2011-05-23  Bruno Haible  <bruno@clisp.org>
52120         idcache: Move AC_LIBOBJ invocations to module description.
52121         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52122         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52124 2011-05-23  Bruno Haible  <bruno@clisp.org>
52126         human: Move AC_LIBOBJ invocations to module description.
52127         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52128         * modules/human (Makefile.am): Augment lib_SOURCES.
52130 2011-05-23  Bruno Haible  <bruno@clisp.org>
52132         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52133         * m4/hmac-sha1.m4: Remove file.
52134         * modules/crypto/hmac-sha1 (Files): Remove it.
52135         (configure.ac): Remove gl_HMAC_SHA1 call.
52136         (Makefile.am): Augment lib_SOURCES.
52138 2011-05-23  Bruno Haible  <bruno@clisp.org>
52140         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52141         * m4/hmac-md5.m4: Remove file.
52142         * modules/crypto/hmac-md5 (Files): Remove it.
52143         (configure.ac): Remove gl_HMAC_MD5 call.
52144         (Makefile.am): Augment lib_SOURCES.
52146 2011-05-23  Bruno Haible  <bruno@clisp.org>
52148         hash: Move AC_LIBOBJ invocations to module description.
52149         * m4/hash.m4: Remove file.
52150         * modules/hash (Files): Remove it.
52151         (configure.ac): Remove gl_HASH call.
52152         (Makefile.am): Augment lib_SOURCES.
52154 2011-05-23  Bruno Haible  <bruno@clisp.org>
52156         hard-locale: Move AC_LIBOBJ invocations to module description.
52157         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52158         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52160 2011-05-23  Bruno Haible  <bruno@clisp.org>
52162         getugroups: Move AC_LIBOBJ invocations to module description.
52163         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52164         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52166 2011-05-23  Bruno Haible  <bruno@clisp.org>
52168         gettime: Move AC_LIBOBJ invocations to module description.
52169         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52170         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52172 2011-05-23  Bruno Haible  <bruno@clisp.org>
52174         getndelim2: Move AC_LIBOBJ invocations to module description.
52175         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52176         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52178 2011-05-23  Bruno Haible  <bruno@clisp.org>
52180         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52181         * m4/gc-pbkdf2-sha1.m4: Remove file.
52182         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52183         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52184         (Makefile.am): Augment lib_SOURCES.
52186 2011-05-23  Bruno Haible  <bruno@clisp.org>
52188         fts: Move AC_LIBOBJ invocations to module description.
52189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52190         * modules/fts (configure.ac): ... to here.
52192 2011-05-23  Bruno Haible  <bruno@clisp.org>
52194         file-type: Move AC_LIBOBJ invocations to module description.
52195         * m4/file-type.m4: Remove file.
52196         * modules/file-type (Files): Remove it.
52197         (configure.ac): Remove gl_FILE_TYPE call.
52198         (Makefile.am): Augment lib_SOURCES.
52200 2011-05-23  Bruno Haible  <bruno@clisp.org>
52202         filenamecat*: Respect rules for use of AC_LIBOBJ.
52203         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52204         Remove AC_LIBOBJ invocation.
52205         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52206         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52208 2011-05-23  Bruno Haible  <bruno@clisp.org>
52210         filemode: Move AC_LIBOBJ invocations to module description.
52211         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52212         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52214 2011-05-23  Bruno Haible  <bruno@clisp.org>
52216         openat-safer: Move AC_LIBOBJ invocations to module description.
52217         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52218         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52220 2011-05-23  Bruno Haible  <bruno@clisp.org>
52222         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52223         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52224         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52226 2011-05-23  Bruno Haible  <bruno@clisp.org>
52228         exclude: Move AC_LIBOBJ invocations to module description.
52229         * m4/exclude.m4: Remove file.
52230         * modules/exclude (Files): Remove it.
52231         (configure.ac): Remove gl_EXCLUDE call.
52232         (Makefile.am): Augment lib_SOURCES.
52234 2011-05-23  Bruno Haible  <bruno@clisp.org>
52236         dirname*: Respect rules for use of AC_LIBOBJ.
52237         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52238         invocations.
52239         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52240         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52242 2011-05-23  Bruno Haible  <bruno@clisp.org>
52244         dirent-safer: Move AC_LIBOBJ invocations to module description.
52245         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52246         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52248 2011-05-23  Bruno Haible  <bruno@clisp.org>
52250         crypto/des: Move AC_LIBOBJ invocations to module description.
52251         * m4/des.m4: Remove file.
52252         * modules/crypto/des (Files): Remove it.
52253         (configure.ac): Remove gl_DES call.
52254         (Makefile.am): Augment lib_SOURCES.
52256 2011-05-23  Bruno Haible  <bruno@clisp.org>
52258         cycle-check: Move AC_LIBOBJ invocations to module description.
52259         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52260         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52262 2011-05-23  Bruno Haible  <bruno@clisp.org>
52264         c-strtold: Move AC_LIBOBJ invocations to module description.
52265         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52266         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52268 2011-05-23  Bruno Haible  <bruno@clisp.org>
52270         c-strtod: Move AC_LIBOBJ invocations to module description.
52271         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52272         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52274 2011-05-23  Bruno Haible  <bruno@clisp.org>
52276         crc: Move AC_LIBOBJ invocations to module description.
52277         * m4/crc.m4: Remove file.
52278         * modules/crc (Files): Remove it.
52279         (configure.ac): Remove gl_CRC call.
52280         (Makefile.am): Augment lib_SOURCES.
52282 2011-05-23  Bruno Haible  <bruno@clisp.org>
52284         close-stream: Move AC_LIBOBJ invocations to module description.
52285         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52286         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52288 2011-05-23  Bruno Haible  <bruno@clisp.org>
52290         closeout: Move AC_LIBOBJ invocations to module description.
52291         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52292         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52294 2011-05-23  Bruno Haible  <bruno@clisp.org>
52296         closein: Move AC_LIBOBJ invocations to module description.
52297         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52298         * modules/closein (Makefile.am): Augment lib_SOURCES.
52300 2011-05-23  Bruno Haible  <bruno@clisp.org>
52302         cloexec: Move AC_LIBOBJ invocations to module description.
52303         * m4/cloexec.m4: Remove file.
52304         * modules/cloexec (Files): Remove it.
52305         (configure.ac): Remove gl_CLOEXEC call.
52306         (Makefile.am): Augment lib_SOURCES.
52308 2011-05-23  Bruno Haible  <bruno@clisp.org>
52310         check-version: Move AC_LIBOBJ invocations to module description.
52311         * m4/check-version.m4: Remove file.
52312         * modules/check-version (Files): Remove it.
52313         (configure.ac): Remove gl_CHECK_VERSION call.
52314         (Makefile.am): Augment lib_SOURCES.
52316 2011-05-23  Bruno Haible  <bruno@clisp.org>
52318         chdir-safer: Move AC_LIBOBJ invocations to module description.
52319         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52320         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52322 2011-05-23  Bruno Haible  <bruno@clisp.org>
52324         canonicalize: Move AC_LIBOBJ invocations to module description.
52325         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52326         AC_LIBOBJ invocation.
52327         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52329 2011-05-23  Bruno Haible  <bruno@clisp.org>
52331         canon-host: Move AC_LIBOBJ invocations to module description.
52332         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52333         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52334         instead of gl_CANON_HOST.
52335         (Makefile.am): Augment lib_SOURCES.
52337 2011-05-23  Bruno Haible  <bruno@clisp.org>
52339         backupfile: Move AC_LIBOBJ invocations to module description.
52340         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52341         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52343 2011-05-23  Bruno Haible  <bruno@clisp.org>
52345         argmatch: Move AC_LIBOBJ invocations to module description.
52346         * m4/argmatch.m4: Remove file.
52347         * modules/argmatch (Files): Remove it.
52348         (configure.ac): Remove gl_ARGMATCH call.
52349         (Makefile.am): Augment lib_SOURCES.
52351 2011-05-23  Bruno Haible  <bruno@clisp.org>
52353         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52354         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52355         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52357 2011-05-23  Bruno Haible  <bruno@clisp.org>
52359         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52360         * m4/arcfour.m4: Remove file.
52361         * modules/crypto/arcfour (Files): Remove it.
52362         (configure.ac): Remove gl_ARCFOUR call.
52363         (Makefile.am): Augment lib_SOURCES.
52365 2011-05-22  Bruno Haible  <bruno@clisp.org>
52367         write: Move AC_LIBOBJ invocations to module description.
52368         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52369         * modules/write (configure.ac): ... to here.
52371 2011-05-22  Bruno Haible  <bruno@clisp.org>
52373         wmemset: Move AC_LIBOBJ invocations to module description.
52374         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52375         here...
52376         * modules/wmemset (configure.ac): ... to here.
52378 2011-05-22  Bruno Haible  <bruno@clisp.org>
52380         wmemmove: Move AC_LIBOBJ invocations to module description.
52381         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52382         here...
52383         * modules/wmemmove (configure.ac): ... to here.
52385 2011-05-22  Bruno Haible  <bruno@clisp.org>
52387         wmemcpy: Move AC_LIBOBJ invocations to module description.
52388         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52389         here...
52390         * modules/wmemcpy (configure.ac): ... to here.
52392 2011-05-22  Bruno Haible  <bruno@clisp.org>
52394         wmemcmp: Move AC_LIBOBJ invocations to module description.
52395         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52396         here...
52397         * modules/wmemcmp (configure.ac): ... to here.
52399 2011-05-22  Bruno Haible  <bruno@clisp.org>
52401         wmemchr: Move AC_LIBOBJ invocations to module description.
52402         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52403         here...
52404         * modules/wmemchr (configure.ac): ... to here.
52406 2011-05-22  Bruno Haible  <bruno@clisp.org>
52408         wcswidth: Move AC_LIBOBJ invocations to module description.
52409         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52410         here...
52411         * modules/wcswidth (configure.ac): ... to here.
52413 2011-05-22  Bruno Haible  <bruno@clisp.org>
52415         wcwidth: Respect rules for use of AC_LIBOBJ.
52416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52417         invocation from here...
52418         * modules/wcwidth (configure.ac): ... to here.
52419         (Depends-on): Update conditions.
52421 2011-05-22  Bruno Haible  <bruno@clisp.org>
52423         wctype: Move AC_LIBOBJ invocations to module description.
52424         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52425         invocation from here...
52426         * modules/wctype (configure.ac): ... to here.
52427         (Depends-on): Update conditions.
52429 2011-05-22  Bruno Haible  <bruno@clisp.org>
52431         wctrans: Move AC_LIBOBJ invocations to module description.
52432         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52433         invocation from here...
52434         * modules/wctrans (configure.ac): ... to here.
52436 2011-05-22  Bruno Haible  <bruno@clisp.org>
52438         wctomb: Move AC_LIBOBJ invocations to module description.
52439         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52440         invocations from here...
52441         * modules/wctomb (configure.ac): ... to here.
52443 2011-05-22  Bruno Haible  <bruno@clisp.org>
52445         wctob: Move AC_LIBOBJ invocations to module description.
52446         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52447         gl_PREREQ_WCTOB invocations from here...
52448         * modules/wctob (configure.ac): ... to here.
52449         (Depends-on): Update conditions.
52451 2011-05-22  Bruno Haible  <bruno@clisp.org>
52453         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52454         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52455         here...
52456         * modules/wcsxfrm (configure.ac): ... to here.
52458 2011-05-22  Bruno Haible  <bruno@clisp.org>
52460         wcstok: Move AC_LIBOBJ invocations to module description.
52461         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52462         * modules/wcstok (configure.ac): ... to here.
52464 2011-05-22  Bruno Haible  <bruno@clisp.org>
52466         wcsstr: Move AC_LIBOBJ invocations to module description.
52467         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52468         * modules/wcsstr (configure.ac): ... to here.
52470 2011-05-22  Bruno Haible  <bruno@clisp.org>
52472         wcsspn: Move AC_LIBOBJ invocations to module description.
52473         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52474         * modules/wcsspn (configure.ac): ... to here.
52476 2011-05-22  Bruno Haible  <bruno@clisp.org>
52478         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52479         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52480         gl_PREREQ_WCSRTOMBS invocations from here...
52481         * modules/wcsrtombs (configure.ac): ... to here.
52483 2011-05-22  Bruno Haible  <bruno@clisp.org>
52485         wcsrchr: Move AC_LIBOBJ invocations to module description.
52486         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52487         here...
52488         * modules/wcsrchr (configure.ac): ... to here.
52490 2011-05-22  Bruno Haible  <bruno@clisp.org>
52492         wcspbrk: Move AC_LIBOBJ invocations to module description.
52493         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52494         here...
52495         * modules/wcspbrk (configure.ac): ... to here.
52497 2011-05-22  Bruno Haible  <bruno@clisp.org>
52499         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52500         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52501         gl_PREREQ_WCSNRTOMBS invocations from here...
52502         * modules/wcsnrtombs (configure.ac): ... to here.
52504 2011-05-22  Bruno Haible  <bruno@clisp.org>
52506         wcsnlen: Move AC_LIBOBJ invocations to module description.
52507         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52508         here...
52509         * modules/wcsnlen (configure.ac): ... to here.
52511 2011-05-22  Bruno Haible  <bruno@clisp.org>
52513         wcsncpy: Move AC_LIBOBJ invocations to module description.
52514         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52515         here...
52516         * modules/wcsncpy (configure.ac): ... to here.
52518 2011-05-22  Bruno Haible  <bruno@clisp.org>
52520         wcsncmp: Move AC_LIBOBJ invocations to module description.
52521         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52522         here...
52523         * modules/wcsncmp (configure.ac): ... to here.
52525 2011-05-22  Bruno Haible  <bruno@clisp.org>
52527         wcsncat: Move AC_LIBOBJ invocations to module description.
52528         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52529         here...
52530         * modules/wcsncat (configure.ac): ... to here.
52532 2011-05-22  Bruno Haible  <bruno@clisp.org>
52534         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52535         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52536         from here...
52537         * modules/wcsncasecmp (configure.ac): ... to here.
52539 2011-05-22  Bruno Haible  <bruno@clisp.org>
52541         wcslen: Move AC_LIBOBJ invocations to module description.
52542         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52543         * modules/wcslen (configure.ac): ... to here.
52545 2011-05-22  Bruno Haible  <bruno@clisp.org>
52547         wcsdup: Move AC_LIBOBJ invocations to module description.
52548         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52549         * modules/wcsdup (configure.ac): ... to here.
52551 2011-05-22  Bruno Haible  <bruno@clisp.org>
52553         wcscspn: Move AC_LIBOBJ invocations to module description.
52554         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52555         here...
52556         * modules/wcscspn (configure.ac): ... to here.
52558 2011-05-22  Bruno Haible  <bruno@clisp.org>
52560         wcscpy: Move AC_LIBOBJ invocations to module description.
52561         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52562         * modules/wcscpy (configure.ac): ... to here.
52564 2011-05-22  Bruno Haible  <bruno@clisp.org>
52566         wcscoll: Move AC_LIBOBJ invocations to module description.
52567         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52568         here...
52569         * modules/wcscoll (configure.ac): ... to here.
52571 2011-05-22  Bruno Haible  <bruno@clisp.org>
52573         wcscmp: Move AC_LIBOBJ invocations to module description.
52574         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52575         * modules/wcscmp (configure.ac): ... to here.
52577 2011-05-22  Bruno Haible  <bruno@clisp.org>
52579         wcschr: Move AC_LIBOBJ invocations to module description.
52580         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52581         * modules/wcschr (configure.ac): ... to here.
52583 2011-05-22  Bruno Haible  <bruno@clisp.org>
52585         wcscat: Move AC_LIBOBJ invocations to module description.
52586         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52587         * modules/wcscat (configure.ac): ... to here.
52589 2011-05-22  Bruno Haible  <bruno@clisp.org>
52591         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52592         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52593         here...
52594         * modules/wcscasecmp (configure.ac): ... to here.
52596 2011-05-22  Bruno Haible  <bruno@clisp.org>
52598         wcrtomb: Move AC_LIBOBJ invocations to module description.
52599         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52600         invocations from here...
52601         * modules/wcrtomb (configure.ac): ... to here.
52603 2011-05-22  Bruno Haible  <bruno@clisp.org>
52605         wcpncpy: Move AC_LIBOBJ invocations to module description.
52606         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52607         here...
52608         * modules/wcpncpy (configure.ac): ... to here.
52610 2011-05-22  Bruno Haible  <bruno@clisp.org>
52612         wcpcpy: Move AC_LIBOBJ invocations to module description.
52613         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52614         * modules/wcpcpy (configure.ac): ... to here.
52616 2011-05-22  Bruno Haible  <bruno@clisp.org>
52618         waitpid: Move AC_LIBOBJ invocations to module description.
52619         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52620         invocation from here...
52621         * modules/waitpid (configure.ac): ... to here.
52623 2011-05-22  Bruno Haible  <bruno@clisp.org>
52625         utimensat: Move AC_LIBOBJ invocations to module description.
52626         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52627         here...
52628         * modules/utimensat (configure.ac): ... to here.
52630 2011-05-22  Bruno Haible  <bruno@clisp.org>
52632         usleep: Move AC_LIBOBJ invocations to module description.
52633         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52634         here...
52635         * modules/usleep (configure.ac): ... to here.
52637 2011-05-22  Bruno Haible  <bruno@clisp.org>
52639         unlockpt: Move AC_LIBOBJ invocations to module description.
52640         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52641         gl_PREREQ_UNLOCKPT invocations from here...
52642         * modules/unlockpt (configure.ac): ... to here.
52644 2011-05-22  Bruno Haible  <bruno@clisp.org>
52646         unlink: Respect rules for use of AC_LIBOBJ.
52647         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52648         * modules/unlink (configure.ac): ... to here.
52650 2011-05-22  Bruno Haible  <bruno@clisp.org>
52652         uname: Move AC_LIBOBJ invocations to module description.
52653         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52654         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52655         here...
52656         * modules/uname (configure.ac): ... to here.
52658 2011-05-22  Bruno Haible  <bruno@clisp.org>
52660         ttyname_r: Move AC_LIBOBJ invocations to module description.
52661         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52662         gl_PREREQ_TTYNAME_R invocations from here...
52663         * modules/ttyname_r (configure.ac): ... to here.
52665 2011-05-22  Bruno Haible  <bruno@clisp.org>
52667         tsearch: Move AC_LIBOBJ invocations to module description.
52668         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52669         invocations from here...
52670         * modules/tsearch (configure.ac): ... to here.
52672 2011-05-22  Bruno Haible  <bruno@clisp.org>
52674         towctrans: Move AC_LIBOBJ invocations to module description.
52675         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52676         AC_LIBOBJ invocation from here...
52677         * modules/towctrans (configure.ac): ... to here.
52679 2011-05-22  Bruno Haible  <bruno@clisp.org>
52681         tmpfile: Move AC_LIBOBJ invocations to module description.
52682         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52683         invocations from here...
52684         * modules/tmpfile (configure.ac): ... to here.
52686 2011-05-22  Bruno Haible  <bruno@clisp.org>
52688         times: Move AC_LIBOBJ invocations to module description.
52689         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52690         * modules/times (configure.ac): ... to here.
52692 2011-05-22  Bruno Haible  <bruno@clisp.org>
52694         time_r: Move AC_LIBOBJ invocations to module description.
52695         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52696         invocations from here...
52697         * modules/time_r (configure.ac): ... to here.
52699 2011-05-22  Bruno Haible  <bruno@clisp.org>
52701         timegm: Move AC_LIBOBJ invocations to module description.
52702         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52703         invocations from here...
52704         * modules/timegm (configure.ac): ... to here.
52706 2011-05-22  Bruno Haible  <bruno@clisp.org>
52708         tcgetsid: Move AC_LIBOBJ invocations to module description.
52709         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52710         and gl_PREREQ_TCGETSID invocations from here...
52711         * modules/tcgetsid (configure.ac): ... to here.
52712         (Depends-on): Update conditions.
52714 2011-05-22  Bruno Haible  <bruno@clisp.org>
52716         symlinkat: Move AC_LIBOBJ invocations to module description.
52717         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52718         here...
52719         * modules/symlinkat (configure.ac): ... to here.
52721 2011-05-22  Bruno Haible  <bruno@clisp.org>
52723         symlink: Move AC_LIBOBJ invocations to module description.
52724         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52725         here...
52726         * modules/symlink (configure.ac): ... to here.
52728 2011-05-22  Bruno Haible  <bruno@clisp.org>
52730         strverscmp: Move AC_LIBOBJ invocations to module description.
52731         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52733         from here...
52734         * modules/strverscmp (configure.ac): ... to here.
52736 2011-05-22  Bruno Haible  <bruno@clisp.org>
52738         strtok_r: Move AC_LIBOBJ invocations to module description.
52739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52740         and gl_PREREQ_STRTOK_R invocations from here...
52741         * modules/strtok_r (configure.ac): ... to here.
52742         (Depends-on): Update conditions.
52744 2011-05-22  Bruno Haible  <bruno@clisp.org>
52746         strtoumax: Move AC_LIBOBJ invocations to module description.
52747         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52748         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52749         from here...
52750         * modules/strtoumax (configure.ac): ... to here.
52752 2011-05-22  Bruno Haible  <bruno@clisp.org>
52754         strtoimax: Move AC_LIBOBJ invocations to module description.
52755         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52757         from here...
52758         * modules/strtoimax (configure.ac): ... to here.
52760 2011-05-22  Bruno Haible  <bruno@clisp.org>
52762         strtoull: Move AC_LIBOBJ invocations to module description.
52763         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52765         from here...
52766         * modules/strtoull (configure.ac): ... to here.
52768 2011-05-22  Bruno Haible  <bruno@clisp.org>
52770         strtoll: Move AC_LIBOBJ invocations to module description.
52771         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52773         here...
52774         * modules/strtoll (configure.ac): ... to here.
52776 2011-05-22  Bruno Haible  <bruno@clisp.org>
52778         strtoul: Move AC_LIBOBJ invocations to module description.
52779         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52780         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52781         * modules/strtoul (configure.ac): ... to here.
52783 2011-05-22  Bruno Haible  <bruno@clisp.org>
52785         strtol: Move AC_LIBOBJ invocations to module description.
52786         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52787         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52788         * modules/strtol (configure.ac): ... to here.
52790 2011-05-22  Bruno Haible  <bruno@clisp.org>
52792         strtod: Move AC_LIBOBJ invocations to module description.
52793         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52794         invocations from here...
52795         * modules/strtod (configure.ac): ... to here.
52797 2011-05-22  Bruno Haible  <bruno@clisp.org>
52799         strstr*: Move AC_LIBOBJ invocations to module description.
52800         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52801         invocations from here...
52802         * modules/strstr-simple (configure.ac): ... to here.
52803         * modules/strstr (configure.ac): ... and here.
52805 2011-05-22  Bruno Haible  <bruno@clisp.org>
52807         strsignal: Move AC_LIBOBJ invocations to module description.
52808         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52809         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52810         * modules/strsignal (configure.ac): ... to here.
52811         (Depends-on): Update conditions.
52813 2011-05-22  Bruno Haible  <bruno@clisp.org>
52815         strsep: Move AC_LIBOBJ invocations to module description.
52816         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52818         here...
52819         * modules/strsep (configure.ac): ... to here.
52821 2011-05-22  Bruno Haible  <bruno@clisp.org>
52823         strptime: Move AC_LIBOBJ invocations to module description.
52824         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52825         gl_PREREQ_STRPTIME invocations from here...
52826         * modules/strptime (configure.ac): ... to here.
52828 2011-05-22  Bruno Haible  <bruno@clisp.org>
52830         strpbrk: Move AC_LIBOBJ invocations to module description.
52831         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52833         here...
52834         * modules/strpbrk (configure.ac): ... to here.
52836 2011-05-22  Bruno Haible  <bruno@clisp.org>
52838         strnlen: Move AC_LIBOBJ invocations to module description.
52839         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52840         invocations from here...
52841         * modules/strnlen (configure.ac): ... to here.
52843 2011-05-22  Bruno Haible  <bruno@clisp.org>
52845         strndup: Move AC_LIBOBJ invocations to module description.
52846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52847         invocations from here...
52848         * modules/strndup (configure.ac): ... to here.
52849         (Depends-on): Update conditions.
52851 2011-05-22  Bruno Haible  <bruno@clisp.org>
52853         strncat: Move AC_LIBOBJ invocations to module description.
52854         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52855         invocations from here...
52856         * modules/strncat (configure.ac): ... to here.
52858 2011-05-22  Bruno Haible  <bruno@clisp.org>
52860         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52861         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52862         invocations from here...
52863         * modules/strdup (configure.ac): ... to here.
52864         * modules/strdup-posix (configure.ac): ... and here.
52866 2011-05-22  Bruno Haible  <bruno@clisp.org>
52868         strcspn: Move AC_LIBOBJ invocations to module description.
52869         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52871         here...
52872         * modules/strcspn (configure.ac): ... to here.
52874 2011-05-22  Bruno Haible  <bruno@clisp.org>
52876         strchrnul: Move AC_LIBOBJ invocations to module description.
52877         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52878         gl_PREREQ_STRCHRNUL invocations from here...
52879         * modules/strchrnul (configure.ac): ... to here.
52881 2011-05-22  Bruno Haible  <bruno@clisp.org>
52883         strcasestr*: Move AC_LIBOBJ invocations to module description.
52884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52885         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52886         * modules/strcasestr-simple (configure.ac): ... to here.
52887         * modules/strcasestr (configure.ac): ... and here.
52889 2011-05-22  Bruno Haible  <bruno@clisp.org>
52891         strcase: Move AC_LIBOBJ invocations to module description.
52892         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52893         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52894         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52895         gl_PREREQ_STRNCASECMP invocations from here...
52896         * modules/strcase (configure.ac): ... to here.
52898 2011-05-22  Bruno Haible  <bruno@clisp.org>
52900         stpncpy: Move AC_LIBOBJ invocations to module description.
52901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52902         here...
52903         * modules/stpncpy (configure.ac): ... to here.
52905 2011-05-22  Bruno Haible  <bruno@clisp.org>
52907         stpcpy: Move AC_LIBOBJ invocations to module description.
52908         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52910         here...
52911         * modules/stpcpy (configure.ac): ... to here.
52913 2011-05-21  Bruno Haible  <bruno@clisp.org>
52915         stat: Move AC_LIBOBJ invocations to module description.
52916         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52917         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52918         here...
52919         * modules/stat (configure.ac): ... to here.
52921 2011-05-21  Bruno Haible  <bruno@clisp.org>
52923         sleep: Move AC_LIBOBJ invocations to module description.
52924         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52925         * modules/sleep (configure.ac): ... to here.
52927 2011-05-21  Bruno Haible  <bruno@clisp.org>
52929         signbit: Move AC_LIBOBJ invocations to module description.
52930         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52931         * modules/signbit (configure.ac): ... to here.
52933 2011-05-21  Bruno Haible  <bruno@clisp.org>
52935         sigprocmask: Move AC_LIBOBJ invocations to module description.
52936         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52937         gl_PREREQ_SIGPROMASK invocations from here...
52938         * modules/sigprocmask (configure.ac): ... to here.
52940 2011-05-21  Bruno Haible  <bruno@clisp.org>
52942         sigaction: Move AC_LIBOBJ invocations to module description.
52943         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52944         gl_PREREQ_SIGACTION invocations from here...
52945         * modules/sigaction (configure.ac): ... to here.
52947 2011-05-21  Bruno Haible  <bruno@clisp.org>
52949         sig2str: Move AC_LIBOBJ invocations to module description.
52950         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52952         here...
52953         * modules/sig2str (configure.ac): ... to here.
52955 2011-05-21  Bruno Haible  <bruno@clisp.org>
52957         setlocale: Move AC_LIBOBJ invocations to module description.
52958         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52959         gl_PREREQ_SETLOCALE invocations from here...
52960         * modules/setlocale (configure.ac): ... to here.
52962 2011-05-21  Bruno Haible  <bruno@clisp.org>
52964         unsetenv: Move AC_LIBOBJ invocations to module description.
52965         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52966         and gl_PREREQ_UNSETENV invocations from here...
52967         * modules/unsetenv (configure.ac): ... to here.
52968         (Depends-on): Update.
52970 2011-05-21  Bruno Haible  <bruno@clisp.org>
52972         setenv: Move AC_LIBOBJ invocations to module description.
52973         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52974         here...
52975         * modules/setenv (configure.ac): ... to here.
52977 2011-05-21  Bruno Haible  <bruno@clisp.org>
52979         selinux-h: Move AC_LIBOBJ invocations to module description.
52980         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52981         AC_LIBOBJ invocation from here...
52982         * modules/selinux-h (configure.ac): ... to here.
52984 2011-05-21  Bruno Haible  <bruno@clisp.org>
52986         select: Respect rules for use of AC_LIBOBJ.
52987         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52988         here...
52989         * modules/select (configure.ac): ... to here.
52991 2011-05-21  Bruno Haible  <bruno@clisp.org>
52993         scandir: Move AC_LIBOBJ invocations to module description.
52994         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52995         invocations from here...
52996         * modules/scandir (configure.ac): ... to here.
52998 2011-05-21  Bruno Haible  <bruno@clisp.org>
53000         rpmatch: Move AC_LIBOBJ invocations to module description.
53001         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53003         here...
53004         * modules/rpmatch (configure.ac): ... to here.
53006 2011-05-21  Bruno Haible  <bruno@clisp.org>
53008         rmdir: Respect rules for use of AC_LIBOBJ.
53009         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53010         * modules/rmdir (configure.ac): ... to here.
53012 2011-05-21  Bruno Haible  <bruno@clisp.org>
53014         renameat: Move AC_LIBOBJ invocations to module description.
53015         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53016         here...
53017         * modules/renameat (configure.ac): ... to here.
53019 2011-05-21  Bruno Haible  <bruno@clisp.org>
53021         rename: Respect rules for use of AC_LIBOBJ.
53022         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53023         here...
53024         * modules/rename (configure.ac): ... to here.
53026 2011-05-21  Bruno Haible  <bruno@clisp.org>
53028         remove: Move AC_LIBOBJ invocations to module description.
53029         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53030         here...
53031         * modules/remove (configure.ac): ... to here.
53033 2011-05-21  Bruno Haible  <bruno@clisp.org>
53035         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53036         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53037         macro.
53038         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53039         * modules/relocatable-lib (configure.ac): ... to here.
53040         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53041         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53043 2011-05-21  Bruno Haible  <bruno@clisp.org>
53045         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53046         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53047         here...
53048         * modules/relocatable-prog (configure.ac): ... to here.
53050 2011-05-21  Bruno Haible  <bruno@clisp.org>
53052         regex: Move AC_LIBOBJ invocations to module description.
53053         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53054         invocations from here...
53055         * modules/regex (configure.ac): ... to here.
53057 2011-05-21  Bruno Haible  <bruno@clisp.org>
53059         realloc-*: Move AC_LIBOBJ invocations to module description.
53060         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53061         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53062         AC_LIBOBJ invocations from here...
53063         * modules/realloc-gnu (configure.ac): ... to here.
53064         * modules/realloc-posix (configure.ac): ... and here.
53066 2011-05-21  Bruno Haible  <bruno@clisp.org>
53068         readutmp: Move AC_LIBOBJ invocations to module description.
53069         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53070         * modules/readutmp (configure.ac): ... to here.
53072 2011-05-21  Bruno Haible  <bruno@clisp.org>
53074         readlinkat: Move AC_LIBOBJ invocations to module description.
53075         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53076         here...
53077         * modules/readlinkat (configure.ac): ... to here.
53079 2011-05-21  Bruno Haible  <bruno@clisp.org>
53081         readlink: Move AC_LIBOBJ invocations to module description.
53082         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53083         gl_PREREQ_READLINK invocations from here...
53084         * modules/readlink (configure.ac): ... to here.
53086 2011-05-21  Bruno Haible  <bruno@clisp.org>
53088         readline: Move AC_LIBOBJ invocations to module description.
53089         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53090         gl_PREREQ_READLINE invocations from here...
53091         * modules/readline (configure.ac): ... to here.
53093 2011-05-21  Bruno Haible  <bruno@clisp.org>
53095         read: Move AC_LIBOBJ invocations to module description.
53096         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53097         * modules/read (configure.ac): ... to here.
53099 2011-05-21  Bruno Haible  <bruno@clisp.org>
53101         rawmemchr: Move AC_LIBOBJ invocations to module description.
53102         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53104         from here...
53105         * modules/rawmemchr (configure.ac): ... to here.
53107 2011-05-21  Bruno Haible  <bruno@clisp.org>
53109         random_r: Move AC_LIBOBJ invocations to module description.
53110         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53111         gl_PREREQ_RANDOM_R invocations from here...
53112         * modules/random_r (configure.ac): ... to here.
53114 2011-05-21  Bruno Haible  <bruno@clisp.org>
53116         pwrite: Move AC_LIBOBJ invocations to module description.
53117         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53118         * modules/pwrite (configure.ac): ... to here.
53120 2011-05-21  Bruno Haible  <bruno@clisp.org>
53122         putenv: Move AC_LIBOBJ invocations to module description.
53123         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53124         * modules/putenv (configure.ac): ... to here.
53126 2011-05-21  Bruno Haible  <bruno@clisp.org>
53128         login_tty: Move AC_LIBOBJ invocations to module description.
53129         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53130         * modules/login_tty (configure.ac): ... to here.
53132 2011-05-21  Bruno Haible  <bruno@clisp.org>
53134         openpty: Move AC_LIBOBJ invocations to module description.
53135         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53136         * modules/openpty (configure.ac): ... to here.
53138 2011-05-21  Bruno Haible  <bruno@clisp.org>
53140         forkpty: Move AC_LIBOBJ invocations to module description.
53141         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53142         * modules/forkpty (configure.ac): ... to here.
53144 2011-05-21  Bruno Haible  <bruno@clisp.org>
53146         ptsname: Move AC_LIBOBJ invocations to module description.
53147         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53148         invocations from here...
53149         * modules/ptsname (configure.ac): ... to here.
53151 2011-05-21  Bruno Haible  <bruno@clisp.org>
53153         pread: Move AC_LIBOBJ invocations to module description.
53154         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53155         * modules/pread (configure.ac): ... to here.
53157 2011-05-21  Bruno Haible  <bruno@clisp.org>
53159         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53160         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53161         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53162         * modules/posix_spawn (configure.ac): ... to here.
53163         * modules/posix_spawnp (configure.ac): ... and here.
53165 2011-05-21  Bruno Haible  <bruno@clisp.org>
53167         popen: Move AC_LIBOBJ invocations to module description.
53168         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53169         invocations from here...
53170         * modules/popen (configure.ac): ... to here.
53172 2011-05-21  Bruno Haible  <bruno@clisp.org>
53174         poll: Move AC_LIBOBJ invocations to module description.
53175         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53176         invocations from here...
53177         * modules/poll (configure.ac): ... to here.
53179 2011-05-21  Bruno Haible  <bruno@clisp.org>
53181         pipe-posix: Move AC_LIBOBJ invocations to module description.
53182         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53183         * modules/pipe-posix (configure.ac): ... to here.
53185 2011-05-21  Bruno Haible  <bruno@clisp.org>
53187         openat: Respect rules for use of AC_LIBOBJ.
53188         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53189         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53190         * modules/openat (configure.ac): ... to here.
53192 2011-05-21  Bruno Haible  <bruno@clisp.org>
53194         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53195         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53196         invocation from here...
53197         * modules/obstack-printf (configure.ac): ... to here.
53198         * modules/obstack-printf-posix (configure.ac): ... and here.
53200 2011-05-21  Bruno Haible  <bruno@clisp.org>
53202         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53204         from here...
53205         * modules/nl_langinfo (configure.ac): ... to here.
53207 2011-05-21  Bruno Haible  <bruno@clisp.org>
53209         nanosleep: Move AC_LIBOBJ invocations to module description.
53210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53211         gl_PREREQ_NANOSLEEP invocations from here...
53212         * modules/nanosleep (configure.ac): ... to here.
53214 2011-05-21  Bruno Haible  <bruno@clisp.org>
53216         mountlist: Move AC_LIBOBJ invocations to module description.
53217         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53218         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53219         * modules/mountlist (configure.ac): ... to here.
53221 2011-05-21  Bruno Haible  <bruno@clisp.org>
53223         mktime: Respect rules for use of AC_LIBOBJ.
53224         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53225         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53226         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53227         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53228         * modules/mktime (configure.ac): ... to here.
53229         * modules/mktime-internal (configure.ac): ... and here.
53230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53232 2011-05-21  Bruno Haible  <bruno@clisp.org>
53234         mkstemps: Move AC_LIBOBJ invocations to module description.
53235         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53236         here...
53237         * modules/mkstemps (configure.ac): ... to here.
53239 2011-05-21  Bruno Haible  <bruno@clisp.org>
53241         mkstemp: Move AC_LIBOBJ invocations to module description.
53242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53243         gl_PREREQ_MKSTEMP invocations from here...
53244         * modules/mkstemp (configure.ac): ... to here.
53246 2011-05-21  Bruno Haible  <bruno@clisp.org>
53248         mkostemps: Move AC_LIBOBJ invocations to module description.
53249         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53250         here...
53251         * modules/mkostemps (configure.ac): ... to here.
53253 2011-05-21  Bruno Haible  <bruno@clisp.org>
53255         mkostemp: Move AC_LIBOBJ invocations to module description.
53256         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53257         gl_PREREQ_MKOSTEMP invocations from here...
53258         * modules/mkostemp (configure.ac): ... to here.
53260 2011-05-21  Bruno Haible  <bruno@clisp.org>
53262         mknod: Move AC_LIBOBJ invocations to module description.
53263         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53264         * modules/mknod (configure.ac): ... to here.
53266 2011-05-21  Bruno Haible  <bruno@clisp.org>
53268         mkfifoat: Move AC_LIBOBJ invocations to module description.
53269         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53270         here...
53271         * modules/mkfifoat (configure.ac): ... to here.
53273 2011-05-21  Bruno Haible  <bruno@clisp.org>
53275         mkfifo: Respect rules for use of AC_LIBOBJ.
53276         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53277         here...
53278         * modules/mkfifo (configure.ac): ... to here.
53280 2011-05-21  Bruno Haible  <bruno@clisp.org>
53282         mkdtemp: Move AC_LIBOBJ invocations to module description.
53283         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53284         invocations from here...
53285         * modules/mkdtemp (configure.ac): ... to here.
53287 2011-05-21  Bruno Haible  <bruno@clisp.org>
53289         mkdir: Move AC_LIBOBJ invocations to module description.
53290         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53291         * modules/mkdir (configure.ac): ... to here.
53293 2011-05-21  Bruno Haible  <bruno@clisp.org>
53295         memset: Move AC_LIBOBJ invocations to module description.
53296         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53298         here...
53299         * modules/memset (configure.ac): ... to here.
53301 2011-05-21  Bruno Haible  <bruno@clisp.org>
53303         memrchr: Move AC_LIBOBJ invocations to module description.
53304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53306         here...
53307         * modules/memrchr (configure.ac): ... to here.
53309 2011-05-21  Bruno Haible  <bruno@clisp.org>
53311         mempcpy: Move AC_LIBOBJ invocations to module description.
53312         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53314         here...
53315         * modules/mempcpy (configure.ac): ... to here.
53317 2011-05-21  Bruno Haible  <bruno@clisp.org>
53319         memmove: Move AC_LIBOBJ invocations to module description.
53320         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53322         here...
53323         * modules/memmove (configure.ac): ... to here.
53325 2011-05-21  Bruno Haible  <bruno@clisp.org>
53327         memmem*: Move AC_LIBOBJ invocations to module description.
53328         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53329         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53330         here...
53331         (gl_FUNC_MEMMEM): ... and here...
53332         * modules/memmem-simple (configure.ac): ... to here.
53333         * modules/memmem (configure.ac): ... and here.
53335 2011-05-21  Bruno Haible  <bruno@clisp.org>
53337         memcpy: Move AC_LIBOBJ invocations to module description.
53338         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53340         here...
53341         * modules/memcpy (configure.ac): ... to here.
53343 2011-05-21  Bruno Haible  <bruno@clisp.org>
53345         memcmp: Simplify autoconf macro.
53346         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53347         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53348         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53350 2011-05-21  Bruno Haible  <bruno@clisp.org>
53352         memcmp: Move AC_LIBOBJ invocations to module description.
53353         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53354         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53355         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53356         * modules/memcmp (configure.ac): ... to here.
53357         (Depends-on): Update conditions.
53359 2011-05-21  Bruno Haible  <bruno@clisp.org>
53361         memchr: Respect rules for use of AC_LIBOBJ.
53362         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53363         invocations from here...
53364         * modules/memchr (configure.ac): ... to here.
53366 2011-05-21  Bruno Haible  <bruno@clisp.org>
53368         mbtowc: Move AC_LIBOBJ invocations to module description.
53369         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53370         invocations from here...
53371         * modules/mbtowc (configure.ac): ... to here.
53373 2011-05-21  Bruno Haible  <bruno@clisp.org>
53375         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53376         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53377         gl_PREREQ_MBSRTOWCS invocations from here...
53378         * modules/mbsrtowcs (configure.ac): ... to here.
53380 2011-05-21  Bruno Haible  <bruno@clisp.org>
53382         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53383         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53384         gl_PREREQ_MBSNRTOWCS invocations from here...
53385         * modules/mbsnrtowcs (configure.ac): ... to here.
53387 2011-05-21  Bruno Haible  <bruno@clisp.org>
53389         mbsinit: Move AC_LIBOBJ invocations to module description.
53390         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53391         invocations from here...
53392         * modules/mbsinit (configure.ac): ... to here.
53394 2011-05-21  Bruno Haible  <bruno@clisp.org>
53396         mbrlen: Move AC_LIBOBJ invocations to module description.
53397         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53398         invocations from here...
53399         * modules/mbrlen (configure.ac): ... to here.
53401 2011-05-21  Bruno Haible  <bruno@clisp.org>
53403         mbrtowc: Respect rules for use of AC_LIBOBJ.
53404         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53405         invocations from here...
53406         * modules/mbrtowc (configure.ac): ... to here.
53408 2011-05-21  Bruno Haible  <bruno@clisp.org>
53410         malloc-*: Move AC_LIBOBJ invocations to module description.
53411         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53412         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53413         AC_LIBOBJ invocations from here...
53414         * modules/malloc-gnu (configure.ac): ... to here.
53415         * modules/malloc-posix (configure.ac): ... and here.
53417 2011-05-21  Bruno Haible  <bruno@clisp.org>
53419         lstat, openat: Respect rules for use of AC_LIBOBJ.
53420         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53421         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53422         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53423         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53424         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53425         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53426         here.
53427         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53429 2011-05-21  Bruno Haible  <bruno@clisp.org>
53431         lseek: Move AC_LIBOBJ invocations to module description.
53432         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53433         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53434         * modules/lseek (configure.ac): ... to here.
53436 2011-05-21  Bruno Haible  <bruno@clisp.org>
53438         linkat: Move AC_LIBOBJ invocations to module description.
53439         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53440         here...
53441         * modules/linkat (configure.ac): ... to here.
53443 2011-05-21  Bruno Haible  <bruno@clisp.org>
53445         link: Respect rules for use of AC_LIBOBJ.
53446         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53447         * modules/link (configure.ac): ... to here.
53449 2011-05-21  Bruno Haible  <bruno@clisp.org>
53451         lchown: Move AC_LIBOBJ invocations to module description.
53452         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53453         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53454         * modules/lchown (configure.ac): ... to here.
53456 2011-05-21  Bruno Haible  <bruno@clisp.org>
53458         iswctype: Move AC_LIBOBJ invocations to module description.
53459         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53460         here...
53461         * modules/iswctype (configure.ac): ... to here.
53463 2011-05-21  Bruno Haible  <bruno@clisp.org>
53465         iswblank: Move AC_LIBOBJ invocations to module description.
53466         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53467         here...
53468         * modules/iswblank (configure.ac): ... to here.
53470 2011-05-21  Bruno Haible  <bruno@clisp.org>
53472         atanl: Move AC_LIBOBJ invocations to module description.
53473         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53474         * modules/atanl (configure.ac): ... to here.
53476 2011-05-21  Bruno Haible  <bruno@clisp.org>
53478         acosl: Move AC_LIBOBJ invocations to module description.
53479         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53480         * modules/acosl (configure.ac): ... to here.
53482 2011-05-21  Bruno Haible  <bruno@clisp.org>
53484         asinl: Respect rules for use of AC_LIBOBJ.
53485         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53486         * modules/asinl (configure.ac): ... to here.
53488 2011-05-21  Bruno Haible  <bruno@clisp.org>
53490         tanl: Move AC_LIBOBJ invocations to module description.
53491         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53492         * modules/tanl (configure.ac): ... to here.
53494 2011-05-21  Bruno Haible  <bruno@clisp.org>
53496         cosl: Move AC_LIBOBJ invocations to module description.
53497         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53498         * modules/cosl (configure.ac): ... to here.
53500 2011-05-21  Bruno Haible  <bruno@clisp.org>
53502         sinl: Move AC_LIBOBJ invocations to module description.
53503         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53504         * modules/sinl (configure.ac): ... to here.
53506 2011-05-21  Bruno Haible  <bruno@clisp.org>
53508         logl: Move AC_LIBOBJ invocations to module description.
53509         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53510         * modules/logl (configure.ac): ... to here.
53512 2011-05-21  Bruno Haible  <bruno@clisp.org>
53514         expl: Move AC_LIBOBJ invocations to module description.
53515         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53516         * modules/expl (configure.ac): ... to here.
53518 2011-05-21  Bruno Haible  <bruno@clisp.org>
53520         roundl: Move AC_LIBOBJ invocations to module description.
53521         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53522         * modules/roundl (configure.ac): ... to here.
53524 2011-05-21  Bruno Haible  <bruno@clisp.org>
53526         round: Move AC_LIBOBJ invocations to module description.
53527         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53528         * modules/round (configure.ac): ... to here.
53530 2011-05-21  Bruno Haible  <bruno@clisp.org>
53532         roundf: Move AC_LIBOBJ invocations to module description.
53533         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53534         * modules/roundf (configure.ac): ... to here.
53536 2011-05-21  Bruno Haible  <bruno@clisp.org>
53538         truncl: Move AC_LIBOBJ invocations to module description.
53539         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53540         * modules/truncl (configure.ac): ... to here.
53542 2011-05-21  Bruno Haible  <bruno@clisp.org>
53544         trunc: Move AC_LIBOBJ invocations to module description.
53545         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53546         * modules/trunc (configure.ac): ... to here.
53548 2011-05-21  Bruno Haible  <bruno@clisp.org>
53550         truncf: Move AC_LIBOBJ invocations to module description.
53551         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53552         * modules/truncf (configure.ac): ... to here.
53554 2011-05-21  Bruno Haible  <bruno@clisp.org>
53556         ceill: Move AC_LIBOBJ invocations to module description.
53557         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53558         * modules/ceill (configure.ac): ... to here.
53560 2011-05-21  Bruno Haible  <bruno@clisp.org>
53562         ceil: Move AC_LIBOBJ invocations to module description.
53563         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53564         * modules/ceil (configure.ac): ... to here.
53566 2011-05-21  Bruno Haible  <bruno@clisp.org>
53568         ceilf: Move AC_LIBOBJ invocations to module description.
53569         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53570         * modules/ceilf (configure.ac): ... to here.
53572 2011-05-21  Bruno Haible  <bruno@clisp.org>
53574         floorl: Respect rules for use of AC_LIBOBJ.
53575         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53576         * modules/floorl (configure.ac): ... to here.
53578 2011-05-21  Bruno Haible  <bruno@clisp.org>
53580         floor: Respect rules for use of AC_LIBOBJ.
53581         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53582         * modules/floor (configure.ac): ... to here.
53584 2011-05-21  Bruno Haible  <bruno@clisp.org>
53586         floorf: Move AC_LIBOBJ invocations to module description.
53587         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53588         * modules/floorf (configure.ac): ... to here.
53590 2011-05-20  Bruno Haible  <bruno@clisp.org>
53592         sqrtl: Respect rules for use of AC_LIBOBJ.
53593         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53594         * modules/sqrtl (configure.ac): ... to here.
53596 2011-05-20  Bruno Haible  <bruno@clisp.org>
53598         ldexpl: Respect rules for use of AC_LIBOBJ.
53599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53600         * modules/ldexpl (configure.ac): ... to here.
53602 2011-05-20  Bruno Haible  <bruno@clisp.org>
53604         frexpl*: Respect rules for use of AC_LIBOBJ.
53605         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53606         invocation from here...
53607         * modules/frexpl (configure.ac): ... to here.
53608         * modules/frexpl-nolibm (configure.ac): ... and here.
53610 2011-05-20  Bruno Haible  <bruno@clisp.org>
53612         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53613         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53614         invocation from here...
53615         * modules/frexp (configure.ac): ... to here.
53616         * modules/frexp-nolibm (configure.ac): ... and here.
53618 2011-05-20  Bruno Haible  <bruno@clisp.org>
53620         isnan: Respect rules for use of AC_LIBOBJ.
53621         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53622         invocations here.
53623         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53624         REPLACE_ISNAN.
53625         * modules/isnand (configure.ac): Likewise.
53626         * modules/isnanl (configure.ac): Likewise.
53628 2011-05-20  Bruno Haible  <bruno@clisp.org>
53630         isnanl*: Respect rules for use of AC_LIBOBJ.
53631         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53632         invocation from here...
53633         * modules/isnanl (configure.ac): ... to here.
53634         * modules/isnanl-nolibm (configure.ac): ... and here.
53636 2011-05-20  Bruno Haible  <bruno@clisp.org>
53638         isnand*: Move AC_LIBOBJ invocations to module description.
53639         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53640         invocation from here...
53641         * modules/isnand (configure.ac): ... to here.
53642         * modules/isnand-nolibm (configure.ac): ... and here.
53644 2011-05-20  Bruno Haible  <bruno@clisp.org>
53646         isnanf*: Move AC_LIBOBJ invocations to module description.
53647         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53648         invocation from here...
53649         * modules/isnanf (configure.ac): ... to here.
53650         * modules/isnanf-nolibm (configure.ac): ... and here.
53652 2011-05-20  Bruno Haible  <bruno@clisp.org>
53654         isnan*: Separate the AC_LIBOBJ invocations.
53655         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53656         AC_LIBOBJ invocation.
53657         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53658         here.
53659         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53660         AC_LIBOBJ invocation.
53661         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53662         here.
53663         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53664         AC_LIBOBJ invocation.
53665         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53666         here.
53667         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53669 2011-05-08  Bruno Haible  <bruno@clisp.org>
53671         isinf: Move AC_LIBOBJ invocations to module description.
53672         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53673         * modules/isinf (configure.ac): ... to here.
53675 2011-05-08  Bruno Haible  <bruno@clisp.org>
53677         isfinite: Move AC_LIBOBJ invocations to module description.
53678         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53679         * modules/isfinite (configure.ac): ... to here.
53681 2011-05-08  Bruno Haible  <bruno@clisp.org>
53683         isblank: Move AC_LIBOBJ invocations to module description.
53684         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53685         here...
53686         * modules/isblank (configure.ac): ... to here.
53688 2011-05-08  Bruno Haible  <bruno@clisp.org>
53690         isapipe: Move AC_LIBOBJ invocations to module description.
53691         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53692         gl_PREREQ_ISAPIPE invocations from here...
53693         * modules/isapipe (configure.ac): ... to here.
53694         (Depends-on): Update condition.
53696 2011-05-08  Bruno Haible  <bruno@clisp.org>
53698         ioctl: Move AC_LIBOBJ invocations to module description.
53699         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53700         invocations from here...
53701         * modules/ioctl (configure.ac): ... to here.
53702         (Depends-on): Update condition.
53704 2011-05-08  Bruno Haible  <bruno@clisp.org>
53706         imaxdiv: Move AC_LIBOBJ invocations to module description.
53707         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53708         invocations from here...
53709         * modules/imaxdiv (configure.ac): ... to here.
53711 2011-05-08  Bruno Haible  <bruno@clisp.org>
53713         imaxabs: Move AC_LIBOBJ invocations to module description.
53714         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53715         invocations from here...
53716         * modules/imaxabs (configure.ac): ... to here.
53718 2011-05-08  Bruno Haible  <bruno@clisp.org>
53720         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53722         AC_LIBOBJ invocations from here...
53723         * modules/getaddrinfo (configure.ac): ... to here.
53724         (Depends-on): Add conditions.
53726 2011-05-08  Bruno Haible  <bruno@clisp.org>
53728         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53729         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53730         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53731         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53732         (gl_PREREQ_INET_PTON): ... from here.
53733         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53734         gl_PREREQ_INET_PTON here.
53735         (Depends-on): Update condition.
53737 2011-05-08  Bruno Haible  <bruno@clisp.org>
53739         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53740         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53741         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53742         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53743         (gl_PREREQ_INET_NTOP): ... from here.
53744         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53745         gl_PREREQ_INET_NTOP here.
53746         (Depends-on): Update condition.
53748 2011-05-08  Bruno Haible  <bruno@clisp.org>
53750         iconv_open: Move AC_LIBOBJ invocations to module description.
53751         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53752         AC_LIBOBJ invocations from here...
53753         * modules/iconv_open (configure.ac): ... to here.
53755 2011-05-08  Bruno Haible  <bruno@clisp.org>
53757         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53758         If module 'iconv_open' is among the main modules and module
53759         'iconv_open-utf' is among the tests dependencies, then
53760         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53761         return the special iconv_t values. Therefore iconv() and iconv_close()
53762         must support these special iconv_t values, already in lib, not only in
53763         tests.
53764         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53765         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53766         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53767         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53768         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53769         (Depends-on): Add the dependencies of iconv_open-utf.
53770         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53771         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53772         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53774 2011-05-08  Bruno Haible  <bruno@clisp.org>
53776         group-member: Move AC_LIBOBJ invocations to module description.
53777         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53778         gl_PREREQ_GROUP_MEMBER invocations from here...
53779         * modules/group-member (configure.ac): ... to here.
53781 2011-05-08  Bruno Haible  <bruno@clisp.org>
53783         grantpt: Move AC_LIBOBJ invocations to module description.
53784         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53785         invocations from here...
53786         * modules/grantpt (configure.ac): ... to here.
53788 2011-05-08  Bruno Haible  <bruno@clisp.org>
53790         glob: Move AC_LIBOBJ invocations to module description.
53791         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53792         from here...
53793         * modules/glob (configure.ac): ... to here.
53795 2011-05-08  Bruno Haible  <bruno@clisp.org>
53797         getusershell: Move AC_LIBOBJ invocations to module description.
53798         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53799         Move AC_LIBOBJ invocation from here...
53800         * modules/getusershell (configure.ac): ... to here.
53801         (Depends-on): Update condition.
53803 2011-05-08  Bruno Haible  <bruno@clisp.org>
53805         gettimeofday: Move AC_LIBOBJ invocations to module description.
53806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53807         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53808         gl_PREREQ_GETTIMEOFDAY invocations from here...
53809         * modules/gettimeofday (configure.ac): ... to here.
53811 2011-05-08  Bruno Haible  <bruno@clisp.org>
53813         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53814         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53815         just gl_FUNC_TZSET.
53816         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53817         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53819         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53821 2011-05-08  Bruno Haible  <bruno@clisp.org>
53823         getsubopt: Move AC_LIBOBJ invocations to module description.
53824         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53825         gl_PREREQ_GETSUBOPT invocations from here...
53826         * modules/getsubopt (configure.ac): ... to here.
53828 2011-05-08  Bruno Haible  <bruno@clisp.org>
53830         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53831         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53832         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53833         * modules/getpass-gnu (configure.ac): ... to here.
53835 2011-05-08  Bruno Haible  <bruno@clisp.org>
53837         getpass: Move AC_LIBOBJ invocations to module description.
53838         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53839         gl_PREREQ_GETPASS invocations from here...
53840         * modules/getpass (configure.ac): ... to here.
53842 2011-05-08  Bruno Haible  <bruno@clisp.org>
53844         getpagesize: Move AC_LIBOBJ invocations to module description.
53845         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53846         from here...
53847         * modules/getpagesize (configure.ac): ... to here.
53849 2011-05-08  Bruno Haible  <bruno@clisp.org>
53851         getopt: Move AC_LIBOBJ invocations to module description.
53852         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53853         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53854         invocations from here...
53855         * modules/getopt-gnu (configure.ac): ... to here.
53856         * modules/getopt-posix (configure.ac): ... and here.
53857         (Depends-on): Update condition.
53859 2011-05-08  Bruno Haible  <bruno@clisp.org>
53861         getopt, argp: Respect rules for use of AC_LIBOBJ.
53862         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53863         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53864         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53865         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53867 2011-05-08  Bruno Haible  <bruno@clisp.org>
53869         getlogin_r: Move AC_LIBOBJ invocations to module description.
53870         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53871         gl_PREREQ_GETLOGIN_R invocations from here...
53872         * modules/getlogin_r (configure.ac): ... to here.
53874 2011-05-08  Bruno Haible  <bruno@clisp.org>
53876         getlogin: Move AC_LIBOBJ invocations to module description.
53877         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53878         here...
53879         * modules/getlogin (configure.ac): ... to here.
53881 2011-05-08  Bruno Haible  <bruno@clisp.org>
53883         getloadavg: Move AC_LIBOBJ invocations to module description.
53884         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53885         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53886         * modules/getloadavg (configure.ac): ... to here.
53888 2011-05-08  Bruno Haible  <bruno@clisp.org>
53890         gethrxtime: Move AC_LIBOBJ invocations to module description.
53891         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53892         LIB_GETHRXTIME from here...
53893         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53894         invocations from here...
53895         * modules/gethrxtime (configure.ac): ... to here.
53897 2011-05-08  Bruno Haible  <bruno@clisp.org>
53899         gethostname: Move AC_LIBOBJ invocations to module description.
53900         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53901         gl_PREREQ_GETHOSTNAME invocations from here...
53902         * modules/gethostname (configure.ac): ... to here.
53904 2011-05-08  Bruno Haible  <bruno@clisp.org>
53906         getgroups: Move AC_LIBOBJ invocations to module description.
53907         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53908         here...
53909         * modules/getgroups (configure.ac): ... to here.
53911 2011-05-08  Bruno Haible  <bruno@clisp.org>
53913         getdtablesize: Move AC_LIBOBJ invocations to module description.
53914         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53915         invocation from here...
53916         * modules/getdtablesize (configure.ac): ... to here.
53918 2011-05-08  Bruno Haible  <bruno@clisp.org>
53920         getdomainname: Move AC_LIBOBJ invocations to module description.
53921         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53922         gl_PREREQ_GETDOMAINNAME invocations from here...
53923         * modules/getdomainname (configure.ac): ... to here.
53925 2011-05-08  Bruno Haible  <bruno@clisp.org>
53927         getline: Move AC_LIBOBJ invocations to module description.
53928         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53929         invocations from here...
53930         * modules/getline (configure.ac): ... to here.
53932 2011-05-08  Bruno Haible  <bruno@clisp.org>
53934         getline: Simplify.
53935         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53936         It's already handled through the module dependency.
53938 2011-05-08  Bruno Haible  <bruno@clisp.org>
53940         getdelim: Move AC_LIBOBJ invocations to module description.
53941         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53942         and gl_PREREQ_GETDELIM invocations from here...
53943         * modules/getdelim (configure.ac): ... to here.
53944         (Depends-on): Fix condition.
53946 2011-05-08  Bruno Haible  <bruno@clisp.org>
53948         getcwd: Move AC_LIBOBJ invocations to module description.
53949         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53950         invocations from here...
53951         * modules/getcwd (configure.ac): ... to here.
53953 2011-05-08  Bruno Haible  <bruno@clisp.org>
53955         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53956         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53957         here...
53958         * modules/getcwd-lgpl (configure.ac): ... to here.
53960 2011-05-07  Bruno Haible  <bruno@clisp.org>
53962         crypto/gc: Move AC_LIBOBJ invocations to module description.
53963         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53964         * modules/crypto/gc (configure.ac): ... to here.
53966 2011-05-07  Bruno Haible  <bruno@clisp.org>
53968         fwriting: Move AC_LIBOBJ invocations to module description.
53969         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53970         here...
53971         * modules/fwriting (configure.ac): ... to here.
53973 2011-05-07  Bruno Haible  <bruno@clisp.org>
53975         fwritable: Move AC_LIBOBJ invocations to module description.
53976         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53977         here...
53978         * modules/fwritable (configure.ac): ... to here.
53980 2011-05-07  Bruno Haible  <bruno@clisp.org>
53982         futimens: Move AC_LIBOBJ invocations to module description.
53983         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53984         here...
53985         * modules/futimens (configure.ac): ... to here.
53987 2011-05-07  Bruno Haible  <bruno@clisp.org>
53989         ftruncate: Move AC_LIBOBJ invocations to module description.
53990         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53991         gl_PREREQ_FTRUNCATE invocations from here...
53992         * modules/ftruncate (configure.ac): ... to here.
53994 2011-05-07  Bruno Haible  <bruno@clisp.org>
53996         fsync: Move AC_LIBOBJ invocations to module description.
53997         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53998         invocations from here...
53999         * modules/fsync (configure.ac): ... to here.
54001 2011-05-07  Bruno Haible  <bruno@clisp.org>
54003         fsusage: Move AC_LIBOBJ invocations to module description.
54004         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54005         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54006         * modules/fsusage (configure.ac): ... to here.
54008 2011-05-07  Bruno Haible  <bruno@clisp.org>
54010         freopen: Move AC_LIBOBJ invocations to module description.
54011         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54012         invocations from here...
54013         * modules/freopen (configure.ac): ... to here.
54015 2011-05-07  Bruno Haible  <bruno@clisp.org>
54017         free: Move AC_LIBOBJ invocations to module description.
54018         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54019         invocations from here...
54020         * modules/free (configure.ac): ... to here.
54022 2011-05-07  Bruno Haible  <bruno@clisp.org>
54024         freadable: Move AC_LIBOBJ invocations to module description.
54025         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54026         here...
54027         * modules/freadable (configure.ac): ... to here.
54029 2011-05-07  Bruno Haible  <bruno@clisp.org>
54031         fpurge: Move AC_LIBOBJ invocations to module description.
54032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54033         invocations from here...
54034         * modules/fpurge (configure.ac): ... to here.
54036 2011-05-07  Bruno Haible  <bruno@clisp.org>
54038         fpending: Move AC_LIBOBJ invocations to module description.
54039         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54040         gl_FUNC_FPENDING.
54041         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54042         invocations from here...
54043         * modules/fpending (configure.ac): ... to here.
54045 2011-05-07  Bruno Haible  <bruno@clisp.org>
54047         fopen: Move AC_LIBOBJ invocations to module description.
54048         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54049         invocations from here...
54050         * modules/fopen (configure.ac): ... to here.
54052 2011-05-07  Bruno Haible  <bruno@clisp.org>
54054         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54055         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54056         gl_FUNC_FNMATCH_POSIX.
54057         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54058         invocations from here...
54059         * modules/fnmatch (configure.ac): ... to here.
54060         * modules/fnmatch-gnu (configure.ac): ... and here.
54062 2011-05-07  Bruno Haible  <bruno@clisp.org>
54064         flock: Move AC_LIBOBJ invocations to module description.
54065         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54066         invocations from here...
54067         * modules/flock (configure.ac): ... to here.
54069 2011-05-07  Bruno Haible  <bruno@clisp.org>
54071         fileblocks: Move AC_LIBOBJ invocations to module description.
54072         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54073         gl_PREREQ_FILEBLOCKS invocations from here...
54074         * modules/fileblocks (configure.ac): ... to here.
54076 2011-05-06  Bruno Haible  <bruno@clisp.org>
54078         fflush: Move AC_LIBOBJ invocations to module description.
54079         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54080         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54081         invocations from here...
54082         * modules/fflush (configure.ac): ... to here.
54084 2011-05-06  Bruno Haible  <bruno@clisp.org>
54086         fdopendir: Move AC_LIBOBJ invocations to module description.
54087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54088         here...
54089         * modules/fdopendir (configure.ac): ... to here.
54090         (Depends-on): Improve conditions.
54092 2011-05-06  Bruno Haible  <bruno@clisp.org>
54094         _Exit: Move AC_LIBOBJ invocations to module description.
54095         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54096         invocations from here...
54097         * modules/_Exit (configure.ac): ... to here.
54099 2011-05-21  Bruno Haible  <bruno@clisp.org>
54101         euidaccess: Respect rules for use of AC_LIBOBJ.
54102         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54104         from here...
54105         * modules/euidaccess (configure.ac): ... to here.
54107 2011-05-06  Bruno Haible  <bruno@clisp.org>
54109         error: Move AC_LIBOBJ invocations to module description.
54110         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54111         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54112         invocations from here...
54113         * modules/error (configure.ac): ... to here.
54115 2011-05-06  Bruno Haible  <bruno@clisp.org>
54117         duplocale: Move AC_LIBOBJ invocations to module description.
54118         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54119         gl_PREREQ_DUPLOCALE invocations from here...
54120         * modules/duplocale (configure.ac): ... to here.
54122 2011-05-05  Bruno Haible  <bruno@clisp.org>
54124         dirfd: Move AC_LIBOBJ invocations to module description.
54125         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54126         gl_FUNC_DIRFD.
54127         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54128         here...
54129         * modules/dirfd (configure.ac): ... to here.
54130         (Depends-on): Fix condition.
54132 2011-05-05  Bruno Haible  <bruno@clisp.org>
54134         chown: Respect rules for use of AC_LIBOBJ.
54135         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54136         * modules/chown (configure.ac): ... to here.
54138 2011-05-05  Bruno Haible  <bruno@clisp.org>
54140         chdir-long: Move AC_LIBOBJ invocations to module description.
54141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54142         gl_PREREQ_CHDIR_LONG invocations from here...
54143         * modules/chdir-long (configure.ac): ... to here.
54145 2011-05-05  Bruno Haible  <bruno@clisp.org>
54147         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54148         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54149         from here...
54150         * modules/canonicalize-lgpl (configure.ac): ... to here.
54152 2011-05-05  Bruno Haible  <bruno@clisp.org>
54154         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54155         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54156         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54157         REPLACE_CALLOC.
54158         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54159         * modules/calloc-gnu (configure.ac): Likewise.
54161 2011-05-05  Bruno Haible  <bruno@clisp.org>
54163         btowc: Move AC_LIBOBJ invocations to module description.
54164         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54165         invocations from here...
54166         * modules/btowc (configure.ac): ... to here.
54168 2011-05-21  Bruno Haible  <bruno@clisp.org>
54170         atexit: Move AC_LIBOBJ invocations to module description.
54171         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54173         here...
54174         * modules/atexit (configure.ac): ... to here.
54176 2011-05-05  Bruno Haible  <bruno@clisp.org>
54178         atoll: Move AC_LIBOBJ invocations to module description.
54179         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54180         invocations from here...
54181         * modules/atoll (configure.ac): ... to here.
54183 2011-05-05  Bruno Haible  <bruno@clisp.org>
54185         argz: Move AC_LIBOBJ invocations to module description.
54186         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54187         * modules/argz (configure.ac): ... to here.
54189 2011-05-05  Bruno Haible  <bruno@clisp.org>
54191         alphasort: Move AC_LIBOBJ invocations to module description.
54192         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54193         gl_PREREQ_ALPHASORT invocations from here...
54194         * modules/alphasort (configure.ac): ... to here.
54196 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54198         verify: new macro verify_expr; verify_true deprecated
54199         * NEWS: Mention this.
54200         * doc/verify.texi (Compile-time Assertions): Document this.
54201         * lib/verify.h (verify_true): Deprecate.
54202         (verify_expr): New macro.
54203         * tests/test-verify.c (function): Test verify_expr.
54205 2011-06-14  Jim Meyering  <meyering@redhat.com>
54207         init.sh: give more portable redirection-related advice in a comment
54208         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54209         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54210         for lots of discussion.  Stefano Lattarini suggested the solution
54211         of putting "9>&2" after the command.  Reported by Bruno Haible.
54213 2011-06-13  Bruno Haible  <bruno@clisp.org>
54215         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54216         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54217         'none'.
54219 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54221         ftoastr: use strtof only if HAVE_STRTOF
54222         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54223         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54224         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54225         * modules/ftoastr (configure.ac): Check for strtof.
54227 2011-06-13  Bruno Haible  <bruno@clisp.org>
54229         gnulib-tool: Addendum to 2011-06-08 commit.
54230         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54231         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54233 2011-06-13  Bruno Haible  <bruno@clisp.org>
54235         fseeko: Provide a non-inline replacement of fseek().
54236         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54237         * modules/fseeko (Depends-on): Add fseek.
54238         * modules/fseek (License): Change to LGPLv2+.
54240 2011-06-13  Bruno Haible  <bruno@clisp.org>
54242         ftello: Provide a non-inline replacement of ftell().
54243         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54244         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54245         not have ftello() (such as on mingw).
54246         * modules/ftello (Depends-on): Add ftell.
54247         * modules/ftell (License): Change to LGPLv2+.
54249 2011-05-07  Bruno Haible  <bruno@clisp.org>
54251         ftell: Move AC_LIBOBJ invocations to module description.
54252         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54253         * modules/ftell (configure.ac): ... to here.
54255 2011-05-07  Bruno Haible  <bruno@clisp.org>
54257         ftello: Respect rules for use of AC_LIBOBJ.
54258         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54259         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54260         here...
54261         * modules/ftello (configure.ac): ... to here.
54263 2011-05-07  Bruno Haible  <bruno@clisp.org>
54265         fseeko: Simplify.
54266         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54267         (gl_FUNC_FSEEKO): Inline it here.
54269 2011-05-07  Bruno Haible  <bruno@clisp.org>
54271         fseek: Move AC_LIBOBJ invocations to module description.
54272         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54273         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54274         * modules/fseek (configure.ac): ... to here.
54276 2011-05-07  Bruno Haible  <bruno@clisp.org>
54278         fseek: Respect rules for use of AC_LIBOBJ.
54279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54280         here...
54281         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54283 2011-05-07  Bruno Haible  <bruno@clisp.org>
54285         fseeko: Respect rules for use of AC_LIBOBJ.
54286         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54287         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54288         here...
54289         * modules/fseeko (configure.ac): ... to here.
54291 2011-06-13  Bruno Haible  <bruno@clisp.org>
54293         gnulib-tool: Allow comments in the 'Depends-on' section.
54294         * doc/gnulib.texi (Module description): Mention comment syntax in the
54295         Depends-on section.
54296         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54298 2011-06-13  Bruno Haible  <bruno@clisp.org>
54300         file-set.h: guard __attibute__ use, now that it's not always defined
54301         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54302         versions that support it.  This fixes a coreutils build failure with
54303         the vendor cc on HP-UX 11.31.
54305 2011-06-12  Bruno Haible  <bruno@clisp.org>
54307         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54308         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54309         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54310         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54311         (acl, aclsort): New declarations.
54312         (aclv_nontrivial): New declaration.
54313         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54314         (file_has_acl): Read also the second kind of HP-UX ACLs.
54315         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54316         kind of HP-UX ACLs if the first kind fails.
54317         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54318         second kind of HP-UX ACLs.
54319         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54320         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54321         agree.
54322         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54323         hpuxjfs.
54324         Handle hpuxjfs.
54325         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54326         hpuxjfs.
54327         Handle hpuxjfs.
54328         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54329         (func_test_same_acls): Use both lsacl and getacl.
54330         Handle hpuxjfs.
54331         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54332         (func_test_same_acls): Use both lsacl and getacl.
54333         Handle hpuxjfs.
54335 2011-06-12  Bruno Haible  <bruno@clisp.org>
54337         acl: Complete the 2010-08-10 fix.
54338         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54339         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54340         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54341         explicitly.
54342         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54343         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54345 2011-06-12  Bruno Haible  <bruno@clisp.org>
54347         spawn-pipe tests: Comments.
54348         * tests/test-spawn-pipe-child.c (main): Update comment.
54349         Reported by James Youngman <jay@gnu.org>.
54351 2011-06-11  James Youngman  <jay@gnu.org>
54353         New module 'stat-size'.
54354         * modules/stat-size: New module.  Provides macros for accessing
54355         file size information in instances of struct stat.  Depends on the
54356         fileblocks module because it calls st_blocks.
54357         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54358         * doc/gnulib.texi: Include stat-size.texi.
54359         * doc/stat-size.texi: Documentation for this module.
54360         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54361         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54362         AC_STRUCT_ST_BLOCKS.
54364 2011-06-09  Bruno Haible  <bruno@clisp.org>
54366         thread: Support pthreads-win32.
54367         * lib/glthread/thread.h (gl_thread_self): Define differently on
54368         pthreads-win32.
54369         (gl_null_thread): New declaration.
54370         (gl_thread_self_pointer): New macro.
54371         * lib/glthread/thread.c (gl_null_thread): New constant.
54372         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54373         gl_thread_self.
54374         * tests/test-tls.c: Likewise.
54375         Suggested by Paul Eggert. Reported by Eric Blake.
54377 2011-06-09  Bruno Haible  <bruno@clisp.org>
54379         thread: Fix confusion between NULL and 0.
54380         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54381         Reported by Paul Eggert.
54383 2011-06-09  Bruno Haible  <bruno@clisp.org>
54385         spawn-pipe tests: Avoid test failure on HP-UX 11.
54386         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54387         is closed.
54389 2011-06-09  Bruno Haible  <bruno@clisp.org>
54391         acl tests: Fix compilation error on HP-UX 11.
54392         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54394 2011-06-09  Bruno Haible  <bruno@clisp.org>
54396         rmdir: Avoid test failure on HP-UX 10.20.
54397         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54398         EEXIST.
54400 2011-06-08  Eric Blake  <eblake@redhat.com>
54402         perror: fix test on mingw
54403         * modules/perror-tests (Depends-on): Add dup2.
54405         strerror_r-posix: fix on MacOS
54406         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54408         logic bug.
54409         * lib/strerror_r.c (strerror_r): Fix the bug.
54410         * lib/strerror.c (strerror): Likewise.
54411         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54412         problem.
54413         * doc/posix-functions/strerror.texi (strerror): Likewise.
54414         * doc/posix-functions/perror.texi (perror): Likewise.
54415         * tests/test-strerror.c (main): Enhance test.
54416         * tests/test-strerror_r.c (main): Likewise.
54418 2011-06-08  Bruno Haible  <bruno@clisp.org>
54420         gnulib-tool: Better isolation between different gnulib-tool invocations.
54421         * gnulib-tool: New option --witness-c-macro.
54422         (witness_c_macro): New variable.
54423         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54424         AM_CPPFLAGS define it as a C macro.
54425         (func_emit_tests_Makefile_am): Likewise.
54426         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54427         read it from there.
54428         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54429         m4_define, not AC_DEFUN.
54430         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54431         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54432         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54433         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54434         s|...|...|, to substitute the values of the GNULIB_* module indicator
54435         variables.
54436         * modules/dirent (Makefile.am): Likewise.
54437         * modules/fcntl-h (Makefile.am): Likewise.
54438         * modules/iconv-h (Makefile.am): Likewise.
54439         * modules/langinfo (Makefile.am): Likewise.
54440         * modules/locale (Makefile.am): Likewise.
54441         * modules/math (Makefile.am): Likewise.
54442         * modules/netdb (Makefile.am): Likewise.
54443         * modules/poll-h (Makefile.am): Likewise.
54444         * modules/pty (Makefile.am): Likewise.
54445         * modules/search (Makefile.am): Likewise.
54446         * modules/signal (Makefile.am): Likewise.
54447         * modules/spawn (Makefile.am): Likewise.
54448         * modules/stdio (Makefile.am): Likewise.
54449         * modules/stdlib (Makefile.am): Likewise.
54450         * modules/string (Makefile.am): Likewise.
54451         * modules/sys_ioctl (Makefile.am): Likewise.
54452         * modules/sys_select (Makefile.am): Likewise.
54453         * modules/sys_socket (Makefile.am): Likewise.
54454         * modules/sys_stat (Makefile.am): Likewise.
54455         * modules/sys_times (Makefile.am): Likewise.
54456         * modules/sys_utsname (Makefile.am): Likewise.
54457         * modules/sys_wait (Makefile.am): Likewise.
54458         * modules/termios (Makefile.am): Likewise.
54459         * modules/time (Makefile.am): Likewise.
54460         * modules/unistd (Makefile.am): Likewise.
54461         * modules/wchar (Makefile.am): Likewise.
54463 2011-06-08  Eric Blake  <eblake@redhat.com>
54465         strerror: simplify replacement
54466         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54467         * modules/strerror (configure.ac): No prereqs needed here...
54468         * modules/strerror-override (configure.ac): ...but this needs it.
54469         (Files): Add file for needed prereq macro.
54471 2011-06-08  Bruno Haible  <bruno@clisp.org>
54473         strerror_r-posix: Tweaks.
54474         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54475         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54476         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54477         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54478         (gl_FUNC_STRERROR_R): ... to here.
54479         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54481 2011-06-07  Eric Blake  <eblake@redhat.com>
54483         perror: document fixed bugs
54484         * doc/posix-functions/perror.texi (perror): Document recent
54485         patches.
54487 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54489         stat-time: get_stat_birthtime failure is better-defined
54490         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54491         return a timestamp whose tv_sec and tv_nsec values are both -1.
54492         Previously, the spec said only that the tv_nsec value was negative.
54493         This upward-compatible change simplifies GNU tar a bit.
54495 2011-06-07  Eric Blake  <eblake@redhat.com>
54497         strerror_r-posix: work around cygwin 1.7.9
54498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54499         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54500         bug without replacing strerror_r.
54501         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54502         strerror_r is buggy, but without requiring strerror_r compilation.
54503         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54505         test-perror: relax test to ignore cygwin bug
54506         * tests/test-perror2.c (main): Relax test on requiring detection
54507         of stream errors, and use unbuffered stream.
54508         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54509         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54510         * doc/posix-functions/fputc.texi (fputc): Likewise.
54511         * doc/posix-functions/fputs.texi (fputs): Likewise.
54512         * doc/posix-functions/fputws.texi (fputws): Likewise.
54513         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54514         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54515         * doc/posix-functions/getopt.texi (getopt): Likewise.
54516         * doc/posix-functions/perror.texi (perror): Likewise.
54517         * doc/posix-functions/printf.texi (printf): Likewise.
54518         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54519         * doc/posix-functions/psignal.texi (psignal): Likewise.
54520         * doc/posix-functions/putc.texi (putc): Likewise.
54521         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54522         Likewise.
54523         * doc/posix-functions/putchar.texi (putchar): Likewise.
54524         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54525         Likewise.
54526         * doc/posix-functions/puts.texi (puts): Likewise.
54527         * doc/posix-functions/putwc.texi (putwc): Likewise.
54528         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54529         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54530         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54531         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54532         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54533         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54534         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54535         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54537 2011-05-22  Bruno Haible  <bruno@clisp.org>
54539         strerror: Move AC_LIBOBJ invocations to module description.
54540         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54541         gl_PREREQ_STRERROR invocations from here...
54542         * modules/strerror (configure.ac): ... to here.
54544 2011-05-21  Bruno Haible  <bruno@clisp.org>
54546         perror: Use common idiom.
54547         * modules/perror (configure.ac): Reorder statements.
54549 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54551         tests: fix usage message in 'mktempd_'
54552         * tests/init.sh (mktempd_): In the usage message, use literal
54553         'mktempd_', not '$ME' (which is even undefined), as the name of
54554         the subroutine.
54556 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54558         tests init: new function 'fatal_', for hard errors
54559         Before this patch, the only way offered by tests/init.sh to
54560         properly signal a hard error was the `framework_failure_'
54561         function.  But the error message issued by that function,
54562         as its name would suggest, refers to a set-up failure in the
54563         testsuite, while hard errors can obviously also be due to
54564         other reasons.  The best way to fix this inconsistency is to
54565         introduce a new function with a more general error message.
54566         * tests/init.sh (fatal_): New function.
54568 2011-06-06  Eric Blake  <eblake@redhat.com>
54570         canonicalize-lgpl: use common idiom
54571         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54572         over newer POSIX -Rf.
54573         Reported by Bruno Haible.
54575         canonicalize-lgpl: work around AIX realpath bug
54576         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54577         * doc/posix-functions/realpath.texi (realpath): Document it.
54578         Reported by Bruno Haible.
54580         strerror: work around FreeBSD bug
54581         * lib/strerror.c (strerror): Special case 0.
54582         Reported by Bruno Haible.
54584         strerror-override: avoid bloating errno module
54585         * modules/errno (Files, configure.ac): Move replacement strings...
54586         * modules/strerror-override: ...to new module.
54587         * modules/strerror (Depends-on): Add strerror-override.
54588         * modules/strerror_r-posix (Depends-on): Likewise.
54589         * MODULES.html.sh: Document new module.
54590         Reported by Bruno Haible.
54592 2011-06-06  Bruno Haible  <bruno@clisp.org>
54594         spawn-pipe tests: Rename program.
54595         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54596         * tests/test-spawn-pipe-child.c: Update comment.
54597         * tests/test-spawn-pipe.sh: Update.
54598         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54600         spawn-pipe tests: Link the child program only against libc.
54601         * tests/test-spawn-pipe-child.c: New file, extracted from
54602         tests/test-spawn-pipe.c.
54603         (main): Expect only one argument.
54604         (is_open): New function, copied from tests/test-pipe.c.
54605         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54606         (child_main): Remove function.
54607         (test_pipe): Pass only one argument to the child program.
54608         (main): Remove child process code. Expect the child program's name as
54609         first argument.
54610         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54611         argument.
54612         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54613         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54614         test-spawn-pipe-child against no libraries.
54616 2011-06-06  Bruno Haible  <bruno@clisp.org>
54618         careadlinkat: Avoid mismatch between ssize_t and int.
54619         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54620         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54622 2011-06-06  Jim Meyering  <meyering@redhat.com>
54624         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54625         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54626         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54628 2011-06-05  Bruno Haible  <bruno@clisp.org>
54630         ansi-c++-opt: Interoperability with libtool.
54631         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54632         set the variable to "no", not to ":".
54633         * NEWS: Mention the change.
54635 2011-06-05  Bruno Haible  <bruno@clisp.org>
54637         acl: Fix test failure on AIX 7.
54638         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54639         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54641 2011-06-05  Bruno Haible  <bruno@clisp.org>
54643         pipe-filter-ii: Fix test failure on AIX and IRIX.
54644         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54645         with EAGAIN, retry with a smaller buffer size.
54647 2011-06-05  Bruno Haible  <bruno@clisp.org>
54649         localename: Fix link dependencies.
54650         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54651         * modules/localename-tests (Makefile.am): Link test-localename with
54652         $(LIBTHREAD).
54654 2011-06-05  Bruno Haible  <bruno@clisp.org>
54656         error: Avoid gcc warning.
54657         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54659 2011-06-05  Bruno Haible  <bruno@clisp.org>
54661         unsetenv: Avoid gcc warning.
54662         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54664 2011-06-05  Bruno Haible  <bruno@clisp.org>
54666         setenv: Avoid gcc warning.
54667         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54669 2011-06-05  Bruno Haible  <bruno@clisp.org>
54671         sys_select: Ensure memset is declared also on AIX 7.
54672         * lib/sys_select.in.h: Include <string.h> also on AIX.
54673         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54674         self-contained also on AIX 7.1.
54676 2011-06-04  Jim Meyering  <meyering@redhat.com>
54678         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54679         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54680         function name, "error".
54681         (_gl_translatable_diag_func_re): New configurable variable.
54683 2011-06-04  Bruno Haible  <bruno@clisp.org>
54685         getopt: Avoid gcc warning.
54686         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54688 2011-06-04  Bruno Haible  <bruno@clisp.org>
54690         strerror_r: Fix comments.
54691         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54692         commit.
54694 2011-06-04  Bruno Haible  <bruno@clisp.org>
54696         perror: Fix compilation error.
54697         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54698         Undefine fprintf, not sprintf.
54699         * modules/perror (Depends-on): Remove intprops, verify.
54701 2011-06-04  Bruno Haible  <bruno@clisp.org>
54703         setlocale: Enable replacement on Cygwin 1.5.
54704         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54705         Cygwin 1.5.x.
54706         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54707         LC_CTYPE category also exists on Cygwin 1.5.x.
54709 2011-06-04  Bruno Haible  <bruno@clisp.org>
54711         strerror-override: Don't disable symbol renamings.
54712         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54713         * lib/strerror-override.c: Include config.h.
54714         (strerror_override): Don't undefine.
54716 2011-06-03  Bruno Haible  <bruno@clisp.org>
54718         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54719         * lib/localename.h: Update copyright header.
54720         * lib/localename.c: Likewise.
54721         * lib/relocatable.h: Likewise.
54722         * lib/relocatable.c: Likewise.
54724 2011-06-02  Bruno Haible  <bruno@clisp.org>
54726         doc: Fix a module name.
54727         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54729 2011-06-02  Bruno Haible  <bruno@clisp.org>
54731         pipe2: Remove dependency on 'nonblocking' module.
54732         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54733         O_NONBLOCK is defined by gnulib.
54734         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54735         is zero.
54736         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54737         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54738         defined by gnulib.
54739         (get_nonblocking_flag): New function.
54740         (main): Test O_NONBLOCK flag only if it is nonzero.
54741         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54743 2011-06-03  Jim Meyering  <meyering@redhat.com>
54745         maint: three new prohibit-header-without-use rules
54746         Prohibit use of cloexec.h, posixver.h, same.h without use.
54747         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54748         (sc_prohibit_posixver_without_use): Likewise.
54749         (sc_prohibit_same_without_use): Likewise.
54751 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54753         allocator: 'die' routine is now given requested size
54754         * lib/allocator.h (struct allocator.die): New size arg.
54755         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54756         If the actual problem is an ssize_t limitation, not a size_t or
54757         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54759 2011-06-01  Eric Blake  <eblake@redhat.com>
54761         strerror: drop strerror_r dependency
54762         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54763         * lib/strerror-override.c (strerror_override): ...to new file.
54764         * lib/strerror-override.h: Add prototype.
54765         * lib/strerror-impl.h: Delete.
54766         * lib/strerror.c (strerror): New implementation.
54767         * modules/errno (Files): Add new files.
54768         (configure.ac): Compile new file as appropriate.
54769         * modules/strerror (Files): Drop unused file.
54770         (Depends-on): Drop strerror_r-posix.
54771         * MODULES.html.sh: Document strerror_r-posix.
54772         Requested by Sam Steingold.
54774         perror: call strerror_r directly
54775         * modules/perror (Files): Drop strerror-impl.h.
54776         * lib/perror.c (perror): Use our own stack buffer, rather than
54777         calling a wrapper that uses static storage.
54778         * doc/posix-functions/perror.texi (perror): Document a limitation
54779         of our replacement.
54781         strerror_r: fix includes for FreeBSD
54782         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54783         since we use abort on some platforms.
54784         Reported by Matthias Bolte.
54786 2011-05-31  Bruno Haible  <bruno@clisp.org>
54788         Fix link errors in tests: openat-die uses gettext-h.
54789         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54790         against $(LIBINTL).
54791         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54792         against $(LIBINTL).
54793         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54794         $(LIBINTL).
54795         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54796         against $(LIBINTL).
54797         * modules/linkat-tests (Makefile.am): Link test-linkat against
54798         $(LIBINTL).
54799         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54800         $(LIBINTL).
54801         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54802         against $(LIBINTL).
54803         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54804         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54805         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54806         $(LIBINTL).
54807         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54808         $(LIBINTL).
54809         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54810         $(LIBINTL).
54811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54813 2011-05-31  Bruno Haible  <bruno@clisp.org>
54815         Fix link errors in tests: wait-process uses gettext-h.
54816         * modules/nonblocking-pipe-tests (Makefile.am): Set
54817         test_nonblocking_pipe_main_LDADD.
54818         * modules/nonblocking-socket-tests (Makefile.am): Link
54819         test-nonblocking-socket-main against $(LIBINTL).
54820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54822 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54824         assert-h: work around 'verify' incompatibility
54825         * lib/verify.h: Use @...@ directives, not ifdef.
54826         * modules/assert-h (assert.h): Implement the directives.
54827         (assert.h): Substitute the symbol-prefix more consistently.
54829 2011-05-29  Jim Meyering  <meyering@redhat.com>
54831         trim: remove three superfluous assignments
54832         * lib/trim.c (trim2): Remove three superfluous assignments
54833         and correct brace positioning.
54835 2011-05-29  Bruno Haible  <bruno@clisp.org>
54837         wctype-h: Avoid namespace pollution on Solaris 2.6.
54838         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54839         identifiers.
54840         * doc/posix-headers/wctype.texi: Mention the problem.
54841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54843 2011-05-28  Jim Meyering  <meyering@redhat.com>
54845         parse-datetime.y: accommodate -Wstrict-overflow
54846         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54847         placate -Wstrict-overflow.
54849         trim: avoid a warning from -O2 -Wstrict-overflow
54850         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54852 2011-05-29  Bruno Haible  <bruno@clisp.org>
54854         gnulib-tool: Fix bug in yesterday's commit.
54855         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54856         twice.
54858 2011-05-29  Bruno Haible  <bruno@clisp.org>
54860         Allow multiple gnulib generated include files to be combined.
54861         * gnulib-tool (func_compute_include_guard_prefix): New function.
54862         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54863         ${gl_include_guard_prefix} references.
54864         (func_import, func_create_testdir): Invoke
54865         func_compute_include_guard_prefix.
54866         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54867         * lib/ctype.in.h: Likewise.
54868         * lib/dirent.in.h: Likewise.
54869         * lib/errno.in.h: Likewise.
54870         * lib/fcntl.in.h: Likewise.
54871         * lib/float.in.h: Likewise.
54872         * lib/getopt.in.h: Likewise.
54873         * lib/iconv.in.h: Likewise.
54874         * lib/langinfo.in.h: Likewise.
54875         * lib/locale.in.h: Likewise.
54876         * lib/math.in.h: Likewise.
54877         * lib/netdb.in.h: Likewise.
54878         * lib/netinet_in.in.h: Likewise.
54879         * lib/poll.in.h: Likewise.
54880         * lib/pthread.in.h: Likewise.
54881         * lib/pty.in.h: Likewise.
54882         * lib/sched.in.h: Likewise.
54883         * lib/se-selinux.in.h: Likewise.
54884         * lib/search.in.h: Likewise.
54885         * lib/signal.in.h: Likewise.
54886         * lib/spawn.in.h: Likewise.
54887         * lib/stdarg.in.h: Likewise.
54888         * lib/stddef.in.h: Likewise.
54889         * lib/stdint.in.h: Likewise.
54890         * lib/stdio.in.h: Likewise.
54891         * lib/stdlib.in.h: Likewise.
54892         * lib/string.in.h: Likewise.
54893         * lib/strings.in.h: Likewise.
54894         * lib/sys_file.in.h: Likewise.
54895         * lib/sys_ioctl.in.h: Likewise.
54896         * lib/sys_select.in.h: Likewise.
54897         * lib/sys_socket.in.h: Likewise.
54898         * lib/sys_stat.in.h: Likewise.
54899         * lib/sys_time.in.h: Likewise.
54900         * lib/sys_times.in.h: Likewise.
54901         * lib/sys_uio.in.h: Likewise.
54902         * lib/sys_utsname.in.h: Likewise.
54903         * lib/sys_wait.in.h: Likewise.
54904         * lib/sysexits.in.h: Likewise.
54905         * lib/termios.in.h: Likewise.
54906         * lib/time.in.h: Likewise.
54907         * lib/unistd.in.h: Likewise.
54908         * lib/wchar.in.h: Likewise.
54909         * lib/wctype.in.h: Likewise.
54910         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54911         * modules/ctype (Makefile.am): Likewise.
54912         * modules/dirent (Makefile.am): Likewise.
54913         * modules/errno (Makefile.am): Likewise.
54914         * modules/fcntl-h (Makefile.am): Likewise.
54915         * modules/float (Makefile.am): Likewise.
54916         * modules/getopt-posix (Makefile.am): Likewise.
54917         * modules/iconv-h (Makefile.am): Likewise.
54918         * modules/langinfo (Makefile.am): Likewise.
54919         * modules/locale (Makefile.am): Likewise.
54920         * modules/math (Makefile.am): Likewise.
54921         * modules/netdb (Makefile.am): Likewise.
54922         * modules/netinet_in (Makefile.am): Likewise.
54923         * modules/poll-h (Makefile.am): Likewise.
54924         * modules/pthread (Makefile.am): Likewise.
54925         * modules/pty (Makefile.am): Likewise.
54926         * modules/sched (Makefile.am): Likewise.
54927         * modules/search (Makefile.am): Likewise.
54928         * modules/selinux-h (Makefile.am): Likewise.
54929         * modules/signal (Makefile.am): Likewise.
54930         * modules/spawn (Makefile.am): Likewise.
54931         * modules/stdarg (Makefile.am): Likewise.
54932         * modules/stddef (Makefile.am): Likewise.
54933         * modules/stdint (Makefile.am): Likewise.
54934         * modules/stdio (Makefile.am): Likewise.
54935         * modules/stdlib (Makefile.am): Likewise.
54936         * modules/string (Makefile.am): Likewise.
54937         * modules/strings (Makefile.am): Likewise.
54938         * modules/sys_file (Makefile.am): Likewise.
54939         * modules/sys_ioctl (Makefile.am): Likewise.
54940         * modules/sys_select (Makefile.am): Likewise.
54941         * modules/sys_socket (Makefile.am): Likewise.
54942         * modules/sys_stat (Makefile.am): Likewise.
54943         * modules/sys_time (Makefile.am): Likewise.
54944         * modules/sys_times (Makefile.am): Likewise.
54945         * modules/sys_uio (Makefile.am): Likewise.
54946         * modules/sys_utsname (Makefile.am): Likewise.
54947         * modules/sys_wait (Makefile.am): Likewise.
54948         * modules/sysexits (Makefile.am): Likewise.
54949         * modules/termios (Makefile.am): Likewise.
54950         * modules/time (Makefile.am): Likewise.
54951         * modules/unistd (Makefile.am): Likewise.
54952         * modules/wchar (Makefile.am): Likewise.
54953         * modules/wctype-h (Makefile.am): Likewise.
54954         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54956 2011-05-29  Bruno Haible  <bruno@clisp.org>
54958         assert-h: Allow multiple gnulib generated replacements to coexist.
54959         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54961 2011-05-29  Bruno Haible  <bruno@clisp.org>
54963         argp: Allow coexistence with strerror_r-posix module.
54964         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54965         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54966         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54967         not the glibc signature.
54969 2011-05-28  Bruno Haible  <bruno@clisp.org>
54971         gnulib-tool: Alternative structure of testdirs, similar to --import.
54972         * gnulib-tool: New option --single-configure.
54973         (func_usage): Document it.
54974         (single_configure): New variable.
54975         (func_modules_transitive_closure_separately,
54976         func_modules_transitive_closure_separately,
54977         func_determine_use_libtests, func_modules_add_dummy_separately,
54978         func_modules_to_filelist_separately): New functions, extracted from
54979         func_import.
54980         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54981         (func_import): Use the new functions.
54982         (func_create_testdir): Set final_modules. Handle $single_configure =
54983         true case.
54985 2011-05-28  Bruno Haible  <bruno@clisp.org>
54987         getloadavg: Remove an unreliable safety check.
54988         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54989         getloadavg.c is in place.
54990         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54991         Reported by Sam Steingold <sds@gnu.org>.
54993 2011-05-28  Bruno Haible  <bruno@clisp.org>
54995         doc: Cleanup yet another file produced by texinfo.tex.
54996         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54998 2011-05-28  Bruno Haible  <bruno@clisp.org>
55000         Finish the conditional dependencies mechanism.
55001         * gnulib-tool: New option --no-conditional-dependencies.
55002         (func_usage): Document it. Don't mark --conditional-dependencies as
55003         experimental.
55004         (cond_dependencies): The possible values can now be true, false, empty.
55005         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55006         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55007         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55009 2011-05-28  Bruno Haible  <bruno@clisp.org>
55011         doc: Use a recent texinfo.tex.
55012         * doc/Makefile (tex_opts): New variable.
55013         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55015 2011-05-28  Jim Meyering  <meyering@redhat.com>
55017         intprops.h: adjust comment to match code change
55018         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55019         only once, it *may* have side effects.  Also fix an unrelated typo.
55020         (_GL_INT_SIGNED): Likewise.
55022 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55024         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55026 2011-05-26  Bruno Haible  <bruno@clisp.org>
55028         mbsrchr: Avoid collision with system function on Interix.
55029         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55030         Reported by Markus Duft <mduft@gentoo.org>.
55032 2011-05-15  James Youngman  <jay@gnu.org>
55034         getopt: for ambiguous options, enumerate the possibilities.
55035         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55036         the ambiguous options when an ambiguous prefix is given. This was
55037         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55038         glibc change was
55039         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55041 2011-05-25  Eric Blake  <eblake@redhat.com>
55043         getcwd: work around mingw bug
55044         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55045         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55046         Reported by Matthias Bolte.
55048 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55050         test-intprops: disable -Wtype-limits diagnostics
55051         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55052         diagnostics.  Otherwise, the integer overflow macros generate many
55053         diagnostics.  Reported by Jim Meyering in
55054         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55056         intprops: shorten, to pacify gcc -Woverlength-strings
55057         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55058         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55059         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55060         likely to run afoul of C compiler limits for string constant lengths.
55061         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55063 2011-05-24  Eric Blake  <eblake@redhat.com>
55065         docs: document recently fixed glibc printf bug
55066         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55067         * doc/posix-functions/printf.texi (printf): Likewise.
55068         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55069         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55071         closein-tests: convert to init.sh
55072         * modules/closein-tests (Files): Add init.sh
55073         * tests/test-closein.sh Use it.
55075         yesno-tests: convert to init.sh
55076         * modules/yesno-tests (Files): Add init.sh.
55077         * tests/test-yesno.sh: Use it.
55079         atexit-tests: ensure reliable exit status
55080         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55081         Reported by Bruno Haible.
55083 2011-05-24  Bruno Haible  <bruno@clisp.org>
55085         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55086         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55087         gl_PREREQ_STRERROR_R invocations from here...
55088         * modules/strerror_r-posix (configure.ac): ... to here.
55090 2011-05-24  Eric Blake  <eblake@redhat.com>
55092         strerror_r: fix missing header
55093         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55095         strerror_r: fix AIX test failures
55096         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55097         ERANGE failure.
55099         strerror_r: fix Solaris test failures
55100         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55101         failures.
55102         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55104         strerror_r: enforce POSIX recommendations
55105         * lib/strerror_r.c (safe_copy): New helper method.
55106         (strerror_r): Guarantee a non-empty string.
55107         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55108         recent POSIX rulings and to match our strerror guarantees.
55109         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55111 2011-05-24  Jim Meyering  <meyering@redhat.com>
55113         test-perror2.c: avoid warning about unused variable
55114         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55116 2011-05-24  Eric Blake  <eblake@redhat.com>
55118         perror: avoid spurious test failure on HP-UX
55119         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55121         tests: fix logic bug in init.sh
55122         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55123         shell.
55125 2011-05-24  Jim Meyering  <meyering@redhat.com>
55127         utimensat: do not reference an out-of-scope buffer
55128         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55129         declared in an inner scope, yet "times" would be dereferenced outside
55130         the scope in which "ts" was valid.
55131         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55132         of ts[2] "out/up", so that the use of aliased "times" (via
55133         "times = ts;") does not end up referencing an out-of-scope "ts"
55135         opendir-safer.c: don't clobber errno; don't close negative FD
55136         * lib/opendir-safer.c (opendir_safer):
55137         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55138         file descriptor, and more importantly, don't clobber the
55139         offending errno value with EINVAL.  Before, upon failure
55140         of dup_safer, we would pass the negative file descriptor to
55141         fdopendir, which would clobber errno.
55143 2011-05-23  Bruno Haible  <bruno@clisp.org>
55145         idcache: Fix module description.
55146         * modules/idcache (Include): Set to "idcache.h".
55148 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55150         gnulib-tool: fix portability problem with MacOS sed
55151         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55152         before the "}".  Problem reported by Leo in
55153         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55154         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55155         sed_extract_condition1, sed_extract_condition2.
55157 2011-05-23  Bruno Haible  <bruno@clisp.org>
55159         hash: Simplify autoconf macro.
55160         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55162 2011-05-23  Bruno Haible  <bruno@clisp.org>
55164         getugroups: Fix module description.
55165         * modules/getugroups (Include): Set to "getugroups.h".
55167 2011-05-23  Bruno Haible  <bruno@clisp.org>
55169         linkat: Simplify autoconf macro.
55170         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55172 2011-05-23  Bruno Haible  <bruno@clisp.org>
55173             Eric Blake  <eblake@redhat.com>
55175         linkat, renameat: Update dependencies.
55176         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55177         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55178         symlinkat.
55180 2011-05-23  Jim Meyering  <meyering@redhat.com>
55182         maint.mk: more tight_scope improvements
55183         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55184         (_gl_TS_headers): Define only in if-0'd block.
55185         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55186         sometimes we must *not* use it.  Adjust uses accordingly.
55187         (sc_tight_scope): Use much simpler grep-based test to determine
55188         whether we skip this rule.
55190         maint.mk: generalize/improve the tight-scope rule
55191         * top/maint.mk: Emit a warning when the test is skipped.
55192         (_gl_TS_dir): Add $(srcdir)/ prefix.
55193         (_gl_TS_function_match): Simplify, rather than trying
55194         to enumerate common types.  Otherwise, it would fail to match an
55195         "extern unsigned char const *" declaration in idutils.
55196         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55197         a way to support use of that type of macro.
55198         (_gl_TS_var_match): Simplify regexp.
55199         (_gl_TS_obj_files): New configurable variable.
55200         (_gl_TS_headers): Likewise.
55202 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55204         verify: fix bug when gnulib <assert.h> is also included
55205         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55206         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55207         Perhaps there's a better way, but this fixes the immediate problem.
55208         Problem reported by Bruno Haible in
55209         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55211 2011-05-22  Bruno Haible  <bruno@clisp.org>
55213         xgetcwd: Simplify autoconf macro.
55214         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55216 2011-05-22  Bruno Haible  <bruno@clisp.org>
55218         New module 'mktime-internal'.
55219         * modules/mktime-internal: New file.
55220         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55221         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55222         mktime_internal as a C macro if libc has __mktime_internal.
55223         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55224         conditions.
55225         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55227 2011-05-22  Bruno Haible  <bruno@clisp.org>
55229         timegm: Correct mktime replacement statements.
55230         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55231         defining mktime as a C macro. This completes a 2009-07-28 commit.
55233 2011-05-22  Bruno Haible  <bruno@clisp.org>
55235         timegm: Simplify autoconf macro.
55236         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55238 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55240         clock-time: change to LGPLv2+.
55241         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55242         BSD-like but we have no mark for that; this is good enough for now.
55244 2011-05-21  Bruno Haible  <bruno@clisp.org>
55246         strerror_r: Fix comments.
55247         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55249 2011-05-21  Bruno Haible  <bruno@clisp.org>
55251         relocatable-prog-wrapper: Fix possible link error.
55252         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55253         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55254         (gl_FUNC_SETENV): ... to here.
55255         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55256         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55258 2011-05-21  Bruno Haible  <bruno@clisp.org>
55260         relocatable-prog-wrapper: Assume strerror() exists.
55261         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55262         m4/strerror.m4.
55263         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55264         * lib/relocwrapper.c: Remove mention of strerror module.
55265         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55266         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55267         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55268         C macro.
55270 2011-05-21  Bruno Haible  <bruno@clisp.org>
55272         select: Simplify replacement idiom.
55273         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55274         Win32 platforms.
55275         * lib/sys_select.in.h (select): Simplify accordingly.
55276         * modules/select (Depends-on): Likewise.
55278 2011-05-21  Bruno Haible  <bruno@clisp.org>
55280         mkdir-p: Simplify autoconf macro.
55281         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55282         gl_FUNC_LCHOWN.
55284 2011-05-21  Eric Blake  <eblake@redhat.com>
55286         strerror_r: avoid clobbering strerror on cygwin
55287         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55288         fall back instead to sys_errlist.
55289         * modules/strerror (configure.ac): Add witness.
55290         * tests/test-strerror_r.c (main): Enhance test.
55291         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55292         * tests/test-perror2.c (main): Free memory before exit.
55294 2011-05-21  Bruno Haible  <bruno@clisp.org>
55296         mkdtemp: Use gnulib naming conventions.
55297         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55298         * modules/mkdtemp (configure.ac): Update.
55300 2011-05-20  Eric Blake  <eblake@redhat.com>
55302         strerror_r: avoid corrupting errno on Solaris
55303         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55304         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55306         strerror_r: avoid compiler warning
55307         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55309         strerror_r: simplify AIX code
55310         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55312         test-perror: avoid spurious failure on FreeBSD
55313         * modules/perror-tests (Depends-on): Add strerror, now that
55314         strerror_r no longer pulls it in.
55316 2011-05-20  Bruno Haible  <bruno@clisp.org>
55318         strerror_r-posix: Remove unused dependencies.
55319         * modules/strerror_r-posix (Depends-on): Remove strerror.
55320         Reported by Eric Blake.
55322 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55324         intprops: remove assumption about A|B representation
55325         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55326         is a valid integer if both A and B are.  Although this is true for
55327         all known practical hosts, the C standard doesn't guarantee it,
55328         and the code need not assume it.  Also, this change may work around
55329         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55330         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55332 2011-05-20  Eric Blake  <eblake@redhat.com>
55334         perror: work around FreeBSD bug
55335         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55336         is broken.  Move AC_LIBOBJ...
55337         * modules/perror (configure.ac): Here.
55338         * doc/posix-functions/perror.texi (perror): Document this.
55339         * tests/test-perror2.c (main): Enhance test.
55341         test-perror: check for strerror interactions
55342         * tests/macros.h (STREQ): Add macro.
55343         * modules/perror-tests (Files): Add second test.
55344         * tests/test-perror2.c (main): New file.
55345         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55347         test-perror: rewrite to use init script
55348         * modules/perror-tests (Files): Add init.sh.
55349         * tests/test-perror.sh: Use temporary directory.
55351 2011-05-20  Jim Meyering  <meyering@redhat.com>
55353         maint: replace misused "a" with "an"
55354         * doc/intprops.texi: "a integer"
55355         * doc/regex.texi: "a explanation"
55356         * lib/alignof.h: "a object"
55357         * lib/argmatch.h: "a explanation"
55358         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55359         * lib/stdint.in.h: "a integer"
55360         * lib/userspec.c: "a owner"
55361         * doc/gnulib.texi: Fix "a idea", and reword.
55363 2011-05-19  Jim Meyering  <meyering@redhat.com>
55365         maint: correct misuse of "a" and "an"
55366         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55367         * lib/argp-help.c: "an docum...": s/an/a/
55368         * lib/argp-parse.c: "An vector": s/An/A/
55369         * lib/execute.c: "an native": s/an/a/
55370         * lib/spawn-pipe.c: Likewise.
55371         * lib/gc.h: "an Gc_rc": s/an/a/
55372         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55373         * lib/fts.c: "an stat.st_dev": s/an/a/
55375 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55377         intprops-tests: work around HP-UX 11.23 cc bug with constants
55378         * tests/test-intprops.c (VERIFY): New macro.
55379         (main): Use it, instead of verify, to work around the compiler bug; see
55380         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55382         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55383         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55384         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55385         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55386         (_GL_REMAINDER_OVERFLOW): Use it.
55388         intprops-tests: revert unsigned part of previous change
55389         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55390         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55391         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55392         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55394 2011-05-19  Bruno Haible  <bruno@clisp.org>
55396         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55397         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55398         strerror_r() returned without filling the buffer.
55399         Reported by Eric Blake.
55401 2011-05-19  Eric Blake  <eblake@redhat.com>
55403         strerror_r: guarantee unchanged errno
55404         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55405         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55406         failure.
55407         * tests/test-strerror_r.c (main): Enhance test.
55409 2011-05-19  Bruno Haible  <bruno@clisp.org>
55411         strerror_r: Reorder #if blocks.
55412         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55413         for consistency with the previous commit.
55415 2011-05-19  Bruno Haible  <bruno@clisp.org>
55417         perror: Avoid clobbering the strerror buffer when possible.
55418         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55419         * lib/strerror.c: Include it.
55420         * modules/strerror (Files): Add lib/strerror-impl.h.
55421         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55422         (my_strerror): New function, defined through lib/strerror-impl.h.
55423         (perror): Use it instead of strerror.
55424         * modules/perror (Files): Add lib/strerror-impl.h.
55425         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55427 2011-05-19  Eric Blake  <eblake@redhat.com>
55429         strerror_r: fix on newer cygwin
55430         * lib/strerror_r.c (strerror_r): Cygwin now has
55431         __xpg_strerror_r, use it.
55433 2011-05-19  Bruno Haible  <bruno@clisp.org>
55435         strerror_r: Avoid clobbering the strerror buffer when possible.
55436         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55437         (sys_nerr, sys_errlist): New declarations.
55438         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55439         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55440         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55442 2011-05-19  Bruno Haible  <bruno@clisp.org>
55444         strerror_r: Fix test failure on mingw.
55445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55446         EXTEND_STRERROR_R.
55447         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55448         macros from errno.in.h instead.
55450 2011-05-19  Eric Blake  <eblake@redhat.com>
55452         strerror: relax test for Solaris
55453         * tests/test-strerror.c (main): Permit Solaris behavior.
55454         * tests/test-strerror_r.c (main): Likewise.
55456         strerror: enforce POSIX ruling on strerror(0)
55457         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55459         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55460         * doc/posix-functions/strerror.texi (strerror): Document it.
55461         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55462         * tests/test-strerror.c (main): Strengthen test.
55463         * tests/test-strerror_r.c (main): Likewise.
55465 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55467         intprop-tests: port to older and more-pedantic compilers
55468         * modules/intprops-tests (Files): Add tests/macros.h.
55469         * tests/test-intprops.c: Include macros.h.
55470         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55471         it's no longer documented to expand to an integer constant expression.
55472         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55473         argument is floating point, as it's no longer documented to expand
55474         to an integer constant expression in that case.
55475         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55476         compiler bugs reported by Bruno Haible.  See
55477         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55478         (U0, U1): New constants, to work around the same bugs.  Also,
55479         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55481         intprops: work around C compiler bugs
55482         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55483         bug in Sun C 5.11 2010/08/13 and other compilers; see
55484         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55486         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55487         * doc/intprops.texi (Integer Type Determination): Fix
55488         documentation for TYPE_IS_INTEGER: it returns an constant
55489         expression, not an integer constant expression.  Fix doc for
55490         TYPE_SIGNED: it returns an integer constant expression only if its
55491         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55492         hardly worth documented that way....)
55494 2011-05-18  Bruno Haible  <bruno@clisp.org>
55496         strerror_r: Avoid clobbering the strerror buffer when possible.
55497         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55498         Handle gnulib defined errno values here. When strerror() returns NULL
55499         or an empty string, return EINVAL.
55500         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55501         gnulib defined errno values here.
55502         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55504 2011-05-18  Eric Blake  <eblake@redhat.com>
55506         fnmatch: avoid compiler warning
55507         * lib/fnmatch_loop.c (FCT): Use correct type.
55508         Reported by Matthias Bolte.
55510 2011-05-13  Jim Meyering  <meyering@redhat.com>
55512         maint.mk: three new prohibit_<HDR>_without_use rules
55513         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55514         (sc_prohibit_stdio-safer_without_use): Likewise.
55515         (sc_prohibit_xfreopen_without_use): Likewise.
55517 2011-05-17  Jim Meyering  <meyering@redhat.com>
55519         announce-gen: fail if the NEWS delta is empty
55520         If there's nothing noteworthy in NEWS, then either you forgot
55521         or you shouldn't be releasing.
55522         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55524 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55526         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55527         reserved symbols starting with double underscore from the check.
55529 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55531         intprops: add doc
55532         * doc/intprops.texi: New file, documenting intprops.
55533         * doc/gnulib.texi (Particular Modules): Include it.
55535         verify: add doc to gnulib manual and fix example
55536         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55537         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55538         (Compile-time Assertions): Fix example so it can't overflow.
55540 2011-05-17  Jim Meyering  <meyering@redhat.com>
55542         warnings.m4: don't usurp save_CPPFLAGS variable name
55543         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55545         doc: fix typo
55546         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55548 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55549             Bruno Haible  <bruno@clisp.org>
55551         doc: Tweak recent change.
55552         * README (Portability guidelines): Tweak new text.
55553         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55554         Interix 6.1.
55556 2011-05-16  Eric Blake  <eblake@redhat.com>
55558         inttypes: avoid autoconf warning
55559         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55560         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55562 2011-05-16  Sam Steingold  <sds@gnu.org>
55563         and Eric Blake  <eblake@redhat.com>
55565         vc-list-files: accept multiple directory operands
55566         * build-aux/vc-list-files: Iterate over all remaining operands.
55568 2011-05-16  Bruno Haible  <bruno@clisp.org>
55570         Fix confusion regarding deprecated modules.
55571         * modules/calloc (Status, Notice): Mark module as deprecated, not
55572         obsolete.
55573         * modules/fnmatch-posix (Status, Notice): Likewise.
55574         * modules/getdate (Status, Notice): Likewise.
55575         * modules/getopt (Status, Notice): Likewise.
55576         * modules/malloc (Status, Notice): Likewise.
55577         * modules/pipe (Status, Notice): Likewise.
55578         * modules/realloc (Status, Notice): Likewise.
55579         * modules/rename-dest-slash (Status, Notice): Likewise.
55580         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55581         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55582         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55583         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55584         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55586 2011-05-16  Bruno Haible  <bruno@clisp.org>
55588         doc: List the target platforms.
55589         * doc/gnulib-intro.texi (Target Platforms): New section.
55590         * doc/gnulib.texi (Introduction): Update menu.
55591         * README (Portability guidelines): Refer to the new section. Update
55592         statement about oldest supported environment. Remove rationale why
55593         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55594         unportable C89 function.
55595         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55596         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55598 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55600         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55602 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55604         intprops-tests: new module
55605         * modules/intprops-tests, tests/test-intprops.c: New files.
55607         intprops: add safe, portable integer overflow checking
55608         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55609         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55610         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55611         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55612         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55613         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55614         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55615         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55616         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55617         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55618         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55620 2011-05-12  James Youngman  <jay@gnu.org>
55622         Add a test for glibc's Bugzilla bug #12378.
55623         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55624         doesn't allow the literal matching of a lone "[" (which is
55625         required by POSIX).
55626         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55628 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55630         Sync glibc change fixing Bugzilla bug #12378.
55631         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55632         beginning and fall back to matching as normal character if the
55633         string ends before the matching ']' is found.  This is what POSIX
55634         requires.
55636 2011-05-13  Eric Blake  <eblake@redhat.com>
55638         getcwd-lgpl: relax test for FreeBSD
55639         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55640         issue.
55641         * tests/test-getcwd-lgpl.c (main): Relax test.
55642         Reported by Matthias Bolte.
55644 2011-05-11  Eric Blake  <eblake@redhat.com>
55646         test-fflush: silence compiler warning
55647         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55649 2011-05-11  Bruno Haible  <bruno@clisp.org>
55651         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55652         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55653         * modules/canonicalize (Depends-on): Add 'nocrash'.
55654         * modules/canonicalize-lgpl (Depends-on): Likewise.
55655         * doc/posix-functions/realpath.texi: Update platforms list.
55656         Reported by Ryan Schmidt <ryandesign@macports.org>.
55658 2011-05-11  Bruno Haible  <bruno@clisp.org>
55660         group-member: Declare function in <unistd.h>.
55661         * lib/unistd.in.h (group_member): New declaration.
55662         * lib/group-member.h: Remove file.
55663         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55664         * tests/test-unistd-c++.cc: Check signature of group_member.
55665         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55666         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55667         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55668         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55669         HAVE_GROUP_MEMBER.
55670         * modules/group-member (Files): Remove lib/group-member.h.
55671         (Depends-on): Add unistd. Specify conditions.
55672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55673         (Include): Change to <unistd.h>.
55674         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55675         HAVE_GROUP_MEMBER.
55676         * NEWS: Mention the change.
55677         * lib/euidaccess.c: Don't include group-member.h.
55679 2011-05-11  Bruno Haible  <bruno@clisp.org>
55681         group-member: Document module.
55682         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55683         module.
55685 2011-05-11  Bruno Haible  <bruno@clisp.org>
55687         fclose: Fix mistake earlier today.
55688         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55690 2011-05-11  Eric Blake  <eblake@redhat.com>
55692         fclose: preserve fflush errors
55693         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55694         Reported by Jim Meyering.
55696         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55697         * build-aux/bootstrap (check_versions): When no specific version
55698         is required, merely check that the app produces an exit status
55699         that indicates its existence.
55701         maint.mk: drop redundant check
55702         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55703         the same but better.
55705 2011-05-11  Bruno Haible  <bruno@clisp.org>
55707         fclose: Fix possible link error.
55708         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55709         unregister_shadow_fd. Improve comments.
55710         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55711         Eric Blake.
55713 2011-05-11  Jim Meyering  <meyering@redhat.com>
55715         maint.mk: improve "can not" detection and generalize rule name
55716         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55717         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55718         Use the same technique as in sc_prohibit_doubled_word, so that
55719         we recognize "can not" also when the words are separated by a newline.
55720         Suggested by Eric Blake.
55721         (perl_filename_lineno_text_): Define.  Factored out of...
55722         (prohibit_doubled_word_): ...here.  Use the new definition.
55723         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55724         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55725         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55727 2011-05-10  Eric Blake  <eblake@redhat.com>
55729         fclose: avoid double close race when possible
55730         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55731         all but WINDOWS_SOCKETS.
55733 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55735         openat: correct new comment
55736         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55738 2011-05-10  Jim Meyering  <meyering@redhat.com>
55740         openat: add comments
55741         * lib/openat-proc.c (openat_proc_name): Add comments,
55742         mostly from Eric Blake.
55744 2011-05-09  Eric Blake  <eblake@redhat.com>
55746         openat: reduce syscalls in first probe of /proc
55747         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55748         be a directory.  Simplify the probe for .. bugs.
55749         * modules/openat (Depends-on): Drop same-inode.
55750         Reported by Bastien ROUCARIES.
55752 2011-05-09  Jim Meyering  <meyering@redhat.com>
55754         maint.mk: change semantics/name of tight_scope variables
55755         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55756         Rename variables to align with semantics that make them more useful.
55758         maint.mk: tweak new rule's name not to impinge
55759         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55760         (sc_tight_scope): Use new rule name rather than $@-0.
55762         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55763         * top/maint.mk (sc_tight_scope): New rule.
55764         (sc_tight_scope-0): New rule, ifdef'd out.
55765         (_gl_TS_dir): Default.
55766         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55767         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55769 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55771         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55772         Haible <bruno@clisp.org>.
55774 2011-05-08  Bruno Haible  <bruno@clisp.org>
55776         Comments.
55777         * m4/isnanf.m4: Add comment.
55778         * m4/isnanl.m4: Likewise.
55780 2011-05-08  Bruno Haible  <bruno@clisp.org>
55782         glob: Remove obsolete macro.
55783         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55785 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55787         intprops: Sun C 5.11 supports __typeof__
55788         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55789         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55790         which is new.
55791         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55793         intprops: switch to usual gnulib indenting and naming
55794         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55795         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55797         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55799 2011-05-08  Jim Meyering  <meyering@redhat.com>
55801         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55802         * top/maint.mk (release-prep): Use make's --no-print-directory
55803         option when generating the announcement.  This eliminates the
55804         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55805         generated announcement template.
55807 2011-05-08  Bruno Haible  <bruno@clisp.org>
55809         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55810         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55811         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55813 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55815         ignore-value, verify: Omit include files from lib_SOURCES.
55816         * modules/ignore-value, modules/verify (Makefile.am):
55817         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55818         that leads Automake to duplicate use of am__objects_... variables
55819         in Makefile.in.  See
55820         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55822 2011-05-07  Bruno Haible  <bruno@clisp.org>
55824         fclose: Simplify autoconf macro.
55825         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55826         defined.
55828 2011-05-07  Bruno Haible  <bruno@clisp.org>
55830         canonicalize-lgpl: Fix autoconf macro ordering bug.
55831         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55832         gl_STDLIB_H_DEFAULTS.
55834 2011-05-06  Eric Blake  <eblake@redhat.com>
55836         maintainer-makefile: make sc_po_check easier to tune
55837         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55838         to probe for strings, such as an alternate location for gnulib.
55840         fclose: guarantee behavior on seekable stdin
55841         * modules/fclose (Depends-on): Add fflush.
55842         * doc/posix-functions/fclose.texi (fclose): Document this.
55843         * tests/test-fclose.c (main): Make test for this unconditional.
55845 2011-05-06  Bruno Haible  <bruno@clisp.org>
55847         fflush, fpurge: Relicense under LGPLv2+.
55848         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55849         * modules/fpurge (License): Likewise.
55850         With permission from Eric Blake and Jim Meyering.
55851         Suggested by Eric Blake.
55853 2011-05-06  Karl Berry  <karl@gnu.org>
55855         * MODULES.html.sh (func_all_modules): remove exit.
55857 2011-05-06  Jim Meyering  <meyering@redhat.com>
55859         maint.mk: use info-gnu@ as the default only for a stable release
55860         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55861         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55862         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55863         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55865 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55867         assert-h: new module, which supports C1X-style static_assert
55868         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55869         * lib/verify.h: Revamp so that this can be copied into assert.h,
55870         while retaining the ability to use it standalone as before.
55871         Rename private identifiers so as not to encroach on the
55872         standard C namespace, since this is now used by assert.h.
55873         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55874         the old verify_true.
55875         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55876         the old verify_true.  Use _GL_VERIFY_TYPE.
55877         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55878         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55879         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55880         defined when this file is copied into the replacement assert.h.
55881         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55882         and _Static_assert is not built in.
55883         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55884         defined, and use the new macros mentioned above.
55885         * doc/posix-headers/assert.texi: Document this.
55887 2011-05-05  Bruno Haible  <bruno@clisp.org>
55889         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55890         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55891         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55892         gl_REPLACE_FCLOSE here.
55893         * modules/fflush (Depends-on): Remove fclose.
55894         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55895         combination with module 'fclose'.
55897 2011-05-05  Bruno Haible  <bruno@clisp.org>
55899         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55900         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55901         gl_FUNC_FFLUSH.
55902         (gl_FUNC_FFLUSH): Use it.
55903         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55904         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55905         gl_REPLACE_FSEEKO here.
55907 2011-05-05  Bruno Haible  <bruno@clisp.org>
55909         tzset: Relicense under LGPL.
55910         * modules/tzset (License): Change to LGPL.
55911         No agreement needed; it's a no-op.
55913         strtoimax, strtoumax: Relicense under LGPL.
55914         * modules/strtoimax (License): Change to LGPL.
55915         * modules/strtoumax (License): Likewise.
55916         With permission from Jim Meyering, Paul Eggert:
55917         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55918         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55920         getgroups: Relicense under LGPL.
55921         * modules/getgroups (License): Change to LGPL.
55922         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55923         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55924         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55925         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55927         nanosleep: Relicense under LGPL.
55928         * modules/nanosleep (License): Change to LGPL.
55929         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55930         Haible:
55931         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55932         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55933         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55934         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55936         futimens: Relicense under LGPL.
55937         * modules/futimens (License): Change to LGPL.
55938         With permission from Eric Blake:
55939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55941         fflush: Relicense under LGPL.
55942         * modules/fflush (License): Change to LGPL.
55943         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55944         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55945         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55946         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55948         tmpfile: Relicense under LGPL.
55949         * modules/tmpfile (License): Change to LGPL.
55950         With permission from Ben Pfaff:
55951         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55953         isfinite: Relicense under LGPL.
55954         * modules/isfinite (License): Change to LGPL.
55955         With permission from Ben Pfaff, Bruno Haible:
55956         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55957         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55959         acosl..tanl: Relicense under LGPL.
55960         * modules/acosl (License): Change to LGPL.
55961         * modules/asinl (License): Likewise.
55962         * modules/atanl (License): Likewise.
55963         * modules/cosl (License): Likewise.
55964         * modules/expl (License): Likewise.
55965         * modules/logl (License): Likewise.
55966         * modules/sinl (License): Likewise.
55967         * modules/sqrtl (License): Likewise.
55968         * modules/tanl (License): Likewise.
55969         Source code originally from glibc and Paolo Bonzini. Agreements:
55970         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55971         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55973 2011-05-05  Bruno Haible  <bruno@clisp.org>
55975         signal: Define sighandler_t.
55976         * lib/signal.in.h (sighandler_t): New type.
55977         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55978         whether sighandler_t is defined.
55979         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55980         * modules/signal (Depends-on): Add extensions.
55981         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55982         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55983         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55985 2011-05-05  Eric Blake  <eblake@redhat.com>
55987         maint: remove useless REPLACE_*_H macros
55988         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55989         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55990         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55991         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55992         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55993         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55994         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55995         * m4/btowc.m4: Update callers.
55996         * m4/dirfd.m4: Likewise.
55997         * m4/duplocale.m4: Likewise.
55998         * m4/fchdir.m4: Likewise.
55999         * m4/fdopendir.m4: Likewise.
56000         * m4/inet_ntop.m4: Likewise.
56001         * m4/inet_pton.m4: Likewise.
56002         * m4/ioctl.m4: Likewise.
56003         * m4/mbrlen.m4: Likewise.
56004         * m4/mbrtowc.m4: Likewise.
56005         * m4/mbsinit.m4: Likewise.
56006         * m4/mbsnrtowcs.m4: Likewise.
56007         * m4/mbsrtowcs.m4: Likewise.
56008         * m4/poll.m4: Likewise.
56009         * m4/setlocale.m4: Likewise.
56010         * m4/wcrtomb.m4: Likewise.
56011         * m4/wcsnrtombs.m4: Likewise.
56012         * m4/wcsrtombs.m4: Likewise.
56013         * m4/wctob.m4: Likewise.
56014         * m4/wcwidth.m4: Likewise.
56015         * modules/posix_spawn: Likewise.
56016         * modules/posix_spawn_file_actions_addclose: Likewise.
56017         * modules/posix_spawn_file_actions_adddup2: Likewise.
56018         * modules/posix_spawn_file_actions_addopen: Likewise.
56019         * modules/posix_spawn_file_actions_destroy: Likewise.
56020         * modules/posix_spawn_file_actions_init: Likewise.
56021         * modules/posix_spawnattr_destroy: Likewise.
56022         * modules/posix_spawnattr_getflags: Likewise.
56023         * modules/posix_spawnattr_getpgroup: Likewise.
56024         * modules/posix_spawnattr_getschedparam: Likewise.
56025         * modules/posix_spawnattr_getschedpolicy: Likewise.
56026         * modules/posix_spawnattr_getsigdefault: Likewise.
56027         * modules/posix_spawnattr_getsigmask: Likewise.
56028         * modules/posix_spawnattr_init: Likewise.
56029         * modules/posix_spawnattr_setflags: Likewise.
56030         * modules/posix_spawnattr_setpgroup: Likewise.
56031         * modules/posix_spawnattr_setschedparam: Likewise.
56032         * modules/posix_spawnattr_setschedpolicy: Likewise.
56033         * modules/posix_spawnattr_setsigdefault: Likewise.
56034         * modules/posix_spawnattr_setsigmask: Likewise.
56035         * modules/posix_spawnp: Likewise.
56037 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56039         Add option to do-release-commit-and-tag to specify branch.
56040         * build-aux/do-release-commit-and-tag: Add --branch.
56042 2011-05-03  Bruno Haible  <bruno@clisp.org>
56044         Avoid unnecessary compilation units, through conditional dependencies.
56045         * modules/accept (Depends-on): Add conditions to the dependencies.
56046         * modules/acosl (Depends-on): Likewise.
56047         * modules/argz (Depends-on): Likewise.
56048         * modules/asinl (Depends-on): Likewise.
56049         * modules/atanl (Depends-on): Likewise.
56050         * modules/atoll (Depends-on): Likewise.
56051         * modules/bind (Depends-on): Likewise.
56052         * modules/btowc (Depends-on): Likewise.
56053         * modules/canonicalize-lgpl (Depends-on): Likewise.
56054         * modules/ceil (Depends-on): Likewise.
56055         * modules/ceilf (Depends-on): Likewise.
56056         * modules/ceill (Depends-on): Likewise.
56057         * modules/chdir-long (Depends-on): Likewise.
56058         * modules/chown (Depends-on): Likewise.
56059         * modules/close (Depends-on): Likewise.
56060         * modules/connect (Depends-on): Likewise.
56061         * modules/cosl (Depends-on): Likewise.
56062         * modules/dirfd (Depends-on): Likewise.
56063         * modules/dprintf (Depends-on): Likewise.
56064         * modules/dprintf-posix (Depends-on): Likewise.
56065         * modules/error (Depends-on): Likewise.
56066         * modules/euidaccess (Depends-on): Likewise.
56067         * modules/expl (Depends-on): Likewise.
56068         * modules/faccessat (Depends-on): Likewise.
56069         * modules/fchdir (Depends-on): Likewise.
56070         * modules/fclose (Depends-on): Likewise.
56071         * modules/fcntl (Depends-on): Likewise.
56072         * modules/fdopendir (Depends-on): Likewise.
56073         * modules/fflush (Depends-on): Likewise.
56074         * modules/floor (Depends-on): Likewise.
56075         * modules/floorf (Depends-on): Likewise.
56076         * modules/floorl (Depends-on): Likewise.
56077         * modules/fnmatch (Depends-on): Likewise.
56078         * modules/fopen (Depends-on): Likewise.
56079         * modules/fprintf-posix (Depends-on): Likewise.
56080         * modules/frexp (Depends-on): Likewise.
56081         * modules/frexp-nolibm (Depends-on): Likewise.
56082         * modules/frexpl (Depends-on): Likewise.
56083         * modules/frexpl-nolibm (Depends-on): Likewise.
56084         * modules/fseek (Depends-on): Likewise.
56085         * modules/fsusage (Depends-on): Likewise.
56086         * modules/ftell (Depends-on): Likewise.
56087         * modules/ftello (Depends-on): Likewise.
56088         * modules/futimens (Depends-on): Likewise.
56089         * modules/getcwd (Depends-on): Likewise.
56090         * modules/getcwd-lgpl (Depends-on): Likewise.
56091         * modules/getdelim (Depends-on): Likewise.
56092         * modules/getdomainname (Depends-on): Likewise.
56093         * modules/getgroups (Depends-on): Likewise.
56094         * modules/gethostname (Depends-on): Likewise.
56095         * modules/getline (Depends-on): Likewise.
56096         * modules/getlogin_r (Depends-on): Likewise.
56097         * modules/getopt-posix (Depends-on): Likewise.
56098         * modules/getpeername (Depends-on): Likewise.
56099         * modules/getsockname (Depends-on): Likewise.
56100         * modules/getsockopt (Depends-on): Likewise.
56101         * modules/getsubopt (Depends-on): Likewise.
56102         * modules/getusershell (Depends-on): Likewise.
56103         * modules/glob (Depends-on): Likewise.
56104         * modules/grantpt (Depends-on): Likewise.
56105         * modules/iconv_open (Depends-on): Likewise.
56106         * modules/iconv_open-utf (Depends-on): Likewise.
56107         * modules/inet_ntop (Depends-on): Likewise.
56108         * modules/inet_pton (Depends-on): Likewise.
56109         * modules/ioctl (Depends-on): Likewise.
56110         * modules/isapipe (Depends-on): Likewise.
56111         * modules/isfinite (Depends-on): Likewise.
56112         * modules/isinf (Depends-on): Likewise.
56113         * modules/lchown (Depends-on): Likewise.
56114         * modules/ldexpl (Depends-on): Likewise.
56115         * modules/link (Depends-on): Likewise.
56116         * modules/linkat (Depends-on): Likewise.
56117         * modules/listen (Depends-on): Likewise.
56118         * modules/logl (Depends-on): Likewise.
56119         * modules/lstat (Depends-on): Likewise.
56120         * modules/mbrlen (Depends-on): Likewise.
56121         * modules/mbrtowc (Depends-on): Likewise.
56122         * modules/mbsinit (Depends-on): Likewise.
56123         * modules/mbsnrtowcs (Depends-on): Likewise.
56124         * modules/mbsrtowcs (Depends-on): Likewise.
56125         * modules/mbtowc (Depends-on): Likewise.
56126         * modules/memcmp (Depends-on): Likewise.
56127         * modules/mkdir (Depends-on): Likewise.
56128         * modules/mkdtemp (Depends-on): Likewise.
56129         * modules/mkfifo (Depends-on): Likewise.
56130         * modules/mkfifoat (Depends-on): Likewise.
56131         * modules/mknod (Depends-on): Likewise.
56132         * modules/mkostemp (Depends-on): Likewise.
56133         * modules/mkostemps (Depends-on): Likewise.
56134         * modules/mkstemp (Depends-on): Likewise.
56135         * modules/mkstemps (Depends-on): Likewise.
56136         * modules/mktime (Depends-on): Likewise.
56137         * modules/nanosleep (Depends-on): Likewise.
56138         * modules/open (Depends-on): Likewise.
56139         * modules/openat (Depends-on): Likewise.
56140         * modules/perror (Depends-on): Likewise.
56141         * modules/poll (Depends-on): Likewise.
56142         * modules/popen (Depends-on): Likewise.
56143         * modules/posix_spawn (Depends-on): Likewise.
56144         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56145         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56146         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56147         * modules/posix_spawnp (Depends-on): Likewise.
56148         * modules/pread (Depends-on): Likewise.
56149         * modules/printf-posix (Depends-on): Likewise.
56150         * modules/ptsname (Depends-on): Likewise.
56151         * modules/putenv (Depends-on): Likewise.
56152         * modules/pwrite (Depends-on): Likewise.
56153         * modules/readline (Depends-on): Likewise.
56154         * modules/readlink (Depends-on): Likewise.
56155         * modules/readlinkat (Depends-on): Likewise.
56156         * modules/recv (Depends-on): Likewise.
56157         * modules/recvfrom (Depends-on): Likewise.
56158         * modules/regex (Depends-on): Likewise.
56159         * modules/remove (Depends-on): Likewise.
56160         * modules/rename (Depends-on): Likewise.
56161         * modules/renameat (Depends-on): Likewise.
56162         * modules/rmdir (Depends-on): Likewise.
56163         * modules/round (Depends-on): Likewise.
56164         * modules/roundf (Depends-on): Likewise.
56165         * modules/roundl (Depends-on): Likewise.
56166         * modules/rpmatch (Depends-on): Likewise.
56167         * modules/select (Depends-on): Likewise.
56168         * modules/send (Depends-on): Likewise.
56169         * modules/sendto (Depends-on): Likewise.
56170         * modules/setenv (Depends-on): Likewise.
56171         * modules/setlocale (Depends-on): Likewise.
56172         * modules/setsockopt (Depends-on): Likewise.
56173         * modules/shutdown (Depends-on): Likewise.
56174         * modules/sigaction (Depends-on): Likewise.
56175         * modules/signbit (Depends-on): Likewise.
56176         * modules/sigprocmask (Depends-on): Likewise.
56177         * modules/sinl (Depends-on): Likewise.
56178         * modules/sleep (Depends-on): Likewise.
56179         * modules/snprintf (Depends-on): Likewise.
56180         * modules/snprintf-posix (Depends-on): Likewise.
56181         * modules/socket (Depends-on): Likewise.
56182         * modules/sprintf-posix (Depends-on): Likewise.
56183         * modules/sqrtl (Depends-on): Likewise.
56184         * modules/stat (Depends-on): Likewise.
56185         * modules/strchrnul (Depends-on): Likewise.
56186         * modules/strdup-posix (Depends-on): Likewise.
56187         * modules/strerror (Depends-on): Likewise.
56188         * modules/strerror_r-posix (Depends-on): Likewise.
56189         * modules/strndup (Depends-on): Likewise.
56190         * modules/strnlen (Depends-on): Likewise.
56191         * modules/strptime (Depends-on): Likewise.
56192         * modules/strsep (Depends-on): Likewise.
56193         * modules/strsignal (Depends-on): Likewise.
56194         * modules/strstr-simple (Depends-on): Likewise.
56195         * modules/strtod (Depends-on): Likewise.
56196         * modules/strtoimax (Depends-on): Likewise.
56197         * modules/strtok_r (Depends-on): Likewise.
56198         * modules/strtoumax (Depends-on): Likewise.
56199         * modules/symlink (Depends-on): Likewise.
56200         * modules/symlinkat (Depends-on): Likewise.
56201         * modules/tanl (Depends-on): Likewise.
56202         * modules/tcgetsid (Depends-on): Likewise.
56203         * modules/tmpfile (Depends-on): Likewise.
56204         * modules/trunc (Depends-on): Likewise.
56205         * modules/truncf (Depends-on): Likewise.
56206         * modules/truncl (Depends-on): Likewise.
56207         * modules/uname (Depends-on): Likewise.
56208         * modules/unlink (Depends-on): Likewise.
56209         * modules/unlockpt (Depends-on): Likewise.
56210         * modules/unsetenv (Depends-on): Likewise.
56211         * modules/usleep (Depends-on): Likewise.
56212         * modules/utimensat (Depends-on): Likewise.
56213         * modules/vasprintf (Depends-on): Likewise.
56214         * modules/vdprintf (Depends-on): Likewise.
56215         * modules/vdprintf-posix (Depends-on): Likewise.
56216         * modules/vfprintf-posix (Depends-on): Likewise.
56217         * modules/vprintf-posix (Depends-on): Likewise.
56218         * modules/vsnprintf (Depends-on): Likewise.
56219         * modules/vsnprintf-posix (Depends-on): Likewise.
56220         * modules/vsprintf-posix (Depends-on): Likewise.
56221         * modules/wcrtomb (Depends-on): Likewise.
56222         * modules/wcscasecmp (Depends-on): Likewise.
56223         * modules/wcscspn (Depends-on): Likewise.
56224         * modules/wcsdup (Depends-on): Likewise.
56225         * modules/wcsncasecmp (Depends-on): Likewise.
56226         * modules/wcsnrtombs (Depends-on): Likewise.
56227         * modules/wcspbrk (Depends-on): Likewise.
56228         * modules/wcsrtombs (Depends-on): Likewise.
56229         * modules/wcsspn (Depends-on): Likewise.
56230         * modules/wcsstr (Depends-on): Likewise.
56231         * modules/wcstok (Depends-on): Likewise.
56232         * modules/wcswidth (Depends-on): Likewise.
56233         * modules/wctob (Depends-on): Likewise.
56234         * modules/wctomb (Depends-on): Likewise.
56235         * modules/wctype (Depends-on): Likewise.
56236         * modules/wcwidth (Depends-on): Likewise.
56237         * modules/write (Depends-on): Likewise.
56239 2011-05-03  Bruno Haible  <bruno@clisp.org>
56241         Support for conditional dependencies.
56242         * doc/gnulib.texi (Module description): Document the syntax of
56243         conditional dependencies.
56244         * gnulib-tool: New option --conditional-dependencies.
56245         (func_usage): Document it.
56246         (cond_dependencies): New variable.
56247         (func_get_automake_snippet_conditional,
56248         func_get_automake_snippet_unconditional): New functions, extracted from
56249         func_get_automake_snippet.
56250         (func_get_automake_snippet): Use them.
56251         (sed_first_32_chars): New variable.
56252         (func_module_shellfunc_name): New function.
56253         (func_module_shellvar_name): New function.
56254         (func_module_conditional_name): New function.
56255         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56256         func_cond_module_condition): New functions.
56257         (func_modules_transitive_closure): Add support for conditional
56258         dependencies.
56259         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56260         conditional automake snippet in an automake conditional.
56261         (func_emit_autoconf_snippets): Emit shell functions that contain the
56262         code for conditional modules.
56263         (func_import, func_create_testdir): Update specification.
56265 2011-05-03  Eric Blake  <eblake@redhat.com>
56267         test-getaddrinfo: report error information
56268         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56270 2011-05-03  Jim Meyering  <meyering@redhat.com>
56272         bootstrap: avoid build failure when $GZIP is set
56273         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56274         program name.  If defined at all, it is supposed to list gzip options.
56275         Reported by Alan Curry in http://debbugs.gnu.org/8609
56277 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56279         readme-release: new module with release instructions
56280         * modules/readme-release: New module.
56281         * top/README-release: New file, from coreutils, grep, diffutils.
56282         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56284 2011-05-02  Eric Blake  <eblake@redhat.com>
56286         fflush: also replace fclose when fixing fflush
56287         * modules/fflush (Depends-on): Add fclose.
56288         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56289         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56290         memstreams with no backing fd.
56291         * doc/posix-functions/fclose.texi (fclose): Document the use of
56292         fflush module to fix the bug.
56293         * tests/test-fclose.c (main): Relax test when fclose is used in
56294         isolation.
56296         fclose: add some tests
56297         * modules/fclose-tests: New test module.
56298         * tests/test-fclose.c: New file.
56299         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56301         fclose: reduced dependencies
56302         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56303         simpler lseek.
56304         * lib/fclose.c (rpl_fclose): Likewise.
56305         Reported by Simon Josefsson.
56307         exit: drop remaining clients
56308         * modules/argmatch (Depends-on): Replace exit with stdlib.
56309         * modules/copy-file (Depends-on): Likewise.
56310         * modules/execute (Depends-on): Likewise.
56311         * modules/exitfail (Depends-on): Likewise.
56312         * modules/obstack (Depends-on): Likewise.
56313         * modules/pagealign_alloc (Depends-on): Likewise.
56314         * modules/pipe-filter-gi (Depends-on): Likewise.
56315         * modules/pipe-filter-ii (Depends-on): Likewise.
56316         * modules/savewd (Depends-on): Likewise.
56317         * modules/spawn-pipe (Depends-on): Likewise.
56318         * modules/wait-process (Depends-on): Likewise.
56319         * modules/xsetenv (Depends-on): Likewise.
56320         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56321         * modules/git-merge-changelog (Depends-on): Likewise.
56322         * modules/long-options (Depends-on): Likewise.
56323         * modules/pt_chown (Depends-on): Likewise.
56324         * modules/sysexits (Depends-on): Likewise.
56326         freading: relax license from LGPLv3+ to LGPLv2+
56327         * modules/freading (License): Relax LGPL version.
56329 2011-05-02  Bruno Haible  <bruno@clisp.org>
56331         fchdir: Remove unused dependencies.
56332         * modules/fchdir (Depends-on): Remove include_next.
56334 2011-05-02  Bruno Haible  <bruno@clisp.org>
56336         gnulib-tool: Refactor.
56337         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56338         from func_emit_autoconf_snippets.
56339         (func_emit_autoconf_snippets): Use it.
56341 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56343         * NEWS: Document removal of 'exit'.
56344         * modules/exit: Remove file.
56346 2011-05-01  Bruno Haible  <bruno@clisp.org>
56348         Update DEPENDENCIES.
56349         * DEPENDENCIES (gettext): Recommend the newest release.
56350         Reported by Simon Josefsson.
56352 2011-05-01  Bruno Haible  <bruno@clisp.org>
56354         gnulib-tool: Reduce code duplication.
56355         * gnulib-tool (func_emit_autoconf_snippets): New function.
56356         (func_import, func_create_testdir): Use it.
56358 2011-04-30  Eric Blake  <eblake@redhat.com>
56360         fclose: don't fail on non-seekable input stream
56361         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56362         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56363         since fflush is allowed to fail in that case.
56365 2011-04-30  Bruno Haible  <bruno@clisp.org>
56367         dup3: cleanup
56368         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56370 2011-04-30  Bruno Haible  <bruno@clisp.org>
56372         netdb: Make it work in C++ mode.
56373         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56374         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56375         module.
56376         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56377         gl_MODULE_INDICATOR_FOR_TESTS.
56378         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56379         * modules/netdb-c++-tests: New file.
56380         * tests/test-netdb-c++.cc: New file.
56382 2011-04-30  Bruno Haible  <bruno@clisp.org>
56384         New modules 'vfscanf', 'vscanf'.
56385         * modules/vfscanf: New file.
56386         * modules/vscanf: New file.
56387         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56388         here.
56389         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56390         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56392 2011-04-30  Bruno Haible  <bruno@clisp.org>
56394         passfd: Add comments.
56395         * lib/passfd.c: Add comments about platforms.
56397 2011-04-30  Bruno Haible  <bruno@clisp.org>
56399         sys_uio: Make <sys/uio.h> self-contained.
56400         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56401         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56403 2011-04-30  Bruno Haible  <bruno@clisp.org>
56405         sys_socket: Ensure 'struct iovec' definition.
56406         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56407         <sys/socket.h>.
56408         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56410 2011-04-30  Bruno Haible  <bruno@clisp.org>
56412         sys_uio: Protect definition of 'struct iovec'.
56413         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56414         it as a C struct.
56416 2011-04-30  Bruno Haible  <bruno@clisp.org>
56418         manywarnings: fix indentation
56419         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56421 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56423         manywarnings: add -Wno-missing-field-initializers if needed.
56424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56425         option if it's needed to allow initialization with { 0, }
56427 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56429         announce-gen: cosmetic improvement
56430         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56432 2011-04-29  Jim Meyering  <meyering@redhat.com>
56434         vc-list-files: indent with spaces, not TABs
56435         * build-aux/vc-list-files: Convert leading TABs to spaces,
56436         to match the style of most other files in gnulib.
56438         announce-gen: indent with spaces, not TABs
56439         * build-aux/announce-gen: Convert all TABs to spaces, to match
56440         the style of most other files in gnulib.
56442 2011-04-29  Eric Blake  <eblake@redhat.com>
56444         quotearg: avoid uninitialized variable use
56445         * lib/quotearg.c (quoting_options_from_style): Initialize
56446         remaining fields, and ensure that custom styles are only used via
56447         quoting_options rather than quoting_style.
56449 2011-04-29  Jim Meyering  <meyering@redhat.com>
56451         maint.mk: remove unused VC-tag variable
56452         * top/maint.mk (VC-tag): Remove unused variable.
56454 2011-04-29  Bruno Haible  <bruno@clisp.org>
56456         netdb: fix gai_strerror replacements
56457         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56458         * modules/netdb: Substitute it.
56460 2011-04-29  Jim Meyering  <meyering@redhat.com>
56462         test-getcwd.c: avoid new set-but-not-used warning
56463         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56464         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56465         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56466         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56468         test-hash.c: avoid a new shadowing warning
56469         * tests/test-hash.c (main): Don't shadow "dup".
56471 2011-04-28  Eric Blake  <eblake@redhat.com>
56473         getaddrinfo: fix gai_strerror signature
56474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56475         and work around mingw with UNICODE defined.
56476         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56477         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56478         * modules/netdb (Makefile.am): Substitute it.
56479         * lib/netdb.in.h (gai_strerror): Declare replacement.
56480         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56481         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56482         the fix.
56484         getsockopt: avoid compiler warning
56485         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56486         Reported by Matthias Bolte.
56488         tests: drop unused link dependency
56489         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56490         * modules/dirent-safer-tests (Makefile.am): Likewise.
56491         * modules/fdopendir-tests (Makefile.am): Likewise.
56492         * modules/mkfifoat-tests (Makefile.am): Likewise.
56493         * modules/openat-safer-tests (Makefile.am): Likewise.
56494         * modules/openat-tests (Makefile.am): Likewise.
56495         * modules/readlinkat-tests (Makefile.am): Likewise.
56496         * modules/symlinkat-tests (Makefile.am): Likewise.
56497         * modules/linkat-tests (Makefile.am): Likewise.
56498         (Depends-on): Switch to filenamecat-lgpl.
56499         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56500         LIBINTL.
56501         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56502         * tests/test-linkat.c (main): Don't require xalloc.
56504         hash, mgetgroups: drop xalloc dependency
56505         * lib/hash.c (includes): Adjust includes.
56506         * lib/mgetgroups.c (includes): Likewise.
56507         (xgetgroups): Move...
56508         * lib/xgetgroups.c: ...to new file.
56509         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56510         * modules/xgetgroups: New file, split from...
56511         * modules/mgetgroups: ...here.
56512         (Depends-on): Add xalloc-oversized.
56513         * modules/hash (Depends-on): Likewise.
56514         * modules/hash-tests (Depends-on): Drop xalloc.
56515         (test_hash_LDADD): Drop unused library.
56516         * tests/test-hash.c (main): Break xalloc dependency.
56517         (includes): Drop unused include.
56519         xalloc-oversized: new module
56520         * modules/xalloc-oversized: New module.
56521         * modules/xalloc (Depends-on): Add it.
56522         * lib/xalloc.h (xalloc_oversized): Move...
56523         * lib/xalloc-oversized.h: ...into new file.
56525         utimecmp: drop dependency on xmalloc
56526         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56527         due to memory pressure.
56528         * modules/utimecmp (Depends-on): Drop xalloc.
56530 2011-04-27  Eric Blake  <eblake@redhat.com>
56532         getcwd: fix mingw bugs
56533         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56534         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56535         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56537 2011-04-27  Bruno Haible  <bruno@clisp.org>
56539         mkstemps: Ensure declaration on MacOS X 10.5.
56540         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56541         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56542         MacOS X.
56544 2011-04-27  Bruno Haible  <bruno@clisp.org>
56546         mkstemp: More documentation.
56547         * doc/posix-functions/mkstemp.texi: Document header file problem on
56548         MacOS X.
56550 2011-04-27  Bruno Haible  <bruno@clisp.org>
56552         mkstemp: Tweak configure message when cross-compiling.
56553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56554         result as a guess.
56556 2011-04-27  Bruno Haible  <bruno@clisp.org>
56558         clean-temp: Clarify what it does.
56559         * lib/clean-temp.h: Add more comments.
56560         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56561         module.
56562         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56563         * doc/glibc-functions/mkstemps.texi: Likewise.
56564         * doc/glibc-functions/mkostemps.texi: Likewise.
56566 2011-04-27  Eric Blake  <eblake@redhat.com>
56568         fchdir: avoid extra chdir and fix test
56569         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56570         getcwd-lgpl.
56571         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56572         have to be canonical.
56573         (canonicalize_file_name): Drop unused macro.
56574         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56576         filenamecat-lgpl: fix licence
56577         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56578         when it was first created.
56580         linkat, renameat: add missing dependency
56581         * modules/linkat (Depends-on): Require getcwd-lgpl.
56582         * modules/renameat (Depends-on): Likewise.
56584         tests: reduce dependencies
56585         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56586         * tests/test-renameat.c (main): Likewise.
56587         * modules/linkat-tests (Depends-on): Relax dependency.
56588         * modules/renameat-tests (Depends-on): Likewise.
56589         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56590         dependency explicit.
56592         save-cwd: reduce default dependency
56593         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56594         * lib/save-cwd.c: Update comments.
56595         * NEWS: Document the semantic change.
56597         getcwd: enhance tests
56598         * tests/test-getcwd-lgpl.c: New file, taken from...
56599         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56600         repeat long path stress tests from m4 probe.
56601         * modules/getcwd-lgpl-tests: New module.
56602         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56603         * m4/getcwd-abort-bug.m4: Update comment.
56604         * m4/getcwd-path-max.m4: Likewise.
56606         getcwd-lgpl: new module
56607         * modules/getcwd-lgpl: New module.
56608         * lib/getcwd-lgpl.c: New file.
56609         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56610         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56611         * modules/getcwd (configure.ac): Set C witness.
56612         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56614         getcwd: tweak comments
56615         * m4/getcwd-abort-bug.m4: Fix comments.
56616         * m4/getcwd-path-max.m4: Likewise.
56617         * m4/getcwd.m4: Likewise.
56619 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56620         and Eric Blake  <eblake@redhat.com>
56622         mkstemp: replace if system version uses wrong permissions
56623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56624         read/write mode bits set in file created by mkstemp.
56625         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56627 2011-04-27  Eric Blake  <eblake@redhat.com>
56629         passfd: avoid compiler warning
56630         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56631         Reported by Laine Stump.
56633 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56635         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56636         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56638 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56639         and Eric Blake  <eblake@redhat.com>
56641         mkstemp: mention clean-temp module
56642         * lib/mkstemp.c: Add comment.
56643         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56645 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56647         inttypes: also provide default values for 32-bit tests
56648         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56649         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56651 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56653         strtoumax: remove dependency on strtoimax
56654         This is like the strtoull change of yesterday.
56655         * modules/strtoumax (Files): Add lib/strtoimax.c.
56656         (Depends-on): Remove strtoimax and add verify.
56658         inttypes-incomplete: new module
56659         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56660         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56661         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56662         of gl_INTTYPES_H.
56663         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56664         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56665         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56666         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56667         * modules/strtoumax, modules/xstrtol (Depends-on):
56668         Depend on inttypes-incomplete, not inttypes.
56669         * modules/inttypes-incomplete: New module, containing the contents
56670         of the old modules/inttypes module, except that the Files: section
56671         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56672         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56673         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56674         (Depends-on): Depend only on inttypes-incomplete.
56675         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56677         inttypes: omit now-redundant strtoimax and strtoumax work
56678         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56679         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56681         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56682         This supports apps that need pointers to strtoimax and strtoumax,
56683         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56684         nonexistent functions.  See
56685         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56686         et seq.
56687         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56688         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56689         a macro.
56690         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56692 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56694         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56696 2011-04-25  Bruno Haible  <bruno@clisp.org>
56698         strtol, strtoul: Mark modules as obsolete.
56699         * modules/strtol (Status, Notice): New sections.
56700         * modules/strtoul (Status, Notice): New sections.
56702 2011-04-25  Bruno Haible  <bruno@clisp.org>
56704         strtod: Remove check for strtod, unless supporting old platforms.
56705         * modules/strtod-obsolete: New file.
56706         * m4/strtod-obsolete.m4: New file.
56707         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56708         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56709         * modules/strtod (Depends-on): Add strtod-obsolete.
56710         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56712 2011-04-25  Bruno Haible  <bruno@clisp.org>
56714         strcase: Make module obsolete.
56715         * modules/strcase (Status, Notice): New sections.
56717 2011-04-25  Bruno Haible  <bruno@clisp.org>
56719         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56720         * modules/dup2-obsolete: New file.
56721         * m4/dup2-obsolete.m4: New file.
56722         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56723         gl_FUNC_DUP2_OBSOLETE is not also defined.
56724         * modules/dup2 (Depends-on): Add dup2-obsolete.
56725         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56727 2011-04-25  Bruno Haible  <bruno@clisp.org>
56729         strnlen: Avoid memchr related link error on old obsolete platforms.
56730         * modules/memchr-obsolete: New file.
56731         * m4/memchr-obsolete.m4: New file.
56732         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56733         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56734         * modules/memchr (Depends-on): Add memchr-obsolete.
56735         * modules/strnlen (Depends-on): Likewise.
56736         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56738 2011-04-25  Jim Meyering  <meyering@redhat.com>
56740         maint.mk: makefile_at_at_check extend and clean up
56741         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56742         in addition to */Makefile.am.
56743         Exempt legitimate uses of @VAR@ notation, e.g.,
56744         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56745         Remove obsolete coreutils-specific comment.
56746         Prompted by discussion here:
56747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56749 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56751         strtoul: remove dependency on strtol
56752         This is so that 'configure' need not check for strtol merely because
56753         the application needs strtoul.
56754         * modules/strtoul (Files): Add lib/strtol.c.
56755         (Depends-on): Remove strtol.
56757         strtoull: remove dependency on strtoul
56758         This is like the strtoll change.
56759         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56760         (Depends-on): Remove strtoul.
56762         strtoll: remove dependency on strtol
56763         This is so that 'configure' need not check for strtol merely because
56764         the application needs strtoll.
56765         * modules/strtoll (Files): Add lib/strtol.c.
56766         (Depends-on): Remove strtol.
56768 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56770         inttypes: Move some configure check to module 'imaxdiv'.
56771         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56772         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56773         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56775 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56777         inttypes: Move some configure check to module 'imaxabs'.
56778         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56779         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56780         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56782 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56784         inttypes: Remove configure tests that are not needed since 2009-12-31.
56785         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56786         gl_cv_header_working_inttypes_h.
56788 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56790         * modules/strnlen (Depends-on): Remove memchr.
56791         The strnlen implementation doesn't need the memchr module's fixes; see
56792         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56794         strtol: remove dependency on wchar
56795         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56796         * modules/strtol (Depends-on): Remove wchar.
56798 2011-04-21  Eric Blake  <eblake@redhat.com>
56800         passfd: fix test regression on Linux
56801         * modules/passfd-tests (configure.ac): Correct socketpair check.
56803         passfd: speed up configure and drop unused code
56804         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56805         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56806         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56807         Instead of probing at configure for unix_scm_rights_bsd44_way,
56808         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56809         check to a struct member probe.
56810         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56811         (sendfd, recvfd): Update preprocessor checks.
56812         * modules/passfd (Files): Reflect rename, and drop unused file.
56813         (Depends-on): Drop unused dependency.
56815         passfd: allow compilation on mingw
56816         * modules/sys_socket (Depends-on): Add sys_uio.
56817         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56818         iovec and a minimal struct msghdr.
56819         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56820         * tests/test-sys_socket.c (main): Enhance test.
56821         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56822         guaranteed to provide what we need.
56823         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56824         * modules/passfd-tests (Depends-on): Add sys_wait.
56825         * tests/test-passfd.c (main): Skip test on mingw, for now.
56826         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56827         partial 'struct msghdr' implementation.
56829         sys_uio: new module
56830         * modules/sys_uio: New module.
56831         * modules/sys_uio-tests: Likewise.
56832         * lib/sys_uio.in.h: New file.
56833         * m4/sys_uio_h.m4: Likewise.
56834         * tests/test-sys_uio.c: Likewise.
56835         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56836         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56838 2011-04-20  Jim Meyering  <meyering@redhat.com>
56840         useless-if-before-free: avoid false-positive
56841         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56842         disjunct so that it too requires a terminating ";".  Without that,
56843         this script would identify as useless one statement from gcc that
56844         was not:
56845           if (aligned_ptr)
56846             free (((void **) aligned_ptr) [-1]);
56848 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56850         doc: update users.txt.
56851         * users.txt: Add barcode.
56853 2011-04-19  Bruno Haible  <bruno@clisp.org>
56855         ioctl: Remove link dependency on native Windows.
56856         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56857         (gl_close_fn, gl_ioctl_fn): New types.
56858         (struct fd_hook): Renamed from struct close_hook. Change type of
56859         private_close_fn field. Add private_ioctl_fn field.
56860         (close_hook_fn): Add parameter for primary close method.
56861         (execute_close_hooks, execute_all_close_hooks): Likewise.
56862         (ioctl_hook_fn): New type.
56863         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56864         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56865         argument.
56866         (unregister_fd_hook): Renamed from unregister_close_hook.
56867         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56868         Don't include <unistd.h>.
56869         (close): Remove undef.
56870         (anchor): Update.
56871         (execute_close_hooks): Add argument for primary close method.
56872         (execute_all_close_hooks): Likewise.
56873         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56874         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56875         argument. Allow each argument to be NULL.
56876         (unregister_fd_hook): Renamed from unregister_close_hook.
56877         * lib/close.c (rpl_close): Pass 'close' function pointer to
56878         execute_all_close_hooks.
56879         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56880         (primary_ioctl): New function.
56881         (ioctl): Don't call ioctlsocket here. Instead, call
56882         execute_all_ioctl_hooks.
56883         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56884         close method.
56885         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56886         (fd_sockets_hook): Renamed from close_sockets_hook.
56887         (gl_sockets_startup, gl_sockets_cleanup): Update.
56888         * modules/fd-hook: Renamed from modules/close-hook. Update.
56889         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56890         * modules/sockets (Depends-on): Likewise.
56891         * modules/ioctl (Depends-on): Add fd-hook.
56892         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56893         GNULIB_SOCKET.
56895 2011-04-19  Bruno Haible  <bruno@clisp.org>
56897         Move the support of O_NONBLOCK in open() to the 'open' module.
56898         * modules/nonblocking (Depends-on): Remove 'open'.
56899         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56900         gl_cv_have_open_O_NONBLOCK.
56901         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56902         O_NONBLOCK support.
56903         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56905 2011-04-17  Bruno Haible  <bruno@clisp.org>
56907         pipe2: Simplify code.
56908         * lib/pipe2.c (pipe2): Reduce code duplication.
56910 2011-04-17  Bruno Haible  <bruno@clisp.org>
56912         nonblocking: Add comment.
56913         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56915 2011-04-17  Bruno Haible  <bruno@clisp.org>
56917         nonblocking: Add tests for sockets.
56918         * tests/test-nonblocking-socket.sh: New file.
56919         * tests/test-nonblocking-socket-main.c: New file.
56920         * tests/test-nonblocking-socket-child.c: New file.
56921         * tests/test-nonblocking-socket.h: New file.
56922         * tests/socket-server.h: New file.
56923         * tests/socket-client.h: New file.
56924         * modules/nonblocking-socket-tests: New file.
56925         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56927 2011-04-17  Bruno Haible  <bruno@clisp.org>
56929         nonblocking: Add tests for pipes.
56930         * tests/test-nonblocking-pipe.sh: New file.
56931         * tests/test-nonblocking-pipe-main.c: New file.
56932         * tests/test-nonblocking-pipe-child.c: New file.
56933         * tests/test-nonblocking-pipe.h: New file.
56934         * tests/test-nonblocking-writer.h: New file.
56935         * tests/test-nonblocking-reader.h: New file.
56936         * tests/test-nonblocking-misc.h: New file.
56937         * modules/nonblocking-pipe-tests: New file.
56938         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56940 2011-04-16  Bruno Haible  <bruno@clisp.org>
56942         gettext: Clarify the needed programmer actions.
56943         * modules/gettext (Notice): New field.
56944         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56946 2011-04-16  Bruno Haible  <bruno@clisp.org>
56948         strchrnul: Tweak last commit.
56949         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56950         bug.
56951         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56952         as in _GL_FUNCDECL_SYS.
56953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56954         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56956 2011-04-15  Eric Blake  <eblake@redhat.com>
56958         strchrnul: work around cygwin bug
56959         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56960         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56962         * modules/string (Makefile.am): Substitute it.
56963         * lib/string.in.h (strchrnul): Use it.
56965 2011-04-15  Bruno Haible  <bruno@clisp.org>
56967         Don't require lib/stdio-write.c when only module 'stdio' is used.
56968         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56969         invocation.
56970         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56972 2011-04-14  Bruno Haible  <bruno@clisp.org>
56974         Support non-blocking pipe I/O in read() on native Windows.
56975         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56976         (read): New declaration.
56977         * lib/read.c: New file.
56978         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56979         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56980         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56981         vscanf): New declarations.
56982         * lib/stdio-read.c: New file.
56983         * m4/read.m4: New file.
56984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56985         REPLACE_READ.
56986         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56987         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56988         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56989         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56990         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56991         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56992         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56993         * modules/read: New file.
56994         * modules/nonblocking (Files): Add lib/stdio-read.c.
56995         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56996         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56997         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56998         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56999         * modules/pread (Depends-on): Add read.
57000         * modules/safe-read (Depends-on): Likewise.
57001         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57002         gets, scanf, vfscanf, vscanf): Verify signatures.
57003         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57004         problem with non-blocking pipes.
57005         * doc/posix-functions/fgetc.texi: Likewise.
57006         * doc/posix-functions/fgets.texi: Likewise.
57007         * doc/posix-functions/fread.texi: Likewise.
57008         * doc/posix-functions/fscanf.texi: Likewise.
57009         * doc/posix-functions/getc.texi: Likewise.
57010         * doc/posix-functions/getchar.texi: Likewise.
57011         * doc/posix-functions/gets.texi: Likewise.
57012         * doc/posix-functions/scanf.texi: Likewise.
57013         * doc/posix-functions/vfscanf.texi: Likewise.
57014         * doc/posix-functions/vscanf.texi: Likewise.
57016 2011-04-14  Bruno Haible  <bruno@clisp.org>
57018         Support non-blocking pipe I/O in write() on native Windows.
57019         * lib/write.c (rpl_write): Split a write request that failed merely
57020         because the byte count was larger than the pipe buffer's size.
57021         * doc/posix-functions/write.texi: Mention the problem with large byte
57022         counts.
57024 2011-04-14  Bruno Haible  <bruno@clisp.org>
57026         wchar: Ensure that wchar_t gets defined on uClibc.
57027         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57028         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57030 2011-04-13  Bruno Haible  <bruno@clisp.org>
57032         safe-write, full-read: Avoid unnecessary compilation units.
57033         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57034         (Depends-on): Remove safe-read. Add ssize_t.
57035         * modules/full-read (Files): Add lib/full-write.c.
57036         (Depends-on): Add full-write.
57038 2011-04-13  Bruno Haible  <bruno@clisp.org>
57040         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57041         * modules/pwrite (Depends-on): Add 'write'.
57043 2011-04-13  Bruno Haible  <bruno@clisp.org>
57045         Support non-blocking pipe I/O in write() on native Windows.
57046         * lib/unistd.in.h (write): Enable replacement also if
57047         GNULIB_UNISTD_H_NONBLOCKING is 1.
57048         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57049         (rpl_write): When failing to write on a non-blocking pipe, change
57050         errno from ENOSPC to EAGAIN.
57051         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57052         putchar, puts, vfprintf, vprintf): Enable replacement also if
57053         GNULIB_STDIO_H_NONBLOCKING is 1.
57054         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57055         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57056         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57057         CALL_WITH_SIGPIPE_EMULATION.
57058         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57059         * m4/nonblocking.m4: New file.
57060         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57061         for non-blocking I/O support.
57062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57063         GNULIB_UNISTD_H_NONBLOCKING.
57064         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57065         required for non-blocking I/O support.
57066         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57067         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57068         lib/stdio-write.c, m4/asm-underscore.m4.
57069         (Depends-on): Add stdio, unistd.
57070         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57071         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57072         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57073         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57074         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57075         problem with non-blocking pipes.
57076         * doc/posix-functions/fputc.texi: Likewise.
57077         * doc/posix-functions/fputs.texi: Likewise.
57078         * doc/posix-functions/fwrite.texi: Likewise.
57079         * doc/posix-functions/printf.texi: Likewise.
57080         * doc/posix-functions/putc.texi: Likewise.
57081         * doc/posix-functions/putchar.texi: Likewise.
57082         * doc/posix-functions/puts.texi: Likewise.
57083         * doc/posix-functions/vfprintf.texi: Likewise.
57084         * doc/posix-functions/vprintf.texi: Likewise.
57085         * doc/posix-functions/write.texi: Likewise.
57087 2011-04-10  Jim Meyering  <meyering@redhat.com>
57089         maint.mk: prohibit doubled words
57090         Detect them also when they're separated by a newline.
57091         There are 3 ways to customize it:
57092           - disable the test on a per file basis, as usual with rules using
57093             $(VC_LIST_EXCEPT)
57094           - replace the default doubled-word-selecting regexp (affects all files)
57095           - ignore a particular file-vs-doubled-word match
57096         I nearly used that last one to ignore the "is is" match in
57097         coreutils' NEWS file, since the text was "ls -is is ..."
57098         To do that, I would have added this line to cfg.mk:
57099           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57100         but it would have ignored any "is is" match in NEWS.
57101         Low probability, but still...
57102         Instead, I changed the text, slightly:
57103           -  ls -is is now consistent with ls -lis in ignoring values returned
57104           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57105         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57106         (prohibit_doubled_word_): Define.
57107         (sc_prohibit_doubled_word): New rule.
57108         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57110 2011-04-10  Jim Meyering  <meyering@redhat.com>
57112         maint: fix doubled-word typo in comment
57113         * m4/gethostname.m4: s/is is/it is/
57114         * m4/getdomainname.m4: Likewise.
57116 2011-04-10  Jim Meyering  <meyering@redhat.com>
57118         maint: remove doubled word: s/it it/it/
57119         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57121 2011-04-10  Jim Meyering  <meyering@redhat.com>
57123         maint.mk: remove useless semicolon and backslash
57124         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57125         semicolon and backslash.
57127 2011-04-10  Bruno Haible  <bruno@clisp.org>
57129         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57130         * modules/stdint-tests (Depends-on): Add wchar.
57132 2011-04-10  Jim Meyering  <meyering@redhat.com>
57134         maint: remove doubled words in comments, e.g., s/a a/a/
57135         * lib/strptime.c (day_of_the_week): s/the the/the/
57136         * tests/test-chown.h (test_chown): s/a a/a/
57138         test-chown.h: correct a cast
57139         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57140         when the destination is a stat.st_gid.
57142 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57144         getaddrinfo: Fix test for sa_len member.
57145         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57146         include <sys/types.h> before <sys/socket.h>.
57148 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57150         maint: change "can not" to "cannot"
57151         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57152         boundaries.
57154 2011-04-09  Jim Meyering  <meyering@redhat.com>
57156         maint: change "a a" to "a"
57157         * tests/test-lchown.h (test_lchown): s/a a/a/
57159         maint.mk: prohibit \<the the\>
57160         * top/maint.mk (sc_prohibit_the_the): New rule.
57162         maint: fix "the the" in comment
57163         * lib/count-one-bits.h: s/the the/the/
57165         maint: change "can not" to "cannot"
57166         But do not change the occurrences in maintain.texi or in
57167         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57168         * doc/gnulib-tool.texi: s/can not/cannot/
57169         * doc/posix-functions/accept.texi (accept): Likewise.
57170         * doc/posix-functions/socket.texi (socket): Likewise.
57171         * lib/mbrtowc.c: Likewise.
57173         maint.mk: prohibit use of "can not"
57174         * top/maint.mk (sc_prohibit_can_not): New rule.
57175         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57177 2011-04-09  Bruno Haible  <bruno@clisp.org>
57179         careadlinkat: Guard against misuse of careadlinkatcwd.
57180         * lib/careadlinkat.c: Include <stdlib.h>.
57181         (careadlinkatcwd): Check that the fd argument is as expected.
57183 2011-04-09  Bruno Haible  <bruno@clisp.org>
57185         careadlinkat: Use common coding style.
57186         * lib/careadlinkat.c: Move gnulib includes after system includes.
57188 2011-04-09  Bruno Haible  <bruno@clisp.org>
57190         careadlinkat: Clarify specification.
57191         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57192         (careadlinkatcwd): Add comment.
57193         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57195 2011-04-09  Bruno Haible  <bruno@clisp.org>
57197         areadlinkat: Avoid link error on many platforms.
57198         * modules/areadlinkat (Depends-on): Add areadlink.
57200 2011-04-09  Bruno Haible  <bruno@clisp.org>
57202         allocator, careadlinkat: Fix double-inclusion guard.
57203         * lib/allocator.h: Fix double-inclusion guard.
57204         * lib/careadlinkat.h: Likewise.
57206 2011-04-09  Bruno Haible  <bruno@clisp.org>
57208         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57209         * lib/relocwrapper.c: Update dependencies hierarchy.
57210         * build-aux/install-reloc: Update list of files to be compiled.
57211         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57212         lib/allocator.[hc].
57214 2011-04-08  Eric Blake  <eblake@redhat.com>
57216         strftime: silence gnulib-tool warning
57217         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57219 2011-04-08  Bruno Haible  <bruno@clisp.org>
57221         verify: Fix syntax error with GCC 4.6 in C++ mode.
57222         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57223         (HAVE_STATIC_ASSERT): New macro.
57224         (verify_true, verify): Use 'static_assert' if it is supported and
57225         '_Static_assert' is not supported.
57227 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57229         allocator: New module.
57230         * modules/allocator, lib/allocator.c: New files.
57231         * lib/allocator.h (stdlib_allocator): New decl.
57232         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57233         Remove.  Do not include <stdlib.h>.
57234         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57235         * modules/careadlinkat (Files): Remove lib/allocator.h.
57236         (Depends-on): Add allocator.
57238         stdlib: let modules use system malloc, realloc
57239         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57240         if !_GL_USE_STDLIB_ALLOC.
57241         (malloc, realloc): Limit this change to a smaller scope.
57243         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57244         (malloc, realloc): Don't #undef; no longer needed.
57245         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57246         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57247         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57248         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57249         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57250         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57251         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57252         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57254         careadlinkat: rename members to avoid problem
57255         * lib/allocator.h (struct allocator): Rename members from
57256         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57257         and realloc are #define'd.  Reported by Eric Blake in
57258         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57259         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57261 2011-04-08  Eric Blake  <eblake@redhat.com>
57263         nonblocking: reduce dependency
57264         * tests/test-nonblocking.c: Only test sockets when in use.
57265         * modules/nonblocking-tests (Depends-on): Drop socket.
57266         (Makefile.am): Link even if sockets are not present.
57267         * modules/pipe2-tests (Makefile.am): Likewise.
57268         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57270         pipe2: fix O_NONBLOCK support on mingw
57271         * modules/pipe2 (Depends-on): Add nonblocking.
57272         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57273         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57274         * tests/test-nonblocking.c (main): Likewise.
57275         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57277         fcntl-h: fix O_ACCMODE on cygwin
57278         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57279         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57281         pipe-filter: drop O_NONBLOCK workarounds
57282         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57283         * modules/pipe-filter-ii (Depends-on): Likewise.
57284         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57286         nonblocking: provide O_NONBLOCK for mingw
57287         * modules/nonblocking (Depends-on): Add open.
57288         (configure.ac): Set new witness macro.
57289         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57290         * modules/fcntl-h (Makefile.am): Substitute it.
57291         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57292         nonblocking module is in use.
57293         * lib/nonblocking.c: Adjust portability test.
57294         * lib/open.c (open): Don't let native open see gnulib flag.
57295         * tests/test-fcntl-h.c (main): Enhance test.
57296         * tests/test-open.h (test_open): Likewise.
57297         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57299         careadlinkat: fix compilation error on mingw
57300         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57301         within struct allocator.
57303 2011-04-06  Eric Blake  <eblake@redhat.com>
57305         binary-io: relicense under LGPLv2+
57306         * modules/binary-io (License): Relax to LGPLv2+.
57307         Requested for libvirt, and required by pipe2.
57309 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57311         verify: use _Static_assert if available
57312         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57313         (verify_true, verify): Use it if available.  This generates better
57314         diagnostics with GCC 4.6.0 and later.
57316 2011-04-05  Bruno Haible  <bruno@clisp.org>
57318         Remove leftover generated .h files after config.status changed.
57320         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57321         GL_GENERATE_ALLOCA_H.
57322         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57323         GL_GENERATE_ALLOCA_H evaluates to false.
57325         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57326         GL_GENERATE_ARGZ_H.
57327         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57328         evaluates to false.
57330         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57331         GL_GENERATE_BYTESWAP_H.
57332         * modules/byteswap (Makefile.am): Remove byteswap.h if
57333         GL_GENERATE_BYTESWAP_H evaluates to false.
57335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57336         GL_GENERATE_ERRNO_H.
57337         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57338         evaluates to false.
57340         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57341         GL_GENERATE_FLOAT_H.
57342         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57343         evaluates to false.
57345         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57346         GL_GENERATE_FNMATCH_H.
57347         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57348         GL_GENERATE_FNMATCH_H evaluates to false.
57350         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57351         GL_GENERATE_GLOB_H.
57352         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57353         evaluates to false.
57355         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57356         automake conditional GL_GENERATE_ICONV_H.
57357         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57358         evaluates to false.
57360         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57361         GL_GENERATE_NETINET_IN_H.
57362         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57363         GL_GENERATE_NETINET_IN_H evaluates to false.
57365         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57366         conditional GL_GENERATE_PTHREAD_H.
57367         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57368         * modules/pthread (Makefile.am): Remove pthread.h if
57369         GL_GENERATE_PTHREAD_H evaluates to false.
57371         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57372         GL_GENERATE_SCHED_H.
57373         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57374         evaluates to false.
57376         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57377         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57378         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57379         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57381         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57382         GL_GENERATE_STDARG_H.
57383         * modules/stdarg (Makefile.am): Remove stdarg.h if
57384         GL_GENERATE_STDARG_H evaluates to false.
57386         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57387         GL_GENERATE_STDBOOL_H.
57388         * modules/stdbool (Makefile.am): Remove stdbool.h if
57389         GL_GENERATE_STDBOOL_H evaluates to false.
57391         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57392         conditional GL_GENERATE_STDDEF_H.
57393         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57394         * modules/stddef (Makefile.am): Remove stddef.h if
57395         GL_GENERATE_STDDEF_H evaluates to false.
57397         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57398         GL_GENERATE_STDINT_H.
57399         * modules/stdint (Makefile.am): Remove stdint.h if
57400         GL_GENERATE_STDINT_H evaluates to false.
57402         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57403         GL_GENERATE_SYSEXITS_H.
57404         * modules/sysexits (Makefile.am): Remove sysexits.h if
57405         GL_GENERATE_SYSEXITS_H evaluates to false.
57407         Reported by Karl Berry and Ralf Wildenhues.
57409 2011-04-05  Bruno Haible  <bruno@clisp.org>
57411         Ensure to rebuild generated .h files when config.status has changed.
57412         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57413         config.status.
57414         * modules/ctype (Makefile.am): Likewise.
57415         * modules/dirent (Makefile.am): Likewise.
57416         * modules/errno (Makefile.am): Likewise.
57417         * modules/fcntl-h (Makefile.am): Likewise.
57418         * modules/float (Makefile.am): Likewise.
57419         * modules/getopt-posix (Makefile.am): Likewise.
57420         * modules/glob (Makefile.am): Likewise.
57421         * modules/iconv-h (Makefile.am): Likewise.
57422         * modules/inttypes (Makefile.am): Likewise.
57423         * modules/langinfo (Makefile.am): Likewise.
57424         * modules/locale (Makefile.am): Likewise.
57425         * modules/math (Makefile.am): Likewise.
57426         * modules/netdb (Makefile.am): Likewise.
57427         * modules/netinet_in (Makefile.am): Likewise.
57428         * modules/poll-h (Makefile.am): Likewise.
57429         * modules/pthread (Makefile.am): Likewise.
57430         * modules/pty (Makefile.am): Likewise.
57431         * modules/sched (Makefile.am): Likewise.
57432         * modules/search (Makefile.am): Likewise.
57433         * modules/selinux-h (Makefile.am): Likewise.
57434         * modules/signal (Makefile.am): Likewise.
57435         * modules/spawn (Makefile.am): Likewise.
57436         * modules/stdarg (Makefile.am): Likewise.
57437         * modules/stdbool (Makefile.am): Likewise.
57438         * modules/stddef (Makefile.am): Likewise.
57439         * modules/stdint (Makefile.am): Likewise.
57440         * modules/stdio (Makefile.am): Likewise.
57441         * modules/stdlib (Makefile.am): Likewise.
57442         * modules/string (Makefile.am): Likewise.
57443         * modules/strings (Makefile.am): Likewise.
57444         * modules/sys_file (Makefile.am): Likewise.
57445         * modules/sys_ioctl (Makefile.am): Likewise.
57446         * modules/sys_select (Makefile.am): Likewise.
57447         * modules/sys_socket (Makefile.am): Likewise.
57448         * modules/sys_stat (Makefile.am): Likewise.
57449         * modules/sys_time (Makefile.am): Likewise.
57450         * modules/sys_times (Makefile.am): Likewise.
57451         * modules/sys_utsname (Makefile.am): Likewise.
57452         * modules/sys_wait (Makefile.am): Likewise.
57453         * modules/sysexits (Makefile.am): Likewise.
57454         * modules/termios (Makefile.am): Likewise.
57455         * modules/time (Makefile.am): Likewise.
57456         * modules/unistd (Makefile.am): Likewise.
57457         * modules/wchar (Makefile.am): Likewise.
57458         * modules/wctype-h (Makefile.am): Likewise.
57459         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57461 2011-04-05  Bruno Haible  <bruno@clisp.org>
57463         pipe2: Relicense under LGPLv2+.
57464         * modules/pipe2 (License): Change to LGPLv2+.
57465         Requested by Eric Blake, for libvirt.
57467 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57469         bootstrap: compute gnulib_extra_files after updating build_aux
57470         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57471         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57473 2011-04-05  Eric Blake  <eblake@redhat.com>
57475         bootstrap: preserve git whitelist item sorting
57476         * build-aux/bootstrap (sort_patterns): New function.
57477         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57479 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57481         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57482         sc_space_tab check.
57484 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57486         areadlink, areadlinkat: rewrite in terms of careadlinkat
57487         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57488         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57489         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57490         (malloc, realloc): Remove #undefs.
57491         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57492         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57493         readlink, ssize_t, stdint, unistd.
57494         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57495         areadlink, stdint.
57497         careadlinkat: new module
57498         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57499         * modules/careadlinkat: New files, written by me with
57500         a review and feedback from Ben Pfaff in
57501         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57503 2011-04-01  Bruno Haible  <bruno@clisp.org>
57505         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57506         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57507         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57508         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57509         Reported by Bruce Korb <bruce.korb@gmail.com>.
57511 2011-04-01  Bruno Haible  <bruno@clisp.org>
57513         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57514         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57515         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57516         * modules/wcpcpy (Depends-on): Add extensions.
57517         * modules/wcpncpy (Depends-on): Likewise.
57518         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57519         systems.
57520         * doc/posix-functions/wcpncpy.texi: Likewise.
57521         * doc/posix-functions/wcwidth.texi: Likewise.
57523 2011-03-31  Eric Blake  <eblake@redhat.com>
57525         nonblocking: fix mingw test failures
57526         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57527         non-blocking flag on regular file.
57528         (get_nonblocking_flag): Set errno on invalid fd.
57529         * tests/test-nonblocking.c (main): Avoid test failure on
57530         directories if fchdir is not active.
57531         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57533 2011-03-31  Bruno Haible  <bruno@clisp.org>
57535         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57536         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57537         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57538         Reported by Simon Josefsson <simon@josefsson.org>.
57540 2011-03-31  Bruno Haible  <bruno@clisp.org>
57541         and Eric Blake  <eblake@redhat.com>
57543         nonblocking: new module
57544         * modules/nonblocking: New module.
57545         * modules/nonblocking-tests: Likewise.
57546         * lib/nonblocking.h: New file.
57547         * lib/nonblocking.c: Likewise.
57548         * tests/test-nonblocking.c: New test.
57549         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57551 2011-03-30  Bruno Haible  <bruno@clisp.org>
57553         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57554         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57555         instead of 'printf' format for GCC >= 4.4.
57556         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57557         (fprintf, printf, vfprintf, vprintf): Declare with
57558         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57559         the system's vfprintf() function.
57560         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57562 2011-03-30  Eric Blake  <eblake@redhat.com>
57564         passfd: fix scoping bug
57565         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57566         before sendmsg/recvmsg.
57568         passfd: standardize coding conventions
57569         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57570         can be learned at compile time.
57571         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57572         ifdefs.
57573         (sendfd, recvfd): Follow gnulib code conventions.
57575         passfd: fix incorrect sendmsg arguments
57576         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57577         incorrect msg_controllen value.
57578         * modules/passfd-tests (Depends-on): Check for alarm.
57579         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57580         Reported by Bastien ROUCARIES.
57582 2011-03-30  Bruno Haible  <bruno@clisp.org>
57584         c-strcasestr: Relicense under LGPLv2+.
57585         * modules/c-strcasestr (License): Change to LGPLv2+.
57586         Requested by Eric Blake, for libvirt.
57588 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57590         * users.txt: Add libidn2.  Fix libtasn1 link.
57592 2011-03-30  Jim Meyering  <meyering@redhat.com>
57594         tests: readlink* ("",... fails with EINVAL on newer kernels
57595         readlink and readlinkat have typically failed with ENOENT for
57596         the invalid, empty file name,  "".  However, with the advent
57597         of linux-2.6.39, they fail with EINVAL.
57598         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57599         when operating on the empty file name.
57600         * tests/test-readlink.h (test_readlink): Likewise.
57602 2011-03-29  Bruno Haible  <bruno@clisp.org>
57604         Relicense some modules under LGPLv2+, for libidn2.
57605         * modules/array-mergesort (License): Change to LGPLv2+.
57606         * modules/c-strcaseeq (License): Likewise.
57607         * modules/striconveh (License): Likewise.
57608         * modules/striconveha (License): Likewise.
57609         * modules/uniconv/base (License): Likewise.
57610         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57611         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57612         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57613         * modules/unictype/base (License): Likewise.
57614         * modules/unictype/bidiclass-of (License): Likewise.
57615         * modules/unictype/category-M (License): Likewise.
57616         * modules/unictype/category-none (License): Likewise.
57617         * modules/unictype/category-of (License): Likewise.
57618         * modules/unictype/category-test (License): Likewise.
57619         * modules/unictype/category-test-withtable (License): Likewise.
57620         * modules/unictype/combining-class (License): Likewise.
57621         * modules/unictype/joiningtype-of (License): Likewise.
57622         * modules/unictype/scripts (License): Likewise.
57623         * modules/uninorm/base (License): Likewise.
57624         * modules/uninorm/canonical-decomposition (License): Likewise.
57625         * modules/uninorm/composition (License): Likewise.
57626         * modules/uninorm/decompose-internal (License): Likewise.
57627         * modules/uninorm/decomposition-table (License): Likewise.
57628         * modules/uninorm/nfc (License): Likewise.
57629         * modules/uninorm/nfd (License): Likewise.
57630         * modules/uninorm/u32-normalize (License): Likewise.
57631         * modules/unistr/base (License): Likewise.
57632         * modules/unistr/u32-cpy (License): Likewise.
57633         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57634         * modules/unistr/u32-to-u8 (License): Likewise.
57635         * modules/unistr/u32-uctomb (License): Likewise.
57636         * modules/unistr/u8-check (License): Likewise.
57637         * modules/unistr/u8-mblen (License): Likewise.
57638         * modules/unistr/u8-mbtouc (License): Likewise.
57639         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57640         * modules/unistr/u8-mbtoucr (License): Likewise.
57641         * modules/unistr/u8-prev (License): Likewise.
57642         * modules/unistr/u8-strlen (License): Likewise.
57643         * modules/unistr/u8-to-u32 (License): Likewise.
57644         * modules/unistr/u8-uctomb (License): Likewise.
57645         * modules/unitypes (License): Likewise.
57646         Requested by Simon Josefsson.
57648 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57650         lib-symbol-visibility: Add a notice.
57651         * modules/lib-symbol-visibility (Notice): New field.
57653 2011-03-29  Bruno Haible  <bruno@clisp.org>
57655         getaddrinfo: Doc fix.
57656         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57657         section "fixed in Gnulib".
57659 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57661         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57662         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57664 2011-03-26  Bruno Haible  <bruno@clisp.org>
57666         unictype/property-byname: Reduce the number of load-time relocations.
57667         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57668         (UC_PROPERTY_INDEX_*): New enumeration values.
57669         (uc_property_byname): Convert an index from the lookup table to an
57670         uc_property_t.
57671         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57672         values.
57674 2011-03-26  Bruno Haible  <bruno@clisp.org>
57676         unictype/property-byname: Allow omitted word separators and aliases.
57677         * lib/unictype/pr_byname.gperf: Add property names without word
57678         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57679         for 'space'.
57681 2011-03-26  Bruno Haible  <bruno@clisp.org>
57683         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57684         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57685         also hyphens to space.
57686         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57687         without spaces.
57688         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57690 2011-03-26  Bruno Haible  <bruno@clisp.org>
57692         unictype/joiningtype-byname: Recognize long names as well.
57693         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57694         a long name.
57695         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57696         unictype/joiningtype_byname.h.
57697         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57698         * lib/unictype/joiningtype_byname.gperf: New file.
57699         * modules/unictype/joiningtype-byname (Files): Add
57700         lib/unictype/joiningtype_byname.gperf.
57701         (Depends-on): Add gperf.
57702         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57703         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57704         long names.
57706         Tests for module 'unictype/joiningtype-longname'.
57707         * modules/unictype/joiningtype-longname-tests: New file.
57708         * tests/unictype/test-joiningtype_longname.c: New file.
57710         New module 'unictype/joiningtype-longname'.
57711         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57712         * lib/unictype/joiningtype_longname.c: New file.
57713         * modules/unictype/joiningtype-longname: New file.
57714         * modules/unictype/joiningtype-all (Depends-on): Add
57715         unictype/joiningtype-longname.
57717 2011-03-26  Bruno Haible  <bruno@clisp.org>
57719         unictype/bidiclass-byname: Recognize long names as well.
57720         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57721         name.
57722         * lib/unictype/bidi_byname.c: Include <string.h>,
57723         unictype/bidi_byname.h.
57724         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57725         * lib/unictype/bidi_byname.gperf: New file.
57726         * modules/unictype/bidiclass-byname (Files): Add
57727         lib/unictype/bidi_byname.gperf.
57728         (Depends-on): Add gperf.
57729         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57730         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57731         long names.
57733         Tests for module 'unictype/bidiclass-longname'.
57734         * modules/unictype/bidiclass-longname-tests: New file.
57735         * tests/unictype/test-bidi_longname.c: New file.
57737         New module 'unictype/bidiclass-longname'.
57738         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57739         * lib/unictype/bidi_longname.c: New file.
57740         * modules/unictype/bidiclass-longname: New file.
57741         * modules/unictype/bidiclass-all (Depends-on): Add
57742         unictype/bidiclass-longname.
57744 2011-03-26  Bruno Haible  <bruno@clisp.org>
57746         unictype/bidi*: Rename modules.
57747         * modules/unictype/bidiclass-all: Renamed from
57748         modules/unictype/bidicategory-all.
57749         * modules/unictype/bidiclass-name: Renamed from
57750         modules/unictype/bidiclass-name.
57751         (Description): Update.
57752         * modules/unictype/bidiclass-name-tests: Renamed from
57753         modules/unictype/bidicategory-name-tests.
57754         * modules/unictype/bidiclass-byname: Renamed from
57755         modules/unictype/bidicategory-byname.
57756         (Description): Update.
57757         * modules/unictype/bidiclass-byname-tests: Renamed from
57758         modules/unictype/bidicategory-byname-tests.
57759         * modules/unictype/bidiclass-of: Renamed from
57760         modules/unictype/bidicategory-of.
57761         (Description): Update.
57762         * modules/unictype/bidiclass-of-tests: Renamed from
57763         modules/unictype/bidicategory-of-tests.
57764         * modules/unictype/bidiclass-test: Renamed from
57765         modules/unictype/bidicategory-test.
57766         (Description): Update.
57767         * modules/unictype/bidiclass-test-tests: Renamed from
57768         modules/unictype/bidicategory-test-tests.
57769         * modules/unictype/bidicategory-all: New file, a simple redirection.
57770         * modules/unictype/bidicategory-name: Likewise.
57771         * modules/unictype/bidicategory-byname: Likewise.
57772         * modules/unictype/bidicategory-of: Likewise.
57773         * modules/unictype/bidicategory-test: Likewise.
57774         * modules/unictype/property-bidi-* (Dependencies): Update.
57775         * lib/unictype/bidi_*.c: Update comment.
57777 2011-03-26  Bruno Haible  <bruno@clisp.org>
57779         unictype/bidi*: Rename functions, part 2.
57780         * modules/unictype/bidicategory-name (configure.ac): Update required
57781         libunistring version.
57782         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57784 2011-03-25  Bruno Haible  <bruno@clisp.org>
57786         New module 'unictype/combining-class-all'.
57787         * modules/unictype/combining-class-all: New file.
57789         Tests for module 'unictype/combining-class-byname'.
57790         * modules/unictype/combining-class-byname-tests: New file.
57791         * tests/unictype/test-combiningclass_byname.c: New file.
57793         New module 'unictype/combining-class-byname'.
57794         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57795         * lib/unictype/combiningclass_byname.c: New file.
57796         * lib/unictype/combiningclass_byname.gperf: New file.
57797         * modules/unictype/combining-class-byname: New file.
57799         Tests for module 'unictype/combining-class-longname'.
57800         * modules/unictype/combining-class-longname-tests: New file.
57801         * tests/unictype/test-combiningclass_longname.c: New file.
57803         New module 'unictype/combining-class-longname'.
57804         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57805         * lib/unictype/combiningclass_longname.c: New file.
57806         * modules/unictype/combining-class-longname: New file.
57808         Tests for module 'unictype/combining-class-name'.
57809         * modules/unictype/combining-class-name-tests: New file.
57810         * tests/unictype/test-combiningclass_name.c: New file.
57812         New module 'unictype/combining-class-name'.
57813         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57814         * lib/unictype/combiningclass_name.c: New file.
57815         * modules/unictype/combining-class-name: New file.
57817 2011-03-25  Bruno Haible  <bruno@clisp.org>
57819         unictype/combining-class: Rename source files.
57820         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57821         of unictype/combining.h.
57822         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57823         Update.
57824         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57825         * modules/unictype/combining-class (Description): Fix.
57826         (Files, Makefile.am): Update.
57827         * tests/unictype/test-combiningclass.c: Renamed from
57828         tests/unictype/test-combining.c.
57829         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57831 2011-03-25  Bruno Haible  <bruno@clisp.org>
57833         unictype: Update list of canonical combining classes.
57834         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57836 2011-03-25  Bruno Haible  <bruno@clisp.org>
57838         unictype/category-byname: Recognize long names as well.
57839         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57840         a long name.
57841         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57842         unictype/categ_byname.h.
57843         (UC_CATEGORY_INDEX_*): New enumeration values.
57844         (uc_general_category_byname): Use uc_general_category_lookup and
57845         convert from index to value.
57846         * lib/unictype/categ_byname.gperf: New file.
57847         * modules/unictype/category-byname (Files): Add
57848         lib/unictype/categ_byname.gperf.
57849         (Depends-on): Add gperf.
57850         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57851         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57852         long names.
57854         Tests for module 'unictype/category-longname'.
57855         * modules/unictype/category-longname-tests: New file.
57856         * tests/unictype/test-categ_longname.c: New file.
57858         New module 'unictype/category-longname'.
57859         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57860         * lib/unictype/categ_longname.c: New file.
57861         * modules/unictype/category-longname: New file.
57862         * modules/unictype/category-all (Depends-on): Add it.
57864 2011-03-25  Bruno Haible  <bruno@clisp.org>
57866         Tests for module 'unictype/category-LC'.
57867         * modules/unictype/category-LC-tests: New file.
57868         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57870         New module 'unictype/category-LC'.
57871         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57872         (UC_CATEGORY_LC): New declaration.
57873         (UC_CASED_LETTER): New macro.
57874         * lib/gen-uni-tables.c (is_category_LC): New function.
57875         (output_categories): Also handle category LC.
57876         (UC_CATEGORY_MASK_LC): New enumeration value.
57877         (general_category_byname): Also handle category LC.
57878         * lib/unictype/categ_LC.c: New file.
57879         * lib/unictype/categ_LC.h: New file, automatically generated.
57880         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57881         category LC.
57882         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57883         * modules/unictype/category-LC: New file.
57884         * modules/unictype/category-byname (Depends-on): Add
57885         unictype/category-LC.
57886         * modules/unictype/category-all (Depends-on): Likewise.
57888 2011-03-25  Eric Blake  <eblake@redhat.com>
57890         xmalloc: revert yesterday's regression
57891         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57892         realloc's underlying behavior (allowing allocation of zero-size
57893         objects, especially if malloc-gnu is also in use).
57895 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57897         maint.mk: add missing version to VC-tag
57898         * top/maint.mk: git tag was missing actual tag name; add it.
57900         valgrind: do leak checking, and exit with code 1 on error (not 0)
57901         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57902         to VALGRIND.
57904 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57906         posix-modules: say what it does.
57907         * posix-modules: Add a line to the --help output saying what it does.
57909 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57911         xmalloc: Do not leak if underlying realloc is C99 compatible.
57912         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57913         This avoids a leak on C99-based systems.  See
57914         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57916 2011-03-24  Eric Blake  <eblake@redhat.com>
57918         realloc: document portability problem
57919         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57920         passing 0 size to realloc.
57922 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57924         doc: update users.txt
57925         * users.txt: Add cvsps, tmpwatch
57927 2011-03-23  Matt Rice  <ratmice@gmail.com>
57929         doc: update users.txt
57930         * users.txt: Add gdb.
57932 2011-03-23  Jim Meyering  <meyering@redhat.com>
57934         doc: update users.txt
57935         Looking through matches up to the following URL (there are still
57936         several more pages), I found several projects that use gnulib:
57937         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57938         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57939         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57941 2011-03-22  Bruno Haible  <bruno@clisp.org>
57943         unictype/bidi*: Rename functions.
57944         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57945         uc_bidi_class, uc_is_bidi_class): New declarations.
57946         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57947         uc_bidi_category_byname.
57948         (uc_bidi_category_byname): New function.
57949         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57950         u_bidi_category_name.
57951         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57952         (uc_bidi_category_name): New function.
57953         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57954         uc_bidi_category.
57955         (uc_bidi_category): New function.
57956         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57957         uc_is_bidi_category. Invoke uc_bidi_class.
57958         (uc_is_bidi_category): New function.
57959         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57960         instead of uc_bidi_category_byname.
57961         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57962         instead of uc_bidi_category_name.
57963         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57964         uc_bidi_category.
57965         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57966         instead of uc_is_bidi_category.
57968 2011-03-21  Bruno Haible  <bruno@clisp.org>
57970         New module 'unictype/joininggroup-all'.
57971         * modules/unictype/joininggroup-all: New file.
57973         Tests for module 'unictype/joininggroup-of'.
57974         * modules/unictype/joininggroup-of-tests: New file.
57975         * tests/unictype/test-joininggroup_of.c: New file.
57976         * tests/unictype/test-joininggroup_of.h: New file, automatically
57977         generated by gen-uni-tables.
57979         New module 'unictype/joininggroup-of'.
57980         * modules/unictype/joininggroup-of: New file.
57981         * lib/unictype/joininggroup_of.c: New file.
57982         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57983         gen-uni-tables.
57985         Tests for module 'unictype/joininggroup-byname'.
57986         * modules/unictype/joininggroup-byname-tests: New file.
57987         * tests/unictype/test-joininggroup_byname.c: New file.
57989         New module 'unictype/joininggroup-byname'.
57990         * modules/unictype/joininggroup-byname: New file.
57991         * lib/unictype/joininggroup_byname.c: New file.
57992         * lib/unictype/joininggroup_byname.gperf: New file.
57994         Tests for module 'unictype/joininggroup-name'.
57995         * modules/unictype/joininggroup-name-tests: New file.
57996         * tests/unictype/test-joininggroup_name.c: New file.
57998         New module 'unictype/joininggroup-name'.
57999         * modules/unictype/joininggroup-name: New file.
58000         * lib/unictype/joininggroup_name.c: New file.
58001         * lib/unictype/joininggroup_name.h: New file.
58003         New module 'unictype/joiningtype-all'.
58004         * modules/unictype/joiningtype-all: New file.
58006         Tests for module 'unictype/joiningtype-of'.
58007         * modules/unictype/joiningtype-of-tests: New file.
58008         * tests/unictype/test-joiningtype_of.c: New file.
58009         * tests/unictype/test-joiningtype_of.h: New file, automatically
58010         generated by gen-uni-tables.
58012         New module 'unictype/joiningtype-of'.
58013         * modules/unictype/joiningtype-of: New file.
58014         * lib/unictype/joiningtype_of.c: New file.
58015         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58016         gen-uni-tables.
58018         Tests for module 'unictype/joiningtype-byname'.
58019         * modules/unictype/joiningtype-byname-tests: New file.
58020         * tests/unictype/test-joiningtype_byname.c: New file.
58022         New module 'unictype/joiningtype-byname'.
58023         * modules/unictype/joiningtype-byname: New file.
58024         * lib/unictype/joiningtype_byname.c: New file.
58026         Tests for module 'unictype/joiningtype-name'.
58027         * modules/unictype/joiningtype-name-tests: New file.
58028         * tests/unictype/test-joiningtype_name.c: New file.
58030         New module 'unictype/joiningtype-name'.
58031         * modules/unictype/joiningtype-name: New file.
58032         * lib/unictype/joiningtype_name.c: New file.
58034         unictype: Add support for Arabic shaping properties.
58035         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58036         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58037         declarations.
58038         (UC_JOINING_GROUP_*): New enumeration values.
58039         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58040         declarations.
58041         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58042         (unicode_joining_type): New variable.
58043         (UC_JOINING_GROUP_*): New enumeration values.
58044         (unicode_joining_group): New variable.
58045         (fill_arabicshaping, joining_type_as_c_identifier,
58046         output_joining_type_test, output_joining_type,
58047         joining_group_as_c_identifier, output_joining_group_test,
58048         output_joining_group): New functions.
58049         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58050         fill_arabicshaping and output_joining_type_test, output_joining_type,
58051         output_joining_group_test, output_joining_group.
58052         Reported by Simon Josefsson.
58054 2011-03-21  Jim Meyering  <meyering@redhat.com>
58056         strftime: fix a bug in yesterday's change
58057         * lib/strftime.c (add): Accommodate width's initial value of -1.
58058         Otherwise, nstrftime would copy uninitialized data into
58059         the result buffer.
58061 2011-03-21  Jim Meyering  <meyering@redhat.com>
58063         tests: add strftime-tests module
58064         * tests/test-strftime.c: New file.
58065         * modules/strftime-tests: New module.
58067 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58069         strftime: don't assume a byte count fits in 'int'
58070         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58071         found this problem by static analysis, using gcc -Wstrict-overflow
58072         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58073         on an integer overflow having undefined behavior, but it turns out
58074         that the argument is a size, which might not fit in 'int' anyway,
58076 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58078         stdio: don't require ignore_value around fwrite
58080         This patch works around libc bug 11959
58081         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58082         Without this patch, applications must often write
58083         ignore_value (fwrite (...)) even though the ignore_value is
58084         not helpful here.  It's common to write many objects, using
58085         fwrite/printf/etc., and then use ferror to detect output error.
58087         I considered making this patch optional, but decided against it,
58088         because libc is obviously being inconsistent here: there is no
58089         reason libc should insist that user code must inspect fwrite
58090         return's value without also insisting that it inspect printf's,
58091         putchar's, etc.  If user code wants to have a strict style where
58092         all these functions' values are checked (so that ferror need not
58093         be checked), we could add support for that style in a new gnulib
58094         module, but in the meantime it's better to be consistent and to
58095         support common usage.
58097         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58098         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58099         that we are compiling in checking mode, and if not C++, and
58100         if not already wrapping fwrite for some other reason.
58101         (fwrite): #define to rpl_fwrite if the latter is defined.
58103 2011-03-20  Bruno Haible  <bruno@clisp.org>
58105         verror: Fix compilation error introduced on 2011-02-13.
58106         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58107         instead of __attribute__.
58108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58110 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58111             Bruno Haible  <bruno@clisp.org>
58113         socklen: do not depend on sys_socket
58114         While trying to modify Emacs to use gnulib's socklen module,
58115         I discovered a circular dependency: socklen depends on sys_socket
58116         and vice versa.  Emacs can use socklen, but it does not need
58117         sys_socket because it has its own substitute for sys/socket.h.
58118         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58119         gl_TYPE_SOCKLEN_T.
58120         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58121         gl_PREREQ_SYS_H_SOCKET.
58122         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58123         gl_PREREQ_SYS_H_SOCKET.
58124         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58125         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58126         * modules/socklen (Depends-on): Do not depend on sys_socket.
58127         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58129 2011-03-20  Jim Meyering  <meyering@redhat.com>
58131         maint.mk: sort file names *after* new transformation
58132         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58133         prefix would have led to an unwarranted failure in GNU parted.
58134         Sort after that transformation.
58136 2011-03-19  Jim Meyering  <meyering@redhat.com>
58138         maint.mk: fix po-file syntax-check rule
58139         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58140         Patch by Bruno Haible.
58142 2011-03-19  Bruno Haible  <bruno@clisp.org>
58144         socklen: Update comment.
58145         * m4/socklen.m4: Update comment about platforms.
58147 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58148             Bruno Haible  <bruno@clisp.org>
58150         inet_ntop, inet_pton: Simplify.
58151         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58152         documented to provide socklen_t and we already depend on sys_socket.
58153         * modules/inet_pton (Depends-on): Likewise.
58154         * lib/arpa_inet.in.h: Adjust comment.
58156 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58157             Bruno Haible  <bruno@clisp.org>
58159         netdb: Simplify.
58160         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58161         documented to provide socklen_t and we already depend on sys_socket.
58162         * lib/netdb.in.h: Adjust comment.
58164 2011-03-19  Bruno Haible  <bruno@clisp.org>
58166         sys_socket, netdb: Document problem with socklen_t.
58167         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58168         platforms.
58169         * doc/posix-headers/netdb.texi: Likewise.
58171 2011-03-18  Eric Blake  <eblake@redhat.com>
58173         maint.mk: let po check work in VPATH build
58174         * top/maint.mk (po_file): Allow cfg.mk override.
58175         (sc_po_check): Allow VPATH use.
58176         Reported by Jiri Denemark.
58178 2011-03-16  Jim Meyering  <meyering@redhat.com>
58180         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58181         Before, you would have had to create one .x-sc_ file per rule in order
58182         to exempt offending files.  Now, you may instead use a Make variable --
58183         usually defined in cfg.mk -- whose name identifies the affected rule.
58184         * top/maint.mk (_sc_excl): Define.
58185         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58186         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58188 2011-03-13  Bruno Haible  <bruno@clisp.org>
58190         ignore-value tests: Avoid warnings.
58191         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58192         empty for gcc < 3.4.
58194 2011-03-13  Bruno Haible  <bruno@clisp.org>
58196         passfd: Fix link error on Solaris.
58197         * modules/passfd (Description): Correct.
58198         (Depends-on): Add socketlib.
58199         (Link): New section.
58200         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58202 2011-03-13  Bruno Haible  <bruno@clisp.org>
58204         passfd: Fix link error on AIX 5.2.
58205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58207 2011-03-13  Bruno Haible  <bruno@clisp.org>
58209         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58210         * lib/sys_socket.in.h: Include <stddef.h>.
58211         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58212         CMSG_FIRSTHDR. Remove unused variable.
58214 2011-03-13  Bruno Haible  <bruno@clisp.org>
58216         passfd: Fix compilation error on OpenBSD.
58217         * lib/passfd.c: Include <sys/uio.h>.
58219 2011-03-13  Bruno Haible  <bruno@clisp.org>
58221         passfd test: Fix warnings.
58222         * tests/test-passfd.c: Include <sys/wait.h>.
58223         (main): Fix typo.
58225 2011-03-13  Bruno Haible  <bruno@clisp.org>
58227         passfd module, part 4, tweaks.
58228         * tests/test-passfd.c: Reorder includes.
58229         (main): Fix perror and printf calls.
58231 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58233         passfd module, part 4.
58234         * modules/passfd-tests: New file.
58235         * tests/test-passfd.c: New file.
58237 2011-03-13  Jim Meyering  <meyering@redhat.com>
58239         Makefile: rely on GNU make; derive syntax-check rule names
58240         Rather than requiring that each sc_ rule be listed as a dependent
58241         of "check", use features of GNU make to derive the list.
58242         * Makefile (syntax-check-rules): Define.
58243         (check): Depend on the new variable, not the hard-coded list.
58245 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58246             Bruno Haible  <bruno@clisp.org>
58248         passfd module, part 3.
58249         * lib/passfd.h (recvfd): Add a flags argument.
58250         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58251         (recvfd): Add a flags argument.
58252         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58253         exists.
58254         * modules/passfd (Depends-on): Add cloexec.
58255         Suggested by Eric Blake.
58257 2011-03-13  Bruno Haible  <bruno@clisp.org>
58259         passfd module, part 2, tweaks.
58260         * modules/passfd (Files): Reorder.
58261         (Depends-on): Remove errno.
58262         (Include): Remove <sys/socket.h>, <sys/un.h>.
58263         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58264         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58265         specification header. Include <sys/socket.h> always. Don't include
58266         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58267         (sendfd): Clarify that it sets errno when it fails.
58268         (recvfd): Fix specification.
58270 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58272         passfd module, part 2.
58273         * modules/passfd: New file.
58274         * lib/passfd.h: New file.
58275         * lib/passfd.c: New file.
58277 2011-03-12  Bruno Haible  <bruno@clisp.org>
58279         wcswidth, mbswidth: Avoid integer overflow.
58280         * lib/wcswidth.c: Include <limits.h>.
58281         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58282         * lib/mbswidth.c: Include <limits.h>.
58283         (mbsnwidth): Avoid 'int' overflow.
58284         Reported by Jim Meyering.
58286 2011-03-12  Bruno Haible  <bruno@clisp.org>
58288         futimens, utimensat: Avoid endless recursion on Solaris 10.
58289         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58290         Solaris.
58291         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58292         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58294 2011-03-11  Jim Meyering  <meyering@redhat.com>
58296         maint.mk: relax a regexp to accommodate other formatting styles
58297         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58298         between "ngettext" and the following "(".
58300 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58302         maint.mk: suppress a false positive warning
58303         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58304         diagnostics are marked with ngettext.
58306 2011-03-10  Eric Blake  <eblake@redhat.com>
58308         wchar: add explicit dependencies, for Tru64
58309         * modules/mbmemcasecoll (Depends-on): Add wchar.
58310         * modules/mbtowc (Depends-on): Likewise.
58311         * modules/vasnprintf (Depends-on): Likewise.
58312         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58313         * modules/wctomb (Depends-on): Likewise.
58314         Reported by Peter O'Gorman.
58316 2011-03-08  Bruno Haible  <bruno@clisp.org>
58318         passfd module, part 1, tweaks.
58319         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58320         Improve indentation. Improve AC_MSG_CHECKING messages.
58321         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58322         gl_SOCKET_FAMILIES.
58324 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58326         passfd module, part 1.
58327         * m4/afunix.m4: New file.
58328         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58329         sockets.
58331 2011-03-08  Bruno Haible  <bruno@clisp.org>
58333         regex-quote: New API.
58334         * lib/regex-quote.h: Include <stdbool.h>.
58335         (struct regex_quote_spec): New type.
58336         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58337         New declarations.
58338         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58339         'const struct regex_quote_spec *' argument.
58340         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58341         (pcre_special): New constant.
58342         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58343         New functions.
58344         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58345         'const struct regex_quote_spec *' argument.
58346         * modules/regex-quote (Depends-on): Add stdbool.
58347         * tests/test-regex-quote.c (check): Update for new API. Add test for
58348         anchored results.
58349         * NEWS: Mention the API change.
58350         Reported by Reuben Thomas and Eric Blake.
58352 2011-03-06  Bruno Haible  <bruno@clisp.org>
58354         regex-quote: Fix creation of POSIX extended regular expressions.
58355         * lib/regex-quote.c (ere_special): Add grouping and alternation
58356         operators.
58358 2011-03-05  Bruno Haible  <bruno@clisp.org>
58360         doc: Improve doc regarding autopoint vs. gnulib.
58361         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58362         disable autopoint while running autoreconf.
58363         Suggested by Ralf Wildenhues.
58365 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58367         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58368         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58370 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58372         parse-duration: remove xalloc.h dependency
58373         * lib/parse-duration.c (parse_period): handle NULL return from
58374         strdup instead of calling xstrdup().
58375         * modules/parse-duration: remove "xalloc" dependency
58377 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58379         bootstrap: honor m4_base when running aclocal
58380         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58382 2011-03-02  Jim Meyering  <meyering@redhat.com>
58384         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58385         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58386         on request from Matt Booth.
58388 2011-03-01  Eric Blake  <eblake@redhat.com>
58390         test-link: work on Hurd
58391         * tests/test-link.h (test_link): Hurd rejects linking directories
58392         with EISDIR instead of the POSIX-mandated EPERM.
58394 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58396         stdio: simplify by moving files to printf-posix, sigpipe
58397         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58398         since this symbol is needed only if printf is replaced.
58399         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58400         Require gl_ASM_SYMBOL_PREFIX.
58401         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58402         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58403         (Depends-on): Add 'raise'.
58404         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58405         * modules/stdio (Files): Remove lib/stdio-write.c,
58406         m4/asm-underscore.m4.
58407         (Depends-on): Remove 'raise'.
58409         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58410         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58411         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58412         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58414 2011-02-28  Bruno Haible  <bruno@clisp.org>
58416         localcharset: Assume ANSI C behaviour of free().
58417         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58418         calling free().
58419         Suggested by Simon Josefsson <simon@josefsson.org>.
58421 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58422             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58423             Bruno Haible  <bruno@clisp.org>  (tiny change)
58425         On Cygwin, use /proc file system instead of win32 API.
58426         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58427         Win32 file names.
58428         (DllMain): Simplify by removing Cygwin specific code.
58429         (find_shared_library_fullname): Use Linux specific implementation also
58430         for Cygwin.
58431         (get_shared_library_fullname): Update accordingly.
58432         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58433         Win32 file names.
58434         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58435         Cygwin specific code.
58437 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58438             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58440         Fix OpenMP flag detection for various Fortran compilers.
58441         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58442         OpenMP-conditional compilation construct, to force compile
58443         failure with missing OpenMP flag.
58444         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58446 2011-02-25  Eric Blake  <eblake@redhat.com>
58448         strstr: expand test coverage
58449         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58450         compilation.
58451         * tests/test-memmem.c (main): Duplicate tests.
58452         * tests/test-strcasestr.c (main): Likewise.
58453         * tests/test-c-strcasestr.c (main): Likewise.
58455 2011-02-25  Jim Meyering  <meyering@redhat.com>
58457         maint.mk: detect missing-NL-at-EOF, too
58458         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58459         it also detects when a file lacks a newline at EOF.
58460         (require_exactly_one_NL_at_EOF_): Renamed from
58461         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58462         since people may well have .x-sc_... file names tied to the
58463         existing name.  Suggested by Eric Blake.
58465 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58467         dirname: move m4/dos.m4 functionality into lib/dosname.h
58469         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58470         extracts symbols from it, puts them into config.h; but it's much
58471         easier to use the symbols directly.  filename.h already does this,
58472         but it disagrees with dos.m4 in some respects.  This patch
58473         introduces a different include file dosname.h that packages up
58474         dos.m4, and then later we can work on merging filename.h and
58475         dosname.h.  Applications that need only the easy-to-configure
58476         symbols should consider including dosname.h rather than dirname.h.
58477         * NEWS: Mention incompatible changes.
58478         * m4/dos.m4: Remove.
58479         * lib/dosname.h, modules/dosname: New files.
58480         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58481         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58482         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58483         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58484         Include dosname.h, not dirname.h.
58485         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58486         Include dosname.h, for definitions of symbols like ISSLASH
58487         that used to be in config.h.
58488         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58490         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58491         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58492         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58493         * modules/rmdir (Files): Likewise.
58494         * modules/stat (Files): Likewise.
58495         * modules/unlink (Files): Likewise.
58496         * modules/dirname-lgpl (Depends-on): Add dosname.
58497         * modules/lstat (Depends-on): Likewise.
58498         * modules/openat (Depends-on): Likewise.
58499         * modules/rmdir (Depends-on): Likewise.
58500         * modules/savewd (Depends-on): Likewise.
58501         * modules/stat (Depends-on): Likewise.
58502         * modules/unlink (Depends-on): Likewise.
58503         * modules/openat (Depends-on): Remove dirname-lgpl.
58504         * modules/savewd (Depends-on): Likewise.
58505         * tests/test-dirname.c: Do not use removed symbols like
58506         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58507         the remaining symbols, e.g., ISSLASH ('\\').
58509 2011-02-25  Eric Blake  <eblake@redhat.com>
58511         strstr: revert patches that introduced bug and pessimization
58512         * lib/str-two-way.h: Add another reference.
58513         (two_way_short_needle, two_way_long_needle): Revert changes from
58514         2011-02-24; they pessimize search speed.
58515         (critical_factorization): Partially revert changes from
58516         2010-06-22; they violate the requirement that the left half of the
58517         needle be smaller than the period of the needle.
58519 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58521         filenamecat: remove unnecessary dependency on dirname-lgpl
58522         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58523         is no direct dependency, just an indirect one via filenamecat-lgpl.
58525         remove: remove unnecessary use of m4/dos.m4
58526         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58527         * modules/remove (FILES): Remove m4/dos.m4.
58529         * lib/openat-proc.c: Don't include dirname.h; not needed.
58531         backupfile: remove unnecessary use of m4/dos.m4
58532         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58533         of its symbols are used by the backupfile code.  backupfile.c does
58534         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58535         for the rare case of programs that want all their backup file
58536         names to live within 8+3 limits, and dos.m4 doesn't address that.
58537         * modules/backupfile (Files): Remove m4/dos.m4.
58539 2011-02-24  Jim Meyering  <meyering@redhat.com>
58541         strstr: fix a bug whereby strstr would mistakenly return NULL
58542         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58543         in period calculation.
58544         (two_way_long_needle): Likewise.
58545         The original problem was reported by Mike Stump in
58546         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58547         Ralf Wildenhues provided the short needle and haystack.
58548         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58549         Add a more involved test to trigger the bug in two_way_long_needle.
58551 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58553         gnulib-tool: remove use of bold display in help screen
58554         * gnulib-tool (func_usage): Do not use bold display anymore in the
58555         help screen.  That was just meant to be a temporary emphasis for a
58556         backward-incompatible change.
58558 2011-02-23  Bruno Haible  <bruno@clisp.org>
58560         Fix misindentation of preprocessor directives.
58561         * lib/argp-namefrob.h: Reindent preprocessor directives.
58562         * lib/getopt_int.h (struct _getopt_data): Likewise.
58563         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58564         * lib/vasnprintf.c (decode_long_double): Likewise.
58565         * tests/test-argmatch.c: Insert blank lines, for clarity.
58566         * tests/test-exclude.c: Likewise.
58568 2011-02-22  Bruno Haible  <bruno@clisp.org>
58570         ioctl: Fix for MacOS X in 64-bit mode.
58571         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58572         value.
58573         Suggested by Eric Blake.
58574         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58576 2011-02-22  Jim Meyering  <meyering@redhat.com>
58578         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58579         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58580         in lib/.
58582 2011-02-22  Eric Blake  <eblake@redhat.com>
58584         maint: avoid any CDPATH issue
58585         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58587         maint: adjust cpp indentation for my modules, as well
58588         * Makefile (sc_cpp_indent_check): Add my name.
58589         * lib/fbufmode.c: Filter through cppi.
58590         * lib/fpurge.c: Likewise.
58591         * lib/freadable.c: Likewise.
58592         * lib/freading.c: Likewise.
58593         * lib/fwritable.c: Likewise.
58594         * lib/fwriting.c: Likewise.
58595         * lib/sigaction.c: Likewise.
58597 2011-02-22  Jim Meyering  <meyering@redhat.com>
58599         maint: adjust cpp indentation to reflect nesting depth
58600         I.e., in a block of code that begins with an unnested "#if",
58601         put one space between the "#" in column 1 and following token.
58602         For example,
58603         -#include <sys/vfs.h>
58604         +# include <sys/vfs.h>
58605         Do this only in .c files that are part of a module I maintain.
58606         * lib/linkat.c: Filter through cppi.
58607         * lib/nanosleep.c: Likewise.
58608         * lib/openat.c: Likewise.
58609         * lib/openat-die.c: Likewise.
58610         * lib/dup3.c: Likewise.
58611         * lib/fchownat.c: Likewise.
58612         * lib/flock.c: Likewise.
58613         * lib/fsync.c: Likewise.
58614         * lib/fts.c: Likewise.
58615         * lib/getpass.c: Likewise.
58616         * lib/gettimeofday.c: Likewise.
58617         * lib/userspec.c: Likewise.
58618         * Makefile (sc_cpp_indent_check): New rule, to check this.
58620 2011-02-22  Bruno Haible  <bruno@clisp.org>
58622         New module 'wctomb'.
58623         * lib/stdlib.in.h (wctomb): New declaration.
58624         * lib/wctomb.c: New file.
58625         * lib/wctomb-impl.h: New file.
58626         * m4/wctomb.m4: New file.
58627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58628         REPLACE_WCTOMB.
58629         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58630         REPLACE_WCTOMB.
58631         * modules/wctomb: New file.
58632         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58633         * doc/posix-functions/wctomb.texi: Mention the new module.
58634         * modules/wctob (Depends-on): Add wctomb.
58636 2011-02-22  Bruno Haible  <bruno@clisp.org>
58638         New module 'mbtowc'.
58639         * lib/stdlib.in.h (mbtowc): New declaration.
58640         * lib/mbtowc.c: New file.
58641         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58642         * m4/mbtowc.m4: New file.
58643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58644         REPLACE_MBTOWC.
58645         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58646         REPLACE_MBTOWC.
58647         * modules/mbtowc: New file.
58648         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58649         * doc/posix-functions/mbtowc.texi: Mention the new module.
58650         * modules/btowc (Depends-on): Add mbtowc.
58652 2011-02-22  Bruno Haible  <bruno@clisp.org>
58654         wcrtomb: Add more tests for native Windows platforms.
58655         * tests/test-wcrtomb-w32-1.sh: New file.
58656         * tests/test-wcrtomb-w32-2.sh: New file.
58657         * tests/test-wcrtomb-w32-3.sh: New file.
58658         * tests/test-wcrtomb-w32-4.sh: New file.
58659         * tests/test-wcrtomb-w32-5.sh: New file.
58660         * tests/test-wcrtomb-w32.c: New file.
58661         * modules/wcrtomb-tests (Files): Add them.
58662         (Makefile.am): Arrange to run these tests.
58663         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58664         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58666 2011-02-20  Bruno Haible  <bruno@clisp.org>
58668         wcrtomb: Enhance test.
58669         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58671 2011-02-20  Bruno Haible  <bruno@clisp.org>
58673         mbrtowc: Tiny optimization.
58674         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58676 2011-02-20  Jim Meyering  <meyering@redhat.com>
58678         test-exclude.c: remove unmatched #endif
58679         * tests/test-exclude.c: Remove stray #endif, left over from
58680         the change of a week ago.
58682 2011-02-19  Jim Meyering  <meyering@redhat.com>
58684         git-version-gen: skip "-dirty" check when appropriate
58685         * build-aux/git-version-gen: Don't run any git commands when the
58686         version string comes from .tarball-version.  Prior to this, we
58687         would run git update-index --refresh even from a just-unpacked
58688         tarball directory, and that could affect a .git/ directory in a
58689         parent of the build directory.  Reported by Mike Frysinger.
58691 2011-02-19  Bruno Haible  <bruno@clisp.org>
58693         unictype/property-byname: Reduce the size of the 'data' segment.
58694         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58696 2011-02-19  Bruno Haible  <bruno@clisp.org>
58698         unictype/scripts: Reduce the size of the 'data' segment.
58699         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58700         '%pic'.
58701         * lib/unictype/scripts_byname.gperf: Regenerated.
58703 2011-02-19  Bruno Haible  <bruno@clisp.org>
58705         stdint: Update documentation.
58706         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58708 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58710         stdint: omit redundant check for wchar.h
58711         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58712         always tests whether wchar.h exists, so remove the now-redundant test.
58714 2011-02-18  Bruno Haible  <bruno@clisp.org>
58716         stdint: Cut dependency to module 'wchar'.
58717         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58718         include the necessary prerequisites.
58719         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58720         * modules/stdint (Depends-on): Remove wchar.
58721         (Makefile.am): Substitute HAVE_WCHAR_H.
58722         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58724 2011-02-18  Eric Blake  <eblake@redhat.com>
58726         longlong: skip, rather than fail, on cross-compilation
58727         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58728         when cross-compiling; regression from 2011-02-16.
58730 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58732         * NEWS: Mention 2011-02-08 change to stdlib.
58734 2011-02-17  Bruno Haible  <bruno@clisp.org>
58736         getloadavg: Add comments about platforms.
58737         * m4/getloadavg.m4: Add comment.
58738         * lib/getloadavg.c: Likewise.
58740 2011-02-17  Bruno Haible  <bruno@clisp.org>
58742         getloadavg: Fix link error on Solaris 2.6.
58743         * modules/getloadavg (Link): New section.
58744         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58745         linking test-getloadavg.
58746         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58747         getloadavg.
58749 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58751         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58752         It was 'int', but this doesn't match the IRIX 6.5 manual.
58753         Suggested by Bruno Haible in
58754         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58756 2011-02-17  Bruno Haible  <bruno@clisp.org>
58758         havelib: Fix comments.
58759         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58760         change.
58762 2011-02-17  Bruno Haible  <bruno@clisp.org>
58764         havelib: Update config.rpath.
58765         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58767 2011-02-17  Bruno Haible  <bruno@clisp.org>
58769         getloadavg test: Add some plausibility checks.
58770         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58771         is improbable.
58773 2011-02-16  Eric Blake  <eblake@redhat.com>
58775         maintainer-makefile: make syntax-check a no-op from tarballs
58776         * top/maint.mk (no-vc-detected): New rule.
58777         (local-checks-available): Use it to avoid hanging if someone tries
58778         'make syntax-check' from a tarball.  Also append to any non-syntax
58779         checks already defined in cfg.mk.
58781 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58783         longlong: tune, particularly for common case of c99
58785         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58786         or running anything if c99, or if unsigned long long int does not
58787         work.  In either case, we know the answer without further tests.
58788         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58789         it at most once, and use its results for both long long int and
58790         unsigned long long int.  This is more likely to be efficient in
58791         the common case where the program wants to check for both long
58792         long int and unsigned long long int.
58793         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58794         since the answer is already known.
58796 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58798         getloadavg: set errno
58799         * lib/getloadavg.c: Set errno when returning -1.  If no other
58800         error number looks appropriate, set it to ENOSYS if the getloadavg
58801         looks like it can't possibly ever work, ENOTSUP otherwise.
58802         Suggested by Bruno Haible in
58803         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58805         getloadavg: trim unused parts and speed up 'configure'
58806         * NEWS: Document this.
58807         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58808         always compiled if getloadavg is absent.
58809         Move test code to ...
58810         * tests/test-getloadavg.c: New file, containing previous
58811         contents of test from lib/getloadavg.c.  It also contains
58812         suggestions by Bruno Haible in
58813         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58814         * modules/getloadavg-tests: New file.
58815         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58816         Do tests in the same order as they're needed for getloadavg.c.
58817         Omit setgid-related tests that generate symbols KMEM_GROUP,
58818         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58819         Do only the tests that are needed to see whether the system has
58820         getloadavg, moving the other tests into ...
58821         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58822         NLIST_NAME_UNION; nobody should be using it.  Do not define
58823         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58824         relevant, as the user of this module shouldn't care how getloadavg
58825         is implemented.
58827         getloadavg: omit unused var
58828         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58830 2011-02-15  Jim Meyering  <meyering@redhat.com>
58832         doc: update users.txt
58833         * users.txt: Update iwhd's URL.
58835 2011-02-13  Bruno Haible  <bruno@clisp.org>
58837         Consistent macro naming for macros that use GCC __attribute__.
58838         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58839         _ATTRIBUTE_NONNULL_.
58840         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58841         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58842         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58843         ATTRIBUTE_DEPRECATED.
58844         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58845         ATTRIBUTE_NORETURN.
58846         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58847         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58848         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58849         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58850         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58851         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58852         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58853         ATTRIBUTE_SENTINEL.
58854         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58855         ATTRIBUTE_RETURN_CHECK.
58856         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58857         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58858         ATTRIBUTE_NORETURN.
58859         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58860         Reported by Paul Eggert.
58862 2011-02-13  Bruno Haible  <bruno@clisp.org>
58864         Don't interfere with a program's definition of __attribute__.
58865         * lib/argp.h (__attribute__): Remove definition.
58866         (_GL_ATTRIBUTE_FORMAT): New macro.
58867         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58868         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58869         (_GL_ATTRIBUTE_FORMAT): New macro.
58870         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58871         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58872         GCC 3 or newer.
58873         * lib/error.h (__attribute__): Remove definition.
58874         (_GL_ATTRIBUTE_FORMAT): New macro.
58875         (error, error_at_line): Use it.
58876         * lib/hash.h (__attribute__): Remove definition.
58877         (ATTRIBUTE_WUR): Update definition. Define always.
58878         * lib/openat.h (__attribute__): Remove definition.
58879         (ATTRIBUTE_NORETURN): Update definition. Define always.
58880         * lib/sigpipe-die.h (__attribute__): Remove definition.
58881         (ATTRIBUTE_NORETURN): Update definition. Define always.
58882         * lib/vasnprintf.h (__attribute__): Remove definition.
58883         (_GL_ATTRIBUTE_FORMAT): New macro.
58884         (asnprintf, vasnprintf): Use it.
58885         * lib/xalloc.h (__attribute__): Remove definition.
58886         (ATTRIBUTE_NORETURN): Update definition. Define always.
58887         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58888         * lib/xmemdup0.h (__attribute__): Remove definition.
58889         (ATTRIBUTE_NORETURN): Update definition. Define always.
58890         * lib/xprintf.h (__attribute__): Remove definition.
58891         (_GL_ATTRIBUTE_FORMAT): New macro.
58892         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58893         * lib/xstrtol.h (__attribute__): Remove definition.
58894         (ATTRIBUTE_NORETURN): Update definition. Define always.
58895         * lib/xvasprintf.h (__attribute__): Remove definition.
58896         (_GL_ATTRIBUTE_FORMAT): New macro.
58897         (xasprintf, xvasprintf): Use it.
58898         * tests/test-argmatch.c (__attribute__): Remove definition.
58899         (ATTRIBUTE_NORETURN): Update definition. Define always.
58900         * tests/test-exclude.c (__attribute__): Remove definition.
58901         (ATTRIBUTE_NORETURN): Update definition. Define always.
58902         Reported by Paul Eggert.
58904 2011-02-13  Bruno Haible  <bruno@clisp.org>
58906         mbrtowc: Add more tests for native Windows platforms.
58907         * tests/test-mbrtowc-w32-1.sh: New file.
58908         * tests/test-mbrtowc-w32-2.sh: New file.
58909         * tests/test-mbrtowc-w32-3.sh: New file.
58910         * tests/test-mbrtowc-w32-4.sh: New file.
58911         * tests/test-mbrtowc-w32-5.sh: New file.
58912         * tests/test-mbrtowc-w32.c: New file.
58913         * modules/mbrtowc-tests (Files): Add them.
58914         (Makefile.am): Arrange to run these tests.
58915         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58916         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58918 2011-02-13  Bruno Haible  <bruno@clisp.org>
58920         mbrtowc: Work around native Windows bug.
58921         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58922         guess when no suitable locale for testing was found.
58923         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58925 2011-02-13  Bruno Haible  <bruno@clisp.org>
58927         mbsinit: Work around mingw bug.
58928         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58929         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58930         Windows.
58931         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58933 2011-02-13  Bruno Haible  <bruno@clisp.org>
58935         mbsinit: Don't crash for a NULL argument.
58936         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58937         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58939 2011-02-13  Bruno Haible  <bruno@clisp.org>
58941         Don't interfere with a program's definition of __attribute__.
58942         * lib/stdio.in.h (__attribute__): Remove definition.
58943         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58944         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58945         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58946         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58947         * lib/string.in.h (__attribute__): Remove definition.
58948         Reported by Paul Eggert.
58950 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58952         stdlib: don't get in the way of non-GCC __attribute__
58953         See thread starting at
58954         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58955         Revert previous stdlib change, installing the following instead:
58956         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58957         to get in the way of a non-GCC compiler that supports __attribute__.
58958         (_GL_ATTRIBUTE_RETURN): New macro.
58959         (_Exit): Use it instead of __attribute__.
58961 2011-02-12  Bruno Haible  <bruno@clisp.org>
58963         quotearg test: Avoid test failure on mingw.
58964         * tests/test-quotearg.sh: Convert the locale identifier from native
58965         Windows syntax to Unix syntax.
58967 2011-02-12  Bruno Haible  <bruno@clisp.org>
58969         setlocale: Prefer gnulib's override over libintl's override.
58970         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58971         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58972         GNULIB_defined_setlocale is set.
58974 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58976         stdlib: support non-GCC __attribute__
58978         Fix a serious and tricky problem encountered when attempting to
58979         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58980         5.5, but it crashed due to memory corruption on Solaris 10 with
58981         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58982         bits that are otherwise zero.  This tagging is optional inside
58983         Emacs but is preferred and is used when __attribute__ ((__aligned
58984         (8))) works, as it does with both recent-enough GCC and with Sun C
58985         5.11.  However, Sun C 5.11 is not GCC and does not #define
58986         __GNUC__ and __GNUC_MINOR__.
58988         When I added the getloadavg module to Emacs, it brought in
58989         stdlib.in.h, which contained this fragment:
58991            #ifndef __attribute__
58992            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58993            #  define __attribute__(Spec)   /* empty */
58994            # endif
58995            #endif
58997         When files that include <stdlib.h> were compiled with Sun C 5.11,
58998         the above code disabled __attribute__ ((__aligned (8))), which
58999         caused variables to not be properly aligned, which eventually led
59000         to the pointer corruption mentioned above.  (This was a bit hard
59001         to diagnose, unfortunately.)
59003         Several "#define __attribute__(X) /* empty */" code snippets need
59004         to be eradicated from Gnulib to work with non-GCC compilers that
59005         support __attribute__.  The Autoconf way to do this is to test for
59006         each kind of attribute that we want support for, and selectively
59007         enable that in source code.
59009         Fix this problem just for stdlib.h, by adding a test for the
59010         __noreturn__ attribute, and change stdlib.in.h to use that test
59011         when needed.  This technique can be easily generalized to the
59012         other *.in.h files and attributes, and a similar technique can be
59013         used for *.h and *.c files.  This patch is enough to solve the
59014         problem for Emacs + getloadavg, and I thought I'd publish it for
59015         feedback before undertaking further, similar fixes in other
59016         modules.
59018         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59019         because it's not needed for stdlib.h.  It merely substitutes the
59020         value directly into stdlib.h.  We may well need to #define it, or
59021         similar symbols, for other modules, but it's nice to also have an
59022         option to not #define it for applications like Emacs that do not
59023         need it.
59025         * lib/stdlib.in.h (__attribute__): Do not #define.
59026         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59027         be defined only if the _Exit module is also used.
59028         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59030         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59031         platforms.
59032         * modules/_Exit (Files): Add m4/attribute.m4.
59033         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59034         * m4/attribute.m4: New file.
59036 2011-02-12  Bruno Haible  <bruno@clisp.org>
59038         wcsrtombs: Work around bug on native Windows.
59039         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59040         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59041         instead of len.
59042         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59044 2011-02-12  Bruno Haible  <bruno@clisp.org>
59046         mbsrtowcs: Work around bug on native Windows.
59047         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59048         against mingw bug.
59049         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59051 2011-02-12  Bruno Haible  <bruno@clisp.org>
59053         Avoid setlocale bugs in tests.
59054         * modules/btowc (Dependencies): Add setlocale.
59055         * modules/c-strcase (Dependencies): Likewise.
59056         * modules/mbmemcasecmp (Dependencies): Likewise.
59057         * modules/mbmemcasecoll (Dependencies): Likewise.
59058         * modules/mbrtowc (Dependencies): Likewise.
59059         * modules/mbscasecmp (Dependencies): Likewise.
59060         * modules/mbscasestr (Dependencies): Likewise.
59061         * modules/mbschr (Dependencies): Likewise.
59062         * modules/mbscspn (Dependencies): Likewise.
59063         * modules/mbsinit (Dependencies): Likewise.
59064         * modules/mbsncasecmp (Dependencies): Likewise.
59065         * modules/mbsnrtowcs (Dependencies): Likewise.
59066         * modules/mbspbrk (Dependencies): Likewise.
59067         * modules/mbspcasecmp (Dependencies): Likewise.
59068         * modules/mbsrchr (Dependencies): Likewise.
59069         * modules/mbsrtowcs (Dependencies): Likewise.
59070         * modules/mbsspn (Dependencies): Likewise.
59071         * modules/mbsstr (Dependencies): Likewise.
59072         * modules/nl_langinfo (Dependencies): Likewise.
59073         * modules/quotearg (Dependencies): Likewise.
59074         * modules/unicase/locale-language (Dependencies): Likewise.
59075         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59076         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59077         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59078         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59079         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59080         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59081         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59082         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59083         * modules/vasnprintf-posix (Dependencies): Likewise.
59084         * modules/wcrtomb (Dependencies): Likewise.
59085         * modules/wcsnrtombs (Dependencies): Likewise.
59086         * modules/wcsrtombs (Dependencies): Likewise.
59088 2011-02-12  Bruno Haible  <bruno@clisp.org>
59090         setlocale: Workaround native Windows bug.
59091         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59092         succeeds but sets LC_CTYPE to "C", report a failure.
59093         * tests/test-setlocale2.sh: New file.
59094         * tests/test-setlocale2.c: New file.
59095         * modules/setlocale-tests (Files): Add the new files.
59096         (Makefile.am): Enable test-setlocale2.sh test.
59097         * doc/posix-functions/setlocale.texi: Mention workaround.
59099 2011-02-11  Bruno Haible  <bruno@clisp.org>
59101         Tests for module 'setlocale'.
59102         * modules/setlocale-tests: New file.
59103         * tests/test-setlocale1.sh: New file.
59104         * tests/test-setlocale1.c: New file.
59106         New module 'setlocale'.
59107         * lib/locale.in.h (setlocale): New declaration.
59108         * lib/setlocale.c: New file, based on
59109         gettext/gettext-runtime/intl/setlocale.c.
59110         * m4/setlocale.m4: New file.
59111         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59112         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59113         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59114         REPLACE_SETLOCALE.
59115         * modules/setlocale: New file.
59116         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59117         * doc/posix-functions/setlocale.texi: Mention the new module.
59119 2011-02-11  Bruno Haible  <bruno@clisp.org>
59121         Prepare for locale dependent tests on mingw.
59122         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59123         because it has the wrong locale encoding.
59124         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59125         French_France.1252 instead of "fr".
59126         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59127         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59128         because it has the wrong locale encoding.
59129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59130         native Windows, try Turkish_Turkey.65001.
59131         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59132         Chinese_China.54936.
59134         Prepare for locale dependent tests on mingw.
59135         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59136         differently.
59137         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59138         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59139         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59140         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59142 2011-02-11  Eric Blake  <eblake@redhat.com>
59144         strptime: avoid compiler warnings
59145         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59146         compiler warnings about dead code.
59147         Reported by Daniel P. Berrange.
59149 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59151         doc: update users.txt
59152         * users.txt: Add rcs.
59154 2011-02-10  John W. Eaton  <jwe@gnu.org>
59156         doc: update users.txt
59157         * users.txt: Add octave.
59159 2011-02-10  Jim Meyering  <meyering@redhat.com>
59161         doc: update users.txt
59162         * users.txt: Add iwhd.
59164 2011-02-09  Bruno Haible  <bruno@clisp.org>
59166         gnulib-tool: Make copyright notice adjustment more robust.
59167         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59168         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59169         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59170         License".
59171         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59173 2011-02-06  Bruno Haible  <bruno@clisp.org>
59175         New module 'towctrans'.
59176         * modules/towctrans: New file.
59177         * lib/wctype.in.h (towctrans): New declaration.
59178         * lib/towctrans.c: New file.
59179         * lib/towctrans-impl.h: New file.
59180         * m4/towctrans.m4: New file.
59181         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59182         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59183         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59184         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59185         * doc/posix-functions/towctrans.texi: Mention the new module.
59187 2011-02-06  Bruno Haible  <bruno@clisp.org>
59189         New module 'wctrans'.
59190         * modules/wctrans: New file.
59191         * lib/wctype.in.h (wctrans): New declaration.
59192         * lib/wctrans.c: New file.
59193         * lib/wctrans-impl.h: New file.
59194         * m4/wctrans.m4: New file.
59195         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59196         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59197         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59198         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59199         * doc/posix-functions/wctrans.texi: Mention the new module.
59201 2011-02-06  Bruno Haible  <bruno@clisp.org>
59203         New module 'iswctype'.
59204         * modules/iswctype: New file.
59205         * lib/wctype.in.h (iswctype): New declaration.
59206         * lib/iswctype.c: New file.
59207         * lib/iswctype-impl.h: New file.
59208         * m4/iswctype.m4: New file.
59209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59210         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59211         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59212         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59213         * doc/posix-functions/iswctype.texi: Mention the new module and the
59214         HP-UX 11.00 problem.
59216 2011-02-06  Bruno Haible  <bruno@clisp.org>
59218         New module 'wctype'.
59219         * modules/wctype: Change to represent the wctype() substitute.
59220         * lib/wctype.in.h (wctype): New declaration.
59221         * lib/wctype.c: New file.
59222         * lib/wctype-impl.h: New file.
59223         * m4/wctype.m4: New file.
59224         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59225         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59226         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59227         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59228         * doc/posix-functions/wctype.texi: Mention the new module and the
59229         HP-UX 11.00 problem.
59231 2011-02-06  Bruno Haible  <bruno@clisp.org>
59233         wctype-h: Ensure wctype_t and wctrans_t are defined.
59234         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59235         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59236         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59237         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59238         HAVE_WCTRANS_T.
59239         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59241 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59243         flock: fix license typo
59245         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59246         omitted.
59248 2011-02-08  Bruno Haible  <bruno@clisp.org>
59250         Split large sed scripts, for HP-UX sed.
59251         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59252         to avoid HP-UX limit of 99 commands, in the near future.
59253         * modules/stdlib (Makefile.am): Likewise.
59254         * modules/unistd (Makefile.am): Likewise.
59255         * modules/wchar (Makefile.am): Likewise.
59256         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59257         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59258         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59260 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59261             Bruno Haible  <bruno@clisp.org>
59263         stdlib: improve random_r modularization
59264         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59265         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59266         you also need the random_r module to get this material right.
59267         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59268         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59269         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59271 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59273         stdlib: don't depend on stdint
59274         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59275         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59276         be independent of whether stdint.h is needed.
59277         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59278         here, instead of ...
59279         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59280         struct random_data should be using the random_r module, not just
59281         the stdlib module (which wouldn't make sense: what package needs
59282         just struct random_data without also needing random_r?).
59283         * modules/stdlib (Depends-on): Remove stdint.
59285         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59286         See the thread rooted at
59287         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59288         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59289         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59290         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59291         __VMS)); previously it was always included (via fcntl--.h).
59292         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59293         hand; this is good enough for load averages.  Also, do not use
59294         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59295         flags directly if available and don't bother otherwise.  (Packages
59296         that need the extra reliability should use the modules that define
59297         these flags on older platforms that lack them.)
59298         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59299         fcntl-safer.
59301 2011-02-08  Jim Meyering  <meyering@redhat.com>
59303         di-set.h, ino-map.h: add multiple-inclusion guard
59304         Technically, the guard is required only for ino-map.h, due to its
59305         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59306         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59307         * lib/ino-map.h: Likewise.
59309 2011-02-06  Bruno Haible  <bruno@clisp.org>
59311         iswblank: Ensure declaration on glibc systems.
59312         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59313         * modules/iswblank (Dependencies): Add 'extensions'.
59314         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59316 2011-02-06  Bruno Haible  <bruno@clisp.org>
59318         New module 'iswblank'.
59319         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59320         * modules/iswblank: New file.
59321         * modules/wctype-h (Files): Remove lib/iswblank.c.
59322         (Makefile.am): Substitute GNULIB_ISWBLANK.
59323         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59324         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59325         (gl_WCTYPE_H_DEFAULTS): New macro.
59326         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59327         * modules/iswblank-tests: New file.
59328         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59329         * tests/test-wctype-h.c (main): Remove iswblank tests.
59330         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59331         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59332         of 'wctype-h'.
59333         * NEWS: Mention the change.
59334         * modules/mbchar (Depends-on): Add iswblank.
59336 2011-02-08  Bruno Haible  <bruno@clisp.org>
59338         di-set tests: Refactor.
59339         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59340         unnecessary includes.
59341         (ASSERT): Remove macro.
59342         (main): Make C90 compliant by avoiding variable declaration after
59343         statement.
59344         * modules/di-set-tests (Files): Add tests/macros.h.
59346 2011-02-08  Bruno Haible  <bruno@clisp.org>
59348         ino-map tests: Refactor.
59349         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59350         unnecessary includes.
59351         (ASSERT): Remove macro.
59352         (main): Make C90 compliant by avoiding variable declaration after
59353         statement.
59354         * modules/ino-map-tests (Files): Add tests/macros.h.
59356 2011-02-08  Jim Meyering  <meyering@redhat.com>
59358         di-set: add "const" to a cast
59359         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59360         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59362 2011-02-06  Bruno Haible  <bruno@clisp.org>
59364         Rename module 'wctype' to 'wctype-h'.
59365         * modules/wctype-h: Renamed from modules/wctype.
59366         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59367         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59368         (Files, Depends-on, Makefile.am): Update.
59369         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59370         (Files, Makefile.am): Update.
59371         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59372         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59373         * doc/posix-headers/wctype.texi: Update.
59374         * doc/posix-functions/iswalnum.texi: Update.
59375         * doc/posix-functions/iswalpha.texi: Update.
59376         * doc/posix-functions/iswblank.texi: Update.
59377         * doc/posix-functions/iswcntrl.texi: Update.
59378         * doc/posix-functions/iswdigit.texi: Update.
59379         * doc/posix-functions/iswgraph.texi: Update.
59380         * doc/posix-functions/iswlower.texi: Update.
59381         * doc/posix-functions/iswprint.texi: Update.
59382         * doc/posix-functions/iswpunct.texi: Update.
59383         * doc/posix-functions/iswspace.texi: Update.
59384         * doc/posix-functions/iswupper.texi: Update.
59385         * doc/posix-functions/iswxdigit.texi: Update.
59386         * doc/posix-functions/towlower.texi: Update.
59387         * doc/posix-functions/towupper.texi: Update.
59388         * NEWS: Mention the change.
59389         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59390         * modules/mbchar (Dependencies): Likewise.
59391         * modules/mbswidth (Dependencies): Likewise.
59392         * modules/quotearg (Dependencies): Likewise.
59393         * modules/regex (Dependencies): Likewise.
59394         * modules/wcscasecmp (Dependencies): Likewise.
59395         * modules/wcsncasecmp (Dependencies): Likewise.
59396         * modules/wcwidth (Dependencies): Likewise.
59398 2011-02-06  Bruno Haible  <bruno@clisp.org>
59400         New module 'wcswidth'.
59401         * modules/wcswidth: New file.
59402         * lib/wchar.in.h (wcswidth): New declaration.
59403         * lib/wcswidth.c: New file.
59404         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59405         * m4/wcswidth.m4: New file.
59406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59408         REPLACE_WCSWIDTH.
59409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59410         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59411         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59412         * doc/posix-functions/wcswidth.texi: Mention the new module.
59414 2011-02-06  Bruno Haible  <bruno@clisp.org>
59416         New module 'wcstok'.
59417         * modules/wcstok: New file.
59418         * lib/wchar.in.h (wcstok): New declaration.
59419         * lib/wcstok.c: New file.
59420         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59421         * m4/wcstok.m4: New file.
59422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59425         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59426         * doc/posix-functions/wcstok.texi: Mention the new module.
59428 2011-02-06  Bruno Haible  <bruno@clisp.org>
59430         New module 'wcsstr'.
59431         * modules/wcsstr: New file.
59432         * lib/wchar.in.h (wcsstr): New declaration.
59433         * lib/wcsstr.c: New file.
59434         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59435         * m4/wcsstr.m4: New file.
59436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59439         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59440         * doc/posix-functions/wcsstr.texi: Mention the new module.
59442 2011-02-06  Bruno Haible  <bruno@clisp.org>
59444         New module 'wcspbrk'.
59445         * modules/wcspbrk: New file.
59446         * lib/wchar.in.h (wcspbrk): New declaration.
59447         * lib/wcspbrk.c: New file.
59448         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59449         * m4/wcspbrk.m4: New file.
59450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59453         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59454         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59456 2011-02-06  Bruno Haible  <bruno@clisp.org>
59458         New module 'wcsspn'.
59459         * modules/wcsspn: New file.
59460         * lib/wchar.in.h (wcsspn): New declaration.
59461         * lib/wcsspn.c: New file.
59462         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59463         * m4/wcsspn.m4: New file.
59464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59467         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59468         * doc/posix-functions/wcsspn.texi: Mention the new module.
59470 2011-02-06  Bruno Haible  <bruno@clisp.org>
59472         New module 'wcscspn'.
59473         * modules/wcscspn: New file.
59474         * lib/wchar.in.h (wcscspn): New declaration.
59475         * lib/wcscspn.c: New file.
59476         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59477         * m4/wcscspn.m4: New file.
59478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59481         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59482         * doc/posix-functions/wcscspn.texi: Mention the new module.
59484 2011-02-06  Bruno Haible  <bruno@clisp.org>
59486         New module 'wcsrchr'.
59487         * modules/wcsrchr: New file.
59488         * lib/wchar.in.h (wcsrchr): New declaration.
59489         * lib/wcsrchr.c: New file.
59490         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59491         * m4/wcsrchr.m4: New file.
59492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59495         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59496         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59498 2011-02-06  Bruno Haible  <bruno@clisp.org>
59500         New module 'wcschr'.
59501         * modules/wcschr: New file.
59502         * lib/wchar.in.h (wcschr): New declaration.
59503         * lib/wcschr.c: New file.
59504         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59505         * m4/wcschr.m4: New file.
59506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59509         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59510         * doc/posix-functions/wcschr.texi: Mention the new module.
59512 2011-02-06  Bruno Haible  <bruno@clisp.org>
59514         New module 'wcsdup'.
59515         * modules/wcsdup: New file.
59516         * lib/wchar.in.h (wcsdup): New declaration.
59517         * lib/wcsdup.c: New file.
59518         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59519         * m4/wcsdup.m4: New file.
59520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59523         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59524         * doc/posix-functions/wcsdup.texi: Mention the new module.
59526 2011-02-06  Bruno Haible  <bruno@clisp.org>
59528         New module 'wcsxfrm'.
59529         * modules/wcsxfrm: New file.
59530         * lib/wchar.in.h (wcsxfrm): New declaration.
59531         * lib/wcsxfrm.c: New file.
59532         * lib/wcsxfrm-impl.h: New file.
59533         * m4/wcsxfrm.m4: New file.
59534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59537         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59538         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59540 2011-02-06  Bruno Haible  <bruno@clisp.org>
59542         New module 'wcscoll'.
59543         * modules/wcscoll: New file.
59544         * lib/wchar.in.h (wcscoll): New declaration.
59545         * lib/wcscoll.c: New file.
59546         * lib/wcscoll-impl.h: New file.
59547         * m4/wcscoll.m4: New file.
59548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59551         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59552         * doc/posix-functions/wcscoll.texi: Mention the new module.
59554 2011-02-06  Bruno Haible  <bruno@clisp.org>
59556         New module 'wcsncasecmp'.
59557         * modules/wcsncasecmp: New file.
59558         * lib/wchar.in.h (wcsncasecmp): New declaration.
59559         * lib/wcsncasecmp.c: New file.
59560         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59561         * m4/wcsncasecmp.m4: New file.
59562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59565         HAVE_WCSNCASECMP.
59566         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59567         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59569 2011-02-06  Bruno Haible  <bruno@clisp.org>
59571         New module 'wcscasecmp'.
59572         * modules/wcscasecmp: New file.
59573         * lib/wchar.in.h (wcscasecmp): New declaration.
59574         * lib/wcscasecmp.c: New file.
59575         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59576         * m4/wcscasecmp.m4: New file.
59577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59580         HAVE_WCSCASECMP.
59581         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59582         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59584 2011-02-05  Bruno Haible  <bruno@clisp.org>
59586         New module 'wcsncmp'.
59587         * modules/wcsncmp: New file.
59588         * lib/wchar.in.h (wcsncmp): New declaration.
59589         * lib/wcsncmp.c: New file.
59590         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59591         * m4/wcsncmp.m4: New file.
59592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59595         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59596         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59598 2011-02-05  Bruno Haible  <bruno@clisp.org>
59600         New module 'wcscmp'.
59601         * modules/wcscmp: New file.
59602         * lib/wchar.in.h (wcscmp): New declaration.
59603         * lib/wcscmp.c: New file.
59604         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59605         * m4/wcscmp.m4: New file.
59606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59609         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59610         * doc/posix-functions/wcscmp.texi: Mention the new module.
59612 2011-02-05  Bruno Haible  <bruno@clisp.org>
59614         New module 'wcsncat'.
59615         * modules/wcsncat: New file.
59616         * lib/wchar.in.h (wcsncat): New declaration.
59617         * lib/wcsncat.c: New file.
59618         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59619         * m4/wcsncat.m4: New file.
59620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59623         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59624         * doc/posix-functions/wcsncat.texi: Mention the new module.
59626 2011-02-05  Bruno Haible  <bruno@clisp.org>
59628         New module 'wcscat'.
59629         * modules/wcscat: New file.
59630         * lib/wchar.in.h (wcscat): New declaration.
59631         * lib/wcscat.c: New file.
59632         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59633         * m4/wcscat.m4: New file.
59634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59637         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59638         * doc/posix-functions/wcscat.texi: Mention the new module.
59640 2011-02-05  Bruno Haible  <bruno@clisp.org>
59642         New module 'wcpncpy'.
59643         * modules/wcpncpy: New file.
59644         * lib/wchar.in.h (wcpncpy): New declaration.
59645         * lib/wcpncpy.c: New file.
59646         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59647         * m4/wcpncpy.m4: New file.
59648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59650         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59651         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59652         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59654 2011-02-05  Bruno Haible  <bruno@clisp.org>
59656         New module 'wcsncpy'.
59657         * modules/wcsncpy: New file.
59658         * lib/wchar.in.h (wcsncpy): New declaration.
59659         * lib/wcsncpy.c: New file.
59660         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59661         * m4/wcsncpy.m4: New file.
59662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59665         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59666         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59668 2011-02-05  Bruno Haible  <bruno@clisp.org>
59670         New module 'wcpcpy'.
59671         * modules/wcpcpy: New file.
59672         * lib/wchar.in.h (wcpcpy): New declaration.
59673         * lib/wcpcpy.c: New file.
59674         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59675         * m4/wcpcpy.m4: New file.
59676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59678         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59679         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59680         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59682 2011-02-05  Bruno Haible  <bruno@clisp.org>
59684         New module 'wcscpy'.
59685         * modules/wcscpy: New file.
59686         * lib/wchar.in.h (wcscpy): New declaration.
59687         * lib/wcscpy.c: New file.
59688         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59689         * m4/wcscpy.m4: New file.
59690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59693         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59694         * doc/posix-functions/wcscpy.texi: Mention the new module.
59696 2011-02-05  Bruno Haible  <bruno@clisp.org>
59698         New module 'wcsnlen'.
59699         * modules/wcsnlen: New file.
59700         * lib/wchar.in.h (wcsnlen): New declaration.
59701         * lib/wcsnlen.c: New file.
59702         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59703         * m4/wcsnlen.m4: New file.
59704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59707         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59708         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59710 2011-02-05  Bruno Haible  <bruno@clisp.org>
59712         New module 'wcslen'.
59713         * modules/wcslen: New file.
59714         * lib/wchar.in.h (wcslen): New declaration.
59715         * lib/wcslen.c: New file.
59716         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59717         * m4/wcslen.m4: New file.
59718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59721         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59722         * doc/posix-functions/wcslen.texi: Mention the new module.
59724 2011-02-05  Bruno Haible  <bruno@clisp.org>
59726         New module 'wmemset'.
59727         * modules/wmemset: New file.
59728         * lib/wchar.in.h (wmemset): New declaration.
59729         * lib/wmemset.c: New file.
59730         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59731         * m4/wmemset.m4: New file.
59732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59734         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59735         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59736         * doc/posix-functions/wmemset.texi: Mention the new module.
59738 2011-02-05  Bruno Haible  <bruno@clisp.org>
59740         New module 'wmemmove'.
59741         * modules/wmemmove: New file.
59742         * lib/wchar.in.h (wmemmove): New declaration.
59743         * lib/wmemmove.c: New file.
59744         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59745         * m4/wmemmove.m4: New file.
59746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59748         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59749         HAVE_WMEMMOVE.
59750         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59751         * doc/posix-functions/wmemmove.texi: Mention the new module.
59753 2011-02-05  Bruno Haible  <bruno@clisp.org>
59755         New module 'wmemcpy'.
59756         * modules/wmemcpy: New file.
59757         * lib/wchar.in.h (wmemcpy): New declaration.
59758         * lib/wmemcpy.c: New file.
59759         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59760         * m4/wmemcpy.m4: New file.
59761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59763         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59764         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59765         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59767 2011-02-05  Bruno Haible  <bruno@clisp.org>
59769         New module 'wmemcmp'.
59770         * modules/wmemcmp: New file.
59771         * lib/wchar.in.h (wmemcmp): New declaration.
59772         * lib/wmemcmp.c: New file.
59773         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59774         * m4/wmemcmp.m4: New file.
59775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59777         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59778         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59779         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59781 2011-02-07  Jim Meyering  <meyering@redhat.com>
59783         di-set, ino-map: new modules, from coreutils
59784         * lib/di-set.c: New file.
59785         * lib/di-set.h: Likewise.
59786         * lib/ino-map.c: Likewise.
59787         * lib/ino-map.h: Likewise.
59788         * modules/di-set: Likewise.
59789         * modules/di-set-tests: Likewise.
59790         * modules/ino-map: Likewise.
59791         * modules/ino-map-tests: Likewise.
59792         * tests/test-di-set.c: Likewise.
59793         * tests/test-ino-map.c: Likewise.
59795 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59797         getloadavg: merge minor changes from Emacs
59799         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59800         (getloadavg): Use memset, not bzero.
59802         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59803         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59804         clash (bug#86).
59806 2010-11-14  Bruno Haible  <bruno@clisp.org>
59808         Allow multiple gnulib generated replacements to coexist.
59809         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59810         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59811         * lib/langinfo.in.h (nl_item): Likewise.
59812         * lib/math.in.h (_NaN, NAN): Likewise.
59813         * lib/netdb.in.h (struct addrinfo): Likewise.
59814         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59815         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59816         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59817         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59818         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59819         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59820         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59821         pthread_mutexattr_init, pthread_mutexattr_settype,
59822         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59823         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59824         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59825         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59826         * lib/sched.in.h (struct sched_param): Likewise.
59827         * lib/se-selinux.in.h (security_class_t, security_context_t,
59828         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59829         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59830         lsetfilecon, fsetfilecon, security_check_context,
59831         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59832         Likewise.
59833         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59834         Likewise.
59835         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59836         _gl_function_taking_int_returning_void_t, union sigval,
59837         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59838         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59839         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59840         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59841         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59842         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59843         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59844         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59845         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59846         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59847         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59848         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59849         socklen_t, rpl_fd_isset): Likewise.
59850         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59851         * lib/sys_time.in.h (struct timeval): Likewise.
59852         * lib/sys_times.in.h (struct tms): Likewise.
59853         * lib/sys_utsname.in.h (struct utsname):
59854         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59855         * lib/unistd.in.h (getpagesize): Likewise.
59856         * lib/wchar.in.h (mbstate_t): Likewise.
59857         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59858         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59859         towlower, towupper): Likewise.
59860         Reported by Sam Steingold <sds@gnu.org>.
59862 2011-02-05  Eric Blake  <eblake@redhat.com>
59864         unsetenv: work around Haiku issues
59865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59866         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59868 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59870         libposix: avoid calling error() within libposix
59871         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59872         is defined.
59874 2011-02-05  Eric Blake  <eblake@redhat.com>
59876         strerror_r-posix: port to cygwin
59877         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59878         implementation.
59879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59880         * tests/test-strerror_r.c (main): Fix test.
59881         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59882         issue.
59884 2011-02-05  Bruno Haible  <bruno@clisp.org>
59886         New module 'wmemchr'.
59887         * modules/wmemchr: New file.
59888         * lib/wchar.in.h (wmemchr): New declaration.
59889         * lib/wmemchr.c: New file.
59890         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59891         * m4/wmemchr.m4: New file.
59892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59894         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59895         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59896         * doc/posix-functions/wmemchr.texi: Mention the new module.
59898 2011-02-04  Eric Blake  <eblake@redhat.com>
59900         fdopendir: detect FreeBSD bug
59901         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59902         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59904 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59906         stdbool: do not define HAVE_STDBOOL_H
59907         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59908         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59909         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59910         imported from the latest Autoconf git.  It was motivated by Emacs,
59911         which uses gnulib but does not need HAVE_STDBOOL_H.
59913 2011-02-04  Bruno Haible  <bruno@clisp.org>
59915         wcsnrtombs: Prepare for new module wwcsnrtombs.
59916         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59917         * lib/wcsnrtombs.c: Include it.
59918         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59920         wcsrtombs: Prepare for new module wwcsrtombs.
59921         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59922         * lib/wcsrtombs.c: Include it.
59923         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59925         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59926         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59927         * lib/mbsnrtowcs.c: Include it.
59928         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59930         mbsrtowcs: Prepare for new module mbsrtowwcs.
59931         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59932         * lib/mbsrtowcs.c: Include it.
59933         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59935 2011-02-04  Bruno Haible  <bruno@clisp.org>
59937         vasnprintf: Reduce use of malloc for small format strings.
59938         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59939         (arguments): Add room for the first 7 arguments.
59940         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59941         (char_directives, u8_directives, u16_directives, u32_directives): Add
59942         room for the first 7 directives.
59943         * lib/printf-parse.c: Include <string.h>.
59944         (PRINTF_PARSE): Change memory handling code so that it uses the first
59945         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59946         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59947         Reported by Pádraig Brady <P@draigbrady.com>.
59949 2011-01-31  Eric Blake  <eblake@redhat.com>
59951         dup2: work around Haiku bug
59952         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59953         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59954         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59955         * tests/test-dup2.c (main): Enhance test.
59957 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59959         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59960         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59961         declared by eglibc 2.11.2.
59962         * lib/stdio.in.h: Likewise.
59964 2011-01-31  Eric Blake  <eblake@redhat.com>
59966         ignore-value: add missing test dependency
59967         * tests/test-ignore-value.c: Revert previous change; stdio.h
59968         provides off_t.
59969         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59971 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59973         mktime: clarify long_int width checking
59974         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59975         the top level, to make it clearer that the assumption about
59976         long_int width is being checked.  See
59977         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59979 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59981         ignore-value: Fix self-test.
59982         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59984 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59986         TYPE_MAXIMUM: avoid theoretically undefined behavior
59987         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59988         negative number, which the C Standard says has undefined behavior.
59989         In practice this is not a problem, but might as well do it by the book.
59990         Reported by Rich Felker and Eric Blake; see
59991         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59992         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59993         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59995         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59996         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59997         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59999         mktime: #undef mktime before #defining it
60000         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60002         mktime: systematically normalize tm_isdst comparisons
60003         * lib/mktime.c (isdst_differ): New function.
60004         (__mktime_internal): Use it systematically for all isdst comparisons.
60005         This completes the fix for libc BZ #6723, and removes the need for
60006         normalizing tm_isdst.  See
60007         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60008         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60010         mktime: fix some integer overflow issues and sidestep the rest
60012         This was prompted by a bug report by Benjamin Lindner for MinGW
60013         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60014         His bug is due to signed integer overflow (0 - INT_MIN), and I
60015         I scanned through mktime.c looking for other integer overflow
60016         problems, fixing all the bugs I found.
60018         Although the C Standard says the resulting code is still not safe
60019         in the presence of integer overflow, in practice it should be good
60020         enough for all real-world two's-complement implementations, except
60021         for debugging environments that deliberately trap on integer
60022         overflow (e.g., gcc -ftrapv).
60024         * lib/mktime.c (WRAPV): New macro.
60025         (SHR): Also check that long_int and time_t shift right in the
60026         usual way, before using the fast-but-unportable method.
60027         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60028         used.  The code already assumed two's complement, so there's
60029         no need to test for alternatives.  All uses removed.
60030         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60031         the C standard.  Problem reported by Rich Felker in
60032         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60033         (twos_complement_arithmetic): Also check long_int and time_t.
60034         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60035         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60036         (__mktime_internal): Avoid integer overflow with unary subtraction
60037         in two instances where -1 - X is an adequate replacement for -X,
60038         since the calculations are approximate.
60040 2011-01-29  Eric Blake  <eblake@redhat.com>
60042         mktime: avoid infinite loop
60043         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60044         type; behavior is still undefined but portable to all known targets.
60045         Reported by Rich Felker.
60047 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60049         rename, unlink, same-inode: Relicense.
60050         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60051         * modules/unlink (License): Likewise.
60052         * modules/same-inode (License): Likewise.
60054 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60056         mktime: avoid problems on NetBSD 5 / i386
60057         * lib/mktime.c (long_int): New type.  This works around a problem
60058         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60059         but time_t is 64 bits, and where I expect the existing code is
60060         wrong in some cases.
60061         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60062         (ydhms_diff): Bring back the compile-time check for wide-enough
60063         year and yday.
60065         mktime: fix misspelling in comment
60066         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60067         This merges all recent glibc changes of importance.
60069 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60071         move-if-change: cope with concurrent mv of identical file.
60072         * build-aux/move-if-change (CMPPROG): Accept environment
60073         variable as an override for `cmp'.
60074         (usage): Document CMPPROG.
60075         Adjust comparison to drop stdout.  Cope with failure of mv if
60076         the target file exists and is identical to the source, for
60077         parallel builds.
60078         Report from H.J. Lu against binutils in PR binutils/12283.
60080 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60082         * users.txt: Mention sharutils.
60084 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60086         * users.txt: Mention OATH Toolkit.
60088 2011-01-27  Bruno Haible  <bruno@clisp.org>
60090         Prepare for supporting FreeBSD 10.
60091         * build-aux/config.libpath: Remove handling of freebsd1*.
60093 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60095         Prepare for supporting FreeBSD 10.
60096         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60097         match FreeBSD 10.0.
60099 2011-01-27  Bruno Haible  <bruno@clisp.org>
60101         vma-iter, get-rusage-as: Add OpenBSD support.
60102         * modules/vma-iter (configure.ac): Test for mquery.
60103         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60104         * lib/vma-iter.c: Include <sys/mman.h>.
60105         (vma_iterate): Add an implementation based on mquery().
60106         * lib/resource-ext.h (get_rusage_as): Update comments.
60107         * lib/get-rusage-as.c: Likewise.
60108         * lib/get-rusage-data.c: Likewise.
60110 2011-01-26  Karl Berry  <karl@gnu.org>
60112         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60113         variables to make it easier to override the makeinfo program used.
60115 2011-01-26  Eric Blake  <eblake@redhat.com>
60117         fcntl: work around Haiku F_DUPFD bugs
60118         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60119         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60120         cloexec bit on duplication.
60121         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60123 2011-01-26  Bruno Haible  <bruno@clisp.org>
60125         Enable memory leak tests on AIX.
60126         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60127         * tests/test-fprintf-posix3.c (main): Likewise.
60129 2011-01-26  Bruno Haible  <bruno@clisp.org>
60131         Tests for module 'get-rusage-data'.
60132         * modules/get-rusage-data-tests: New file.
60133         * tests/test-get-rusage-data.c: New file.
60135         New module 'get-rusage-data'.
60136         * lib/resource-ext.h (get_rusage_data): New declaration.
60137         * lib/get-rusage-data.c: New file.
60138         * modules/get-rusage-data: New file.
60140 2011-01-25  Bruno Haible  <bruno@clisp.org>
60142         get-rusage-as: Allow for easier testing.
60143         * lib/resource-ext.h (get_rusage_as): Add comment.
60144         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60145         (main): New function for interactive testing.
60147 2011-01-25  Bruno Haible  <bruno@clisp.org>
60149         vma-iter: Treat Haiku like BeOS.
60150         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60151         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60153 2011-01-25  Eric Blake  <eblake@redhat.com>
60155         c-stack: fix regression on cygwin when libsigsegv is present
60156         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60158 2011-01-24  Bruno Haible  <bruno@clisp.org>
60160         vma-iter: Avoid empty intervals.
60161         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60162         on an empty interval.
60164 2011-01-24  Jim Meyering  <meyering@redhat.com>
60166         u64: remove unnecessary #include
60167         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60169 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60171         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60172         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60174 2011-01-23  Bruno Haible  <bruno@clisp.org>
60176         New module 'vma-iter'.
60177         * lib/vma-iter.h: New file.
60178         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60179         * modules/vma-iter: New file.
60180         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60181         for get_rusage_as_via_iterator.
60182         (vma_iterate_callback): New function.
60183         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60184         * modules/get-rusage-as (Depends-on): Add vma-iter.
60186 2011-01-23  Bruno Haible  <bruno@clisp.org>
60188         uninorm: Tweak includes.
60189         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60190         Reported by Jim Meyering.
60192 2011-01-23  Bruno Haible  <bruno@clisp.org>
60194         get-rusage-as: Improve on NetBSD.
60195         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60196         /proc, like on FreeBSD.
60198 2011-01-23  Jim Meyering  <meyering@redhat.com>
60200         xreadlink.h: remove unnecessary #include
60201         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60203         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60204         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60206 2011-01-23  Bruno Haible  <bruno@clisp.org>
60208         get-rusage-as: Fix bug.
60209         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60210         original limit when aborting the first loop.
60212 2011-01-23  Bruno Haible  <bruno@clisp.org>
60214         wctype: Ensure valid C syntax.
60215         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60216         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60218 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60220         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60222         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60223         as they are needed only for configure's test case.
60224         This removes two unnecessary symbols from config.h.
60226         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60227         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60229         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60230         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60231         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60232         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60233         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60234         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60235         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60236         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60238         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60239         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60240         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60241         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60242         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60243         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60245 2011-01-21  Eric Blake  <eblake@redhat.com>
60247         maintainer-makefile: work with older git for submodule check
60248         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60249         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60250         Reported by Matthias Bolte.
60252         bootstrap: minor portability fixes
60253         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60254         (usage): Omit leading capital and trailing . on help phrases, per
60255         GNU Coding Standards.
60256         (check_versions, top level): Prefix messages with script name.
60258 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60260         bootstrap: support --no-git option
60261         * build-aux/bootstrap: Add --no-git option, to be used when
60262         --gnulib-srcdir points to the exact desired checkout.
60264 2011-01-21  Eric Blake  <eblake@redhat.com>
60266         strerror_r-posix: work with glibc 2.13
60267         * lib/strerror_r.c (strerror_r): Fix return type.
60269 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60270             Bruno Haible  <bruno@clisp.org>
60272         uN_strstr: New unit tests.
60273         * modules/unistr/u8-strstr-tests: New file.
60274         * modules/unistr/u16-strstr-tests: New file.
60275         * modules/unistr/u32-strstr-tests: New file.
60276         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60277         * tests/unistr/test-u8-strstr.c: New file.
60278         * tests/unistr/test-u16-strstr.c: New file.
60279         * tests/unistr/test-u32-strstr.c: New file.
60281 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60282             Bruno Haible  <bruno@clisp.org>
60284         Make uN_strstr functions O(n) worst-case.
60285         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60286         16-bit and 32-bit unit cases, use the unibyte algorithm from
60287         lib/mbsstr.c.
60288         * lib/unistr/u8-strstr.c: Include <string.h>.
60289         (UNIT_IS_UINT8_T): New macro.
60290         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60291         (U_STRLEN, U_STRNLEN): New macros.
60292         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60293         (U_STRLEN, U_STRNLEN): New macros.
60294         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60295         (configure.ac): Update required libunistring version.
60296         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60297         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60298         malloca.
60299         (configure.ac): Update required libunistring version.
60300         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60301         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60302         malloca.
60303         (configure.ac): Update required libunistring version.
60305 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60306             Bruno Haible  <bruno@clisp.org>
60308         Prepare for faster uN_strstr functions.
60309         * lib/str-kmp.h: Support definable UNITs.
60310         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60311         needle_len argument.
60312         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60313         * lib/mbscasestr.c (mbscasestr): Likewise.
60315 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60317         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60318         * tests/test-malloca.c (main): Unset the environment variable
60319         to greatly speed up the test.
60320         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60321         * modules/malloca-tests: Depend on unsetenv.
60323 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60325         ignore-value: remove stdint dependency
60326         * lib/ignore-value.h: Remove <stdint.h>
60327         * modules/ignore-value: Remove stdint dependency.
60329 2011-01-21  Jim Meyering  <meyering@redhat.com>
60331         maint.mk: adjust variable name to be consistent with other gl_ vars
60332         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60333         to be lower case.
60335 2011-01-20  Jim Meyering  <meyering@redhat.com>
60337         maint.mk: make "check" depend on public-submodule-commit by default
60338         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60340 2011-01-20  Bruno Haible  <bruno@clisp.org>
60342         mbfile, mbiter: Complete change from 2008-12-21.
60343         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60344         * m4/mbiter.m4 (gl_MBITER): Likewise.
60346 2011-01-20  Jim Meyering  <meyering@redhat.com>
60348         init.sh: insert space between each function name and "()"
60349         * tests/init.sh: Make it a little easier to see that a function's
60350         name is "warn_", and not "warn" when looking at the first part of
60351         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60353 2011-01-20  Jim Meyering  <meyering@redhat.com>
60355         mountlist: clean up code formatting
60356         * lib/mountlist.c (read_file_system_list): Split a long line,
60357         correct bracing style, use NULL in place of "(struct statfs *)0",
60358         don't parenthesize return value, add spaces around "=" and after
60359         ";-in-for-stmt".
60361 2011-01-14  Markus Duft  <mduft@gentoo.org>
60363         mountlist: add support for Interix
60364         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60365         Apply statvfs to all entries of /dev/fs.
60366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60367         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60369 2011-01-20  Jim Meyering  <meyering@redhat.com>
60371         maint.mk: improve the public-submodule-commit rule
60372         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60373         to suppress printing of its commands... unless V=1.
60374         Add git submodule's --quiet option to suppress printing of e.g.,
60375         "Entering gnulib" output.
60376         "cd" into $(srcdir) before running git submodule.
60378 2011-01-20  Bruno Haible  <bruno@clisp.org>
60380         include_next: Fix bug introduced on 2011-01-18.
60381         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60382         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60383         ac_cv_header_... variable if the second argument is not 'check'.
60384         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60385         gl_NEXT_HEADERS_INTERNAL.
60387 2011-01-20  Bruno Haible  <bruno@clisp.org>
60389         Allow the user to avoid the GNULIB_TEST_* macros.
60390         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60391         Suggested by Paul Eggert.
60393 2011-01-14  Jim Meyering  <meyering@redhat.com>
60395         bootstrap: avoid failure when there is no .gitmodules file
60396         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60397         has been assigned to, even when its value is the empty string.
60398         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60399         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60400         Reported by John W. Eaton <jwe@gnu.org>.
60402 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60404         assume <ctype.h>, ..., <time.h> exist
60405         For years gnulib has been assuming the existence of the headers
60406         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60407         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60408         them, since they don't appear to be needed.
60409         * README (Portability guidelines): Document this.
60410         * lib/flock.c: Assume <fcntl.h> exists.
60411         * lib/regex_internal.h: Assume <locale.h> exists.
60412         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60414         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60415         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60416         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60417         * m4/regex.m4 (gl_REGEX): Likewise.
60418         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60419         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60420         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60421         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60422         * tests/test-argp.c: Likewise.
60423         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60425         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60426         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60427         AA_APPLE_UNIVERSAL_BUILD.  See
60428         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60429         * NEWS: Document this.
60431 2011-01-19  Eric Blake  <eblake@redhat.com>
60433         c-stack: assume stack overflow if SA_SIGINFO unsupported
60434         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60435         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60436         sigaction will work.
60437         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60438         behavior match Linux.
60439         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60441         stdbool-tests: accommodate Haiku
60442         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60444         binary-io: fix O_TEXT on Haiku
60445         * modules/binary-io (Depends-on): Add fcntl-h.
60446         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60447         than blindly undefining O_TEXT.
60448         Reported by Scott McCreary.
60450 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60452         include_next: do not check for standard headers like stddef.h
60454         I found this problem when modifying Emacs to use gnulib.
60455         I noticed that it added HAVE_STDDEF_H to config.h, even though
60456         gnulib always assumes <stddef.h> exists as per README and this
60457         symbol is unnecessary.
60458         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60459         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60460         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60461         faster for headers like stddef.h that are known to exist.
60462         (gl_CHECK_NEXT_HEADERS): Use it.
60463         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60464         rather than gl_CHECK_NEXT_HEADERS.
60465         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60466         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60468 2011-01-18  Eric Blake  <eblake@redhat.com>
60470         ansi-c++-opt: skip C++ dependency style if C++ is unused
60471         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60472         tests when we know C++ compilation is not desired.
60473         Reported by Scott McCreary.
60475 2011-01-18  Bruno Haible  <bruno@clisp.org>
60477         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60478         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60479         (main): Perform test also when getrlimit and setrlimit don't exist or
60480         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60481         limiting the address space size using setrlimit, compare the address
60482         space size before and after the test.
60483         * tests/test-dprintf-posix2.c: Likewise.
60484         * tests/test-fprintf-posix3.sh: Update skip messages.
60485         * tests/test-dprintf-posix2.sh: Likewise.
60486         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60487         * modules/dprintf-posix-tests (Depends-on): Likewise.
60488         Reported by Bruce Korb <bkorb@gnu.org> and
60489         Gary V. Vaughan <gary@gnu.org>.
60491 2011-01-18  Bruno Haible  <bruno@clisp.org>
60493         get-rusage-as: Improvement for Cygwin.
60494         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60495         areas that are merely reserved.
60497 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60499         strftime: remove dependencies on multibyte modules
60501         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60502         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60503         only if __osf__ is defined, and I suspect OSF doesn't need these
60504         other modules.  If my guess is wrong, we'll need to come up with a
60505         variant of strftime that doesn't need the multibyte modules.
60507         I discovered this problem when attempting modify Emacs to use the
60508         strftime module.  With the previous gnulib, this caused Emacs to
60509         need 31 new files, ranging from lib/config.charset to
60510         m4/wint_t.m4.  This was overkill and I expect would be offputting
60511         to the Emacs maintainers.  After this change, only 6 new files are
60512         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60513         stdbool.m4, and tm_gmtoff.m4.
60515         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60516         Suggested by Bruno Haible in
60517         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60518         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60519         and do not check for wchar.h.
60520         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60521         (Depends-on): Remove mbrlen, mbsinit, wchar.
60523 2011-01-18  Bruno Haible  <bruno@clisp.org>
60525         Tests for module 'get-rusage-as'.
60526         * modules/get-rusage-as-tests: New file.
60527         * tests/test-get-rusage-as.c: New file.
60529         New module 'get-rusage-as'.
60530         * modules/get-rusage-as: New file.
60531         * lib/resource-ext.h: New file.
60532         * lib/get-rusage-as.c: New file.
60534 2011-01-17  Eric Blake  <eblake@redhat.com>
60536         sigaction: relax license from LGPLv3+ to LGPLv2+
60537         * modules/sigaction (License): Relax to LGPLv2+.
60539 2011-01-14  Bruno Haible  <bruno@clisp.org>
60541         filemode: Make function declarations usable in C++ mode.
60542         * lib/filemode.h: Enclose function declarations in extern "C" block.
60543         Reported by John W. Eaton <jwe@gnu.org>.
60545 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60547         save-cwd: no longer include "xgetcwd.h"
60548         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60549         This avoids a compilation failure in projects that use save-cwd
60550         without also using the xgetcwd module.
60552 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60554         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60555         This is so that a program like Emacs, which needs only dtoastr,
60556         does not have to bother with distributing and compiling ftoastr
60557         and ldtoastr.
60558         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60559         * modules/dtoastr, modules/ldtoastr: New files.
60560         * modules/ftoastr: Now works just for 'float'.
60561         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60562         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60563         dtoastr.c, ldtoastr.c.
60565 2011-01-11  Jim Meyering  <meyering@redhat.com>
60567         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60568         There is no need to work around the lack of the fchdir function,
60569         since gnulib can now provide a replacement when required.
60570         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60571         * modules/save-cwd (Depends-on): Add fchdir.
60573 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60575         openat, save-cwd: avoid xmalloc
60577         This removes a direct (but undocumented) dependency of openat on
60578         xalloc, along with an indirect dependency via save-cwd.  It also
60579         removes a dependency of save-cwd on xgetcwd, and thereby
60580         indirectly on xalloc.  This change causes the openat substitute
60581         to fall back on save_cwd when memory is tight, and for save_cwd to
60582         fail instead of dying when memory is tight, but that's good enough.
60583         Problem and initial idea for fix reported by Bastien Roucaries in
60584         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60586         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60587         xalloc.h (for xmalloc).
60588         (openat_proc_name): Use malloc, not xmalloc.
60589         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60590         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60592         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60593         This avoids heap allocation for file names whose lengths are in
60594         the range 512..1023, with the upper bound increasing to at most
60595         4031 depending on the platform's PATH_MAX.  (We do not want
60596         pathmax.h here as it might supply a non-constant PATH_MAX.)
60597         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60598         Perhaps they should be moved to malloca.h?
60599         (OPENAT_BUFFER_SIZE): Use them.
60601 2011-01-10  Bruno Haible  <bruno@clisp.org>
60603         doc: Update users.txt.
60604         * users.txt: Add recutils.
60606 2011-01-09  Karl Berry  <karl@gnu.org>
60608         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60610         * doc/configmake.texi: New file.
60611         * doc/gnulib.texi: Include it.
60612         * modules/configmake: Move documentation from here.
60614 2011-01-09  Bruno Haible  <bruno@clisp.org>
60616         Update to Unicode 6.0.0.
60617         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60618         (get_lbp): Update for Unicode 6.0.0.
60619         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60620         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60621         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60622         U+11001, U+11038..U+11046. Remove U+06DE.
60623         (uc_width): Fix bounds of planes.
60624         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60625         lib/uniwidth/width.c.
60626         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60627         trailing whitespace removed.
60628         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60629         without comments, but with the original copyright notice.
60630         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60631         * lib/unicase/ignorable.h: Likewise.
60632         * lib/unicase/tocasefold.h: Likewise.
60633         * lib/unicase/tolower.h: Likewise.
60634         * lib/unicase/totitle.h: Likewise.
60635         * lib/unicase/toupper.h: Likewise.
60636         * lib/unictype/bidi_of.h: Likewise.
60637         * lib/unictype/blocks.h: Likewise.
60638         * lib/unictype/categ_C.h: Likewise.
60639         * lib/unictype/categ_Cn.h: Likewise.
60640         * lib/unictype/categ_L.h: Likewise.
60641         * lib/unictype/categ_Ll.h: Likewise.
60642         * lib/unictype/categ_Lm.h: Likewise.
60643         * lib/unictype/categ_Lo.h: Likewise.
60644         * lib/unictype/categ_Lu.h: Likewise.
60645         * lib/unictype/categ_M.h: Likewise.
60646         * lib/unictype/categ_Mc.h: Likewise.
60647         * lib/unictype/categ_Me.h: Likewise.
60648         * lib/unictype/categ_Mn.h: Likewise.
60649         * lib/unictype/categ_N.h: Likewise.
60650         * lib/unictype/categ_Nd.h: Likewise.
60651         * lib/unictype/categ_No.h: Likewise.
60652         * lib/unictype/categ_P.h: Likewise.
60653         * lib/unictype/categ_Po.h: Likewise.
60654         * lib/unictype/categ_S.h: Likewise.
60655         * lib/unictype/categ_Sc.h: Likewise.
60656         * lib/unictype/categ_Sk.h: Likewise.
60657         * lib/unictype/categ_Sm.h: Likewise.
60658         * lib/unictype/categ_So.h: Likewise.
60659         * lib/unictype/categ_of.h: Likewise.
60660         * lib/unictype/combining.h: Likewise.
60661         * lib/unictype/ctype_alnum.h: Likewise.
60662         * lib/unictype/ctype_alpha.h: Likewise.
60663         * lib/unictype/ctype_graph.h: Likewise.
60664         * lib/unictype/ctype_lower.h: Likewise.
60665         * lib/unictype/ctype_print.h: Likewise.
60666         * lib/unictype/ctype_punct.h: Likewise.
60667         * lib/unictype/ctype_upper.h: Likewise.
60668         * lib/unictype/decdigit.h: Likewise.
60669         * lib/unictype/digit.h: Likewise.
60670         * lib/unictype/numeric.h: Likewise.
60671         * lib/unictype/pr_alphabetic.h: Likewise.
60672         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60673         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60674         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60675         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60676         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60677         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60678         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60679         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60680         * lib/unictype/pr_case_ignorable.h: Likewise.
60681         * lib/unictype/pr_cased.h: Likewise.
60682         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60683         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60684         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60685         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60686         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60687         * lib/unictype/pr_combining.h: Likewise.
60688         * lib/unictype/pr_composite.h: Likewise.
60689         * lib/unictype/pr_currency_symbol.h: Likewise.
60690         * lib/unictype/pr_decimal_digit.h: Likewise.
60691         * lib/unictype/pr_deprecated.h: Likewise.
60692         * lib/unictype/pr_format_control.h: Likewise.
60693         * lib/unictype/pr_grapheme_base.h: Likewise.
60694         * lib/unictype/pr_grapheme_extend.h: Likewise.
60695         * lib/unictype/pr_grapheme_link.h: Likewise.
60696         * lib/unictype/pr_id_continue.h: Likewise.
60697         * lib/unictype/pr_id_start.h: Likewise.
60698         * lib/unictype/pr_ideographic.h: Likewise.
60699         * lib/unictype/pr_lowercase.h: Likewise.
60700         * lib/unictype/pr_math.h: Likewise.
60701         * lib/unictype/pr_numeric.h: Likewise.
60702         * lib/unictype/pr_other_alphabetic.h: Likewise.
60703         * lib/unictype/pr_other_id_continue.h: Likewise.
60704         * lib/unictype/pr_other_math.h: Likewise.
60705         * lib/unictype/pr_punctuation.h: Likewise.
60706         * lib/unictype/pr_sentence_terminal.h: Likewise.
60707         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60708         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60709         * lib/unictype/pr_unified_ideograph.h: Likewise.
60710         * lib/unictype/pr_uppercase.h: Likewise.
60711         * lib/unictype/pr_xid_continue.h: Likewise.
60712         * lib/unictype/pr_xid_start.h: Likewise.
60713         * lib/unictype/scripts.h: Likewise.
60714         * lib/unictype/scripts_byname.gperf: Likewise.
60715         * lib/unictype/sy_java_ident.h: Likewise.
60716         * lib/unigbrk/gbrkprop.h: Likewise.
60717         * lib/unilbrk/lbrkprop1.h: Likewise.
60718         * lib/unilbrk/lbrkprop2.h: Likewise.
60719         * lib/uninorm/decomposition-table2.h: Likewise.
60720         * lib/uniwbrk/wbrkprop.h: Likewise.
60721         * tests/unicase/test-cased.c: Likewise.
60722         * tests/unicase/test-ignorable.c: Likewise.
60723         * tests/unicase/test-uc_tolower.c: Likewise.
60724         * tests/unicase/test-uc_totitle.c: Likewise.
60725         * tests/unicase/test-uc_toupper.c: Likewise.
60726         * tests/unictype/test-categ_C.c: Likewise.
60727         * tests/unictype/test-categ_Cn.c: Likewise.
60728         * tests/unictype/test-categ_L.c: Likewise.
60729         * tests/unictype/test-categ_Ll.c: Likewise.
60730         * tests/unictype/test-categ_Lm.c: Likewise.
60731         * tests/unictype/test-categ_Lo.c: Likewise.
60732         * tests/unictype/test-categ_Lu.c: Likewise.
60733         * tests/unictype/test-categ_M.c: Likewise.
60734         * tests/unictype/test-categ_Mc.c: Likewise.
60735         * tests/unictype/test-categ_Me.c: Likewise.
60736         * tests/unictype/test-categ_Mn.c: Likewise.
60737         * tests/unictype/test-categ_N.c: Likewise.
60738         * tests/unictype/test-categ_Nd.c: Likewise.
60739         * tests/unictype/test-categ_No.c: Likewise.
60740         * tests/unictype/test-categ_P.c: Likewise.
60741         * tests/unictype/test-categ_Po.c: Likewise.
60742         * tests/unictype/test-categ_S.c: Likewise.
60743         * tests/unictype/test-categ_Sc.c: Likewise.
60744         * tests/unictype/test-categ_Sk.c: Likewise.
60745         * tests/unictype/test-categ_Sm.c: Likewise.
60746         * tests/unictype/test-categ_So.c: Likewise.
60747         * tests/unictype/test-ctype_alnum.c: Likewise.
60748         * tests/unictype/test-ctype_alpha.c: Likewise.
60749         * tests/unictype/test-ctype_graph.c: Likewise.
60750         * tests/unictype/test-ctype_lower.c: Likewise.
60751         * tests/unictype/test-ctype_print.c: Likewise.
60752         * tests/unictype/test-ctype_punct.c: Likewise.
60753         * tests/unictype/test-ctype_upper.c: Likewise.
60754         * tests/unictype/test-decdigit.h: Likewise.
60755         * tests/unictype/test-digit.h: Likewise.
60756         * tests/unictype/test-numeric.h: Likewise.
60757         * tests/unictype/test-pr_alphabetic.c: Likewise.
60758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60759         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60760         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60761         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60762         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60763         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60764         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60765         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60766         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60767         * tests/unictype/test-pr_cased.c: Likewise.
60768         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60769         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60770         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60771         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60772         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60773         * tests/unictype/test-pr_combining.c: Likewise.
60774         * tests/unictype/test-pr_composite.c: Likewise.
60775         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60776         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60777         * tests/unictype/test-pr_deprecated.c: Likewise.
60778         * tests/unictype/test-pr_format_control.c: Likewise.
60779         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60780         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60781         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60782         * tests/unictype/test-pr_id_continue.c: Likewise.
60783         * tests/unictype/test-pr_id_start.c: Likewise.
60784         * tests/unictype/test-pr_ideographic.c: Likewise.
60785         * tests/unictype/test-pr_lowercase.c: Likewise.
60786         * tests/unictype/test-pr_math.c: Likewise.
60787         * tests/unictype/test-pr_numeric.c: Likewise.
60788         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60789         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60790         * tests/unictype/test-pr_other_math.c: Likewise.
60791         * tests/unictype/test-pr_punctuation.c: Likewise.
60792         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60793         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60794         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60795         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60796         * tests/unictype/test-pr_uppercase.c: Likewise.
60797         * tests/unictype/test-pr_xid_continue.c: Likewise.
60798         * tests/unictype/test-pr_xid_start.c: Likewise.
60799         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60800         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60801         changes.
60802         * lib/unictype/categ_Cc.h: Likewise.
60803         * lib/unictype/categ_Cf.h: Likewise.
60804         * lib/unictype/categ_Co.h: Likewise.
60805         * lib/unictype/categ_Cs.h: Likewise.
60806         * lib/unictype/categ_Lt.h: Likewise.
60807         * lib/unictype/categ_Nl.h: Likewise.
60808         * lib/unictype/categ_Pc.h: Likewise.
60809         * lib/unictype/categ_Pd.h: Likewise.
60810         * lib/unictype/categ_Pe.h: Likewise.
60811         * lib/unictype/categ_Pf.h: Likewise.
60812         * lib/unictype/categ_Pi.h: Likewise.
60813         * lib/unictype/categ_Ps.h: Likewise.
60814         * lib/unictype/categ_Z.h: Likewise.
60815         * lib/unictype/categ_Zl.h: Likewise.
60816         * lib/unictype/categ_Zp.h: Likewise.
60817         * lib/unictype/categ_Zs.h: Likewise.
60818         * lib/unictype/ctype_blank.h: Likewise.
60819         * lib/unictype/ctype_cntrl.h: Likewise.
60820         * lib/unictype/ctype_digit.h: Likewise.
60821         * lib/unictype/ctype_space.h: Likewise.
60822         * lib/unictype/ctype_xdigit.h: Likewise.
60823         * lib/unictype/mirror.h: Likewise.
60824         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60825         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60826         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60827         * lib/unictype/pr_bidi_control.h: Likewise.
60828         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60829         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60830         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60831         * lib/unictype/pr_bidi_pdf.h: Likewise.
60832         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60833         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60834         * lib/unictype/pr_dash.h: Likewise.
60835         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60836         * lib/unictype/pr_diacritic.h: Likewise.
60837         * lib/unictype/pr_extender.h: Likewise.
60838         * lib/unictype/pr_hex_digit.h: Likewise.
60839         * lib/unictype/pr_hyphen.h: Likewise.
60840         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60841         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60842         * lib/unictype/pr_ignorable_control.h: Likewise.
60843         * lib/unictype/pr_iso_control.h: Likewise.
60844         * lib/unictype/pr_join_control.h: Likewise.
60845         * lib/unictype/pr_left_of_pair.h: Likewise.
60846         * lib/unictype/pr_line_separator.h: Likewise.
60847         * lib/unictype/pr_logical_order_exception.h: Likewise.
60848         * lib/unictype/pr_non_break.h: Likewise.
60849         * lib/unictype/pr_not_a_character.h: Likewise.
60850         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60851         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60852         * lib/unictype/pr_other_id_start.h: Likewise.
60853         * lib/unictype/pr_other_lowercase.h: Likewise.
60854         * lib/unictype/pr_other_uppercase.h: Likewise.
60855         * lib/unictype/pr_paired_punctuation.h: Likewise.
60856         * lib/unictype/pr_paragraph_separator.h: Likewise.
60857         * lib/unictype/pr_pattern_syntax.h: Likewise.
60858         * lib/unictype/pr_pattern_white_space.h: Likewise.
60859         * lib/unictype/pr_private_use.h: Likewise.
60860         * lib/unictype/pr_quotation_mark.h: Likewise.
60861         * lib/unictype/pr_radical.h: Likewise.
60862         * lib/unictype/pr_soft_dotted.h: Likewise.
60863         * lib/unictype/pr_space.h: Likewise.
60864         * lib/unictype/pr_titlecase.h: Likewise.
60865         * lib/unictype/pr_variation_selector.h: Likewise.
60866         * lib/unictype/pr_white_space.h: Likewise.
60867         * lib/unictype/pr_zero_width.h: Likewise.
60868         * lib/unictype/sy_c_ident.h: Likewise.
60869         * lib/unictype/sy_c_whitespace.h: Likewise.
60870         * lib/unictype/sy_java_whitespace.h: Likewise.
60871         * lib/uninorm/composition-table.gperf: Likewise.
60872         * lib/uninorm/decomposition-table1.h: Likewise.
60873         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60874         LB8.
60875         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60876         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60877         * modules/unictype/*: Bump version number of expected libunistring
60878         version.
60880 2011-01-09  Bruno Haible  <bruno@clisp.org>
60882         Update to Unicode 5.2.0.
60883         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60884         trailing whitespace removed.
60886 2011-01-09  Bruno Haible  <bruno@clisp.org>
60888         New Unicode character properties, from Unicode 5.2.0.
60889         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60890         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60891         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60892         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60893         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60894         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60895         uc_is_property_cased, uc_is_property_case_ignorable,
60896         uc_is_property_changes_when_lowercased,
60897         uc_is_property_changes_when_uppercased,
60898         uc_is_property_changes_when_titlecased,
60899         uc_is_property_changes_when_casefolded,
60900         uc_is_property_changes_when_casemapped): New declarations.
60901         * lib/unictype/pr_byname.gperf: Add the new properties.
60902         * modules/unictype/property-byname (Depends-on): Depend on the new
60903         properties modules.
60904         * modules/unictype/property-all (Depends-on): Likewise.
60905         * MODULES.html.sh (Unicode string functions): Add
60906         unictype/property-case-ignorable, unictype/property-cased,
60907         unictype/property-changes-when-casefolded,
60908         unictype/property-changes-when-casemapped,
60909         unictype/property-changes-when-lowercased,
60910         unictype/property-changes-when-titlecased,
60911         unictype/property-changes-when-uppercased.
60913         New module 'unictype/property-changes-when-casemapped'.
60914         * modules/unictype/property-changes-when-casemapped: New file.
60915         * lib/unictype/pr_changes_when_casemapped.c: New file.
60916         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60917         generated by gen-uni-tables.
60918         * modules/unictype/property-changes-when-casemapped-tests: New file.
60919         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60920         automatically generated by gen-uni-tables.
60922         New module 'unictype/property-changes-when-casefolded'.
60923         * modules/unictype/property-changes-when-casefolded: New file.
60924         * lib/unictype/pr_changes_when_casefolded.c: New file.
60925         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60926         generated by gen-uni-tables.
60927         * modules/unictype/property-changes-when-casefolded-tests: New file.
60928         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60929         automatically generated by gen-uni-tables.
60931         New module 'unictype/property-changes-when-titlecased'.
60932         * modules/unictype/property-changes-when-titlecased: New file.
60933         * lib/unictype/pr_changes_when_titlecased.c: New file.
60934         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60935         generated by gen-uni-tables.
60936         * modules/unictype/property-changes-when-titlecased-tests: New file.
60937         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60938         automatically generated by gen-uni-tables.
60940         New module 'unictype/property-changes-when-uppercased'.
60941         * modules/unictype/property-changes-when-uppercased: New file.
60942         * lib/unictype/pr_changes_when_uppercased.c: New file.
60943         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60944         generated by gen-uni-tables.
60945         * modules/unictype/property-changes-when-uppercased-tests: New file.
60946         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60947         automatically generated by gen-uni-tables.
60949         New module 'unictype/property-changes-when-lowercased'.
60950         * modules/unictype/property-changes-when-lowercased: New file.
60951         * lib/unictype/pr_changes_when_lowercased.c: New file.
60952         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60953         generated by gen-uni-tables.
60954         * modules/unictype/property-changes-when-lowercased-tests: New file.
60955         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60956         automatically generated by gen-uni-tables.
60958         New module 'unictype/property-case-ignorable'.
60959         * modules/unictype/property-case-ignorable: New file.
60960         * lib/unictype/pr_case_ignorable.c: New file.
60961         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60962         by gen-uni-tables.
60963         * modules/unictype/property-case-ignorable-tests: New file.
60964         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60965         generated by gen-uni-tables.
60967         New module 'unictype/property-cased'.
60968         * modules/unictype/property-cased: New file.
60969         * lib/unictype/pr_cased.c: New file.
60970         * lib/unictype/pr_cased.h: New file, automatically generated by
60971         gen-uni-tables.
60972         * modules/unictype/property-cased-tests: New file.
60973         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60974         gen-uni-tables.
60976 2011-01-09  Bruno Haible  <bruno@clisp.org>
60978         Update to Unicode 5.2.0.
60979         * lib/gen-uni-tables.c (output_predicate, output_category,
60980         output_combclass, output_bidi_category, output_decimal_digit_test,
60981         output_decimal_digit, output_digit_test, output_digit,
60982         output_numeric_test, output_numeric, output_mirror, output_scripts,
60983         output_scripts_byname, output_blocks, output_ident_category): Fix
60984         comment header.
60985         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60986         get_wbp.
60987         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60988         items.
60989         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60990         Changes_When_Lowercased, Changes_When_Uppercased,
60991         Changes_When_Titlecased, Changes_When_Casefolded,
60992         Changes_When_Casemapped.
60993         (is_property_alphabetic, is_property_default_ignorable_code_point):
60994         Update for Unicode 5.2.0.
60995         (is_property_cased, is_property_case_ignorable,
60996         is_property_changes_when_lowercased,
60997         is_property_changes_when_uppercased,
60998         is_property_changes_when_titlecased,
60999         is_property_changes_when_casefolded,
61000         is_property_changes_when_casemapped): New functions.
61001         (output_properties): Output also the properties cased, case_ignorable,
61002         changes_when_lowercased, changes_when_uppercased,
61003         changes_when_titlecased, changes_when_casefolded,
61004         changes_when_casemapped.
61005         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61006         Unicode TR#11 revision 17 -> 19.
61007         (LBP_CP): New enumeration value.
61008         (LBP_*): Adjust values accordingly.
61009         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61010         TR#14 revision 22 -> 24.
61011         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61012         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61013         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61014         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61015         is_WBP_MIDLETTER.
61016         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61017         the code1 and code2 of each composition rule.
61018         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61019         * lib/unicase/ignorable.h: Likewise.
61020         * lib/unicase/tocasefold.h: Likewise.
61021         * lib/unicase/tolower.h: Likewise.
61022         * lib/unicase/totitle.h: Likewise.
61023         * lib/unicase/toupper.h: Likewise.
61024         * lib/unictype/bidi_of.h: Likewise.
61025         * lib/unictype/blocks.h: Likewise.
61026         * lib/unictype/categ_C.h: Likewise.
61027         * lib/unictype/categ_Cf.h: Likewise.
61028         * lib/unictype/categ_Cn.h: Likewise.
61029         * lib/unictype/categ_L.h: Likewise.
61030         * lib/unictype/categ_Ll.h: Likewise.
61031         * lib/unictype/categ_Lm.h: Likewise.
61032         * lib/unictype/categ_Lo.h: Likewise.
61033         * lib/unictype/categ_Lu.h: Likewise.
61034         * lib/unictype/categ_M.h: Likewise.
61035         * lib/unictype/categ_Mc.h: Likewise.
61036         * lib/unictype/categ_Mn.h: Likewise.
61037         * lib/unictype/categ_N.h: Likewise.
61038         * lib/unictype/categ_Nd.h: Likewise.
61039         * lib/unictype/categ_Nl.h: Likewise.
61040         * lib/unictype/categ_No.h: Likewise.
61041         * lib/unictype/categ_P.h: Likewise.
61042         * lib/unictype/categ_Pd.h: Likewise.
61043         * lib/unictype/categ_Po.h: Likewise.
61044         * lib/unictype/categ_S.h: Likewise.
61045         * lib/unictype/categ_Sc.h: Likewise.
61046         * lib/unictype/categ_So.h: Likewise.
61047         * lib/unictype/categ_of.h: Likewise.
61048         * lib/unictype/combining.h: Likewise.
61049         * lib/unictype/ctype_alnum.h: Likewise.
61050         * lib/unictype/ctype_alpha.h: Likewise.
61051         * lib/unictype/ctype_graph.h: Likewise.
61052         * lib/unictype/ctype_lower.h: Likewise.
61053         * lib/unictype/ctype_print.h: Likewise.
61054         * lib/unictype/ctype_punct.h: Likewise.
61055         * lib/unictype/ctype_upper.h: Likewise.
61056         * lib/unictype/decdigit.h: Likewise.
61057         * lib/unictype/digit.h: Likewise.
61058         * lib/unictype/numeric.h: Likewise.
61059         * lib/unictype/pr_alphabetic.h: Likewise.
61060         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61061         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61062         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61063         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61064         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61065         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61066         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61067         * lib/unictype/pr_combining.h: Likewise.
61068         * lib/unictype/pr_composite.h: Likewise.
61069         * lib/unictype/pr_currency_symbol.h: Likewise.
61070         * lib/unictype/pr_dash.h: Likewise.
61071         * lib/unictype/pr_decimal_digit.h: Likewise.
61072         * lib/unictype/pr_deprecated.h: Likewise.
61073         * lib/unictype/pr_diacritic.h: Likewise.
61074         * lib/unictype/pr_extender.h: Likewise.
61075         * lib/unictype/pr_grapheme_base.h: Likewise.
61076         * lib/unictype/pr_grapheme_extend.h: Likewise.
61077         * lib/unictype/pr_grapheme_link.h: Likewise.
61078         * lib/unictype/pr_id_continue.h: Likewise.
61079         * lib/unictype/pr_id_start.h: Likewise.
61080         * lib/unictype/pr_ideographic.h: Likewise.
61081         * lib/unictype/pr_ignorable_control.h: Likewise.
61082         * lib/unictype/pr_logical_order_exception.h: Likewise.
61083         * lib/unictype/pr_lowercase.h: Likewise.
61084         * lib/unictype/pr_numeric.h: Likewise.
61085         * lib/unictype/pr_other_alphabetic.h: Likewise.
61086         * lib/unictype/pr_punctuation.h: Likewise.
61087         * lib/unictype/pr_sentence_terminal.h: Likewise.
61088         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61089         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61090         * lib/unictype/pr_unified_ideograph.h: Likewise.
61091         * lib/unictype/pr_uppercase.h: Likewise.
61092         * lib/unictype/pr_xid_continue.h: Likewise.
61093         * lib/unictype/pr_xid_start.h: Likewise.
61094         * lib/unictype/pr_zero_width.h: Likewise.
61095         * lib/unictype/scripts.h: Likewise.
61096         * lib/unictype/scripts_byname.gperf: Likewise.
61097         * lib/unictype/sy_java_ident.h: Likewise.
61098         * lib/unigbrk/gbrkprop.h: Likewise.
61099         * lib/unilbrk/lbrkprop1.h: Likewise.
61100         * lib/unilbrk/lbrkprop2.h: Likewise.
61101         * lib/unilbrk/lbrktables.h: Likewise.
61102         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61103         LBP_CP. Implement rule LB30.
61104         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61105         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61106         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61107         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61108         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61109         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61110         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61111         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61112         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61113         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61114         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61115         bits instead of 16 bits in the code1 and code2 of each composition
61116         rule.
61117         (uc_composition): Update for Unicode 5.2.0.
61118         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61119         * lib/uninorm/decomposition-table2.h: Likewise.
61120         * lib/uniwbrk/wbrkprop.h: Likewise.
61121         * tests/unicase/test-cased.c: Likewise.
61122         * tests/unicase/test-ignorable.c: Likewise.
61123         * tests/unicase/test-uc_tolower.c: Likewise.
61124         * tests/unicase/test-uc_totitle.c: Likewise.
61125         * tests/unicase/test-uc_toupper.c: Likewise.
61126         * tests/unictype/test-categ_C.c: Likewise.
61127         * tests/unictype/test-categ_Cf.c: Likewise.
61128         * tests/unictype/test-categ_Cn.c: Likewise.
61129         * tests/unictype/test-categ_L.c: Likewise.
61130         * tests/unictype/test-categ_Ll.c: Likewise.
61131         * tests/unictype/test-categ_Lm.c: Likewise.
61132         * tests/unictype/test-categ_Lo.c: Likewise.
61133         * tests/unictype/test-categ_Lu.c: Likewise.
61134         * tests/unictype/test-categ_M.c: Likewise.
61135         * tests/unictype/test-categ_Mc.c: Likewise.
61136         * tests/unictype/test-categ_Mn.c: Likewise.
61137         * tests/unictype/test-categ_N.c: Likewise.
61138         * tests/unictype/test-categ_Nd.c: Likewise.
61139         * tests/unictype/test-categ_Nl.c: Likewise.
61140         * tests/unictype/test-categ_No.c: Likewise.
61141         * tests/unictype/test-categ_P.c: Likewise.
61142         * tests/unictype/test-categ_Pd.c: Likewise.
61143         * tests/unictype/test-categ_Po.c: Likewise.
61144         * tests/unictype/test-categ_S.c: Likewise.
61145         * tests/unictype/test-categ_Sc.c: Likewise.
61146         * tests/unictype/test-categ_So.c: Likewise.
61147         * tests/unictype/test-ctype_alnum.c: Likewise.
61148         * tests/unictype/test-ctype_alpha.c: Likewise.
61149         * tests/unictype/test-ctype_graph.c: Likewise.
61150         * tests/unictype/test-ctype_lower.c: Likewise.
61151         * tests/unictype/test-ctype_print.c: Likewise.
61152         * tests/unictype/test-ctype_punct.c: Likewise.
61153         * tests/unictype/test-ctype_upper.c: Likewise.
61154         * tests/unictype/test-decdigit.h: Likewise.
61155         * tests/unictype/test-digit.h: Likewise.
61156         * tests/unictype/test-numeric.h: Likewise.
61157         * tests/unictype/test-pr_alphabetic.c: Likewise.
61158         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61160         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61161         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61162         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61163         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61164         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61165         * tests/unictype/test-pr_combining.c: Likewise.
61166         * tests/unictype/test-pr_composite.c: Likewise.
61167         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61168         * tests/unictype/test-pr_dash.c: Likewise.
61169         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61170         * tests/unictype/test-pr_deprecated.c: Likewise.
61171         * tests/unictype/test-pr_diacritic.c: Likewise.
61172         * tests/unictype/test-pr_extender.c: Likewise.
61173         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61174         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61175         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61176         * tests/unictype/test-pr_id_continue.c: Likewise.
61177         * tests/unictype/test-pr_id_start.c: Likewise.
61178         * tests/unictype/test-pr_ideographic.c: Likewise.
61179         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61180         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61181         * tests/unictype/test-pr_lowercase.c: Likewise.
61182         * tests/unictype/test-pr_numeric.c: Likewise.
61183         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61184         * tests/unictype/test-pr_punctuation.c: Likewise.
61185         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61186         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61187         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61188         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61189         * tests/unictype/test-pr_uppercase.c: Likewise.
61190         * tests/unictype/test-pr_xid_continue.c: Likewise.
61191         * tests/unictype/test-pr_xid_start.c: Likewise.
61192         * tests/unictype/test-pr_zero_width.c: Likewise.
61193         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61194         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61195         changed behaviour: line breaking is now disallowed between a letter
61196         or '=' and '('.
61197         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61198         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61199         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61200         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61201         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61202         lib/uniwidth/width.c.
61203         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61204         without comments, but with the original copyright notice.
61205         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61206         changes.
61207         * lib/unictype/categ_Cc.h: Likewise.
61208         * lib/unictype/categ_Co.h: Likewise.
61209         * lib/unictype/categ_Cs.h: Likewise.
61210         * lib/unictype/categ_Lt.h: Likewise.
61211         * lib/unictype/categ_Me.h: Likewise.
61212         * lib/unictype/categ_Pc.h: Likewise.
61213         * lib/unictype/categ_Pe.h: Likewise.
61214         * lib/unictype/categ_Pf.h: Likewise.
61215         * lib/unictype/categ_Pi.h: Likewise.
61216         * lib/unictype/categ_Ps.h: Likewise.
61217         * lib/unictype/categ_Sk.h: Likewise.
61218         * lib/unictype/categ_Sm.h: Likewise.
61219         * lib/unictype/categ_Z.h: Likewise.
61220         * lib/unictype/categ_Zl.h: Likewise.
61221         * lib/unictype/categ_Zp.h: Likewise.
61222         * lib/unictype/categ_Zs.h: Likewise.
61223         * lib/unictype/ctype_blank.h: Likewise.
61224         * lib/unictype/ctype_cntrl.h: Likewise.
61225         * lib/unictype/ctype_digit.h: Likewise.
61226         * lib/unictype/ctype_space.h: Likewise.
61227         * lib/unictype/ctype_xdigit.h: Likewise.
61228         * lib/unictype/mirror.h: Likewise.
61229         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61230         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61231         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61232         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61233         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61234         * lib/unictype/pr_bidi_control.h: Likewise.
61235         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61236         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61237         * lib/unictype/pr_bidi_pdf.h: Likewise.
61238         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61239         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61240         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61241         * lib/unictype/pr_format_control.h: Likewise.
61242         * lib/unictype/pr_hex_digit.h: Likewise.
61243         * lib/unictype/pr_hyphen.h: Likewise.
61244         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61245         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61246         * lib/unictype/pr_iso_control.h: Likewise.
61247         * lib/unictype/pr_join_control.h: Likewise.
61248         * lib/unictype/pr_left_of_pair.h: Likewise.
61249         * lib/unictype/pr_line_separator.h: Likewise.
61250         * lib/unictype/pr_math.h: Likewise.
61251         * lib/unictype/pr_non_break.h: Likewise.
61252         * lib/unictype/pr_not_a_character.h: Likewise.
61253         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61254         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61255         * lib/unictype/pr_other_id_continue.h: Likewise.
61256         * lib/unictype/pr_other_id_start.h: Likewise.
61257         * lib/unictype/pr_other_lowercase.h: Likewise.
61258         * lib/unictype/pr_other_math.h: Likewise.
61259         * lib/unictype/pr_other_uppercase.h: Likewise.
61260         * lib/unictype/pr_paired_punctuation.h: Likewise.
61261         * lib/unictype/pr_paragraph_separator.h: Likewise.
61262         * lib/unictype/pr_pattern_syntax.h: Likewise.
61263         * lib/unictype/pr_pattern_white_space.h: Likewise.
61264         * lib/unictype/pr_private_use.h: Likewise.
61265         * lib/unictype/pr_quotation_mark.h: Likewise.
61266         * lib/unictype/pr_radical.h: Likewise.
61267         * lib/unictype/pr_soft_dotted.h: Likewise.
61268         * lib/unictype/pr_space.h: Likewise.
61269         * lib/unictype/pr_titlecase.h: Likewise.
61270         * lib/unictype/pr_variation_selector.h: Likewise.
61271         * lib/unictype/pr_white_space.h: Likewise.
61272         * lib/unictype/sy_c_ident.h: Likewise.
61273         * lib/unictype/sy_c_whitespace.h: Likewise.
61274         * lib/unictype/sy_java_whitespace.h: Likewise.
61275         * modules/uni*/*: Bump version number of expected libunistring version.
61276         Reported by Simon Josefsson.
61278 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61280         useless-if-before-free: fix typo in --help and make the internal,
61281         automatic version date update process work once again.
61282         --help output contained a NUL character instead of the
61283         backslash-zero that was intended.  Also, the "must lie within
61284         the first 8 lines" line is on line 9, and hence not getting
61285         automatically updated.
61286         * build-aux/useless-if-before-free: Fix the former by adding a
61287         backslash, and the latter by condensing the three lines of what-it-does
61288         to a single line, leaving one line of slack for the future.
61290 2011-01-09  Bruno Haible  <bruno@clisp.org>
61292         uniwidth/width: Fix width of U+1D173..U+1D17A.
61293         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61294         symbolic_width, output_width_property_test): New functions.
61295         (main): Invoke output_nonspacing_property, output_width_property_test.
61296         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61297         U+1D173..U+1D17A.
61298         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61299         1.
61300         * modules/uniwidth/*: Bump version number of expected libunistring
61301         version.
61302         * modules/unilbrk/*: Likewise.
61304 2011-01-08  Bruno Haible  <bruno@clisp.org>
61306         uninorm tests: Preserve copyright of Unicode data file.
61307         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61308         Mention modifications.
61310 2011-01-08  Bruno Haible  <bruno@clisp.org>
61312         gen-uni-tables: Prepare for Unicode 5.2.0.
61313         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61314         (debug_output_lbp, output_lbp): Update.
61316 2011-01-08  Bruno Haible  <bruno@clisp.org>
61318         unilbrk: Clarify gen-uni-tables.c code.
61319         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61320         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61321         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61323 2011-01-07  Bruno Haible  <bruno@clisp.org>
61325         strtod: Restore errno when successfully parsing Infinity or NaN.
61326         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61327         restore the original errno.
61329 2011-01-07  Bruno Haible  <bruno@clisp.org>
61331         remove test: Avoid failure on HP-UX 11.
61332         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61334 2011-01-07  Bruno Haible  <bruno@clisp.org>
61336         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61337         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61338         error code.
61340 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61342         ignore-value: fixup comments, and add Eric Blake
61343         as an author since he rewrote the macros.
61344         * lib/ignore-value.h (ignore_value):  State that
61345         we now support aggregates.  Also specify exactly
61346         when the GCC warn_unused_result feature was added.
61348 2011-01-06  Eric Blake  <eblake@redhat.com>
61350         ignore-value: support aggregate types
61351         * lib/ignore-value.h (ignore_value): Provide separate gcc
61352         definition.
61353         * modules/ignore-value-tests: New test module.
61354         * tests/test-ignore-value.c: New test.
61356         maint.mk: improve sc_prohibit_strcmp regex
61357         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61358         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61359         definition of STRNEQ.
61361         signal: work around Haiku issue with SIGBUS
61362         * lib/siglist.h: Add comment.
61363         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61364         strsignal's favoring of SIGSEGV.
61365         * tests/test-signal.c (main): Avoid test failure.
61366         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61367         Reported by Scott McCreary.
61369         maint.mk: add pre-release check to ensure submodule commits are public
61370         * top/maint.mk (public-submodule-commit): New rule.
61371         (submodule-checks): New variable.
61372         (alpha beta stable): Depend on the variable.
61374 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61375         and Jim Meyering  <meyering@redhat.com>
61377         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61378         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61379         (ATTRIBUTE_DEPRECATED): Define.
61380         (_ignore_case): New function.
61381         (ignore_value): New macro, to replace the old function.
61382         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61383         * modules/ignore-value (Depends-on): Add stdint.
61385 2011-01-04  Eric Blake  <eblake@redhat.com>
61387         doc: regenerate INSTALL
61388         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61389         @firstparagraphindent support, now that autoconf dropped it.
61390         (INSTALL_PRELUDE): Reinstate old macro.
61391         * doc/install.texi: Resync from autoconf.
61392         * doc/INSTALL: Reflect recent autoconf update.
61393         * doc/INSTALL.ISO: Likewise.
61394         * doc/INSTALL.UTF-8: Likewise.
61395         Reported by Karl Berry.
61397 2011-01-04  Bruce Korb  <address@hidden>
61399         git-version-gen: avoid a sub-shell
61400         * build-aux/git-version-gen: Redirect stderr in `...` via
61401         "exec 2>...", rather than via an added sub-shell.
61403 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61405         git-version-gen: use (...) rather than sh -c '...'
61406         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61407         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61409 2011-01-03  Jim Meyering  <meyering@redhat.com>
61411         git-version-gen: convert leading TABs to spaces
61412         * build-aux/git-version-gen: Expand leading TABs.
61414         git-version-gen: handle failed "git rev-list"
61415         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61416         from git and proceeding as if it had succeeded but printed no SHA1
61417         checksums, suppress the diagnostic and handle the failure.
61418         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61420         git-version-gen: include command name in one more diagnostic
61421         * build-aux/git-version-gen: When the required .tarball-version file
61422         was missing or unreadable, you might see the diagnostic from "cat",
61423         but no trace of the name of the invoking script.  Now, you still see
61424         the diagnostic from cat, but also get one from "git-version-gen: ".
61425         Inspired by a patch from Bruce Korb.
61427         update-copyright: adjust test to match changed code
61428         * tests/test-update-copyright.sh: Change test's expected output
61429         to match new actual output.
61431 2011-01-02  Bruno Haible  <bruno@clisp.org>
61433         getlogin_r: Avoid test failure on HP-UX 11.
61434         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61435         ERANGE when the second argument is zero.
61436         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61437         portability problem.
61439 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61441         * build-aux/update-copyright: doc Simon's changes
61443 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61445         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61446         environment variable.
61448 2011-01-02  Bruno Haible  <bruno@clisp.org>
61450         unigbrk: Avoid gcc warnings.
61451         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61452         unused variable.
61453         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61454         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61455         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61456         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61457         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61458         Change type of first argument to 'const char *'.
61459         (main): Remove unused variable.
61460         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61461         type of first argument to 'const char *'.
61462         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61463         Likewise.
61464         (main): Change type of variable 's'.
61465         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61466         to 'int'.
61468 2011-01-02  Bruno Haible  <bruno@clisp.org>
61470         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61471         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61472         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61473         bug.
61474         * lib/pwrite.c: Undo 2010-12-31 patch.
61475         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61477 2011-01-02  Bruno Haible  <bruno@clisp.org>
61479         pread: Fix test whether it works.
61480         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61482 2011-01-02  Bruno Haible  <bruno@clisp.org>
61484         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61485         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61486         ends in "6". Don't require a specific month name. Try also the locale
61487         names found on HP-UX 11 and Solaris 7.
61489 2011-01-02  Bruno Haible  <bruno@clisp.org>
61491         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61492         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61493         C linkage.
61494         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61496 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61498         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61499         for consistency, since the "cluster" term is not used elsewhere.
61500         * lib/unigbrk.in.h: Update name.
61501         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61502         * lib/unigbrk/u16-grapheme-next.c: Update name.
61503         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61504         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61505         * lib/unigbrk/u32-grapheme-next.c: Update name.
61506         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61507         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61508         * lib/unigbrk/u8-grapheme-next.c: Update name.
61509         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61510         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61511         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61512         Suggested by Bruno Haible.
61514 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61516         Remove module 'u8-grapheme-len' as too redundant with
61517         'u8-grapheme-next'.
61518         * modules/unigbrk/u8-grapheme-len: Delete file.
61519         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61520         * lib/unigbrk.in.h: Remove prototype for deleted function.
61521         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61522         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61524         Remove module 'u16-grapheme-len' as too redundant with
61525         'u16-grapheme-next'.
61526         * modules/unigbrk/u16-grapheme-len: Delete file.
61527         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61528         * lib/unigbrk.in.h: Remove prototype for deleted function.
61529         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61530         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61532         Remove module 'u32-grapheme-len' as too redundant with
61533         'u32-grapheme-next'.
61534         * modules/unigbrk/u32-grapheme-len: Delete file.
61535         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61536         * lib/unigbrk.in.h: Remove prototype for deleted function.
61537         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61538         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61540         Suggested by Bruno Haible.
61542 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61544         * unigbrk.in.h: Fix typo: "ben" => "been".
61545         Reported by Bruno Haible.
61547 2011-01-01  Jim Meyering  <meyering@redhat.com>
61549         maint: update almost all copyright ranges to include 2011
61550         Run the new "make update-copyright" rule.
61552 2011-01-01  Jim Meyering  <meyering@redhat.com>
61554         maint: update-copyright: exempt doc/INSTALL*
61555         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61556         since they are generated.  Suggested by Bruno Haible.
61558 2011-01-01  Jim Meyering  <meyering@redhat.com>
61560         maint: refine the update-copyright rule
61561         * Makefile (update-copyright): Also exclude any file that includes
61562         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61563         code that merely generates the comment.
61565 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61567         New module 'u8-grapheme-len'.
61568         * modules/unigbrk/u8-grapheme-len: New file.
61569         * modules/unigbrk/u8-grapheme-len-tests: New file.
61570         * lib/unigbrk.in.h: Add prototype for new function.
61571         * lib/unigbrk/u8-grapheme-len.c: New file.
61572         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61574         New module 'u16-grapheme-len'.
61575         * modules/unigbrk/u16-grapheme-len: New file.
61576         * modules/unigbrk/u16-grapheme-len-tests: New file.
61577         * lib/unigbrk.in.h: Add prototype for new function.
61578         * lib/unigbrk/u16-grapheme-len.c: New file.
61579         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61581         New module 'u32-grapheme-len'.
61582         * modules/unigbrk/u32-grapheme-len: New file.
61583         * modules/unigbrk/u32-grapheme-len-tests: New file.
61584         * lib/unigbrk.in.h: Add prototype for new function.
61585         * lib/unigbrk/u32-grapheme-len.c: New file.
61586         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61588         New module 'u8-grapheme-next'.
61589         * modules/unigbrk/u8-grapheme-next: New file.
61590         * modules/unigbrk/u8-grapheme-next-tests: New file.
61591         * lib/unigbrk.in.h: Add prototype for new function.
61592         * lib/unigbrk/u8-grapheme-next.c: New file.
61593         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61595         New module 'u16-grapheme-next'.
61596         * modules/unigbrk/u16-grapheme-next: New file.
61597         * modules/unigbrk/u16-grapheme-next-tests: New file.
61598         * lib/unigbrk.in.h: Add prototype for new function.
61599         * lib/unigbrk/u16-grapheme-next.c: New file.
61600         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61602         New module 'u32-grapheme-next'.
61603         * modules/unigbrk/u32-grapheme-next: New file.
61604         * modules/unigbrk/u32-grapheme-next-tests: New file.
61605         * lib/unigbrk.in.h: Add prototype for new function.
61606         * lib/unigbrk/u32-grapheme-next.c: New file.
61607         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61609         New module 'u8-grapheme-prev'.
61610         * modules/unigbrk/u8-grapheme-prev: New file.
61611         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61612         * lib/unigbrk.in.h: Add prototype for new function.
61613         * lib/unigbrk/u8-grapheme-prev.c: New file.
61614         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61616         New module 'u16-grapheme-prev'.
61617         * modules/unigbrk/u16-grapheme-prev: New file.
61618         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61619         * lib/unigbrk.in.h: Add prototype for new function.
61620         * lib/unigbrk/u16-grapheme-prev.c: New file.
61621         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61623         New module 'u32-grapheme-prev'.
61624         * modules/unigbrk/u32-grapheme-prev: New file.
61625         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61626         * lib/unigbrk.in.h: Add prototype for new function.
61627         * lib/unigbrk/u32-grapheme-prev.c: New file.
61628         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61630         New module 'u8-grapheme-breaks'.
61631         * modules/unigbrk/u8-grapheme-breaks: New file.
61632         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61633         * lib/unigbrk.in.h: Add prototype for new function.
61634         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61635         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61637         New module 'u16-grapheme-breaks'.
61638         * modules/unigbrk/u16-grapheme-breaks: New file.
61639         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61640         * lib/unigbrk.in.h: Add prototype for new function.
61641         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61642         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61644         New module 'u32-grapheme-breaks'.
61645         * modules/unigbrk/u32-grapheme-breaks: New file.
61646         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61647         * lib/unigbrk.in.h: Add prototype for new function.
61648         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61649         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61651         New module 'ulc-grapheme-breaks'.
61652         * modules/unigbrk/ulc-grapheme-breaks: New file.
61653         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61654         * m4/locale-ar.m4: New file.
61655         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61656         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61657         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61659 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61661         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61662         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61663         modified how this file was generated before I initially submitted
61664         the module, but failed to regenerate it.  This meant that several
61665         of the level2 entries were wrong.
61666         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61667         Remove the division-by-2 that is folded into the table now that
61668         gbrkprop.h has been regenerated properly.  Now -1 entries are
61669         handled correctly.
61671         New module 'unigbrk/uc-gbrk-prop-tests'.
61672         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61673         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61674         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61675         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61677 2011-01-01  Bruno Haible  <bruno@clisp.org>
61679         Avoid use of hexadecimal escapes.
61680         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61681         instead of hexadecimal escapes.
61683 2011-01-01  Jim Meyering  <meyering@redhat.com>
61685         maint: new rule to update copyright year ranges
61686         * Makefile (update-copyright): New rule.
61688         maint: indent with TABs in Makefile
61689         * Makefile: Expand leading sequences of spaces to TABs
61691         version-etc: update the copyright year it reports
61692         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61694 2010-12-31  Bruno Haible  <bruno@clisp.org>
61696         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61697         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61698         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61699         zero.
61701 2010-12-31  Bruno Haible  <bruno@clisp.org>
61703         pwrite: Work around HP-UX 11.11 bug.
61704         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61705         works and set REPLACE_PWRITE if not.
61706         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61707         function.
61708         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61710 2010-12-31  Bruno Haible  <bruno@clisp.org>
61712         pread: Work around HP-UX 11 bugs.
61713         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61714         and set REPLACE_PREAD if not.
61715         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61717 2010-12-31  Eric Blake  <eblake@redhat.com>
61719         nl_langinfo: fix YESEXPR on Irix 6.5
61720         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61721         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61722         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61723         it.
61725 2010-12-31  Bruno Haible  <bruno@clisp.org>
61727         iconv: Document HP-UX 11 bug.
61728         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61730 2010-12-31  Bruno Haible  <bruno@clisp.org>
61732         ldexpl: Fix link error on HP-UX 11.
61733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61734         LDEXPL_LIBM, using $ISNANL_LIBM.
61736 2010-12-31  Eric Blake  <eblake@redhat.com>
61738         ftello: avoid compilation failure with SunStudio c89
61739         * lib/ftello.c (ftello): Use lseek, not llseek.
61741         tests: avoid failing coreutils tests on cygwin
61742         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61743         (create_exe_shims_): Return 0 when skipping.
61745 2010-12-31  Bruno Haible  <bruno@clisp.org>
61747         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61748         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61750 2010-12-31  Bruno Haible  <bruno@clisp.org>
61752         waitpid: Fix link error in C++ mode.
61753         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61755 2010-12-31  Bruno Haible  <bruno@clisp.org>
61757         isnan: Use GCC built-ins when possible.
61758         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61759         __builtin_isnan.
61760         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61761         (isnan): Define using GCC built-ins for GCC >= 4.0.
61763 2010-12-31  Bruno Haible  <bruno@clisp.org>
61765         isnand: Fix mistake.
61766         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61767         __builtin_isnand.
61769 2010-12-31  Bruno Haible  <bruno@clisp.org>
61771         open: Avoid C++ error on HP-UX 11.
61772         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61774 2010-12-31  Bruno Haible  <bruno@clisp.org>
61776         time_r: Add missing declarations on HP-UX 11.
61777         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61778         instead of HAVE_LOCALTIME_R.
61779         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61780         HAVE_LOCALTIME_R always.
61781         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61782         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61783         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61784         HAVE_LOCALTIME_R.
61785         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61786         * doc/posix-functions/localtime_r.texi: Likewise.
61788 2010-12-29  Eric Blake  <eblake@redhat.com>
61790         mountlist: tweak previous commit
61791         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61792         Reported by Paul Eggert.
61794         mountlist: fix local drive detection on cygwin
61795         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61796         that works for cygwin.
61798 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61800         ftoastr, snprintf: ftoastr + snprintf module
61801         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61802         since the snprintf module now should be good enough here.
61803         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61804         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61805         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61806         GNULIB_SNPRINTF only for the test directory, and the latter
61807         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61808         seems to suffice by itself.
61810 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61812         alloca: one step towards thread-safety
61813         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61814         need for a static variable.  All callers changed.  This does not
61815         make the alloca replacement thread-safe, but it's one step.
61817         tests: minor indenting change
61818         * tests/init.sh: Sync from coreutils housekeeping patch
61819         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61820         to keep lines within 80 columns.
61822 2010-12-28  Jim Meyering  <meyering@redhat.com>
61824         regex: don't infloop on persistent failing calloc
61825         * lib/regexec.c (build_trtable): Return failure indication upon
61826         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61827         In glibc, this was fixed for version 2.13:
61828         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61830 2010-12-28  Bruno Haible  <bruno@clisp.org>
61831             Paul Eggert <eggert@cs.ucla.edu>
61833         linkat: Make implementation robust against system behaviour variations.
61834         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61835         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61836         way, and to -2 if it needs a generic runtime test.
61837         * lib/linkat.c (solaris_optimized_link_immediate,
61838         solaris_optimized_link_follow): New functions.
61839         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61840         (check_same_link): Use it.
61842 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61844         New module 'unigbrk/base'.
61845         * modules/unigbrk/base: New file.
61846         * lib/unigbrk.in.h: New file.
61848         New module 'unigbrk/uc-gbrk-prop'.
61849         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61850         * modules/unigbrk/uc-gbrk-prop: New file.
61851         * lib/unigbrk/gbrkprop.h: New file.
61852         * lib/unigbrk/uc-gbrk-prop.c: New file.
61854         New module 'unigbrk/uc-is-grapheme-break'.
61855         * modules/unigbrk/uc-is-grapheme-break: New file.
61856         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61857         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61858         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61859         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61860         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61862         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61864 2010-12-27  Bruno Haible  <bruno@clisp.org>
61866         linkat test: Avoid failure on Solaris 11 2010-11.
61867         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61869 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61871         utimens: work around glibc rounding bug on more platforms
61872         * lib/utimens.c (fdutimens): Work around rounding bug even if
61873         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61874         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61876 2010-12-27  Bruno Haible  <bruno@clisp.org>
61878         select tests: Improve comments.
61879         * tests/test-select.c (do_select): Add comments.
61881 2010-12-27  Bruno Haible  <bruno@clisp.org>
61883         select tests: Safer way of handling timeout.
61884         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61885         at every invocation.
61887 2010-12-27  Bruno Haible  <bruno@clisp.org>
61889         select tests: Use 'bool' where appropriate.
61890         * tests/test-select.c (connect_to_socket): Change argument type to
61891         'bool'.
61893 2010-12-27  Bruno Haible  <bruno@clisp.org>
61895         select tests: Use existing modules.
61896         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61897         (configure.ac): Don't test for unistd.h.
61898         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61899         declared in <unistd.h>.
61901 2010-12-27  Bruno Haible  <bruno@clisp.org>
61903         mbrtowc: Work around a Solaris 7 bug.
61904         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61905         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61906         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61907         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61908         MBRTOWC_NULL_ARG1_BUG.
61909         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61910         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61911         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61912         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61914 2010-12-27  Jim Meyering  <meyering@redhat.com>
61916         read-file.c: tweak syntax
61917         * lib/read-file.c (fread_file): Remove space after "*" in function
61918         definitions.
61920 2010-12-27  Bruno Haible  <bruno@clisp.org>
61922         times test: Avoid gcc warnings on OSF/1.
61923         * tests/test-times.c (main): Cast printf arguments from clock_t to
61924         'long int'.
61926 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61928         utimens: work around glibc rounding bug on older Linux kernels
61929         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61930         on Linux with a glibc whose utimes might not work, then work
61931         around a longstanding glibc bug involving rounding rather than
61932         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61933         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61935 2010-12-26  Bruno Haible  <bruno@clisp.org>
61937         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61938         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61939         _GL_CXXALIAS_SYS.
61940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61942 2010-12-26  Bruno Haible  <bruno@clisp.org>
61944         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61945         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61946         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61947         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61948         looking for the declaration.
61949         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61950         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61951         problem.
61952         * doc/posix-functions/inet_pton.texi: Likewise.
61954 2010-12-26  Bruno Haible  <bruno@clisp.org>
61956         arpa_inet: Use the common idioms with C++ support.
61957         * lib/arpa_inet.in.h: Include c++defs.h.
61958         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61959         support.
61960         * modules/arpa_inet (Depends-on): Add c++defs.
61961         (Makefile.am): Substitute the contents of c++defs.h.
61962         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61963         * modules/arpa_inet-c++-tests: New file.
61964         * tests/test-arpa_inet-c++.cc: New file.
61966 2010-12-25  Bruno Haible  <bruno@clisp.org>
61968         Fix more C++ link errors on Solaris 8.
61969         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61970         $(LIB_EACCESS).
61971         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61972         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61973         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61974         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61975         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61977 2010-12-25  Bruno Haible  <bruno@clisp.org>
61979         printf-posix: Fix link error when a non-GCC compiler is used.
61980         * lib/stdio.in.h (printf): When not using GCC, override printf
61981         correctly.
61982         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61984 2010-12-25  Bruno Haible  <bruno@clisp.org>
61986         strerror_r-posix: Update doc.
61987         * doc/posix-functions/strerror_r.texi: Update doc about the return
61988         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61990 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61992         utimens: simplify the logic of the previous change
61993         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61994         This should not affect whether the test succeeds or fails.
61996         utimens: configure better on hosts with NFS clock skew
61997         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61998         uses the clock of the local host.  It might use the clock of the
61999         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62000         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62002 2010-12-25  Bruno Haible  <bruno@clisp.org>
62004         ptsname test: Avoid failure on Solaris.
62005         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62006         open a pseudo-terminal; don't use BSD-style ptys.
62007         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62009 2010-12-25  Bruno Haible  <bruno@clisp.org>
62011         ptsname: Avoid ERANGE failure on some systems.
62012         * lib/ptsname.c (buffer): Increase size.
62014 2010-12-25  Bruno Haible  <bruno@clisp.org>
62016         rename, renameat: Avoid test failures at NFS mounted locations.
62017         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62018         so that subsequent mkdir calls succeed.
62020 2010-12-25  Bruno Haible  <bruno@clisp.org>
62022         iswblank: Fix C++ link error on Solaris 8.
62023         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62024         _GL_FUNCDECL_SYS.
62026 2010-12-25  Bruno Haible  <bruno@clisp.org>
62028         unistd: Fix C++ link error on Solaris 8.
62029         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62031 2010-12-25  Bruno Haible  <bruno@clisp.org>
62033         readlink doc: Mention an old glibc bug.
62034         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62036 2010-12-25  Bruno Haible  <bruno@clisp.org>
62038         fcntl-h: Fix for use of C++ on glibc systems.
62039         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62040         also on glibc systems in C++ mode.
62041         Reported by Gary V. Vaughan <gary@gnu.org>.
62043 2010-12-25  Bruno Haible  <bruno@clisp.org>
62045         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62046         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62048 2010-12-25  Bruno Haible  <bruno@clisp.org>
62050         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62051         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62052         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62053         test whether truncl works according to ISO C 99 with IEC 60559.
62054         * m4/truncl-ieee.m4: New file.
62055         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62056         m4/signbit.m4.
62057         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62059 2010-12-25  Bruno Haible  <bruno@clisp.org>
62061         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62062         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62063         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62064         test whether ceill works according to ISO C 99 with IEC 60559.
62065         * m4/ceill-ieee.m4: New file.
62066         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62067         m4/signbit.m4.
62068         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62070 2010-12-25  Bruno Haible  <bruno@clisp.org>
62072         Ensure all prerequisites of <wchar.h> are included.
62073         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62074         before <wchar.h>.
62075         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62076         gl_MBRLEN_NUL_RETVAL): Likewise.
62077         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62078         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62079         AC_FUNC_MBRTOWC): Likewise.
62080         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62081         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62082         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62083         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62084         Likewise.
62085         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62086         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62087         (gl_WCHAR_H): Improve comments.
62088         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62090 2010-12-25  Bruno Haible  <bruno@clisp.org>
62092         strtok_r: Fix C syntax error in autoconf macro.
62093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62094         characters in test program.
62096 2010-12-24  Bruno Haible  <bruno@clisp.org>
62098         ceil, trunc, round: Fix gcc warnings.
62099         * lib/ceil.c (MIN): Undefine before redefining.
62100         * lib/trunc.c (MIN): Likewise.
62101         * lib/round.c (MIN): Likewise.
62102         Include <math.h> first.
62104 2010-12-24  Bruno Haible  <bruno@clisp.org>
62106         select tests: Avoid failures on OSF/1 5.1.
62107         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62108         failure of closing the last socket; it may fail with ECONNRESET.
62110 2010-12-24  Eric Blake  <eblake@redhat.com>
62112         stdint: avoid HP-UX 10.20 preprocessor bug
62113         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62114         than #if.
62115         * tests/test-floor2.c (main): Likewise.
62116         Reported by Peter O'Gorman.
62118         pipe: make obsoletion transition easier
62119         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62120         * modules/pipe (Files): Include revived file.
62121         (Include): Drop reference, to mirror getdate's behavior.
62123 2010-12-24  Bruno Haible  <bruno@clisp.org>
62125         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62126         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62127         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62128         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62130 2010-12-24  Bruno Haible  <bruno@clisp.org>
62132         gethostname: Ensure declaration on NonStop Kernel.
62133         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62136 2010-12-24  Bruno Haible  <bruno@clisp.org>
62138         sys_select: Ensure all necessary types on NonStop Kernel.
62139         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62140         include <sys/time.h>.
62141         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62142         NonStop Kernel.
62143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62145 2010-12-24  Bruno Haible  <bruno@clisp.org>
62147         sys_select: Remove unneeded include.
62148         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62149         have <sys/select.h>.
62151 2010-12-24  Bruno Haible  <bruno@clisp.org>
62153         gethostname: Provide a fallback for HOST_NAME_MAX.
62154         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62155         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62156         instead.
62157         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62159 2010-12-24  Bruno Haible  <bruno@clisp.org>
62161         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62162         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62163         (SA_RESTART): Likewise.
62164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62166 2010-12-24  Bruno Haible  <bruno@clisp.org>
62168         signal: Define NSIG.
62169         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62170         * tests/test-signal.c (nsig): New variable.
62171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62173 2010-12-24  Bruno Haible  <bruno@clisp.org>
62175         rename, renameat: Avoid test failures on OSF/1 5.1.
62176         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62177         alternative error codes.
62178         * tests/test-renameat.c (main): Likewise.
62180 2010-12-24  Bruno Haible  <bruno@clisp.org>
62182         *printf: Detect large precisions bug on Solaris 10/SPARC.
62183         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62184         by Paul Eggert.
62185         * tests/test-snprintf-posix.h (test_function): Add this test code here
62186         too.
62187         * tests/test-sprintf-posix.h (test_function): Likewise.
62188         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62189         * tests/test-vasprintf-posix.c (test_function): Likewise.
62190         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62191         around by gnulib.
62192         * doc/posix-functions/printf.texi: Likewise.
62193         * doc/posix-functions/snprintf.texi: Likewise.
62194         * doc/posix-functions/sprintf.texi: Likewise.
62195         * doc/posix-functions/vfprintf.texi: Likewise.
62196         * doc/posix-functions/vprintf.texi: Likewise.
62197         * doc/posix-functions/vsnprintf.texi: Likewise.
62198         * doc/posix-functions/vsprintf.texi: Likewise.
62199         * doc/posix-functions/dprintf.texi: Undo last commit.
62200         * doc/posix-functions/vdprintf.texi: Likewise.
62202 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62204         tests: port test-fdutimensat.c to Solaris 8
62205         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62206         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62207         On Solaris 8, it fails with errno == ENOSYS, because there is no
62208         futimens (so it can't use the fd), and there is no lutimens (so it
62209         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62211         vsnprintf: make more consistent with snprintf; doc fixes
62213         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62214         the byte count return problem was promoted from the snprintf-posix
62215         to the snprintf module.
62216         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62217         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62218         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62219         * tests/test-snprintf.c (main): Check the byte count returned.
62220         * tests/test-vsnprintf.c (main): Likewise.
62222 2010-12-23  Eric Blake  <eblake@redhat.com>
62224         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62225         * modules/sigpipe (License): Relax license.
62227 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62229         doc: document Solaris printf bug with large float precisions
62230         * doc/posix-functions/dprintf.texi (dprintf):
62231         * doc/posix-functions/fprintf.texi (fprintf):
62232         * doc/posix-functions/printf.texi (printf):
62233         * doc/posix-functions/snprintf.texi (snprintf):
62234         * doc/posix-functions/sprintf.texi (sprintf):
62235         * doc/posix-functions/vdprintf.texi (vdprintf):
62236         * doc/posix-functions/vfprintf.texi (vfprintf):
62237         * doc/posix-functions/vprintf.texi (vprintf):
62238         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62239         * doc/posix-functions/vsprintf.texi (vsprintf):
62240         Mention that these functions mishandle large floating point
62241         precisions on Solaris 10.  The same bug is also present in Solaris
62242         8, and I assume earlier.  This causes "cd gnulib-tests; make
62243         check" to fail on Solaris 8 (and I assume, later) when building
62244         the latest coreutils, in test-vasprintf-posix's call to
62245         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62246         the wide flavors (e.g., wprintf) so this patch just updates the
62247         documentation for the narrow ones.
62249         test-posixtm.c: add two tests
62250         * tests/test-posixtm.c: Add two tests, to highlight the
62251         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62252         around this bug; this is merely to document it.
62254 2010-12-22  Bruno Haible  <bruno@clisp.org>
62256         getlogin_r: Work around portability problem on OSF/1.
62257         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62258         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62259         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62260         test for a truncated result.
62261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62262         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62263         * modules/getlogin_r (Depends-on): Add memchr.
62264         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62266 2010-12-22  Bruno Haible  <bruno@clisp.org>
62268         ptsname: Avoid test failure on OSF/1 5.1.
62269         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62270         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62271         (same_slave): New function.
62272         (main): Use it to compare ptsname's result with the expected file name.
62274 2010-12-22  Bruno Haible  <bruno@clisp.org>
62276         Port extended stdio modules to HP NonStop Kernel.
62277         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62278         macros.
62279         * lib/fbufmode.c: Update comments.
62280         * lib/fflush.c: Likewise.
62281         * lib/fpurge.c: Likewise.
62282         * lib/freadable.c: Likewise.
62283         * lib/freadahead.c: Likewise.
62284         * lib/freading.c: Likewise.
62285         * lib/freadptr.c: Likewise.
62286         * lib/freadseek.c: Likewise.
62287         * lib/fseeko.c: Likewise.
62288         * lib/fseterr.c: Likewise.
62289         * lib/fwritable.c: Likewise.
62290         * lib/fwriting.c: Likewise.
62291         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62293 2010-12-22  Bruno Haible  <bruno@clisp.org>
62295         ttyname_r: Work around bug on OSF/1 5.1.
62296         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62297         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62298         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62299         present.
62300         * lib/ttyname_r.c (ttyname_r): Update comments.
62302 2010-12-22  Bruno Haible  <bruno@clisp.org>
62304         round: Implement result sign according to IEEE 754.
62305         * lib/round.c (MIN, MINUS_ZERO): New macros.
62306         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62307         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62308         * tests/test-round-ieee.c (main): Likewise.
62309         * tests/test-roundl-ieee.c (main): Likewise.
62311         trunc: Implement result sign according to IEEE 754.
62312         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62313         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62314         * tests/test-trunc2.c: Include minus-zero.h.
62315         (MINUS_ZERO): New macro.
62316         (trunc_reference): Keep in sync with lib/trunc.c.
62317         * tests/test-truncf2.c: Include minus-zero.h.
62318         (MINUS_ZERO): New macro.
62319         (truncf_reference): Keep in sync with lib/trunc.c.
62320         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62321         * tests/test-trunc-ieee.c (main): Likewise.
62322         * tests/test-truncl-ieee.c (main): Likewise.
62324         ceil: Implement result sign according to IEEE 754.
62325         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62326         (FUNC): Return -0.0 for -1 < x < 0.
62327         * tests/test-ceil2.c: Include minus-zero.h.
62328         (MINUS_ZERO): New macro.
62329         (ceil_reference): Keep in sync with lib/ceil.c.
62330         * tests/test-ceilf2.c: Include minus-zero.h.
62331         (MINUS_ZERO): New macro.
62332         (ceilf_reference): Keep in sync with lib/ceil.c.
62333         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62334         * tests/test-ceil-ieee.c (main): Likewise.
62335         * tests/test-ceill-ieee.c (main): Likewise.
62337         floor: Implement result sign according to IEEE 754.
62338         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62339         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62340         * tests/test-floorf2.c (floorf_reference): Likewise.
62341         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62342         * tests/test-floor-ieee.c (main): Likewise.
62343         * tests/test-floorl-ieee.c (main): Likewise.
62345 2010-12-22  Bruno Haible  <bruno@clisp.org>
62347         getaddrinfo: Update doc.
62348         * doc/posix-functions/gai_strerror.texi: Return type is also different
62349         on AIX and HP-UX.
62351 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62353         getaddrinfo, inet_ntop: Update doc for Solaris.
62354         * doc/posix-functions/gai_strerror.texi: Return type is also an
62355         issue on Solaris 9 and earlier.
62356         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62357         on Solaris 10 and earlier.
62359 2010-12-21  Bruno Haible  <bruno@clisp.org>
62361         New module 'roundl-ieee'.
62362         * modules/roundl-ieee: New file.
62363         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62364         test whether roundl works according to ISO C 99 with IEC 60559.
62365         * m4/roundl-ieee.m4: New file.
62366         * modules/roundl-ieee-tests: New file.
62367         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62368         * tests/test-roundl.c (main): Remove signbit tests.
62369         * modules/roundl-tests (Depends-on): Remove signbit.
62370         * doc/posix-functions/roundl.texi: Mention the new module.
62372 2010-12-21  Bruno Haible  <bruno@clisp.org>
62374         New module 'truncl-ieee'.
62375         * modules/truncl-ieee: New file.
62376         * modules/truncl-ieee-tests: New file.
62377         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62378         * tests/test-truncl.c (main): Remove signbit tests.
62379         * modules/truncl-tests (Depends-on): Remove signbit.
62380         * doc/posix-functions/truncl.texi: Mention the new module.
62382 2010-12-21  Bruno Haible  <bruno@clisp.org>
62384         New module 'ceill-ieee'.
62385         * modules/ceill-ieee: New file.
62386         * modules/ceill-ieee-tests: New file.
62387         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62388         * tests/test-ceill.c (main): Remove signbit tests.
62389         * modules/ceill-tests (Depends-on): Remove signbit.
62390         * doc/posix-functions/ceill.texi: Mention the new module.
62392 2010-12-21  Bruno Haible  <bruno@clisp.org>
62394         New module 'floorl-ieee'.
62395         * modules/floorl-ieee: New file.
62396         * modules/floorl-ieee-tests: New file.
62397         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62398         * tests/test-floorl.c (main): Remove signbit tests.
62399         * modules/floorl-tests (Depends-on): Remove signbit.
62400         * doc/posix-functions/floorl.texi: Mention the new module.
62402 2010-12-21  Bruno Haible  <bruno@clisp.org>
62404         New module 'round-ieee'.
62405         * modules/round-ieee: New file.
62406         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62407         whether round works according to ISO C 99 with IEC 60559.
62408         * m4/round-ieee.m4: New file.
62409         * modules/round-ieee-tests: New file.
62410         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62411         * tests/test-round1.c (main): Remove signbit tests.
62412         * modules/round-tests (Depends-on): Remove 'signbit'.
62413         * doc/posix-functions/round.texi: Mention the new module.
62415 2010-12-21  Bruno Haible  <bruno@clisp.org>
62417         New module 'trunc-ieee'.
62418         * modules/trunc-ieee: New file.
62419         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62420         whether trunc works according to ISO C 99 with IEC 60559.
62421         * m4/trunc-ieee.m4: New file.
62422         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62424         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62425         * modules/trunc-ieee-tests: New file.
62426         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62427         * tests/test-trunc1.c (main): Remove signbit tests.
62428         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62429         * doc/posix-functions/trunc.texi: Mention the new module.
62431 2010-12-21  Bruno Haible  <bruno@clisp.org>
62433         New module 'ceil-ieee'.
62434         * modules/ceil-ieee: New file.
62435         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62436         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62437         ISO C 99 with IEC 60559.
62438         * m4/ceil-ieee.m4: New file.
62439         * modules/ceil (Files): Add lib/ceil.c.
62440         (Depends-on): Add 'float'.
62441         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62442         * lib/math.in.h (ceil): New declaration.
62443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62444         REPLACE_CEIL.
62445         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62446         * modules/ceil-ieee-tests: New file.
62447         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62448         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62449         * doc/posix-functions/ceil.texi: Mention the new module.
62451 2010-12-21  Bruno Haible  <bruno@clisp.org>
62453         New module 'floor-ieee'.
62454         * modules/floor-ieee: New file.
62455         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62456         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62457         ISO C 99 with IEC 60559.
62458         * m4/floor-ieee.m4: New file.
62459         * modules/floor (Files): Add lib/floor.c.
62460         (Depends-on): Add 'float'.
62461         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62462         * lib/math.in.h (floor): New declaration.
62463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62464         REPLACE_FLOOR.
62465         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62466         * modules/floor-ieee-tests: New file.
62467         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62468         * tests/test-math-c++.cc: Check the signature of 'floor'.
62469         * doc/posix-functions/floor.texi: Mention the new module.
62471 2010-12-21  Bruno Haible  <bruno@clisp.org>
62473         New module 'roundf-ieee'.
62474         * modules/roundf-ieee: New file.
62475         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62476         test whether roundf works according to ISO C 99 with IEC 60559.
62477         * m4/roundf-ieee.m4: New file.
62478         * modules/roundf-ieee-tests: New file.
62479         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62480         * tests/test-roundf1.c (main): Remove signbit tests.
62481         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62482         * doc/posix-functions/roundf.texi: Mention the new module.
62484 2010-12-21  Bruno Haible  <bruno@clisp.org>
62486         New module 'truncf-ieee'.
62487         * modules/truncf-ieee: New file.
62488         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62489         test whether truncf works according to ISO C 99 with IEC 60559.
62490         * m4/truncf-ieee.m4: New file.
62491         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62493         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62494         * modules/truncf-ieee-tests: New file.
62495         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62496         * tests/test-truncf1.c (main): Remove signbit tests.
62497         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62498         * doc/posix-functions/truncf.texi: Mention the new module.
62500 2010-12-21  Bruno Haible  <bruno@clisp.org>
62502         New module 'ceilf-ieee'.
62503         * modules/ceilf-ieee: New file.
62504         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62505         test whether ceilf works according to ISO C 99 with IEC 60559.
62506         * m4/ceilf-ieee.m4: New file.
62507         * modules/ceilf-ieee-tests: New file.
62508         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62509         * tests/test-ceilf1.c (main): Remove signbit tests.
62510         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62511         * doc/posix-functions/ceilf.texi: Mention the new module.
62513 2010-12-21  Bruno Haible  <bruno@clisp.org>
62515         New module 'floorf-ieee'.
62516         * modules/floorf-ieee: New file.
62517         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62518         test whether floorf works according to ISO C 99 with IEC 60559.
62519         * m4/floorf-ieee.m4: New file.
62520         * modules/floorf-ieee-tests: New file.
62521         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62522         * tests/test-floorf1.c (main): Remove signbit tests.
62523         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62524         * doc/posix-functions/floorf.texi: Mention the new module.
62526 2010-12-21  Bruno Haible  <bruno@clisp.org>
62528         Support for minus zero in autoconf macros.
62529         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62530         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62531         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62532         * tests/minus-zero.h: Update comments.
62534 2010-12-21  Bruno Haible  <bruno@clisp.org>
62536         Tests for module 'ceil'.
62537         * modules/ceil-tests: New file.
62538         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62539         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62541 2010-12-21  Bruno Haible  <bruno@clisp.org>
62543         Tests for module 'floor'.
62544         * modules/floor-tests: New file.
62545         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62546         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62548 2010-12-21  Bruno Haible  <bruno@clisp.org>
62550         math: Fix indentation.
62551         * lib/math.in.h (floorf): Fix indentation.
62553 2010-12-21  Bruno Haible  <bruno@clisp.org>
62555         Fix cross-compilation guesses on Solaris.
62556         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62557         not match "solaris2.10".
62558         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62559         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62560         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62562 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62564         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62565         This fixes a problem observed with the latest coreutils snapshot
62566         that caused a test to fail on Solaris 8.  src/csplit.c's call
62567         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62568         earlier, instead of returning the number of bytes that would have
62569         been generated; this causes csplit to incorrectly report memory
62570         exhaustion.
62571         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62572         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62573         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62574         comments to match.
62575         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62576         Fix typo in matching older versions of Solaris: "solaris2.10"
62577         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62578         only for guessing while cross-compiling.
62579         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62581 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62583         ftoastr: fix comment again
62584         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62585         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62586         Also, simplify example a bit by using flags = 0.
62588 2010-12-20  Bruno Haible  <bruno@clisp.org>
62590         round*, trunc*: Update documentation regarding glibc.
62591         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62592         * doc/posix-functions/round.texi: Likewise.
62593         * doc/posix-functions/roundl.texi: Likewise.
62594         * doc/posix-functions/truncf.texi: Likewise.
62595         * doc/posix-functions/trunc.texi: Likewise.
62596         * doc/posix-functions/truncl.texi: Likewise.
62598 2010-12-20  Bruno Haible  <bruno@clisp.org>
62600         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62601         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62602         * doc/posix-functions/round.texi: Likewise.
62603         * doc/posix-functions/roundl.texi: Likewise.
62605 2010-12-20  Bruno Haible  <bruno@clisp.org>
62607         ttyname_r: Add missing declaration on HP-UX 11.
62608         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62609         HAVE_TTYNAME_R.
62610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62611         declared. Set HAVE_TTYNAME_R always.
62612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62613         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62614         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62615         HAVE_TTYNAME_R.
62616         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62618 2010-12-20  Bruno Haible  <bruno@clisp.org>
62620         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62621         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62622         * doc/posix-functions/getlogin_r.texi: Likewise.
62623         * tests/test-getlogin.c: Include <errno.h>.
62624         (main): Avoid test failure on HP-UX 11.11.
62625         * tests/test-getlogin_r.c (main): Likewise.
62627 2010-12-20  Bruno Haible  <bruno@clisp.org>
62629         getlogin_r: Add missing declaration on HP-UX 11.
62630         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62631         declared also when it exists as a function.
62632         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62634 2010-12-20  Bruno Haible  <bruno@clisp.org>
62636         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62637         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62638         through wcrtomb.
62640 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62642         ftoastr: fix comment
62643         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62644         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62646 2010-12-19  Bruno Haible  <bruno@clisp.org>
62648         isnan: Ensure it is a macro.
62649         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62650         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62651         Solaris.
62653 2010-12-19  Bruno Haible  <bruno@clisp.org>
62655         ldexpl test: Fix link error on OSF/1 5.1.
62656         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62658 2010-12-19  Bruno Haible  <bruno@clisp.org>
62660         wctype: Make it work in C++ mode on OSF/1 5.1.
62661         * lib/wctype.in.h (iswblank): Declare but not define here.
62662         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62663         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62664         * modules/wctype (Files): Add lib/iswblank.c.
62666 2010-12-19  Bruno Haible  <bruno@clisp.org>
62668         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62669         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62670         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62672 2010-12-19  Bruno Haible  <bruno@clisp.org>
62674         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62675         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62676         _POSIX_PII_SOCKET.
62677         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62678         * doc/posix-functions/recvfrom.texi: Likewise.
62679         * doc/posix-functions/send.texi: Likewise.
62680         * doc/posix-functions/sendto.texi: Likewise.
62682 2010-12-19  Bruno Haible  <bruno@clisp.org>
62684         tcgetsid: Add missing declaration on OSF/1 5.1.
62685         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62686         HAVE_TCGETSID.
62687         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62688         Don't set HAVE_TCGETSID.
62689         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62690         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62691         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62692         HAVE_TCGETSID.
62693         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62695 2010-12-19  Bruno Haible  <bruno@clisp.org>
62697         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62698         * lib/stdio.in.h: During the include_next statement, let recursive
62699         includes of this file include only the system header file.
62701 2010-12-19  Bruno Haible  <bruno@clisp.org>
62703         iconv_open: Fix regression from 2010-12-04.
62704         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62705         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62707 2010-12-19  Bruno Haible  <bruno@clisp.org>
62709         stdbool test: Avoid a gcc warning.
62710         * tests/test-stdbool.c (main): Fail if e1 is false.
62711         Reported by Jim Meyering.
62713 2010-12-19  Jim Meyering  <meyering@redhat.com>
62715         setenv: restore to working order
62716         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62717         mistakenly removed.
62718         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62719         HAVE_SETENV.
62720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62721         HAVE_SETENV.
62723 2010-12-19  Bruno Haible  <bruno@clisp.org>
62725         Document some different function declarations on OSF/1 5.1.
62726         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62727         * doc/posix-functions/inet_ntop.texi: Likewise.
62728         * doc/posix-functions/gethostname.texi: Likewise.
62729         * lib/unistd.in.h (gethostname): Update comment.
62731 2010-12-19  Bruno Haible  <bruno@clisp.org>
62733         doc: Mention vasprintf-posix module.
62734         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62735         the 'vasprintf-posix' module.
62736         * doc/glibc-functions/vasprintf.texi: Likewise.
62738 2010-12-19  Bruno Haible  <bruno@clisp.org>
62740         unsetenv: Add missing declaration on OSF/1 5.1.
62741         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62742         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62743         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62745         not HAVE_UNSETENV.
62746         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62747         HAVE_UNSETENV.
62748         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62750 2010-12-19  Bruno Haible  <bruno@clisp.org>
62752         setenv: Add missing declaration on OSF/1 5.1.
62753         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62755         declared. Don't set HAVE_SETENV.
62756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62757         not HAVE_SETENV.
62758         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62759         HAVE_SETENV.
62760         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62762 2010-12-19  Bruno Haible  <bruno@clisp.org>
62764         nl_langinfo tests: Avoid gcc warning.
62765         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62767 2010-12-19  Bruno Haible  <bruno@clisp.org>
62769         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62770         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62771         _GL_CXXALIAS_SYS.
62773 2010-12-19  Bruno Haible  <bruno@clisp.org>
62775         stdbool: Relax test.
62776         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62777         address to 'bool' work in static initializer, for compilers other than
62778         GCC.
62780 2010-12-19  Bruno Haible  <bruno@clisp.org>
62782         ftello: Add missing declaration on OSF/1 5.1.
62783         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62784         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62786         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62787         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62789 2010-12-19  Bruno Haible  <bruno@clisp.org>
62791         fseeko: Add missing declaration on OSF/1 5.1.
62792         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62795         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62796         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62798 2010-12-19  Bruno Haible  <bruno@clisp.org>
62800         fchdir: Add missing declaration on OSF/1 5.1.
62801         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62804         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62805         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62807 2010-12-19  Bruno Haible  <bruno@clisp.org>
62809         relocatable-prog-wrapper: Separate from relocatable-prog.
62810         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62811         uninstall-relocwrapper rule here.
62812         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62813         Reported by Ian Beckwith <ianb@erislabs.net>.
62815 2010-12-19  Bruno Haible  <bruno@clisp.org>
62817         unistr/u8-mbsnlen: Add missing dependency.
62818         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62819         Reported by Ian Beckwith <ianb@erislabs.net>.
62821 2010-12-19  Bruno Haible  <bruno@clisp.org>
62823         iconv: Make it possible again to use this module without 'iconv-h'.
62824         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62825         if it is not defined.
62826         Reported by Ian Beckwith <ianb@erislabs.net>.
62828 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62830         acl: port to Solaris 8 when copying from tmpfs to ufs
62831         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62832         error number.  Problem observed on Solaris 8 with latest
62833         coreutils, with "mv A B", where A is on a tmpfs file system and B
62834         is on a ufs file system.  This caused coreutils' mv/part-symlink
62835         test to fail.
62837         tests: set fail=0 at start
62838         * tests/init.sh (setup_): Move fail=0 initialization here ...
62839         (mktempd_): ... from here, so that tests can rely on fail being
62840         set to 0 initially.  This fixes a problem in coreutils; see:
62841         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62843 2010-12-18  Bruno Haible  <bruno@clisp.org>
62845         memmem-simple: Stylistic changes.
62846         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62847         Fix preprocessor directive indentation.
62849 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62851         memmem, memmem-simple: reorganize and expand empty needle check
62852         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62853         functional checks to memmem-simple so that one has a fully functional
62854         memmem by using just this module.
62855         Restrict the performance only check to the memmem module.
62856         Also expand the empty needle check to ensure the correct
62857         pointer is returned, not just a non NULL pointer.
62858         * doc/glibc-functions/memmem.texi: Rearrange the portability
62859         documentation to correlate with the rearranged checks.
62860         Clarify exactly how the memmem and memmem-simple modules
62861         relate to each other.
62863 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62864             Bruno Haible  <bruno@clisp.org>
62866         Improve cross-compilation guesses for uClibc.
62867         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62868         that uClibc does not have the glibc bug.
62869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62870         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62872 2010-12-14  Eric Blake  <eblake@redhat.com>
62874         configmake: provide fallbacks for oldest supported autotools
62875         * m4/configmake.m4: New file.
62876         * modules/configmake (Files): Ship it.
62877         (configure.ac): Use it to guarantee fallbacks.
62879 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62881         read-file: Improve handling of large files
62882         * lib/read-file.c (fread_file): Minimize realloc()s
62883         for regular files, and better manage sizes around SIZE_MAX.
62885 2010-12-13  Eric Blake  <eblake@redhat.com>
62887         cloexec, fcntl: relax license
62888         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62889         consent from all contributors.
62890         * modules/fcntl (License): Likewise.
62892 2010-12-10  Bruno Haible  <bruno@clisp.org>
62894         Tests for module 'pipe-posix'.
62895         * modules/pipe-posix-tests: New file.
62896         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62898 2010-12-10  Bruno Haible  <bruno@clisp.org>
62900         pipe-posix: Make it work in C++ mode.
62901         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62902         (pipe): Use common idiom, not a macro definition.
62903         * lib/pipe.c: New file.
62904         * m4/pipe.m4: New file.
62905         * modules/pipe-posix (Description): Enhance.
62906         (Files): Add lib/pipe.c, m4/pipe.m4.
62907         (configure.ac): Invoke gl_FUNC_PIPE.
62908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62909         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62910         * tests/test-unistd-c++.cc: Check the signature of pipe.
62912 2010-12-10  Bruno Haible  <bruno@clisp.org>
62914         Rename module 'pipe' to 'spawn-pipe'.
62915         * modules/spawn-pipe: New file, renamed from modules/pipe.
62916         (Files, configure.ac, Makefile.am): Update.
62917         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62918         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62919         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62920         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62921         "spawn-pipe.h" instead of "pipe.h".
62922         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62923         to gl_SPAWN_PIPE.
62924         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62925         (Files, Makefile.am): Update.
62926         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62927         Update.
62928         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62929         Include "spawn-pipe.h" instead of "pipe.h".
62930         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62931         * lib/javacomp.c: Likewise.
62932         * lib/javaversion.c: Likewise.
62933         * lib/pipe-filter-gi.c: Likewise.
62934         * lib/pipe-filter-ii.c: Likewise.
62935         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62936         * modules/javacomp (Depends-on): Likewise.
62937         * modules/javaversion (Depends-on): Likewise.
62938         * modules/pipe-filter-gi (Depends-on): Likewise.
62939         * modules/pipe-filter-ii (Depends-on): Likewise.
62940         * MODULES.html.sh (Executing programs): Update.
62941         * NEWS: Mention the change.
62943 2010-12-10  Eric Blake  <eblake@redhat.com>
62945         pipe-posix: new module
62946         * modules/pipe-posix: New file.
62947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62948         (gl_UNISTD_H): Check for declaration.
62949         * modules/unistd (Makefile.am): Substitute it.
62950         * lib/unistd.in.h (pipe): Provide it for mingw.
62951         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62952         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62954 2010-12-07  Bruno Haible  <bruno@clisp.org>
62956         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62957         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62958         u8_strcmp_gnu.
62959         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62961 2010-12-06  Bruno Haible  <bruno@clisp.org>
62963         Update internal documentation.
62964         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62966 2010-12-04  Bruno Haible  <bruno@clisp.org>
62968         Put more information about failed tests into the test return codes.
62969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62970         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62971         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62972         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62973         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62974         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62975         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62976         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62977         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62980         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62981         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62982         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62983         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62984         returns a bit mask.
62985         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62986         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62987         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62989         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62990         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62993         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62994         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62995         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62996         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62997         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62999         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63000         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63001         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63002         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63003         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63004         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63006         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63008         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63009         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63010         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63011         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63012         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63013         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63014         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63015         gl_PRINTF_PRECISION): Likewise.
63016         * m4/regex.m4 (gl_REGEX): Likewise.
63017         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63018         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63019         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63020         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63021         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63024         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63025         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63026         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63027         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63028         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63029         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63030         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63031         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63032         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63033         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63034         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63036         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63037         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63038         enumerated value.
63039         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63041 2010-12-04  Bruno Haible  <bruno@clisp.org>
63043         Update for Solaris 11 2010-11.
63044         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63045         Express, released in November 2010.
63047 2010-12-04  Bruno Haible  <bruno@clisp.org>
63049         nproc: Relax license.
63050         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63051         and Paul Eggert.
63052         Requested by Ludovic Courtès <ludo@gnu.org>.
63054 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63056         utimecmp: fine-grained src to nearby coarse-grained dest
63058         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63059         and the source is on a file system with higher-resolution time
63060         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63061         not work, and the time stamps are close together, the algorithm to
63062         determine the exact resolution from the read-back mtime was buggy:
63063         it had a "!=" where it should have had an "==".  This bug has been
63064         in the code ever since it was introduced to gnulib.
63065         Problem reported by Dan Jacobson in
63066         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63068 2010-11-30  Bruno Haible  <bruno@clisp.org>
63070         strerror_r-posix: Fix autoconf test.
63071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63073 2010-11-28  Bruno Haible  <bruno@clisp.org>
63074             Paul Eggert  <eggert@cs.ucla.edu>
63076         Tests for module 'getdomainname'.
63077         * modules/getdomainname-tests: New file.
63078         * tests/test-getdomainname.c: New file, based on
63079         tests/test-gethostname.c.
63081 2010-11-28  Bruno Haible  <bruno@clisp.org>
63082             Paul Eggert  <eggert@cs.ucla.edu>
63084         getdomainname: Use the system function when possible.
63085         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63086         (getdomainname): Replace if needed. Provide the declaration if it is
63087         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63088         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63089         (getdomainname): When the system has getdomainname, call the system
63090         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63091         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63092         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63093         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63094         the function if its second argument is of type 'int' or if it is found
63095         in libnsl.
63096         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63097         <sys/systeminfo.h> and sysinfo().
63098         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63100         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63101         HAVE_GETDOMAINNAME.
63102         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63103         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63104         * doc/glibc-functions/getdomainname.texi: Document the problems with
63105         the getdomainname declaration.
63107 2010-11-28  Bruno Haible  <bruno@clisp.org>
63109         sys_socket: Ensure ss_family field on AIX.
63110         * lib/sys_socket.in.h (ss_family): New macro definition.
63111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63112         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63113         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63114         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63115         * modules/sys_socket (Makefile.am): Substitute
63116         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63117         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63119 2010-11-27  Bruno Haible  <bruno@clisp.org>
63121         readline: Improve configure output.
63122         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63123         "checking for readline..." result understandable.
63125 2010-11-27  Bruno Haible  <bruno@clisp.org>
63127         *printf-posix: Detect a bug on Solaris 10/x86.
63128         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63129         for floating-point output.
63130         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63131         directive.
63132         * tests/test-snprintf-posix.h (test_function): Likewise.
63133         * tests/test-sprintf-posix.h (test_function): Likewise.
63134         * tests/test-vasprintf-posix.c (test_function): Likewise.
63135         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63136         * doc/posix-functions/printf.texi: Likewise.
63137         * doc/posix-functions/snprintf.texi: Likewise.
63138         * doc/posix-functions/sprintf.texi: Likewise.
63139         * doc/posix-functions/vfprintf.texi: Likewise.
63140         * doc/posix-functions/vprintf.texi: Likewise.
63141         * doc/posix-functions/vsnprintf.texi: Likewise.
63142         * doc/posix-functions/vsprintf.texi: Likewise.
63143         * doc/glibc-functions/obstack_printf.texi: Likewise.
63144         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63146 2010-11-27  Bruno Haible  <bruno@clisp.org>
63148         Fix link error when module libunistring-optional is in use.
63149         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63150         * modules/striconveha-tests (Makefile.am): Likewise.
63152 2010-11-27  Bruno Haible  <bruno@clisp.org>
63154         regex: Mention link dependencies.
63155         * modules/regex (Link): New section.
63156         * modules/rpmatch (Link): Likewise.
63157         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63159 2010-11-27  Bruno Haible  <bruno@clisp.org>
63161         ftoastr: Fix compilation error on Solaris.
63162         * lib/ftoastr.c: Include <config.h>.
63164 2010-11-27  Bruno Haible  <bruno@clisp.org>
63166         getloadavg: Update documentation.
63167         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63169 2010-11-27  Bruno Haible  <bruno@clisp.org>
63171         sys_socket: Fix test whether the functions are declared.
63172         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63173         not <sys/select.h>.
63175 2010-11-27  Bruno Haible  <bruno@clisp.org>
63177         getpass: Make sure to get system declaration on some platforms.
63178         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63179         gl_USE_SYSTEM_EXTENSIONS.
63180         * modules/getpass (Depends-on): Add extensions.
63182 2010-11-26  Bruno Haible  <bruno@clisp.org>
63184         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63185         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63186         'iconv' module is present.
63187         (ICONV_CONST): New macro.
63188         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63189         ICONV_CONST.
63190         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63191         set ICONV_CONST.
63192         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63193         here.
63194         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63195         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63196         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63197         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63198         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63199         present.
63201 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63203         ftoastr: comment fix
63204         * lib/ftoastr.c: "little" -> "little or no" in comment
63206 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63208         stdint: port to GCC 4.3 + OSX + Octave
63209         On this platform, stdint.h is buggy and defines int64_t to long
63210         long int.  The replacement defined it to long int, causing
63211         problems with C++ style name mangling.  Instead, trust the system
63212         definition if INT64_MAX is defined, and likewise for the unsigned
63213         variant.   Problem reported by Jarno Rajahalme in
63214         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63215         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63216         and don't mess with int64_t and INT64_MAX in this case.
63217         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63219 2010-11-24  Bruno Haible  <bruno@clisp.org>
63221         doc: Corrections regarding MacOS X 10.4 and 10.5.
63222         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63223         MacOS X.
63224         Reported by Simon Josefsson.
63226 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63228         Uninstall ".bin" files installed by relocwrapper.
63229         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63230         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63231         unless it is already there.
63233 2010-11-21  Bruno Haible  <bruno@clisp.org>
63235         Update for NetBSD 5.0.
63236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63237         NetBSD; the test fails on NetBSD 5.0.
63238         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63239         about NetBSD.
63241 2010-11-21  Bruno Haible  <bruno@clisp.org>
63243         Update for HP-UX 11.23 and HP-UX 11.31.
63244         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63245         HP-UX.
63247 2010-11-21  Bruno Haible  <bruno@clisp.org>
63249         Update for MacOS X 10.5.
63250         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63251         MacOS X; the test fails on MacOS X 10.5.8.
63252         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63253         about MacOS X.
63255 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63257         bootstrap: add bootstrap_sync option.
63258         See discussion at
63259         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63260         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63261         * build-aux/bootstrap: Accept --bootstrap-sync to update
63262         bootstrap if it is not identical to the local gnulib's
63263         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63264         enable this by default.  Accept --no-bootstrap-sync to disable
63265         it.
63267 2010-11-20  Bruno Haible  <bruno@clisp.org>
63269         Ensure that <features.h> is included before __GLIBC__ is tested.
63270         * lib/printf-parse.h: Include <features.h>.
63271         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63272         Reported by Mike Frysinger <vapier@gentoo.org>.
63274         Ensure that <features.h> is included before __GLIBC__ is tested.
63275         * lib/wchar.in.h: Include <features.h>.
63276         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63277         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63278         Reported by Mike Frysinger <vapier@gentoo.org>.
63280         Ensure that <features.h> is included before __GLIBC__ is tested.
63281         * lib/arpa_inet.in.h: Include <features.h>.
63282         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63283         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63284         Reported by Mike Frysinger <vapier@gentoo.org>.
63286         Ensure that <features.h> is included before __GLIBC__ is tested.
63287         * build-aux/link-warning.h: Include <features.h>.
63288         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63289         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63290         Reported by Mike Frysinger <vapier@gentoo.org>.
63292         Ensure that <features.h> is included before __GLIBC__ is tested.
63293         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63294         Reported by Mike Frysinger <vapier@gentoo.org>.
63296 2010-11-20  Bruno Haible  <bruno@clisp.org>
63298         memmem: Fix autoconf test.
63299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63301 2010-11-20  Bruno Haible  <bruno@clisp.org>
63303         Port to uClibc.
63304         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63305         * lib/fcntl.in.h: Likewise.
63306         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63307         * lib/mbrtowc.c (mbrtowc): Likewise.
63308         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63309         * lib/strerror_r.c: Likewise.
63310         * lib/unistr/u8-strnlen.c: Likewise.
63311         * lib/vasnprintf.c (decimal_point_char): Likewise.
63312         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63313         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63315         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63316         * tests/test-sigaction.c (handler, main): Likewise.
63317         * lib/freading.h: Treat uClibc like a non-glibc platform.
63318         * lib/freading.c: Likewise.
63319         * lib/gettext.h: Likewise.
63320         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63321         Likewise.
63322         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63323         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63324         * lib/propername.c (proper_name_utf8): Likewise.
63325         * lib/spawn.in.h: Likewise.
63326         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63327         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63328         mem_cd_iconveh_internal): Likewise.
63329         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63330         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63331         strstr, strcasestr): Likewise.
63332         * lib/unicodeio.c (unicode_to_mb): Likewise.
63333         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63334         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63335         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63336         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63337         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63338         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63339         * lib/unistr/u8-stpncpy.c: Likewise.
63340         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63341         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63342         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63343         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63344         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63346         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63349         Likewise.
63350         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63351         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63355         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63356         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63357         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63358         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63359         * tests/test-striconveha.c (main): Likewise.
63360         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63361         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63362         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63363         * doc/posix-functions/getline.texi: Likewise.
63364         Reported by Mike Frysinger <vapier@gentoo.org>.
63366 2010-11-20  Bruno Haible  <bruno@clisp.org>
63368         nproc: Fix condition.
63369         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63370         HAVE_PTHREAD_AFFINITY_NP.
63372 2010-11-20  Bruno Haible  <bruno@clisp.org>
63374         Fix a comment.
63375         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63377 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63379         ftoastr: don't assume snprintf
63380         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63381         Implement a subset of snprintf here, by using sprintf safely.
63382         * modules/ftoastr (Depends-on): Remove snprintf.
63384 2010-11-19  Jim Meyering  <meyering@redhat.com>
63386         test-rename.h: fix compilation failure
63387         * tests/test-rename.h (test_rename): Add omitted "}".
63389 2010-11-17  Jim Meyering  <meyering@redhat.com>
63391         maint.mk: add a URL discussing the no-@acronym policy
63392         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63394 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63396         ftoastr: depend on snprintf, improve comments
63397         * lib/ftoastr.c: Also mention Loitsch's draft.
63398         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63399         needed in the current implementation, but it might simplify
63400         speeding up the code later.
63401         * modules/ftoastr: Depend on snprintf; this improves portability.
63402         Suggested by Bruno Haible in the same email.
63404         ftoastr: port to hosts lacking strtof and strtold
63405         Problem reported by Bruno Haible in
63406         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63407         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63408         environment and strtold (and presumably strtof) are not available.
63409         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63410         (configure.ac): Require gl_C99_STRTOLD.
63412 2010-11-18  Bruno Haible  <bruno@clisp.org>
63414         c-strtold: Avoid link error on AIX 7.
63415         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63416         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63417         (gl_C_STRTOLD): Test whether strtold_l exists.
63418         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63420 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63422         intprops: new macro INT_BITS_STRLEN_BOUND
63423         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63424         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63425         not exposed.  Also, it uses a slightly tighter bound than before;
63426         though this makes no practical difference, we might as well be as
63427         tight as we easily can.
63429         ftoastr: new module, for lossless conversion of floats to short strings
63430         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63431         * modules/ftoastr: New files.
63433 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63435         bootstrap: port to Solaris sed
63436         * build-aux/bootstrap (get_version): Port to Solaris sed.
63437         See Ralf Wildenhues's note in
63438         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63440 2010-11-14  Jim Meyering  <meyering@redhat.com>
63442         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63443         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63444         and move definition closer to sole use.
63446 2010-11-13  Jim Meyering  <meyering@redhat.com>
63448         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63449         Now we require at least autoconf-2.59, which means the work-around
63450         is no longer needed.
63451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63452         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63454         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63455         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63457 2010-11-13  Bruno Haible  <bruno@clisp.org>
63459         rename, renameat: Avoid test failures at NFS mounted locations.
63460         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63461         functions.
63462         (test_rename): Use assert_nonexistent.
63463         * tests/test-rename.c: Include <dirent.h>.
63464         * tests/test-renameat.c: Likewise.
63465         Reported by Gary V. Vaughan <gary@gnu.org>.
63467         rename, renameat: Document Linux bug with NFS
63468         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63469         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63470         * doc/posix-functions/renameat.texi: Likewise.
63471         Suggested by Eric Blake.
63473 2010-11-13  Bruno Haible  <bruno@clisp.org>
63475         rename test: Add comments.
63476         * tests/test-rename.h (test_rename): Add structure and comments.
63478 2010-11-13  Eric Blake  <eblake@redhat.com>
63480         maintainer-makefile: cover a few more files
63481         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63482         scripts generated within C files, for libvirt.
63484 2010-11-13  Bruno Haible  <bruno@clisp.org>
63486         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63487         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63488         character, return the number of bytes that belong together, not always
63489         1.
63490         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63491         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63492         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63493         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63494         number of bytes of an invalid character.
63495         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63496         (main): Invoke it.
63497         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63498         results.
63499         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63500         malformed byte sequences.
63501         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63502         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63503         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63504         Reported by Ben Pfaff and Paolo Bonzini.
63506 2010-11-13  Bruno Haible  <bruno@clisp.org>
63508         openat: Work around glibc bug with fchownat() and empty file names.
63509         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63510         (gl_FUNC_FCHOWNAT): Invoke it.
63511         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63512         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63513         Reported by Gary V. Vaughan <gary@gnu.org>.
63515 2010-11-13  Bruno Haible  <bruno@clisp.org>
63517         openat: Ensure autoconf macro ordering.
63518         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63519         gl_USE_SYSTEM_EXTENSIONS.
63520         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63522 2010-11-13  Bruno Haible  <bruno@clisp.org>
63524         Update comments.
63525         * lib/unistr/u8-check.c: Update file name in comments.
63526         * lib/unistr/u8-mblen.c: Likewise.
63527         * lib/unistr/u8-prev.c: Likewise.
63528         * lib/unistr/u8-strmblen.c: Likewise.
63529         * lib/unistr/u8-strmbtouc.c: Likewise.
63531 2010-11-13  Jim Meyering  <meyering@redhat.com>
63533         tests: avoid test failure on Solaris 10 due to lack of PATH export
63534         * tests/test-update-copyright.sh: Don't forget to export PATH.
63536         init.sh: ensure that IFS is defined, just in case...
63537         * tests/init.sh (setup_): Ensure that IFS is defined,
63538         so that saving and restoring it works as expected.  This
63539         appears to be useful at least for an old version of dash
63540         from a long time ago (RH 6).  See here for details:
63541         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63543         maint.mk: tighten "test a == b" check
63544         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63545         test to files that contain something like #!/bin/sh.
63546         Without this, coreutils would get two false positives in
63547         the comments of C source files.
63549 2010-11-12  Eric Blake  <eblake@redhat.com>
63551         bootstrap: fix typo in previous attempt
63552         * build-aux/bootstrap (buildreq): Correct the grouping.
63553         Reported by Paul Eggert.
63555         maintainer-makefile: prohibit test x == x
63556         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63557         Based on a report by Matthias Bolte.
63559         bootstrap: allow FreeBSD gzip
63560         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63561         which has no '.' and goes to stderr.
63562         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63563         Reported by Matthias Bolte.
63565         maintainer-makefile: check for i18n setup
63566         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63567         will likely work.
63569 2010-11-12  Bruno Haible  <bruno@clisp.org>
63571         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63572         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63573         * lib/nanosleep.c (nanosleep): Likewise.
63575 2010-11-11  Bruno Haible  <bruno@clisp.org>
63577         fcntl-h: Fix for use of C++ on glibc systems.
63578         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63579         also on glibc systems in C++ mode.
63580         Reported by Gary V. Vaughan <gary@gnu.org>.
63582 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63584         mknod: avoid false failure with dash
63585         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63587 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63589         unlink: Fix "is it should" typo in diagnostic.
63590         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63591         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63593 2010-11-11  Bruno Haible  <bruno@clisp.org>
63595         Tests for module 'strerror_r-posix'.
63596         * modules/strerror_r-posix-tests: New file.
63597         * tests/test-strerror_r.c: New file.
63598         * tests/test-string-c++.cc: Check the signature of strerror_r.
63600         New module 'strerror_r-posix'.
63601         * lib/string.in.h (strerror_r): New declaration.
63602         * lib/strerror_r.c: New file.
63603         * m4/strerror_r.m4: New file.
63604         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63605         of strerror_r.
63606         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63607         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63608         * modules/strerror_r-posix: New file.
63609         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63610         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63611         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63612         portability problems.
63614 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63616         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63617         line is also considered for output. Quoted function name in shell
63618         command, so temporary files for functions like MyClass::operator()
63619         are removed correctly without errors.
63621 2010-11-09  Bruno Haible  <bruno@clisp.org>
63623         * doc/posix-functions/strerror.texi: List more failing platforms.
63625         * doc/posix-functions/strerror.texi: Add a comment.
63627 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63629         fdopendir: fix bug on MacOS X when low on file descriptors
63631         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63632         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63633         All callers changed.
63634         (fdopendir): Invoke save_cwd at the top level, not after using
63635         multiple dup() calls to use up file descriptors.  Then retry
63636         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63637         less than the maximum number of open file descriptors, because
63638         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63639         on Mac OS X 10.6.4 for tar 1.24
63640         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63641         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63642         and for tar 1.25
63643         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63645 2010-11-07  Bruno Haible  <bruno@clisp.org>
63647         vasnprintf: Support I flag on glibc systems.
63648         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63649         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63650         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63651         snprintf function.
63652         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63653         glibc systems.
63654         * tests/test-vasnprintf-posix3.c: New file.
63655         * modules/vasnprintf-posix-tests (Files): Add it.
63656         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63658 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63660         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63661         * MODULES.html.sh: For compiler warnings, use name
63662         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63664 2010-11-05  Eric Blake  <eblake@redhat.com>
63666         ceil, floor: avoid spurious failure with icc
63667         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63668         [denormals-as-zero] when optimizing without -mieee-fp option.
63669         * tests/test-floorf2.c (floorf_reference): Likewise.
63670         * tests/test-ceilf1.c (dummy): New function.
63671         (main): Use it to outsmart icc's optimization.
63672         * tests/test-floorf1.c (dummy, main): Likewise.
63674         tests: require working signbit
63675         * modules/ceilf-tests (Depends-on): Add signbit.
63676         * modules/ceill-tests (Depends-on): Likewise.
63677         * modules/floorf-tests (Depends-on): Likewise.
63678         * modules/floorl-tests (Depends-on): Likewise.
63679         * modules/round-tests (Depends-on): Likewise.
63680         * modules/roundf-tests (Depends-on): Likewise.
63681         * modules/roundl-tests (Depends-on): Likewise.
63682         * modules/trunc-tests (Depends-on): Likewise.
63683         * modules/truncf-tests (Depends-on): Likewise.
63684         * modules/truncl-tests (Depends-on): Likewise.
63686         strtod: work around icc bug
63687         * lib/strtod.c (minus_zero): Define to working value.
63688         (strtod): Use it to avoid icc bug.
63690         copysign: enhance tests
63691         * modules/copysign-tests (Files): Add minus-zero.h.
63692         * tests/test-copysign.c (main): Also test zeros.
63694 2010-11-04  Eric Blake  <eblake@redhat.com>
63696         ceil, floor, round, trunc: enhance tests of -0
63697         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63698         * tests/test-ceill.c (main): Likewise.
63699         * tests/test-floorf1.c (main): Likewise.
63700         * tests/test-floorl.c (main): Likewise.
63701         * tests/test-round1.c (main): Likewise.
63702         * tests/test-roundf1.c (main): Likewise.
63703         * tests/test-roundl.c (main): Likewise.
63704         * tests/test-trunc1.c (main): Likewise.
63705         * tests/test-truncf1.c (main): Likewise.
63706         * tests/test-truncl.c (main): Likewise.
63708 2010-11-04  Eric Blake  <eblake@redhat.com>
63710         frexp, tests: work around ICC bug with -zero
63711         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63712         works with more compilers.
63713         * tests/minus-zero.h: New file.
63714         * modules/ceilf-tests (Files): Include it.
63715         * modules/ceill-tests (Files): Likewise.
63716         * modules/floorf-tests (Files): Likewise.
63717         * modules/floorl-tests (Files): Likewise.
63718         * modules/frexp-nolibm-tests (Files): Likewise.
63719         * modules/frexp-tests (Files): Likewise.
63720         * modules/frexpl-nolibm-tests (Files): Likewise.
63721         * modules/frexpl-tests (Files): Likewise.
63722         * modules/isnan-tests (Files): Likewise.
63723         * modules/isnand-nolibm-tests (Files): Likewise.
63724         * modules/isnand-tests (Files): Likewise.
63725         * modules/isnanf-nolibm-tests (Files): Likewise.
63726         * modules/isnanf-tests (Files): Likewise.
63727         * modules/isnanl-nolibm-tests (Files): Likewise.
63728         * modules/isnanl-tests (Files): Likewise.
63729         * modules/round-tests (Files): Likewise.
63730         * modules/roundf-tests (Files): Likewise.
63731         * modules/roundl-tests (Files): Likewise.
63732         * modules/ldexpl-tests (Files): Likewise.
63733         * modules/signbit-tests (Files): Likewise.
63734         * modules/snprintf-posix-tests (Files): Likewise.
63735         * modules/sprintf-posix-tests (Files): Likewise.
63736         * modules/strtod-tests (Files): Likewise.
63737         * modules/trunc-tests (Files): Likewise.
63738         * modules/truncf-tests (Files): Likewise.
63739         * modules/truncl-tests (Files): Likewise.
63740         * modules/vsnprintf-posix-tests (Files): Likewise.
63741         * modules/vsprintf-posix-tests (Files): Likewise.
63742         * modules/vasnprintf-posix-tests (Files): Likewise.
63743         * modules/vasprintf-posix-tests (Files): Likewise.
63744         * tests/test-ceilf1.c (main): Use it.
63745         * tests/test-ceill.c (main): Likewise.
63746         * tests/test-floorf1.c (main): Likewise.
63747         * tests/test-floorl.c (main): Likewise.
63748         * tests/test-frexp.c (main): Likewise.
63749         * tests/test-frexpl.c (main): Likewise.
63750         * tests/test-isnan.c (main): Likewise.
63751         * tests/test-isnand.h (main): Likewise.
63752         * tests/test-isnanf.h (main): Likewise.
63753         * tests/test-isnanl.h (main): Likewise.
63754         * tests/test-ldexpl.c (main): Likewise.
63755         * tests/test-round.c (main): Likewise.
63756         * tests/test-roundf.c (main): Likewise.
63757         * tests/test-roundl.c (main): Likewise.
63758         * tests/test-signbit.c (test_signbitf, test_signbitd)
63759         (test_signbitl): Likewise.
63760         * tests/test-snprintf-posix.h (test_function): Likewise.
63761         * tests/test-sprintf-posix.h (test_function): Likewise.
63762         * tests/test-strtod.c (main): Likewise.
63763         * tests/test-trunc1.c (main): Likewise.
63764         * tests/test-truncf1.c (main): Likewise.
63765         * tests/test-truncl.c (main): Likewise.
63767         isnanl: work around icc bug
63768         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63770 2010-11-03  Eric Blake  <eblake@redhat.com>
63772         tests: fix compiler warnings
63773         * tests/test-getopt.h (test_getopt): Fix condition.
63774         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63775         * tests/test-pipe2.c (main): Likewise.
63776         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63778         utimens: fix broken m4 test
63779         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63781 2010-10-28  Bruno Haible  <bruno@clisp.org>
63783         posix_spawn*, getdtablesize: Relax license.
63784         * modules/posix_spawn (License): Change to LGPLv2+.
63785         * modules/posix_spawnp (License): Likewise.
63786         * modules/posix_spawn-internal (License): Likewise.
63787         * modules/posix_spawnattr_init (License): Likewise.
63788         * modules/posix_spawnattr_getflags (License): Likewise.
63789         * modules/posix_spawnattr_setflags (License): Likewise.
63790         * modules/posix_spawnattr_getpgroup (License): Likewise.
63791         * modules/posix_spawnattr_setpgroup (License): Likewise.
63792         * modules/posix_spawnattr_getschedparam (License): Likewise.
63793         * modules/posix_spawnattr_setschedparam (License): Likewise.
63794         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63795         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63796         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63797         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63798         * modules/posix_spawnattr_getsigmask (License): Likewise.
63799         * modules/posix_spawnattr_setsigmask (License): Likewise.
63800         * modules/posix_spawnattr_destroy (License): Likewise.
63801         * modules/posix_spawn_file_actions_init (License): Likewise.
63802         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63803         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63804         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63805         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63806         * modules/getdtablesize (License): Likewise.
63807         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63809 2010-10-26  Bruno Haible  <bruno@clisp.org>
63811         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63812         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63813         Cygwin and mingw.
63814         Suggested by Eric Blake.
63816 2010-10-26  Bruno Haible  <bruno@clisp.org>
63818         stdio: Work around compilation error due to renameat() on Solaris 10.
63819         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63820         * lib/renameat.c: Don't include <unistd.h> here.
63821         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63822         Reported by Paul Eggert and Eric Blake.
63824 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63826         renameat: port to Solaris 10, which declares renameat in unistd.h
63828         * lib/renameat.c: Include unistd.h before stdio.h, because
63829         Solaris 10 declares renameat in unistd.h.  Problem encountered
63830         when building GNU tar 1.24 on Solaris 10.
63832 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63834         fdopendir: fix C89 compilation
63835         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63836         compilers.
63838 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63840         inttostr: simplify by removing unnecessary redundancy
63841         * lib/anytostr.c: Don't include verify.h.
63842         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63843         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63844         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63845         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63846         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63847         Likewise.
63848         * modules/inttostr (Depends-on): Remove 'verify'.
63850 2010-10-23  Bruno Haible  <bruno@clisp.org>
63852         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63853         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63854         Reported by Eric Blake.
63856 2010-10-23  Bruno Haible  <bruno@clisp.org>
63858         Tests: Fix LOCALE_JA on MirBSD 10.
63859         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63860         to an UTF-8 locale.
63861         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63863         Reported by Eric Blake.
63865 2010-10-21  Bruno Haible  <bruno@clisp.org>
63867         nl_langinfo test: Avoid test failure on NetBSD 5.
63868         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63869         Reported by Eric Blake.
63871 2010-10-21  Eric Blake  <eblake@redhat.com>
63873         c-stack: work around libsigsegv 2.8 bug
63874         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63875         overflow on at least PowerPC64.
63877 2010-10-17  Bruno Haible  <bruno@clisp.org>
63879         userspec: Drop redundant file.
63880         * modules/userspec (Files): Remove lib/inttostr.h.
63882 2010-10-17  Bruno Haible  <bruno@clisp.org>
63884         nl_langinfo tests: Silence some warnings.
63885         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63886         Reported by Jim Meyering.
63888 2010-10-17  Bruno Haible  <bruno@clisp.org>
63890         Make use of GCC's attribute __alloc_size__.
63891         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63892         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63893         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63894         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63895         __alloc_size__.
63896         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63897         Suggested by Jim Meyering.
63899 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63901         bootstrap: anchor .gitignore entries.
63902         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63903         with...
63904         (insert_vc_ignore): ... this new function, which prepends `/' to
63905         all .gitignore entries before passing them to
63906         insert_sorted_if_absent.
63908 2010-10-16  Bruno Haible  <bruno@clisp.org>
63910         nextafter: Fix configure check.
63911         * modules/nextafter (configure.ac): Correct expected prototype.
63913 2010-10-16  Bruno Haible  <bruno@clisp.org>
63915         termios: Update documentation.
63916         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63918 2010-10-16  Bruno Haible  <bruno@clisp.org>
63920         tests: Make them compile with TinyCC.
63921         * tests/test-strstr.c (main): Remove parentheses around array
63922         initializer.
63924 2010-10-15  Eric Blake  <eblake@redhat.com>
63926         ignore-value: make header idempotent
63927         * lib/ignore-value.h: Add double-inclusion guards.
63928         Reported by Stefan Berger.
63930 2010-10-15  Jim Meyering  <meyering@redhat.com>
63932         GNUmakefile: handle "stable" target, not "major"
63933         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63934         lists in maint.mk and announce-gen.  Without this, "make stable"
63935         would fail to ensure that $(VERSION) is up to date.
63937 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63939         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63940         & co.
63942 2010-10-14  Bruno Haible  <bruno@clisp.org>
63944         vasnprintf: Don't set errno to 0.
63945         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63946         block that sets it to 0.
63947         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63949 2010-10-14  Bruno Haible  <bruno@clisp.org>
63951         socketlib: Fix.
63952         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63953         gl_PREREQ_SYS_H_WINSOCK2.
63954         Reported by Ian Beckwith <ianb@erislabs.net>.
63956 2010-10-13  Jim Meyering  <meyering@redhat.com>
63958         test-select-stdin.c: avoid warn_unused_result warnings
63959         * tests/test-select-stdin.c: Include "macros.h".
63960         ASSERT that read and fflush succeed.
63962 2010-10-13  Jim Meyering  <meyering@redhat.com>
63964         git-version-gen: do require git-VC'd files in cwd
63965         * build-aux/git-version-gen: Reject a git version string
63966         if there are no commits associated with the current directory.
63967         This avoids an unlikely false-positive (unrelated dir whose parent
63968         repository also contains a tag matching v*), as pointed out
63969         by Giuseppe Scrivano in
63970         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63972 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63974         argv-iter: omit nonconforming declaration
63975         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63976         enum arg_iter_err declaration, which doesn't conform to C99.
63977         Solaris 10 cc warns about this.
63979 2010-10-13  Eric Blake  <eblake@redhat.com>
63981         termios: fix compilation on mingw
63982         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63983         (gl_TERMIOS_H): Adjust it on mingw.
63984         * modules/termios (Makefile.am): Substitute new key.
63985         * lib/termios.in.h (includes): Make include_next conditional.
63986         * doc/posix-headers/termios.texi (termios.h): Update
63987         documentation.
63988         Reported by Daniel P. Berrange.
63990 2010-10-13  Jim Meyering  <meyering@redhat.com>
63992         git-version-gen: don't require that .git/ be in the current dir
63993         * build-aux/git-version-gen: Adjust this script so that it works
63994         when run from any working directory beneath the top-level .git/-
63995         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63996         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63998         test-select: avoid warn_unused_result warnings
63999         * tests/test-select.c: Include "macros.h".
64000         ASSERT that each call to read, write, and pipe succeeds.
64001         While not technically required, also check each "close".
64002         * modules/select-tests (Files): Add tests/macros.h.
64004         test-symlinkat: remove declaration of unused local
64005         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64007         test-inttostr: avoid shadowing warnings
64008         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64009         and use malloc rather than the stack for the same reason as
64010         mentioned in the comment justifying the other allocation.
64012 2010-10-11  Bruno Haible  <bruno@clisp.org>
64014         stdlib: Allow multiple gnulib generated replacements to coexist.
64015         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64016         Reported by Sam Steingold <sds@gnu.org>.
64018 2010-10-11  Jim Meyering  <meyering@redhat.com>
64020         fix a documentation typo
64021         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64023 2010-10-11  Eric Blake  <eblake@redhat.com>
64025         futimens: work around Solaris 11 bug
64026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64027         * tests/test-futimens.h (test_futimens): Enhance, rather than
64028         weaken test.
64029         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64031 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64033         Indentation.
64034         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64035         higher-level operators more to the left.
64037 2010-10-11  Jim Meyering  <meyering@redhat.com>
64039         test-futimens: avoid unwarranted test failure on Solaris 5.11
64040         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64041         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64042         because it tries to dereference the NULL name argument.
64044 2010-10-11  Bruno Haible  <bruno@clisp.org>
64046         Indentation.
64047         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64048         indentation.
64050 2010-10-11  Jim Meyering  <meyering@redhat.com>
64052         spawn.in.h: make indentation consistent with parentheses
64053         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64054         Make indentation consistent with parentheses.
64056 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64058         Fix mismatched parens in previous commit
64059         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64060         parens.
64062 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64064         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64066         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64067         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64068         * lib/malloca.c: Include "verify.h".
64069         (verify1): Remove, replacing with a verify call.
64070         * lib/relocwrapper.c (verify1): Likewise.
64071         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64072         Likewise.
64073         * modules/malloca (Depends-on): Add 'verify'.
64074         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64075         * modules/vasnprintf (Depends-on): Add 'verify'.
64076         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64077         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64078         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64079         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64080         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64081         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64082         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64084         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64086         Formerly the style was sometimes 2*X - 1, because the C standard
64087         was wrongly thought to disallow ?: in integral constant expressions.
64088         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64089         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64090         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64091         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64092         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64093         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64094         verify that time_t cannot be floating.
64096 2010-10-08  Eric Blake  <eblake@redhat.com>
64098         time: enforce recent POSIX ruling that time_t is integral
64099         * lib/time.in.h (__time_t_must_be_integral): Detect any
64100         problematic systems, allowing the rest of gnulib to assume POSIX.
64102 2010-10-08  Jim Meyering  <meyering@redhat.com>
64104         fdopendir: fix a bug on systems lacking openat and /proc support
64105         OpenBSD 4.7 is one such system.  The most noticeable effect was
64106         failure of any application making nontrivial use of fts: rm, du,
64107         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64108           ./rm: traversal failed: `a': Bad file descriptor
64109         Debugging that, you see that even though FD 6 was closed just
64110         prior to the opendir call in fd_clone_opendir, its resulting
64111         dir->dd_fd was 8, rather than the expected value of 6:
64113         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64114         93                close (fd);
64115         (gdb) n
64116         94                dir = fd_clone_opendir (dupfd);
64117         (gdb) n
64118         95                saved_errno = errno;
64119         (gdb) p dir->dd_fd
64120         $11 = 8
64122         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64123         The problem is that on OpenBSD, fd_clone_opendir has to resort
64124         to using the old-style save/restore CWD mechanism, due to its
64125         lack of openat/proc support, and *that* would steal the FD (6)
64126         that opendir was supposed to use.
64128         The fix is to squirrel away the desired FD so that save_cwd uses a
64129         different one, and then free the dest FD right before calling opendir.
64130         That guarantees opendir will use the required file descriptor.
64132         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64134 2010-10-08  Bruno Haible  <bruno@clisp.org>
64136         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64137         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64139 2010-10-08  Bruno Haible  <bruno@clisp.org>
64141         nanosleep: Make replacement POSIX compliant.
64142         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64143         is out of range.
64144         Reported by Jim Meyering.
64146 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64148         bootstrap: add hook for altering gnulib.mk, for Bison
64149         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64150         the Bison bootstrapping process can rewrite file names and variables
64151         in this file before later parts of 'bootstrap' use the file.
64152         Bison wants to include lib/gnulib.mk from the top-level makefile,
64153         so it needs the file names in this file to be relative to the top
64154         level, not relative to lib; plus it needs variable names to be
64155         rewritten.
64156         (slurp): Use the new function.
64158         bootstrap: reformat for readability
64159         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64161 2010-10-08  Eric Blake  <eblake@redhat.com>
64163         docs: update cygwin progress
64164         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64165         1.7.7.
64166         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64167         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64168         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64169         * doc/posix-functions/carg.texi (carg): Likewise.
64170         * doc/posix-functions/cargf.texi (cargf): Likewise.
64171         * doc/posix-functions/casin.texi (casin): Likewise.
64172         * doc/posix-functions/casinf.texi (casinf): Likewise.
64173         * doc/posix-functions/casinh.texi (casinh): Likewise.
64174         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64175         * doc/posix-functions/catan.texi (catan): Likewise.
64176         * doc/posix-functions/catanf.texi (catanf): Likewise.
64177         * doc/posix-functions/catanh.texi (catanh): Likewise.
64178         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64179         * doc/posix-functions/ccos.texi (ccos): Likewise.
64180         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64181         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64182         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64183         * doc/posix-functions/cexp.texi (cexp): Likewise.
64184         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64185         * doc/posix-functions/cimag.texi (cimag): Likewise.
64186         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64187         * doc/posix-functions/clog.texi (clog): Likewise.
64188         * doc/posix-functions/clogf.texi (clogf): Likewise.
64189         * doc/posix-functions/conj.texi (conj): Likewise.
64190         * doc/posix-functions/conjf.texi (conjf): Likewise.
64191         * doc/posix-functions/cpow.texi (cpow): Likewise.
64192         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64193         * doc/posix-functions/cproj.texi (cproj): Likewise.
64194         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64195         * doc/posix-functions/creal.texi (creal): Likewise.
64196         * doc/posix-functions/crealf.texi (crealf): Likewise.
64197         * doc/posix-functions/csin.texi (csin): Likewise.
64198         * doc/posix-functions/csinf.texi (csinf): Likewise.
64199         * doc/posix-functions/csinh.texi (csinh): Likewise.
64200         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64201         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64202         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64203         * doc/posix-functions/ctan.texi (ctan): Likewise.
64204         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64205         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64206         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64207         * doc/posix-headers/complex.texi (complex.h): Likewise.
64209 2010-10-07  Jim Meyering  <meyering@redhat.com>
64211         parse-datetime: avoid compilation failure on OpenBSD 4.7
64212         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64213         This works around a compilation failure on OpenBSD 4.7:
64214         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64216 2010-10-07  Eric Blake  <eblake@redhat.com>
64218         docs: update cygwin progress
64219         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64220         1.7.6.
64221         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64222         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64223         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64224         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64225         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64226         Likewise.
64227         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64228         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64229         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64230         Likewise.
64231         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64232         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64233         Likewise.
64234         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64235         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64236         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64237         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64238         Likewise.
64239         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64240         Likewise.
64241         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64243         docs: update parse-datetime history
64244         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64245         documentation of this function's history and alternatives.
64247         cygwin: use more robust version check
64248         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64249         exclude an eventual cygwin 1.9.1.
64250         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64252         (gl_FUNC_STRCASESTR): Likewise.
64253         Reported by Bruno Haible.
64255 2010-10-06  Bruno Haible  <bruno@clisp.org>
64257         string, sys_select: Avoid #including large headers unless necessary.
64258         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64259         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64260         OSF/1, BeOS, Haiku.
64261         Reported by Jim Meyering.
64263 2010-10-05  Eric Blake  <eblake@redhat.com>
64265         memmem, strstr, strcasestr: fix bug with long periodic needle
64266         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64267         periodic needle having false positive.
64268         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64269         and cygwin 1.7.7.
64270         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64272         (gl_FUNC_STRCASESTR): Likewise.
64273         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64274         * tests/test-memmem.c (main): Expose the bug.
64275         * tests/test-strcasestr.c (main): Likewise.
64276         * tests/test-strstr.c (main): Likewise.
64277         * tests/test-c-strcasestr.c (main): Likewise.
64278         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64279         * doc/posix-functions/strstr.texi (strstr): Likewise.
64280         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64281         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64283 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64285         parse-datetime: do some more renaming
64286         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64287         parse_datetime, not get_date.  Mention the renaming.
64288         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64289         in comments.
64290         * m4/bison.m4: Likewise.
64292 2010-10-05  Eric Blake  <eblake@redhat.com>
64294         parse-datetime: better name than get_date
64295         * NEWS: Reword the deprecation notice.
64296         * modules/get_date: Rename to modules/parse-datetime.
64297         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64298         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64299         * lib/get_date.y: Rename to lib/parse-datetime.y.
64300         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64301         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64302         * doc/getdate.texi: Provide fallback wrapper.
64303         * lib/getdate.h: Move guts, and wrap...
64304         * lib/parse-datetime.h: ...new file.
64305         * lib/parse-datetime.y (get_date): Rename...
64306         (parse_datetime): ...to this.
64307         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64308         (gl_PARSE_DATETIME): ...to this.
64309         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64310         documentation.
64311         * modules/getdate (Files): Provide fallback docs and header.
64312         (Notice, Depends-on): Update references.
64313         * tests/test-parse-datetime.c: Likewise.
64314         * DEPENDENCIES: Likewise.
64315         * MODULES.html.sh (Date and time <time.h>): Likewise.
64316         * doc/parse-datetime.texi (Date input formats)
64317         (Authors of parse_datetime): Likewise.
64318         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64319         (Include): Likewise.
64320         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64321         * gnulib-tool: Likewise.
64322         * m4/bison.m4 (gl_BISON): Likewise.
64323         Suggested by Bruno Haible.
64325 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64327         more ports to Solaris tr, which needs [] around ranges
64328         * gnulib-tool: Solaris tr needs [] around ranges.
64329         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64330         * tests/test-pipe-filter-gi1.c (main): Likewise.
64331         * tests/test-pipe-filter-ii1.c (main): Likewise.
64333 2010-10-05  Eric Blake  <eblake@redhat.com>
64335         bootstrap: fix Solaris regression
64336         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64337         around ranges.
64338         Reported by Pádraig Brady.
64340         bootstrap: work with pkg-config
64341         * build-aux/bootstrap (check_versions): Also transliterate - in
64342         prerequisite name.
64343         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64344         prerequisites that were already found, to avoid confusion.
64345         Reported by Justin Clift.
64347         faccessat: remove unused wrappers
64348         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64349         presence of these wrappers dragged in -lgen on Solaris.
64350         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64352 2010-10-05  Jim Meyering  <meyering@redhat.com>
64354         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64355         * Makefile (sc_pragma_columns): New syntax-check rule.
64357 2010-10-04  Bruno Haible  <bruno@clisp.org>
64359         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64360         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64361         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64362         Reported by Bruce Korb and Eric Blake.
64364 2010-10-04  Bruno Haible  <bruno@clisp.org>
64366         threadlib: Make option --with-libpth-prefix work.
64367         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64368         use $LIBPTH, not just -lpth.
64370 2010-10-04  Bruno Haible  <bruno@clisp.org>
64372         Avoid line length limitation from HP NonStop system header files.
64373         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64374         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64375         * lib/ctype.in.h: Likewise.
64376         * lib/dirent.in.h: Likewise.
64377         * lib/errno.in.h: Likewise.
64378         * lib/fcntl.in.h: Likewise.
64379         * lib/float.in.h: Likewise.
64380         * lib/getopt.in.h: Likewise.
64381         * lib/iconv.in.h: Likewise.
64382         * lib/inttypes.in.h: Likewise.
64383         * lib/langinfo.in.h: Likewise.
64384         * lib/locale.in.h: Likewise.
64385         * lib/math.in.h: Likewise.
64386         * lib/netdb.in.h: Likewise.
64387         * lib/netinet_in.in.h: Likewise.
64388         * lib/poll.in.h: Likewise.
64389         * lib/pthread.in.h: Likewise.
64390         * lib/pty.in.h: Likewise.
64391         * lib/sched.in.h: Likewise.
64392         * lib/se-selinux.in.h: Likewise.
64393         * lib/search.in.h: Likewise.
64394         * lib/signal.in.h: Likewise.
64395         * lib/spawn.in.h: Likewise.
64396         * lib/stdarg.in.h: Likewise.
64397         * lib/stddef.in.h: Likewise.
64398         * lib/stdint.in.h: Likewise.
64399         * lib/stdio.in.h: Likewise.
64400         * lib/stdlib.in.h: Likewise.
64401         * lib/string.in.h: Likewise.
64402         * lib/strings.in.h: Likewise.
64403         * lib/sys_file.in.h: Likewise.
64404         * lib/sys_ioctl.in.h: Likewise.
64405         * lib/sys_select.in.h: Likewise.
64406         * lib/sys_socket.in.h: Likewise.
64407         * lib/sys_stat.in.h: Likewise.
64408         * lib/sys_time.in.h: Likewise.
64409         * lib/sys_times.in.h: Likewise.
64410         * lib/sys_utsname.in.h: Likewise.
64411         * lib/sys_wait.in.h: Likewise.
64412         * lib/sysexits.in.h: Likewise.
64413         * lib/termios.in.h: Likewise.
64414         * lib/time.in.h: Likewise.
64415         * lib/unistd.in.h: Likewise.
64416         * lib/wchar.in.h: Likewise.
64417         * lib/wctype.in.h: Likewise.
64418         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64419         * modules/ctype (Makefile.am): Likewise.
64420         * modules/dirent (Makefile.am): Likewise.
64421         * modules/errno (Makefile.am): Likewise.
64422         * modules/fcntl-h (Makefile.am): Likewise.
64423         * modules/float (Makefile.am): Likewise.
64424         * modules/getopt-posix (Makefile.am): Likewise.
64425         * modules/iconv-h (Makefile.am): Likewise.
64426         * modules/inttypes (Makefile.am): Likewise.
64427         * modules/langinfo (Makefile.am): Likewise.
64428         * modules/locale (Makefile.am): Likewise.
64429         * modules/math (Makefile.am): Likewise.
64430         * modules/netdb (Makefile.am): Likewise.
64431         * modules/netinet_in (Makefile.am): Likewise.
64432         * modules/poll-h (Makefile.am): Likewise.
64433         * modules/pthread (Makefile.am): Likewise.
64434         * modules/pty (Makefile.am): Likewise.
64435         * modules/sched (Makefile.am): Likewise.
64436         * modules/search (Makefile.am): Likewise.
64437         * modules/selinux-h (Makefile.am): Likewise.
64438         * modules/signal (Makefile.am): Likewise.
64439         * modules/spawn (Makefile.am): Likewise.
64440         * modules/stdarg (Makefile.am): Likewise.
64441         * modules/stddef (Makefile.am): Likewise.
64442         * modules/stdint (Makefile.am): Likewise.
64443         * modules/stdio (Makefile.am): Likewise.
64444         * modules/stdlib (Makefile.am): Likewise.
64445         * modules/string (Makefile.am): Likewise.
64446         * modules/strings (Makefile.am): Likewise.
64447         * modules/sys_file (Makefile.am): Likewise.
64448         * modules/sys_ioctl (Makefile.am): Likewise.
64449         * modules/sys_select (Makefile.am): Likewise.
64450         * modules/sys_socket (Makefile.am): Likewise.
64451         * modules/sys_stat (Makefile.am): Likewise.
64452         * modules/sys_time (Makefile.am): Likewise.
64453         * modules/sys_times (Makefile.am): Likewise.
64454         * modules/sys_utsname (Makefile.am): Likewise.
64455         * modules/sys_wait (Makefile.am): Likewise.
64456         * modules/sysexits (Makefile.am): Likewise.
64457         * modules/termios (Makefile.am): Likewise.
64458         * modules/time (Makefile.am): Likewise.
64459         * modules/unistd (Makefile.am): Likewise.
64460         * modules/wchar (Makefile.am): Likewise.
64461         * modules/wctype (Makefile.am): Likewise.
64463 2010-10-04  Bruno Haible  <bruno@clisp.org>
64465         read-file tests: Avoid a test failure on NonStop Kernel.
64466         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64467         a regular file.
64468         Reported by Joachim Schmitz <schmitz@hp.com>.
64470 2010-10-03  Bruno Haible  <bruno@clisp.org>
64472         gnulib-tool: Fixes for --create-testdir with --libtool.
64473         * gnulib-tool (func_get_automake_snippet): Don't augment
64474         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64475         an executable.
64476         (func_create_testdir): Handle module 'alloca' like func_import.
64477         Reported by Bruce Korb <bruce.korb@gmail.com>.
64479 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64481         Avoid some lines longer than 80 characters.
64482         * lib/stdint.in.h: Break long comment lines.
64483         * lib/math.in.h: Likewise.
64484         (_GL_NUM_UINT_WORDS): New macro, for readability.
64485         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64486         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64487         * lib/stdlib.in.h: Likewise.
64488         * lib/spawn.in.h: Likewise.
64489         * lib/sys_socket.in.h: Update an URL.
64490         * lib/sys_stat.in.h: Break long line.
64492 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64494         Improve pmccabe2html.
64495         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64496         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64497         when the sources change. Remove the line in the HTML about "Used
64498         ranges" (which implied that there might be other unused ranges),
64499         rename "Resume" to "Summary" (easier to understand for more users).
64500         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64501         styles, and some unnecessary blank lines.
64503 2010-10-03  Bruno Haible  <bruno@clisp.org>
64504             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64506         acl: Add support for ACLs on NonStop Kernel.
64507         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64508         Check whether the function aclsort() exists.
64509         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64510         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64511         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64512         (acl_nontrivial [HAVE_ACLSORT]: New function.
64513         (file_has_acl): Implement for NonStop Kernel.
64514         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64515         (qset_acl): Implement for NonStop Kernel.
64516         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64517         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64518         (main): Implement for NonStop Kernel.
64519         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64520         Kernel. Handle this flavor.
64521         * tests/test-set-mode-acl.sh: Likewise.
64522         * tests/test-copy-acl.sh: Likewise.
64523         * tests/test-copy-file.sh: Likewise.
64525 2010-10-03  Bruno Haible  <bruno@clisp.org>
64527         Info about ACLs on NonStop Kernel.
64528         * doc/acl-resources.txt: Add info about NonStop Kernel.
64529         References by Joachim Schmitz <schmitz@hp.com>.
64531 2010-10-02  Bruno Haible  <bruno@clisp.org>
64533         Define missing EDQUOT on NonStop Kernel.
64534         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64535         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64536         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64537         missing.
64538         * doc/posix-headers/errno.texi: Mention the NSK bug.
64539         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64540         Reported by Joachim Schmitz <schmitz@hp.com>.
64542 2010-10-02  Bruno Haible  <bruno@clisp.org>
64544         Update doc for POSIX:2008.
64545         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64546         Update URL of POSIX specification.
64548 2010-10-02  Bruno Haible  <bruno@clisp.org>
64550         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64551         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64552         from gnulib, not from Automake.
64554 2010-10-02  Bruno Haible  <bruno@clisp.org>
64556         New module 'system-posix'.
64557         * modules/system-posix: New file.
64558         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64559         module is present.
64560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64561         GNULIB_SYSTEM_POSIX.
64562         * modules/stdlib (Depends-on): Remove sys_wait.
64563         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64564         * doc/posix-functions/system.texi: Mention the new module.
64565         * doc/posix-headers/stdlib.texi: Likewise.
64566         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64567         define test_sys_wait_macros to a no-op.
64568         Reported by Sam Steingold <sds@gnu.org>.
64570 2010-09-30  Bruno Haible  <bruno@clisp.org>
64572         More renaming from 'getdate' to 'get_date'.
64573         * doc/get_date.texi: Renamed from doc/getdate.texi.
64574         * modules/get_date (Files): Update.
64575         * MODULES.html.sh (Date and time <time.h>): Update.
64576         * DEPENDENCIES: Update.
64577         * gnulib-tool: Update comment.
64578         * m4/bison.m4 (gl_BISON): Likewise.
64579         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64581 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64583         bootstrap: support ACLOCAL_FLAGS during aclocal
64584         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64585         can add additional -I dir for third-party .m4 files.
64587 2010-09-30  Eric Blake  <eblake@redhat.com>
64589         bootstrap: use glibtoolize on MacOS
64590         * build-aux/bootstrap (check_versions): Convert libtool into
64591         libtoolize.
64592         (tool search): Move libtool check earlier, and look for
64593         glibtoolize for MacOS.
64594         (gnulib_tool_options): Auto-add --libtool when appropriate.
64595         Reported by Justin Clift.
64597         poll: fix typo that broke test on MacOS
64598         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64599         Reported by Justin Clift.
64601         getdate: rename to get_date
64602         Note: getdate.h is not renamed, to minimize client impact.
64603         * modules/getdate: Mark obsolete.  Move old contents...
64604         * modules/get_date: ...to new module name.
64605         * modules/getdate-tests: Move...
64606         * modules/get_date-tests: ...here.
64607         * m4/getdate.m4: Move...
64608         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64609         * lib/getdate.y: Move...
64610         * lib/get_date.y: ...here.
64611         * tests/test-getdate.c: Move...
64612         * tests/test-get_date.c: ...here.
64613         * doc/posix-functions/getdate.texi (getdate): Update name.
64614         * NEWS: Mention the change.
64616 2010-09-29  Bruno Haible  <bruno@clisp.org>
64618         Separate the module 'waitpid' from the module 'sys_wait'.
64619         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64620         present.
64621         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64622         gl_MODULE_INDICATOR_FOR_TESTS.
64623         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64624         * modules/sys_wait (Depends-on): Remove waitpid.
64625         (Makefile.am): Substitute GNULIB_WAITPID.
64626         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64627         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64628         signature only if the 'waitpid' module is present.
64629         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64630         * NEWS: Mention the change.
64631         * modules/grantpt (Depends-on): Add waitpid.
64632         * modules/wait-process (Depends-on): Likewise.
64634 2010-09-29  Bruno Haible  <bruno@clisp.org>
64636         More tests for module 'sys_wait'.
64637         * modules/sys_wait-c++-tests: New file.
64638         * tests/test-sys_wait-c++.cc: New file.
64639         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64640         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64642 2010-09-29  Bruno Haible  <bruno@clisp.org>
64644         New module 'waitpid'.
64645         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64646         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64647         Don't include <process.h>.
64648         (waitpid): Declare only, using modern idiom.
64649         * m4/waitpid.m4: New file.
64650         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64651         * modules/waitpid: New file.
64652         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64653         (Makefile.am): Update.
64654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64656 2010-09-28  Bruno Haible  <bruno@clisp.org>
64658         poll: Assume ANSI C.
64659         * lib/poll.c (poll): Use an ANSI C declaration.
64661 2010-09-28  Bruno Haible  <bruno@clisp.org>
64663         poll-h: Create poll.h on all platforms.
64664         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64665         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64666         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64667         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64668         (gl_REPLACE_POLL_H): Don't set POLL_H.
64669         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64670         * modules/poll-h (Depends-on): Add include_next.
64671         (Makefile.am): Create poll.h unconditionally. Substitute also
64672         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64674 2010-09-28  Bruno Haible  <bruno@clisp.org>
64676         Tests for module 'poll-h'.
64677         * modules/poll-h-c++-tests: New file.
64678         * tests/test-poll-h-c++.cc: New file.
64680         Tests for module 'poll-h'.
64681         * modules/poll-h-tests: New file.
64682         * tests/test-poll-h.c: New file.
64684 2010-09-28  Bruno Haible  <bruno@clisp.org>
64686         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64687         * modules/poll-h (Depends-on): Add 'extensions'.
64689 2010-09-28  Bruno Haible  <bruno@clisp.org>
64691         New module 'poll-h'.
64692         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64693         (poll): Use modern idiom.
64694         * modules/poll-h: New file.
64695         * modules/poll (Files): Remove lib/poll.in.h.
64696         (Depends-on): Add poll-h.
64697         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64698         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64699         * m4/poll_h.m4: New file.
64700         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64701         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64702         and invoke gl_REPLACE_POLL_H.
64703         * lib/poll.c: Use common idiom.
64704         * tests/test-poll.c: Likewise.
64705         * doc/posix-headers/poll.texi: Mention the poll-h module.
64706         Suggested by Eric Blake.
64708 2010-09-26  Bruno Haible  <bruno@clisp.org>
64710         sys_wait: Implement WSTOPSIG.
64711         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64712         Reported by Simon Josefsson.
64714 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64716         stdlib, sys_wait: Avoid compilation error on mingw.
64717         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64719 2010-09-26  Bruno Haible  <bruno@clisp.org>
64721         stdlib tests: Avoid code duplication.
64722         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64723         * modules/sys_wait-tests (Files): Likewise.
64724         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64725         * tests/test-stdlib.c: Include test-sys_wait.h.
64726         (main): Invoke test_sys_wait_macros.
64727         * tests/test-sys_wait.c: Include test-sys_wait.h.
64728         (main): Invoke test_sys_wait_macros.
64730 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64732         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64733         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64734         sure Windows sockets are working before calling getaddrinfo.
64735         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64736         * doc/gnulib.texi (Windows sockets): Fix typo.
64738 2010-09-25  Bruno Haible  <bruno@clisp.org>
64740         Tests for module 'regex-quote'.
64741         * modules/regex-quote-tests: New file.
64742         * tests/test-regex-quote.c: New file.
64744         New module 'regex-quote'.
64745         * lib/regex-quote.h: New file.
64746         * lib/regex-quote.c: New file.
64747         * modules/regex-quote: New file.
64748         Suggested by Reuben Thomas <rrt@sc3d.org>.
64750 2010-09-24  Bruno Haible  <bruno@clisp.org>
64752         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64753         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64755 2010-09-23  Bruno Haible  <bruno@clisp.org>
64757         setenv: Relax license.
64758         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64759         Blake.
64760         Requested by Eric Blake.
64762 2010-09-22  Bruno Haible  <bruno@clisp.org>
64764         termios: Relax license.
64765         * modules/termios (License): Change to LGPLv2+.
64766         Requested by Eric Blake.
64768 2010-09-22  Bruno Haible  <bruno@clisp.org>
64770         threadlib: Allow the package to change the default to 'no'.
64771         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64772         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64773         Reported by Paul Eggert.
64775 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64776             Bruno Haible  <bruno@clisp.org>
64778         Fix endless loop in mbmemcasecoll.
64779         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64780         byte.
64781         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64783 2010-09-22  Bruno Haible  <bruno@clisp.org>
64785         Tests for module 'memcoll'.
64786         * modules/memcoll-tests: New file.
64787         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64789         memcoll, xmemcoll: Clarify size vs. length.
64790         * modules/memcoll.c (memcoll0): Clarify specification.
64791         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64792         passed to collate_error.
64794 2010-09-22  Bruno Haible  <bruno@clisp.org>
64796         Tests for module 'memcasecmp'.
64797         * modules/memcasecmp-tests: New file.
64798         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64800 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64802         * lib/pthread.in.h: Add split double-inclusion guard, and include
64803         system <pthread.h> if there is one.  Use @@-style as in other
64804         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64805         pthread.h doesn't.
64806         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64807         (pthread_mutexattr_settype, pthread_mutex_trylock):
64808         New static inline functions, if there's no system <pthread.h>.
64809         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64810         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64811         Approximate with mutexes if the system lacks spinlocks, as in
64812         MacOS.
64813         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64814         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64815         @@-style.  Check for spinlocks separately.
64816         (gl_PTHREAD_DEFAULTS): New macro.
64817         * modules/pthread: Redo to use a more typical style for in.h files.
64819 2010-09-21  Eric Blake  <eblake@redhat.com>
64821         net_if: enhance tests
64822         * tests/test-net_if.c (main): Move signature checks earlier.
64823         Print failures to stderr.
64824         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64825         Document the bug that we do not yet fix.
64827 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64829         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64830         about gnulib, not GSS.
64832 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64834         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64835         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64836         for Emacs.
64837         * build-aux/pmccabe2html: Make Makefile.am example code more
64838         cut-and-paste friendly.
64840 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64842         * tests/test-net_if.c: New file.
64843         * modules/net_if-tests: New file.
64845 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64847         pthread: add pthread_spin_destroy
64848         * lib/pthread.in.h (pthread_spin_destroy): New function.
64850 2010-09-19  Bruno Haible  <bruno@clisp.org>
64852         gnulib-tool: Fix --help output.
64853         * gnulib-tool (func_usage): Fix help message.
64854         Reported by Reuben Thomas <rrt@sc3d.org>.
64856 2010-09-18  Jim Meyering  <meyering@redhat.com>
64858         maint.mk: avoid unexpanded \n in two diagnostics
64859         * top/maint.mk (sc_prohibit_always_true_header_tests):
64860         Don't use a literal \n in a halt=... assignment.  It would not be
64861         expanded, and the two \n bytes would appear in the diagnostic output
64862         rather than the desired newline.  Use halt=$$(printf ... instead.
64863         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64865 2010-09-18  Bruno Haible  <bruno@clisp.org>
64867         netinet_in: Doc tweak.
64868         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64869         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64871 2010-09-18  Jim Meyering  <meyering@redhat.com>
64873         init.sh: correct an outdated comment
64874         * tests/init.sh (create_exe_shims_):  s/function/alias/
64876         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64877         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64878         a file named "*.exe" is removed between the glob expansion and the
64879         processing of that oddly named file.
64881 2010-09-17  Eric Blake  <eblake@redhat.com>
64883         mirbsd: add some more support
64884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64885         in BSD family.
64886         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64887         devices as OpenBSD.
64888         * m4/host-os.m4 (mirbsd): Add MirBSD.
64890         tests: fix unportable assumption on sys/wait.h
64891         * tests/test-sys_wait.c (main): Relax test.
64892         * tests/test-stdlib.c (main): Likewise.
64894         init.sh: accommodate directory with no .exes
64895         * tests/init.sh: Accomodate directory containing only scripts.
64897         tests: avoid compiler warning
64898         * tests/test-stdlib.c (main): Use the variable.
64900         fdutimens, fdutimensat: update signature, again
64901         * lib/utimens.h (gl_futimens): Delete, and move signature...
64902         (fdutimens): ...here.
64903         (fdutimensat): Rearrange signature.
64904         (lutimensat): Rename variable for clarity.
64905         * lib/fdutimensat.c (fdutimensat): Update signature.
64906         * lib/utimens.c (fdutimens): Likewise.
64907         (gl_futimens): Delete.
64908         (utimens, lutimens): Update callers.
64909         * lib/futimens.c (futimens): Likewise.
64910         * tests/test-fdutimensat.c: Likewise.
64911         * tests/test-utimens.c: Likewise.
64912         * tests/test-futimens.h: Update comment.
64913         * NEWS: Mention this.
64914         Suggested by Paul Eggert.
64916 2010-09-17  Bruno Haible  <bruno@clisp.org>
64918         Take over the maintenance of some older macros from Autoconf.
64919         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64920         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64921         GNU Autoconf.
64922         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64923         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64925 2010-09-17  Eric Blake  <eblake@redhat.com>
64927         fdutimensat: drop atflag validation
64928         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64929         with valid fd, to close a race scenario where futimens is
64930         unsupported and FILE was replaced by a symlink.
64931         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64932         accordingly.
64933         Suggested by Paul Eggert.
64935 2010-09-16  Bruno Haible  <bruno@clisp.org>
64937         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64938         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64940 2010-09-16  Bruno Haible  <bruno@clisp.org>
64942         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64943         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64944         login_tty exists.
64945         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64947 2010-09-16  Bruno Haible  <bruno@clisp.org>
64949         login_tty: Make the replacement code work on BSD systems.
64950         * lib/login_tty.c: Include <sys/ioctl.h>.
64951         (login_tty): Use ioctl TIOCSCTTY when available.
64952         * modules/login_tty (Depends-on): Add sys_ioctl.
64953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64955 2010-09-16  Bruno Haible  <bruno@clisp.org>
64957         login_tty: Stricter unit test.
64958         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64959         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64960         and tcgetsid() after login_tty.
64961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64963 2010-09-16  Bruno Haible  <bruno@clisp.org>
64965         New module 'tcgetsid'.
64966         * lib/tcgetsid.c: New file.
64967         * m4/tcgetsid.m4: New file.
64968         * modules/tcgetsid: New file.
64969         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64970         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64971         GNULIB_TCGETSID, HAVE_TCGETSID.
64972         * lib/termios.in.h: Include <sys/types.h>.
64973         (tcgetsid): New declaration.
64974         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64975         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64976         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64977         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64979 2010-09-16  Bruno Haible  <bruno@clisp.org>
64981         Tests for module 'termios'.
64982         * modules/termios-c++-tests: New file.
64983         * modules/termios-tests: New file.
64984         * tests/test-termios-c++.cc: New file.
64985         * tests/test-termios.c: New file.
64987         New module 'termios'.
64988         * modules/termios: New file.
64989         * lib/termios.in.h: New file.
64990         * m4/termios_h.m4: New file.
64991         * doc/posix-headers/termios.texi: Mention the new module.
64993 2010-09-16  Eric Blake  <eblake@redhat.com>
64995         fdutimensat: add an atflag parameter
64996         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64997         * lib/utimens.h (fdutimensat): Update prototype.
64998         * tests/test-fdutimensat.c: Adjust test to match.
64999         * NEWS: Document the change.
65000         Suggested by Paul Eggert.
65002 2010-09-16  Bruno Haible  <bruno@clisp.org>
65004         Fix typos in comments.
65005         * lib/striconveh.h: Fix typo in comment.
65006         * lib/login_tty.c (login_tty): Likewise.
65008 2010-09-15  Bruno Haible  <bruno@clisp.org>
65010         stdlib: clarify MirBSD WEXITSTATUS bug
65011         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65012         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65014 2010-09-15  Eric Blake  <eblake@redhat.com>
65016         stdlib: work around MirBSD WEXITSTATUS bug
65017         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65018         * modules/stdlib (Depends-on): Add sys_wait.
65019         * tests/test-sys_wait.c (main): Enhance test.
65020         * tests/test-stdlib.c (main): Likewise.
65021         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65023         docs: mention MacOS issue with WEXITSTATUS(constant)
65024         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65025         issue.
65026         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65028         strnlen: add tests
65029         * modules/strnlen-tests: New file.
65030         * tests/test-strnlen.c: Likewise.
65032 2010-09-14  Bruno Haible  <bruno@clisp.org>
65034         unistr/base: Avoid link errors when module 'libunistring' is also used.
65035         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65036         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65037         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65038         Declare also when HAVE_LIBUNISTRING is set.
65039         Reported by Pádraig Brady <P@draigbrady.com>.
65041 2010-09-14  Eric Blake  <eblake@redhat.com>
65043         test-rawmemchr: make more robust
65044         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65045         (Depends-on, configure.ac): Add needed prerequisites to use it.
65046         * modules/memchr-tests (Files, Depends-on, configure.ac):
65047         Likewise, to avoid implicit reliance on memchr module prereqs.
65048         * tests/test-memchr.c (main): Ensure proper masking.
65049         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65050         reads.
65052         memchr: detect glibc Alpha bug
65053         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65054         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65055         Alpha.
65056         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65057         * tests/test-memchr.c (main): Enhance test.
65058         Reported by Nelson H. F. Beebe.
65060 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65062         fts, getcwd, glob: audit for dirfd returning -1
65063         * lib/fts.c (opendir): Remove #define; no longer used.
65064         (opendirat): New arg PDIR_FD.  All callers changed.
65065         (fts_build, _opendir2): Use new opendirat to avoid the need for
65066         dirfd, or for checking whether dirfd returns a negative value.
65067         Don't use opendir; always use openat followed by fdopendir.
65068         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65069         it.
65070         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65071         returns -1 here.
65072         * modules/fts (Depends-on): Remove dirfd.
65073         * modules/getcwd (Depends-on): Likewise.
65075 2010-09-13  Eric Blake  <eblake@redhat.com>
65077         float: fix broken MirBSD header
65078         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65079         * doc/posix-headers/float.texi (float.h): Document it.
65081 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65083         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65084         * lib/fts.c (opendirat): New arg extra_flags.
65085         (__opendir2): Use it to avoid following symlinks when opening
65086         a directory, if symlinks are not supposed to be followed.  See
65087         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65089         fdopendir: preserve argument fd before returning
65090         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65091         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65092         (fdopendir): Use them, arranging for FD to be open to the same
65093         directory that it was when it started.  (It might be temporarily
65094         closed while fdopendir is running, so this not thread- or
65095         signal-safe.)  Be careful to do the right thing even when file
65096         descriptors are scarce and dup fails with errno == EMFILE.  See
65097         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65099 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65101         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65102         * NEWS: Document change.
65103         * m4/regex.m4: Disable test for regoff_t size.
65105 2010-09-13  Jim Meyering  <meyering@redhat.com>
65107         fts: don't operate on an invalid file descriptor after failed dup
65108         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65109         negative file descriptor.
65111 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65113         savedir: add streamsavedir, deprecate fdsavedir
65114         * NEWS: Mention deprecation of fdsavedir.
65115         * lib/savedir.c (streamsavedir): New extern function, whose name
65116         ends in "savedir" to be consistent with the others.  This differs
65117         from savedirstream in that it doesn't close its argument.  The
65118         next version of GNU tar will use this instead of fdsavedir, to
65119         avoid some race conditions and conserve file descriptors.
65120         (savedirstream): Reimplement as a wrapper around streamsavedir.
65121         (fdsavedir): Add a comment deprecating this function.  As far as
65122         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65123         * lib/savedir.h (streamsavedir): New decl.
65124         (fdsavedir): Add a comment deprecating this.
65126 2010-09-10  Bruno Haible  <bruno@clisp.org>
65128         langinfo: Fix last commit.
65129         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65130         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65133 2010-09-10  Bruno Haible  <bruno@clisp.org>
65135         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65136         * lib/progreloc.c (O_EXEC): Define fallback.
65138 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65140         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65141         * NEWS: Document recent changes to fcntl-h.
65142         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65143         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65144         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65145         Similarly for O_SEARCH; this last was already true, but not documented.
65146         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65147         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65148         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65149         Likewise.
65150         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65151         is zero, not whether it is defined.
65152         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65153         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65154         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65156 2010-09-10  Bruno Haible  <bruno@clisp.org>
65158         langinfo, nl_langinfo: Fix for IRIX 5.3.
65159         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65160         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65161         HAVE_LANGINFO_YESEXPR.
65162         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65163         HAVE_LANGINFO_YESEXPR.
65164         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65165         HAVE_LANGINFO_T_FMT_AMPM is 0.
65166         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65167         HAVE_LANGINFO_YESEXPR is 0.
65168         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65169         NOEXPR.
65170         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65171         * doc/posix-functions/nl_langinfo.texi: Likewise.
65172         Reported by Eric Blake.
65174 2010-09-10  Bruno Haible  <bruno@clisp.org>
65176         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65177         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65178         on FreeBSD 8.0 and OpenBSD 4.6.
65179         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65180         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65181         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65182         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65183         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65184         ac_includes_default.
65185         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65187 2010-09-09  Eric Blake  <eblake@redhat.com>
65189         strsignal: work around NetBSD bug
65190         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65191         * lib/string.in.h (includes): Likewise.
65192         * doc/posix-functions/strsignal.texi (strsignal): Document the
65193         bug.
65194         Reported by Nelson H. F. Beebe.
65196         gnulib-tool: work with NetBSD /bin/sh
65197         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65198         (func_get_description, func_get_comment, func_get_status)
65199         (func_get_notice, func_get_applicability, func_get_filelist)
65200         (func_get_dependencies, func_get_autoconf_early_snippet)
65201         (func_get_autoconf_snippet, func_get_automake_snippet)
65202         (func_get_include_directive, func_get_link_directive)
65203         (func_get_license, func_get_maintainer, func_import): Avoid
65204         shell syntax errors from parsing syntax extensions.
65206 2010-09-09  Bruno Haible  <bruno@clisp.org>
65208         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65209         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65210         a reliable way to determine whether the 'alias' command works.
65212 2010-09-08  Jim Meyering  <meyering@redhat.com>
65214         init.sh: penalize a set-x-impaired shell; don't disqualify it
65215         * tests/init.sh: Too many shells corrupt application stderr when
65216         you set -x, so we can't afford to disqualify them, since at least
65217         on Irix-6.5, that would disqualify all bourne shells.
65218         Instead, use a two-pass approach.
65219         On the first pass, try to find a shell that meets the stricter
65220         condition that set -x does not corrupt stderr.
65221         If no shell meets the stricter condition, retest each candidate
65222         shell, but without that extra condition.  Finally, when
65223         VERBOSE=yes is requested and set -x might cause trouble, simply
65224         issue a warning and refrain from enabling debug output.
65226 2010-09-08  Eric Blake  <eblake@redhat.com>
65228         unsetenv: fix OpenBSD bug
65229         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65230         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65231         documentation.
65232         Reported by Jim Meyering.
65234         strtod: work around IRIX 6.5 bug
65235         * lib/strtod.c (strtod): Reparse number on shorter string if
65236         exponent parse was invalid.
65237         * tests/test-strtod.c (main): Add check for "0x1p 2".
65238         Reported by Tom G. Christensen.
65240         getopt: optimize previous patch
65241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65242         empty variable.  Speed up awk script.
65243         Reported by Paolo Bonzini.
65245 2010-09-08  Jim Meyering  <meyering@redhat.com>
65247         test.sh: disqualify shells for which set -x corrupts stderr
65248         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65249         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65250         appear in stderr output.  For example, this command:
65251             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65252         prints "P=1" on those two systems:
65254 2010-09-08  Bruno Haible  <bruno@clisp.org>
65256         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65257         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65258         commands, because some shells ignore redirections when there is an
65259         error in the command lookup.
65260         Reported by Eric Blake.
65262 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65264         * lib/regex.h: Fix a mention of `regex_compile' (should be
65265         `re_compile_pattern').
65266         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65267         (re_set_registers): Correct name of parameter in comment.
65269         * doc/regex.texi: Add documentation for missing syntax flags.
65270         Remove commented-out documentation of defunct syntax option
65271         RE_NO_EMPTY_ALTS.
65272         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65273         Add documentation of re_set_registers.
65274         Document trick to re-use a pattern buffer by setting fastmap manually.
65275         Update documentation of struct re_pattern_buffer per public members.
65276         Uncomment documentation of equivalence class operators and
65277         collating symbol operators, since they are now implemented,
65278         Explain leftmost-longest matching in relation to alternatives.
65279         Tidy documentation of substring matching.
65280         Remove POSIX documentation, which is done better in
65281         glibc, and refer the reader there. Keep BSD API documentation, as
65282         that is not readily available elsewhere.
65284 2010-09-07  Eric Blake  <eblake@redhat.com>
65286         getopt: handle POSIXLY_CORRECT set but not exported
65287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65288         export state of POSIXLY_CORRECT, due to bash set -o posix.
65289         Reported by Dustin J. Mitchell.
65291 2010-09-05  Bruno Haible  <bruno@clisp.org>
65293         gnulib-tool: Highlight the changed options.
65294         * gnulib-tool (func_usage): Display the --import, --add-import,
65295         --remove-import explanations in bold font.
65297 2010-09-06  Karl Berry  <karl@gnu.org>
65299         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65301 2010-09-05  Bruno Haible  <bruno@clisp.org>
65303         uniwidth/width: Update comment.
65304         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65305         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65307 2010-09-05  Bruno Haible  <bruno@clisp.org>
65309         isinf, isnan: Relax license.
65310         * modules/isinf (License): Change from GPL to LGPL, with consent from
65311         Ben Pfaff.
65312         * modules/isnan (License): Likewise.
65313         Requested by Ludovic Courtès.
65315 2010-09-04  Bruno Haible  <bruno@clisp.org>
65317         gnulib-tool: Help migration from --import to --add-import or --update.
65318         * gnulib-tool: Emit a verbose error message when --import is used
65319         without any module name.
65321 2010-09-04  Bruno Haible  <bruno@clisp.org>
65323         Update doc about gnulib-tool.
65324         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65325         'gnulib-tool --update' in more detail.
65326         Reported by Eric Blake.
65328 2010-09-04  Bruno Haible  <bruno@clisp.org>
65330         gnulib-tool: Change --import. New options --add/remove-import.
65331         * gnulib-tool: New options --add-import, --remove-import.
65332         (func_usage): Document them.
65333         (have_associative): Define always.
65334         (func_import): In import mode, don't merge the specified settings with
65335         the cached settings. Implement remove-import mode.
65336         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65337         Explain when to use them versus --import.
65338         (Simple update): Use --add-import instead of --import.
65339         * NEWS: Mention the change.
65341 2010-09-04  Bruno Haible  <bruno@clisp.org>
65343         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65344         separate gnulib.mk.
65346 2010-09-04  Bruno Haible  <bruno@clisp.org>
65348         gnulib-tool: Don't talk about CVS any more.
65349         * gnulib-tool (func_usage, func_import): Write "version control"
65350         instead of CVS.
65352 2010-09-04  Jim Meyering  <meyering@redhat.com>
65354         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65355         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65356         false positives (whose names may be ill-chosen) when searching
65357         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65358         would cause a false-positive.
65360         avoid coreutils "make distcheck" failure
65361         Coreutils tests with an absolute build directory name that contains
65362         a space.  Not quoting this directory name caused a failure.
65363         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65364         * tests/test-vc-list-files-cvs.sh: Likewise.
65366 2010-09-04  Bruno Haible  <bruno@clisp.org>
65368         gnulib-tool: Avoid error when run in a package without Makefile.am.
65369         * gnulib-tool: When collecting the m4dirs in a package that does not
65370         have a Makefile.am, eliminate those directories that contain no
65371         gnulib-cache.m4. Fix expression that counts these directories.
65373 2010-09-04  Bruno Haible  <bruno@clisp.org>
65375         update-copyright test: Improve output when perl is missing or too old.
65376         * tests/test-update-copyright.sh: Move test of Perl version down after
65377         the test whether Perl exists. Provide an explanation relating Perl's
65378         error message to Automake's SKIP: message.
65380 2010-09-04  Bruno Haible  <bruno@clisp.org>
65382         Don't augment PATH in TESTS_ENVIRONMENT.
65383         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65384         set abs_aux_dir instead of augmenting PATH.
65385         * modules/vc-list-files-tests (Makefile.am): Likewise.
65386         * tests/test-update-copyright.sh: Augment PATH here.
65387         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65388         path_prepend_.
65389         * tests/test-vc-list-files-git.sh: Likewise.
65391 2010-09-04  Jim Meyering  <meyering@redhat.com>
65393         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65394         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65396 2010-09-04  Bruno Haible  <bruno@clisp.org>
65398         strdup: Fix compilation error in C++ mode.
65399         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65400         the macro.
65402 2010-09-04  Bruno Haible  <bruno@clisp.org>
65404         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65405         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65406         macro into a function.
65407         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65409 2010-09-04  Bruno Haible  <bruno@clisp.org>
65411         Set PATH_SEPARATOR the same way autoconf does.
65412         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65413         the value of PATH_SEPARATOR the same way autoconf-generated configure
65414         scripts do.
65415         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65416         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65418 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65420         Set PATH_SEPARATOR the same way autoconf does.
65421         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65422         the same way autoconf-generated configure scripts do.
65423         * posix-modules: Likewise.
65425 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65427         hash: fix safe_hasher const typo
65428         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65429         const; otherwise, there is a type error later.
65431 2010-09-02  Jim Meyering  <meyering@redhat.com>
65433         test-update-copyright.sh: require perl 5.8.0
65434         * tests/test-update-copyright.sh: Require 5.8.0,
65435         which Tom G. Christensen has confirmed is adequate,
65436         while 5.6.1 is not.
65438 2010-09-02  Eric Blake  <eblake@redhat.com>
65440         tests: init.sh improvements for re-exec'ing with zsh
65441         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65442         -vx through shell re-exec.
65443         Reported by Tom G. Christensen.
65445         wctype: fix typo in previous commit
65446         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65447         Reported by Ludovic Courtès.
65449 2010-09-02  Jim Meyering  <meyering@redhat.com>
65451         test-update-copyright.sh: skip test if Perl is too old
65452         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65453         Reported by Tom G. Christensen.
65455 2010-09-02  Bruno Haible  <bruno@clisp.org>
65457         wctype: Avoid compilation error on IRIX 6.5.30.
65458         * lib/wctype.in.h (iswblank): Declare with a replacement if
65459         REPLACE_ISWBLANK is set.
65460         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65461         declared. Set REPLACE_ISWBLANK.
65462         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65463         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65464         * doc/posix-headers/wctype.texi: Likewise.
65465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65467 2010-09-01  Bruno Haible  <bruno@clisp.org>
65469         New module 'socketlib'.
65470         * modules/socketlib: New file.
65471         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65472         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65473         * modules/sockets (Depends-on): Add socketlib.
65474         Suggested by Sam Steingold <sds@gnu.org>.
65476 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65478         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65480         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65481         when one needs search access to a directory but not read access.
65482         On systems where it is available, it works in some cases where
65483         O_RDONLY does not, namely on directories that are searchable but
65484         not readable, and which need only to be searchable.  If O_SEARCH
65485         is not available, fall back to the traditional method of using
65486         O_RDONLY.
65488         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65489         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65490         when opening a directory that needs only to be searchable.
65491         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65492         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65493         * lib/openat-proc.c (openat_proc_name): Likewise.
65494         * lib/openat.c (openat_needs_fchdir): Likewise.
65495         * lib/save-cwd.c (save_cwd): Likewise.
65496         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65498 2010-08-28  Bruno Haible  <bruno@clisp.org>
65500         New module 'host-cpu-c-abi'.
65501         * modules/host-cpu-c-abi: New file.
65502         * m4/host-cpu-c-abi.m4: New file, based on part of
65503         clisp/src/m4/general.m4.
65504         Requested by Sam Steingold <sds@gnu.org>.
65506 2010-08-31  Eric Blake  <eblake@redhat.com>
65507         and Jim Meyering  <meyering@redhat.com>
65509         hash: factor, and guard against misbehaving hasher function
65510         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65511         of table->hasher's return value.  Also protect against a hash value
65512         so large that adding it to table->bucket results in a NULL pointer.
65513         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65514         Use it in place of open-coded check-and-abort.
65516 2010-08-30  Bruno Haible  <bruno@clisp.org>
65518         hash: silence spurious clang warning
65519         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65520         Reported by Eric Blake.
65522 2010-08-30  Eric Blake  <eblake@redhat.com>
65524         strstr, memmem, strcasestr: avoid leaked shell message
65525         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65526         FreeBSD.
65527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65528         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65530         tests: silence clang warning
65531         * tests/test-malloca.c (do_allocation): Avoid dead store.
65533 2010-08-29  Bruno Haible  <bruno@clisp.org>
65535         gettext: Fix recent mistake.
65536         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65538 2010-08-29  Bruno Haible  <bruno@clisp.org>
65540         selinux-h: Offer a --without-selinux option.
65541         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65542         --without-selinux was specified, skip all tests and define
65543         HAVE_SELINUX_SELINUX_H to 0.
65544         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65545         set LIB_SELINUX to empty.
65546         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65547         gl_LIBSELINUX. If --without-selinux was specified, replace
65548         selinux/context.h.
65549         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65551 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65552             Bruno Haible  <bruno@clisp.org>
65554         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65555         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65556         of HAVE_REALLOC.
65557         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65558         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65559         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65560         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65562 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65563             Bruno Haible  <bruno@clisp.org>
65565         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65566         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65567         HAVE_CALLOC.
65568         * lib/xmalloc.c: Update accordingly.
65569         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65570         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65571         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65573 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65574             Bruno Haible  <bruno@clisp.org>
65576         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65577         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65578         HAVE_MALLOC.
65579         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65580         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65581         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65583 2010-08-29  Bruno Haible  <bruno@clisp.org>
65585         Update modules list.
65586         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65587         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65588         (String handling <string.h>): Add astrxfrm.
65589         (File system functions): Add readlinkat.
65591 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65593         Tests for module 'realloc-gnu'.
65594         * modules/realloc-gnu-tests: New file.
65595         * tests/test-realloc-gnu.c: New file.
65597         Tests for module 'calloc-gnu'.
65598         * modules/calloc-gnu-tests: New file.
65599         * tests/test-calloc-gnu.c: New file.
65601         Tests for module 'malloc-gnu'.
65602         * modules/malloc-gnu-tests: New file.
65603         * tests/test-malloc-gnu.c: New file.
65605 2010-08-28  Bruno Haible  <bruno@clisp.org>
65607         Rename module 'realloc' -> 'realloc-gnu'.
65608         * modules/realloc-gnu: New file, copied from modules/realloc.
65609         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65610         obsolete.
65611         * modules/mgetgroups (Depends-on): Update.
65612         * doc/posix-functions/realloc.texi: Update.
65613         * NEWS: Mention the change.
65615         Rename module 'calloc' -> 'calloc-gnu'.
65616         * modules/calloc-gnu: New file, copied from modules/calloc.
65617         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65618         obsolete.
65619         * doc/posix-functions/calloc.texi: Update.
65620         * NEWS: Mention the change.
65622         Rename module 'malloc' -> 'malloc-gnu'.
65623         * modules/malloc-gnu: New file, copied from modules/malloc.
65624         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65625         obsolete.
65626         * modules/argp (Depends-on): Update.
65627         * modules/regex (Depends-on): Update.
65628         * doc/posix-functions/malloc.texi: Update.
65629         * NEWS: Mention the change.
65631 2010-08-28  Eric Blake  <eblake@redhat.com>
65633         pread, pwrite: add missing dependency
65634         * modules/pread (Depends-on): Add extensions.
65635         * modules/pwrite (Depends-on): Likewise.
65637 2010-08-28  Bruno Haible  <bruno@clisp.org>
65639         unistr/u*-strchr: Fix tests dependencies.
65640         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65641         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65642         Reported by Ian Beckwith <ianb@erislabs.net>.
65644 2010-08-28  Bruno Haible  <bruno@clisp.org>
65646         read-file: Don't occupy too much unused memory.
65647         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65649 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65650             Eric Blake  <eblake@redhat.com>
65651             Bruno Haible  <bruno@clisp.org>
65653         read-file: Avoid memory reallocations with regular files.
65654         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65655         (fread_file): With regular files, use the remaining length as the
65656         initial buffer size.  Check against overflow.
65657         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65658         sys_stat.
65660 2010-08-28  Bruno Haible  <bruno@clisp.org>
65662         ftello: Relax license.
65663         * modules/ftello (License): Relax to LGPLv2+.
65664         Reported by Eric Blake.
65666 2010-08-28  Bruno Haible  <bruno@clisp.org>
65668         Avoid relocwrapper link errors due to gnulib replacement functions.
65669         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65670         function.
65671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65673 2010-08-28  Bruno Haible  <bruno@clisp.org>
65675         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65676         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65677         defined.
65678         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65679         Suggested by Eric Blake.
65681 2010-08-28  Bruno Haible  <bruno@clisp.org>
65683         sys_socket, netdb: Ensure socklen_t gets defined.
65684         * modules/sys_socket (Depends-on): Add socklen.
65685         * modules/netdb (Depends-on): Likewise.
65686         * modules/getaddrinfo (Depends-on): Remove socklen.
65687         * modules/getsockopt (Depends-on): Likewise.
65688         * modules/setsockopt (Depends-on): Likewise.
65689         * tests/test-sys_socket.c: Check that socklen_t is defined.
65690         * tests/test-netdb.c: Likewise.
65691         * m4/socklen.m4: Update comments.
65692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65694 2010-08-27  Eric Blake  <eblake@redhat.com>
65696         login_tty: add missing dependency
65697         * modules/login_tty (Depends-on): Add pty.
65699 2010-08-26  Eric Blake  <eblake@redhat.com>
65701         lib-symbol-versions: fix m4 quoting
65702         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65703         format for AC_LINK_IFELSE.
65705         glob: fix compile test
65706         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65708         btowc: fix missing file
65709         * modules/btowc (Files): Also ship locale-fr.m4.
65711         lseek: fix link test
65712         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65713         AC_LINK_IFELSE.
65715         include_next: silence autoconf 2.68 warning
65716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65717         AC_COMPILE_IFELSE as special.
65718         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65719         autoconf < 2.68.
65721         acl: fix compilation test
65722         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65723         AC_COMPILE_IFELSE.
65725 2010-08-26  Bruno Haible  <bruno@clisp.org>
65727         Modernize AC_TRY_RUN invocations.
65728         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65729         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65730         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65731         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65732         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65733         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65734         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65735         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65736         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65737         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65738         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65739         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65740         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65741         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65742         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65743         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65744         gl_MBRLEN_NUL_RETVAL): Likewise.
65745         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65746         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65747         Likewise.
65748         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65749         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65750         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65751         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65752         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65753         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65754         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65755         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65756         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65757         Likewise.
65758         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65759         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65761         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65763         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65764         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65765         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65766         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65769 2010-08-26  Bruno Haible  <bruno@clisp.org>
65771         Modernize AC_TRY_LINK invocations.
65772         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65773         AC_TRY_LINK.
65774         * m4/argp.m4 (gl_ARGP): Likewise.
65775         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65776         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65777         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65778         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65779         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65780         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65781         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65782         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65783         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65784         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65785         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65786         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65787         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65788         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65789         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65790         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65791         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65792         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65793         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65794         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65795         Likewise.
65796         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65797         Likewise.
65798         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65799         Likewise.
65800         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65802         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65803         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65804         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65805         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65806         * m4/servent.m4 (gl_SERVENT): Likewise.
65807         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65808         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65809         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65810         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65811         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65812         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65813         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65814         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65815         * modules/tsearch-tests (configure.ac): Likewise.
65817 2010-08-26  Bruno Haible  <bruno@clisp.org>
65819         Modernize AC_TRY_COMPILE invocations.
65820         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65821         AC_TRY_COMPILE.
65822         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65823         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65824         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65825         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65826         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65827         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65828         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65829         * m4/lock.m4 (gl_LOCK): Likewise.
65830         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65831         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65832         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65833         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65834         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65835         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65836         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65838         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65839         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65840         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65841         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65842         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65843         extraneous semicolon.
65845 2010-08-26  Jim Meyering  <meyering@redhat.com>
65847         stat-time: relax license LGPL
65848         * modules/stat-time (License): Change from GPL to LGPL,
65849         with consent from all contributors, for use in libguile.
65850         Requested by Ludovic Courtès.
65852 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65854         poll: return immediately on POLLHUP.
65855         * lib/poll.c (poll): Always set timeout before wait_timeout is
65856         computed.
65858 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65860         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65861         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65862         rmdir ("dir/.//"), unlinkat.
65864 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65866         stdbool: avoid spurious failure with modern xlc
65867         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65869 2010-08-24  Bruno Haible  <bruno@clisp.org>
65871         getloadavg: simplify code
65872         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65873         gl_have_func. Update comments.
65875 2010-08-24  Eric Blake  <eblake@redhat.com>
65877         getloadavg: don't define SVR4 on cygwin
65878         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65879         only define SVR4 when -lkvm is required.
65880         Reported by Yaakov Selkowitz.
65882 2010-08-24  Bruno Haible  <bruno@clisp.org>
65884         priv-set: fix comment
65885         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65887 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65889         priv-set: fix comments
65890         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65891         to match code, as suggested by David Bartley in:
65892         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65894 2010-08-23  Eric Blake  <eblake@redhat.com>
65896         stdbool: avoid rejecting clang
65897         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65898         * tests/test-stdbool.c: Enable more tests if using the system
65899         <stdbool.h> instead of the gnulib replacement.
65900         (main): Move xlc bug test to a runtime test for all compilers.
65901         Reported by Anders Kaseorg.
65903         argz: fix shell quoting issue
65904         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65905         Reported by Charles Wilson.
65907 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65908             Erik Faye-Lund <kusmabite@gmail.com>
65910         poll, select: handle ERROR_BROKEN_PIPE.
65911         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65912         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65913         * lib/select.c (win32_compute_revents): Do not mark a pipe
65914         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65916 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65918         fts: allow compilation with C++
65919         * lib/fts_.h: Specify extern "C" linkage with C++.
65921 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65923         Fix gnulib-tool sed script de-commentation for AIX sed.
65924         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65925         sed.
65927 2010-08-17  Eric Blake  <eblake@redhat.com>
65929         test-stddef: test for (some) offsetof bugs
65930         * tests/test-stddef.c: Enhance test to ensure correct type of
65931         offsetof.
65932         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65933         that we are not fixing at this time.
65935 2010-08-15  Bruno Haible  <bruno@clisp.org>
65937         stpncpy: Allow stpncpy to be defined as a macro.
65938         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65939         if it's already correctly declared.
65940         * lib/string.in.h (stpncpy): Undefine before redefining.
65941         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65943 2010-08-14  Bruno Haible  <bruno@clisp.org>
65945         Rename module 'memxfrm' to 'amemxfrm'.
65946         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65947         (amemxfrm): Renamed from memxfrm.
65948         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65949         (amemxfrm): Renamed from memxfrm.
65950         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65951         * NEWS: Mention the change.
65952         * MODULES.html.sh (String handling <string.h>): Update.
65953         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65954         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65955         * lib/unicase/u16-casexfrm.c: Likewise.
65956         * lib/unicase/u32-casexfrm.c: Likewise.
65957         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65958         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65959         * lib/uninorm/u16-normxfrm.c: Likewise.
65960         * lib/uninorm/u32-normxfrm.c: Likewise.
65961         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65962         memxfrm.
65963         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65964         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65965         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65966         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65967         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65968         Suggested by Paul Eggert.
65970 2010-08-14  Bruno Haible  <bruno@clisp.org>
65972         Tests for module 'astrxfrm'.
65973         * modules/astrxfrm-tests: New file.
65974         * tests/test-astrxfrm.c: New file.
65976         New module 'astrxfrm'.
65977         * lib/astrxfrm.h: New file.
65978         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65979         * modules/astrxfrm: New file.
65981 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65983         regex: Tweak doc.
65984         * doc/regex.texi (Overview): Don't mention regex.c.
65985         (GNU Regular Expression Compiling): Likewise.
65986         (Match-end-of-line Operator): Mention 'not_eol'.
65988 2010-08-14  Brian Gough  <bjg@gnu.org>
65989             Bruno Haible  <bruno@clisp.org>
65991         git-merge-changelog: add doc relating to use with bzr and hg.
65992         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65994 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65996         pthread: fix pthread.h creation for srcdir != builddir
65997         * modules/pthread (Makefile.am): Fix the rule to work also in a
65998         non-srcdir build.
66000 2010-08-13  Karl Berry  <karl@gnu.org>
66002         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66003         * doc/posix-*/*: force line break before @url of POSIX
66004         specifications.
66005         Suggested by Werner Lemberg.
66007 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66009         strtod: fix const diagnostic
66010         * lib/strtod.c (strtod): Don't assign const char * to char *,
66011         as this elicits a warning from GCC when warnings are enabled.
66013 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66014         and Eric Blake  <eblake@redhat.com>
66016         copy-acl: ignore ENOTSUP on HP-UX
66017         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66018         so that it is available for HP-UX.
66019         * lib/copy-acl.c (qcopy_acl): Use it.
66020         Reported by Patrick M. Callahan.
66022 2010-08-10  Eric Blake  <eblake@redhat.com>
66024         open, chown: relax license
66025         * modules/open (License): Change to LGPLv2+, with consent by all
66026         authors, for use in augeas.
66027         * modules/chown (License): Likewise.
66028         * modules/lchown (Likewise): Likewise.
66029         Requested by Adam Stokes.
66031 2010-08-09  Karl Berry  <karl@gnu.org>
66033         * build-aux/ar-lib: new file, import from Automake.
66034         * config/srclist.txt: autocheck for updates.
66036 2010-08-09  Eric Blake  <eblake@redhat.com>
66038         readlinkat: adjust client modules
66039         * modules/areadlinkat (Depends-on): Use readlinkat, not
66040         symlinkat.
66041         * modules/areadlinkat-with-size (Depends-on): Likewise.
66043         mknod: be more vocal about danger of running tests as root
66044         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66045         root, since that is just asking for problems.
66046         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66048         readlinkat: split into its own module
66049         * modules/symlinkat: Split readlinkat...
66050         * modules/readlinkat: ...into separate module.
66051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66052         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66053         * lib/symlinkat.c (readlinkat): Move...
66054         * lib/readlinkat.c: ...into new file.
66055         * modules/symlinkat-tests: Split readlinkat test...
66056         * modules/readlinkat-tests: ...into separate module.
66057         * tests/test-symlinkat.c: Split...
66058         * tests/test-readlinkat.c: ...into new file.
66059         * NEWS: Document the split.
66060         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66061         * lib/unistd.in.h (readlinkat): Likewise.
66062         Suggested by Bruno Haible.
66064 2010-08-08  Bruno Haible  <bruno@clisp.org>
66066         memxfrm: Speed up.
66067         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66068         that usually only one call to strxfrm is necessary for each string
66069         part.
66070         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66072 2010-08-07  Karl Berry  <karl@gnu.org>
66074         * doc/posix-headers/limits.texi,
66075         * doc/posix-functions/malloc.texi,
66076         * doc/posix-functions/strsignal.texi: missing @item.
66077         * doc/ld-version-script.texi: spurious leading i.
66078         * doc/regex.texi (Interval Operators): no commas inside @var.
66080 2010-08-01  Bruno Haible  <bruno@clisp.org>
66082         Integrate the regex documentation.
66083         * doc/gnulib.texi: Define 'cn' index.
66084         (Regular expressions): New a chapter that includes regex.texi and
66085         regexprops-generic.texi.
66086         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66087         syntax.
66089         Whitespace cleanup.
66090         * doc/regex.texi: Remove trailing spaces.
66092         Add regex documentation.
66093         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66094         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66095         Written by Kathy A. Hargreaves and Karl Berry.
66097 2010-08-01  Bruno Haible  <bruno@clisp.org>
66099         link: Update documentation.
66100         * doc/posix-functions/link.texi: Update regarding Solaris.
66102 2010-07-31  Bruno Haible  <bruno@clisp.org>
66104         Update modules list.
66105         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66106         (String handling <string.h>): Add memcmp2, memxfrm.
66107         (Container data structures): Add xlist, xsublist, xoset.
66108         (Core language properties): Add alignof, unused-parameter.
66109         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66110         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66111         (Unibyte characters <ctype.h>): New section.
66112         (String handling <string.h>): New section.
66113         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66114         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66115         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66116         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66117         tan, tanh, tanl, y0, y1, yn.
66118         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66119         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66120         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66121         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66122         unlockpt, vdprintf, vdprintf-posix.
66123         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66124         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66125         xconcat-filename.
66126         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66127         getdtablesize, pipe2, pipe2-safer.
66128         (Security): New section.
66129         (Networking functions): Add accept4.
66130         (Signal handling): Add sigpipe.
66131         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66132         mbmemcasecoll.
66133         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66134         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66135         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66136         pipe-filter-ii.
66137         (Misc): Add argp-version-etc, login_tty, parse-duration.
66139 2010-07-31  Bruno Haible  <bruno@clisp.org>
66141         Improve doc in MODULES.html.
66142         * modules/linkat (Description): Add the word "function".
66143         * modules/mkfifo (Description): Likewise.
66144         * modules/mknod (Description): Likewise.
66145         * modules/remove (Description): Likewise.
66146         * modules/renameat (Description): Likewise.
66147         * modules/stat (Description): Likewise.
66148         * modules/symlink (Description): Likewise.
66149         * modules/unlink (Description): Likewise.
66151 2010-07-31  Bruno Haible  <bruno@clisp.org>
66153         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66154         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66155         option --enable/disable-c++ instead of --enable/disable-cxx.
66156         * NEWS: Mention the change.
66158 2010-07-31  Bruno Haible  <bruno@clisp.org>
66160         readlink, areadlink: Relax test a bit.
66161         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66162         alternative to ENOTDIR.
66163         * tests/test-areadlink.h (test_areadlink): Likewise.
66164         Reported by Rainer Tammer.
66166 2010-07-31  Bruno Haible  <bruno@clisp.org>
66168         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66169         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66170         character, perform the search using U_STRCHR.
66171         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66172         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66173         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66174         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66175         Suggested by Paolo Bonzini.
66177 2010-07-31  Bruno Haible  <bruno@clisp.org>
66179         unistr/u*-strstr: Fix dependencies.
66180         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66181         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66182         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66184 2010-07-31  Bruno Haible  <bruno@clisp.org>
66186         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66187         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66188         the beginning of the loop.
66189         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66190         cases in 'switch' statement.
66192         unistr/u8-strchr: Fix several bugs.
66193         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66194         the string. When not found, return NULL, not a pointer near the end.
66196         More tests for unistr/u8-strchr.
66197         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66198         that the function does not read past the first occurrence of the byte
66199         being searched.
66200         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66201         * tests/unistr/test-u16-strchr.c (main): New function.
66202         * tests/unistr/test-u32-strchr.c (main): New function.
66204 2010-07-31  Bruno Haible  <bruno@clisp.org>
66206         posix-modules: Ignore backup files of documentation files.
66207         * posix-modules: grep only through files named *.texi.
66209 2010-07-31  Bruno Haible  <bruno@clisp.org>
66211         symlinkat: Fix documentation.
66212         * doc/posix-functions/readlinkat.texi: Fix module name.
66214 2010-07-31  Bruno Haible  <bruno@clisp.org>
66216         fchownat: Replace also when chown has the trailing slash bug.
66217         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66218         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66219         introduced on 2010-04-10.
66220         Reported by Rainer Tammer.
66222 2010-07-31  Bruno Haible  <bruno@clisp.org>
66224         linkat: Work around AIX 7.1 bug.
66225         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66226         whether linkat handles trailing slash correctly. If not, replace linkat
66227         and define LINKAT_TRAILING_SLASH_BUG.
66228         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66229         check whether (fd1,file1) points to a directory if file1 or file2 ends
66230         in a slash. Code taken from lib/link.c.
66231         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66232         Reported by Rainer Tammer.
66234 2010-07-31  Bruno Haible  <bruno@clisp.org>
66236         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66237         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66238         This disables an xlc optimization that was causing wrong test results.
66239         Reported by Rainer Tammer.
66241 2010-07-31  Bruno Haible  <bruno@clisp.org>
66243         iconv: Work around AIX 6.1..7.1 bug.
66244         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66245         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66246         cross-compiling, guess no on all versions of AIX.
66247         Reported by Rainer Tammer.
66249 2010-07-31  Bruno Haible  <bruno@clisp.org>
66251         readlink: Relax test a bit.
66252         * tests/test-readlink.h (test_readlink): Allow different errno value
66253         when readlink is called with a file name that ends in / and refers to
66254         a file.
66255         Suggested by Eric Blake.
66256         Reported by Rainer Tammer.
66258 2010-07-31  Bruno Haible  <bruno@clisp.org>
66260         copysign: Does not require -lm on glibc systems.
66261         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66262         gl_COMMON_DOUBLE_MATHFUNC.
66263         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66265 2010-07-31  Bruno Haible  <bruno@clisp.org>
66267         duplocale: Work around AIX 7.1 bug.
66268         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66269         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66270         * lib/duplocale.c (rpl_duplocale): Update comment.
66271         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66272         Reported by Rainer Tammer.
66274 2010-07-30  Bruno Haible  <bruno@clisp.org>
66276         dirfd: Avoid link error on AIX 7.1.
66277         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66278         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66279         exist, set REPLACE_DIRFD.
66280         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66281         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66282         * doc/posix-functions/dirfd.texi: Update.
66283         Reported by Rainer Tammer.
66285 2010-07-30  Eric Blake  <eblake@redhat.com>
66287         strtod: next round of AIX fixes
66288         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66289         exponent.
66290         * tests/test-strtod.c (main): Enhance tests.
66291         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66292         Reported by Rainer Tammer.
66294         futimens: fix configure check
66295         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66296         Reported by Bruno Haible.
66298 2010-07-30  Bruno Haible  <bruno@clisp.org>
66300         getline: Update regarding AIX.
66301         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66302         Reported by Rainer Tammer.
66304 2010-07-30  Bruno Haible  <bruno@clisp.org>
66306         wcwidth: Drop replacement on AIX 7.
66307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66308         AIX 7.
66309         Reported by Rainer Tammer.
66311 2010-07-30  Bruno Haible  <bruno@clisp.org>
66313         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66314         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66315         a 'char *'.
66316         Reported by Rainer Tammer.
66318 2010-07-30  Bruno Haible  <bruno@clisp.org>
66320         unlink: Update regarding AIX.
66321         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66322         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66323         Reported by Rainer Tammer.
66325 2010-07-30  Bruno Haible  <bruno@clisp.org>
66327         symlink: Update regarding AIX.
66328         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66329         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66330         Reported by Rainer Tammer.
66332 2010-07-30  Bruno Haible  <bruno@clisp.org>
66334         strndup: Update regarding AIX.
66335         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66336         AIX 7.
66337         Reported by Rainer Tammer.
66339 2010-07-30  Bruno Haible  <bruno@clisp.org>
66341         stat: Update regarding AIX.
66342         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66343         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66344         Reported by Rainer Tammer.
66346 2010-07-30  Bruno Haible  <bruno@clisp.org>
66348         truncl: Fix autoconf test.
66349         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66350         whether truncl works.
66351         Reported by Rainer Tammer.
66353 2010-07-30  Bruno Haible  <bruno@clisp.org>
66355         round: Update regarding AIX.
66356         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66357         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66358         Reported by Rainer Tammer.
66360 2010-07-30  Bruno Haible  <bruno@clisp.org>
66362         rename: Update regarding AIX.
66363         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66364         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66365         Reported by Rainer Tammer.
66367 2010-07-30  Bruno Haible  <bruno@clisp.org>
66369         printf.m4: Update regarding AIX.
66370         * m4/printf.m4: Update comments regarding AIX.
66371         Reported by Rainer Tammer.
66373 2010-07-30  Bruno Haible  <bruno@clisp.org>
66375         iconv: Update regarding AIX.
66376         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66377         AIX 7.
66378         Reported by Rainer Tammer.
66380 2010-07-30  Bruno Haible  <bruno@clisp.org>
66382         getopt: Update regarding AIX.
66383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66384         no on AIX.
66385         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66386         Reported by Rainer Tammer.
66388 2010-07-30  Bruno Haible  <bruno@clisp.org>
66390         ldexpl; Update regarding AIX.
66391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66392         on AIX 7.
66393         Reported by Rainer Tammer.
66395 2010-07-30  Bruno Haible  <bruno@clisp.org>
66397         frexpl: Update regarding AIX.
66398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66399         on AIX 7.
66400         Reported by Rainer Tammer.
66402 2010-07-30  Bruno Haible  <bruno@clisp.org>
66404         open, fopen: Update regarding AIX.
66405         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66406         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66407         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66408         * doc/posix-functions/fopen.texi: Likewise.
66409         Reported by Rainer Tammer.
66411 2010-07-30  Bruno Haible  <bruno@clisp.org>
66413         chown: Update doc regarding AIX.
66414         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66415         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66416         Reported by Rainer Tammer.
66418 2010-07-30  Eric Blake  <eblake@redhat.com>
66420         strtod: fix bug in replacement function on AIX
66421         * lib/strtod.c (strtod): Special case broken "0x" parse in
66422         underlying strtod.
66423         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66424         * doc/posix-functions/strtod.texi (strtod): Likewise.
66425         Reported by Rainer Tammer.
66427 2010-07-30  Bruno Haible  <bruno@clisp.org>
66429         mbrlen: Fix cross-compilation guess for AIX.
66430         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66431         guess. Leftover from 2008-12-22.
66433 2010-07-30  Bruno Haible  <bruno@clisp.org>
66435         mbrtowc: Fix cross-compilation guess for AIX.
66436         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66437         guess. Leftover from 2008-12-21.
66439 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66441         init.sh: work around trap limitation of some shells
66442         * tests/init.sh (setup_): Move exit trap outside of shell function.
66444 2010-07-29  Eric Blake  <eblake@redhat.com>
66446         strtod: aid debugging
66447         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66448         understanding why strtod is rejected.
66450 2010-07-28  Bruno Haible  <bruno@clisp.org>
66452         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66453         * lib/unistr/u8-chr.c: Include <string.h>.
66454         * tests/unistr/test-u8-chr.c: Likewise.
66455         * tests/unistr/test-u16-chr.c: Likewise.
66456         * tests/unistr/test-u32-chr.c: Likewise.
66457         * tests/unistr/test-u8-strchr.c: Likewise.
66458         * tests/unistr/test-u16-strchr.c: Likewise.
66459         * tests/unistr/test-u32-strchr.c: Likewise.
66460         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66461         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66462         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66463         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66465 2010-07-28  Bruno Haible  <bruno@clisp.org>
66467         Use spaces for indentation, not tabs.
66468         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66470 2010-07-27  Bruno Haible  <bruno@clisp.org>
66472         mbspcasecmp: Fix function specification.
66473         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66474         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66475         Reported by Eric Blake <eblake@redhat.com>.
66477 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66479         timespec: use cast and not conditional, as truncation isn't possible
66480         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66481         instead of a conditional.  Comment about the situation in more detail.
66482         This undoes most of the 2009-10-29 patch.
66484 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66486         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66487         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66488         * lib/unistr/u8-strchr.c: Likewise.
66489         * modules/unistr/u8-chr: Depend on memchr.
66491         unistr/u*-strchr: add tests
66492         * modules/unistr/u8-strchr-tests: New file.
66493         * modules/unistr/u16-strchr-tests: New file.
66494         * modules/unistr/u32-strchr-tests: New file.
66495         * tests/unistr/test-strchr.h: New file.
66496         * tests/unistr/test-u8-strchr.c: New file.
66497         * tests/unistr/test-u16-strchr.c: New file.
66498         * tests/unistr/test-u32-strchr.c: New file.
66500         unistr/u*-chr: test multibyte sequences more
66501         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66502         test vector.
66503         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66504         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66505         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66507         unistr/u*-chr: test multibyte sequences
66508         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66510         unistr/u*-chr: prepare for multibyte tests
66511         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66512         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66513         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66514         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66515         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66516         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66518 2010-07-18  Bruno Haible  <bruno@clisp.org>
66520         unistr/u8-strchr: Optimize non-ASCII argument case.
66521         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66522         because the first byte often matches anyway.
66523         Reported by Pádraig Brady <P@draigbrady.com>.
66525 2010-07-15  Karl Berry  <karl@gnu.org>
66527         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66529 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66531         getcwd: on Solaris, work better if ancestors are inaccessible
66532         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66533         buffer and size, try again with a large buffer.  This works better
66534         on Solaris, since its getcwd succeeds even if the path to the root
66535         is inaccessible, and this is helpful in common cases such as .zfs
66536         hidden directories.  Problem reported by J Chapman Flack in
66537         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66538         Use system getcwd if it's declared, not merely if it's partly
66539         working; use the partly-working test only to avoid needless effort
66540         if the system getcwd fails.
66541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66542         comment that was already obsolete and is now even more obsolete.
66543         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66544         now might call strdup.
66546 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66548         pthread: Add enough so that coreutils/src/sort.c compiles.
66549         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66550         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66551         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66552         Include <sys/types.h>, in case it defines pthread_t.
66553         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66554         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66555         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66556         (pthread_rwlockattr_t, pthread_spinlock_t):
66557         New typedefs, if HAVE_PTHREAD_T is not defined.
66558         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66559         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66560         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66561         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66562         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66563         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66564         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66565         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66566         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66567         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66568         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66569         New macros.
66570         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66571         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66572         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66573         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66574         (pthread_spin_unlock): New dummy functions.
66575         (pthread_create): Return EAGAIN; don't set errno.
66576         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66577         require AC_C_INLINE.
66578         * modules/pthread (Depends-on): Add sched, time.
66579         (pthread.h): Use AM_V_GEN.
66581 2010-07-13  Bruno Haible  <bruno@clisp.org>
66583         striconveh: Don't malloc memory if the result buffer is sufficient.
66584         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66585         buffer if its size is sufficient.
66586         Reported by Ludovic Courtès <ludo@gnu.org>.
66588 2010-07-13  Bruno Haible  <bruno@clisp.org>
66590         strtod: Add safety check.
66591         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66593 2010-07-12  Bruno Haible  <bruno@clisp.org>
66595         Unify tests that set gl_cv_func_ldexpl_no_libm.
66596         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66597         gl_FUNC_LDEXPL.
66598         (gl_FUNC_LDEXPL): Invoke it.
66599         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66601 2010-07-12  Bruno Haible  <bruno@clisp.org>
66603         Unify tests that set gl_cv_func_ldexp_no_libm.
66604         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66605         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66606         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66607         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66608         * modules/strtod (Files): Add m4/ldexp.m4.
66610 2010-07-12  Bruno Haible  <bruno@clisp.org>
66612         Unify tests that set gl_cv_func_frexpl_no_libm.
66613         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66614         gl_FUNC_FREXPL_NO_LIBM.
66615         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66616         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66618 2010-07-12  Bruno Haible  <bruno@clisp.org>
66620         Unify tests that set gl_cv_func_frexp_no_libm.
66621         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66622         gl_FUNC_FREXP_NO_LIBM.
66623         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66624         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66626 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66628         memcoll: clarify sizes versus lengths, document better, and tweak perf
66629         * lib/memcoll.c (strcoll_loop, memcoll0):
66630         Improve quality of descriptive comments.  Name variables
66631         consistently as to whether they are lengths (which do not include
66632         terminating null) versus sizes (which do).
66633         * lib/xmemcoll.c (xmemcoll0): Likewise.
66634         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66635         returned when s1size == 0; this is easier to compile and saves
66636         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66638 2010-07-12  Bruno Haible  <bruno@clisp.org>
66640         Tests for module '_Exit'.
66641         * modules/_Exit-tests: New file.
66642         * tests/test-_Exit.sh: New file.
66643         * tests/test-_Exit.c: New file.
66645         New module '_Exit'.
66646         * lib/stdlib.in.h (__attribute__): New macro.
66647         (_Exit): New declaration.
66648         * lib/_Exit.c: New file.
66649         * m4/_Exit.m4: New file.
66650         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66651         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66652         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66653         * modules/_Exit: New file.
66654         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66655         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66657 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66659         strtod: make it more-accurate typically, and don't require libm
66660         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66661         Include limits.h.  Don't include string.h.
66662         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66663         (locale_isspace): New function, so that no casts are needed to
66664         check whether *s is a space.
66665         (ldexp): Provide an unused dummy if not available.
66666         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66667         (strtod): Use them.  This implementation prefers to use the
66668         underlying strtod if available, falling back on our own code
66669         only to fix known bugs.  This is more likely to produce an
66670         accurate result.  Also, it avoids the use of libm functions.
66671         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66672         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66673         was absent, but it caused a test failure with coreutils.
66674         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66675         with libm.
66676         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66677         * modules/strtod-tests (Makefile.am): Likewise.
66679 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66680             Bruno Haible  <bruno@clisp.org>
66682         unistr/u8-strchr: Optimize ASCII argument case.
66683         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66685 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66687         (x)memcoll: minor tweaks
66688         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66689         is after the type that it qualifies.
66690         (memcoll0): Likewise.
66691         * lib/memcoll.h (memcoll0): Likewise.
66692         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66693         * lib/xmemcoll.h (xmemcoll0): Likewise.
66694         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66695         differs from memcoll in that the NUL byte is part of the argument.
66696         Omit the abort-checks, as performance is a real issue here.  Plus,
66697         the checks were wrong anyway (an off-by-one error).  Omit local
66698         variable 'diff', as it's a bit clearer that way.
66699         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66700         no longer needed.
66702 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66704         (x)memcoll: speedup when input is known to be NUL delimited
66705         * lib/memcoll.c: Include stdlib.
66706         (memcoll0): New function.
66707         (strcoll_loop): New function, refactored for use in both memcoll
66708         and memcoll0.
66709         * lib/memcoll.h (memcoll0): Add prototype.
66710         * lib/xmemcoll.c (xmemcoll0): New function.
66711         (collate_error): New function, refactored for use in both xmemcoll
66712         and xmemcoll0.
66713         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66714         * m4/memcoll.m4: add inline invocation.
66716 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66718         * build-aux/bootstrap: Remove any local translations
66719         from the translation project synchronization directory,
66720         so that local only translations are not distributed.
66722 2010-07-04  Bruno Haible  <bruno@clisp.org>
66724         fsusage: Clarify which code applies to which platforms.
66725         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66726         platform.
66727         * lib/fsusage.c (get_fs_usage): Likewise.
66729 2010-07-04  Bruno Haible  <bruno@clisp.org>
66731         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66732         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66733         Reported by Martin Lambers <marlam@marlam.de>.
66735 2010-07-04  Jim Meyering  <meyering@redhat.com>
66737         hash: once again explicitly disallow insertion of NULL
66738         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66739         inserting a NULL pointer cannot work with these functions.
66740         Add a comment with details.
66741         This reverts part of the 2010-07-01 commit, 5bef1a35
66742         "hash: extend module to deal with non-pointer keys".
66744 2010-07-01  Bruno Haible  <bruno@clisp.org>
66746         stdbool: Update doc.
66747         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66748         Info from Christian Weisgerber <naddy@mips.inka.de>.
66750 2010-07-01  Jim Meyering  <meyering@redhat.com>
66752         hash: extend module to deal with non-pointer keys
66753         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66754         but that allows insertion of non-pointer entries.
66755         Do not disallow an ENTRY value of NULL.
66756         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66757         * lib/hash.h (hash_insert0): Declare.
66759 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66761         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66762         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66763         not present (i.e. with autoconf 2.59 and when using gettextize, not
66764         gnulib), require AC_GNU_SOURCE instead.
66766 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66768         idpriv-drop: Fix tests.
66769         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66770         not to the test-idpriv-droptemp program.
66772 2010-06-29  Bruno Haible  <bruno@clisp.org>
66774         string: Fix syntax error with g++ 2.96.
66775         * lib/string.in.h (__pure__): Remove definition.
66776         (_GL_ATTRIBUTE_PURE): New macro.
66777         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66778         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66779         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66781 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66783         unitypes: Fix bug introduced on 2010-05-18.
66784         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66786 2010-06-22  Eric Blake  <eblake@redhat.com>
66788         memmem: slight optimization
66789         * lib/str-two-way.h (critical_factorization): Update comments.
66790         Reduce work during factorization phase.
66791         Reported by Carlos Bueno <carlos@bueno.org>.
66793 2010-06-21  Bruno Haible  <bruno@clisp.org>
66795         Fix HAVE_CALLOC_POSIX misnomer.
66796         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66797         !HAVE_CALLOC_POSIX.
66798         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66799         HAVE_CALLOC_POSIX.
66800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66801         instead of HAVE_CALLOC_POSIX.
66802         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66803         HAVE_CALLOC_POSIX.
66805         Use modern idiom for calloc() replacement.
66806         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66807         AC_FUNC_CALLOC.
66808         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66809         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66810         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66811         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66812         (gl_REPLACE_CALLOC): New macro.
66814 2010-06-21  Bruno Haible  <bruno@clisp.org>
66816         Fix HAVE_REALLOC_POSIX misnomer.
66817         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66818         !HAVE_REALLOC_POSIX.
66819         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66820         HAVE_REALLOC_POSIX.
66821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66822         instead of HAVE_REALLOC_POSIX.
66823         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66824         HAVE_REALLOC_POSIX.
66826         Use modern idiom for realloc() replacement.
66827         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66828         AC_FUNC_REALLOC.
66829         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66830         Autoconf's AC_FUNC_REALLOC.
66831         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66832         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66833         (gl_REPLACE_REALLOC): New macro.
66834         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66836 2010-06-21  Bruno Haible  <bruno@clisp.org>
66838         Fix HAVE_MALLOC_POSIX misnomer.
66839         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66840         !HAVE_MALLOC_POSIX.
66841         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66842         HAVE_MALLOC_POSIX.
66843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66844         instead of HAVE_MALLOC_POSIX.
66845         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66846         HAVE_MALLOC_POSIX.
66848         Use modern idiom for malloc() replacement.
66849         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66850         AC_FUNC_MALLOC.
66851         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66852         Autoconf's AC_FUNC_MALLOC.
66853         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66854         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66855         (gl_REPLACE_MALLOC): New macro.
66856         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66858 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66860         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66861         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66862         This macro takes 3 arguments, not 4.
66864 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66866         ipv6: fix detection under mingw
66867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66868         in6_addr.
66870 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66872         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66873         that strtod() works when cross-compiling to a glibc version known
66874         to work.
66876 2010-06-15  Bruno Haible  <bruno@clisp.org>
66878         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66880 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66882         select: Correct timeout.
66883         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66885 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66887         git-version-gen: init shell var to avoid env var influence
66888         * build-aux/git-version-gen (v): Init shell var to empty.
66890 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66892         priv-set: Don't assume that priv.h exists merely because getppriv does.
66893         See Jan Andersen's bug report about AIX 5L in
66894         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66895         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66896         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66897         * lib/priv-set.h: Likewise.
66898         * tests/test-priv-set.c: Likewise.
66900 2010-06-13  Bruno Haible  <bruno@clisp.org>
66902         relocatable: Make it easier to test whether to install wrappers.
66903         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66904         RELOCATABLE_VIA_WRAPPER.
66906 2010-06-13  Bruno Haible  <bruno@clisp.org>
66908         gnulib-tool: Display specified modules and dependencies differently.
66909         * gnulib-tool (func_show_module_list): New function.
66910         (func_import, func_create_testdir): Invoke it.
66911         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66913 2010-06-13  Bruno Haible  <bruno@clisp.org>
66915         gnulib-tool: Align code of func_import and func_create_testdir.
66916         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66917         specified_modules.
66919 2010-06-12  Jim Meyering  <meyering@redhat.com>
66921         test-inttostr: avoid spurious failure on Solaris 9
66922         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66923         to accept "%ju".  Reported by Bruno Haible.
66925 2010-06-11  Jim Meyering  <meyering@redhat.com>
66927         test-sys_socket: mark variables as used more readably
66928         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66929         as "used" explicitly via (void) statement casts.  This is more
66930         readable than using them in an artificial return expression.
66931         Suggestion from Bruno Haible.
66933 2010-06-11  Bruno Haible  <bruno@clisp.org>
66935         Avoid some more warnings from "gcc -Wwrite-strings".
66936         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66937         to 'const char *'.
66938         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66939         * tests/test-c-strcasestr.c (main): Likewise.
66940         * tests/test-mbscasestr1.c (main): Likewise.
66941         * tests/test-mbscasestr2.c (main): Likewise.
66942         * tests/test-memmem.c (main): Likewise.
66943         * tests/test-strstr.c (main): Likewise.
66944         * tests/test-strcasestr.c (main): Likewise.
66946 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66948         init.sh: change framework_failure_ to fail with status 99, not 1
66949         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66950         automake's parallel-tests rule that this is an unexpected failure,
66951         even if the test is listed in XFAIL_TESTS.
66953 2010-06-11  Jim Meyering  <meyering@redhat.com>
66955         test-inttostr: avoid warnings about 4-6KB literal strings
66956         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66957         Include "macros.h", for its definition of ASSERT.
66958         (CK): s/assert/ASSERT/
66959         * modules/inttostr-tests (Files): Add macros.h.
66961         init.sh: don't use $ME_ or skip_ before they are defined
66962         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66963         their first uses.  Also hoist their companions: warn_, fail_,
66964         framework_failure_, $stderr_fileno.  Prompted by a patch from
66965         Stefano Lattarini.
66967         test-sys_socket: avoid set-but-not-used warnings from gcc
66968         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66969         avoid warning about set-but-not-used variables.
66971         test-xvasprintf: avoid 'const' discard warnings
66972         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66973         "const" when assigning from literal strings.
66974         (test_xasprintf): Add "void" in function argument list to placate
66975         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66977         tests: avoid compilation warnings in argmatch and exclude tests...
66978         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66979         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66980         Since it always exits, declare with the "noreturn" attribute.
66981         * tests/test-argmatch.c: Likewise.
66983         tests: avoid 'const' discard warnings in mbsstr tests
66984         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66985         * tests/test-mbsstr2.c (main): Likewise.
66987         test-verify: avoid warning from gcc's -Wmissing-declarations
66988         * tests/test-verify.c (function): Declare to be static.
66990         test-inttostr.c: include <string.h> for use of strcmp
66991         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66993         test-linkat: avoid failed assertion on "other" architectures
66994         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66995         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66996         sparc: https://bugs.launchpad.net/bugs/591968
66998 2010-06-11  Jim Meyering  <meyering@redhat.com>
67000         printf.m4: avoid autoconf's "Expanded Before Required" warning
67001         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67002         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67003         autoconf warning.
67005 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67007         Replacement header templates are now named with ".in", not "_".
67008         * doc/gnulib-intro.texi: Correct.
67010 2010-06-10  Jim Meyering  <meyering@redhat.com>
67012         inttostr-tests: depend on snprintf, not snprintf-posix
67013         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67014         snprintf-posix, to avoid this aclocal failure:
67015           missing file gnulib-tests/vasnprintf.c
67016           configure.ac:45: error: expected source file, required through \
67017           AC_LIBSOURCES, not found
67019 2010-06-10  Jim Meyering  <meyering@redhat.com>
67021         inttostr: add a new function, inttostr, and tests
67022         The namesake function was not available.  The existence of the
67023         template file, inttostr.c makes its addition nontrivial.
67024         * lib/anytostr.c: Rename from inttostr.c.
67025         (anytostr): Rename from inttostr.
67026         * lib/inttostr.c: New file.
67027         * modules/inttostr (Files): Add anytostr.c.
67028         (Makefile.am): Set lib_SOURCES instead of ...
67029         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67030         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67031         * lib/offtostr.c: Likewise.
67032         * lib/uinttostr.c: Likewise.
67033         * lib/umaxtostr.c: Likewise.
67034         * modules/inttostr-tests: New file.
67035         * tests/test-inttostr.c: New file.  Test these functions.
67037 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67038             Bruno Haible  <bruno@clisp.org>
67040         Add "Extending Gnulib" chapter to manual.
67041         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67042         chapter.
67043         (Extending Gnulib): New chapter.
67044         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67045         chapter.
67047 2010-06-09  Bruno Haible  <bruno@clisp.org>
67049         Avoid relocwrapper link errors due to gnulib replacement functions.
67050         * lib/areadlink.c: Use the system's malloc, realloc functions.
67051         (areadlink): Set errno to ENOMEM explicitly.
67052         * modules/areadlink (Depends-on): Remove malloc-posix.
67053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67055 2010-06-09  Bruno Haible  <bruno@clisp.org>
67057         Avoid relocwrapper link errors due to gnulib replacement functions.
67058         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67059         * lib/malloca.c: Likewise.
67060         * lib/relocatable.c: Likewise.
67061         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67062         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67063         * lib/setenv.c: Use the system's malloc, realloc functions.
67064         * lib/strerror.c: Use the system's sprintf function.
67065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67067 2010-06-04  Bruno Haible  <bruno@clisp.org>
67069         Prefer documented low-level autoconf macro names.
67070         * m4/lib-link.m4: Use m4_translit instead of translit.
67071         * m4/environ.m4: Likewise.
67072         * m4/mathfunc.m4: Likewise.
67073         * m4/onceonly.m4: Likewise.
67074         * m4/stdint.m4: Likewise.
67075         Suggested by Eric Blake.
67077 2010-06-04  Martin Lambers  <marlam@marlam.de>
67078             Bruno Haible  <bruno@clisp.org>
67080         havelib: Allow library names with '+' characters.
67081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67082         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67084 2010-06-09  Bruno Haible  <bruno@clisp.org>
67086         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67087         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67088         realloc failed.
67090 2010-06-08  Peter Simons  <simons@cryp.to>
67092         maint.mk: make the news-check rule more configurable
67093         * top/maint.mk (news-check-lines-spec): New variable.
67094         (news-check): Use "sed -n 1,10p" in place of "head".
67096 2010-06-07  Jim Meyering  <meyering@redhat.com>
67098         do-release-commit-and-tag: fix typo in --help
67099         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67101         regex: avoid new dead-code warning with gcc-4.6.0
67102         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67103         if-block containing a while-loop.  It's been unused for at least
67104         5 years.
67106 2010-06-05  Bruno Haible  <bruno@clisp.org>
67108         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67109         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67111 2010-06-04  Bruno Haible  <bruno@clisp.org>
67113         Update to GNU gettext 0.18.1.
67114         * modules/gettext (configure.ac): Require gettext infrastructure from
67115         version 0.18.1.
67117 2010-06-03  Bruno Haible  <bruno@clisp.org>
67119         Don't use AC_LIBOBJ with file names in subdirectories.
67120         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67121         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67122         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67123         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67124         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67125         gl_LIBUNISTRING_LIBSOURCE.
67126         (Makefile.am): Augment lib_SOURCES here, conditionally.
67127         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67129 2010-06-03  Bruno Haible  <bruno@clisp.org>
67131         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67132         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67133         expansion does not end with a newline.
67134         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67135         unnecessary newline.
67137 2010-06-03  Bruno Haible  <bruno@clisp.org>
67139         Reduce dependencies.
67140         * tests/test-quotearg.h: New file, extracted from
67141         tests/test-quotearg.c.
67142         * tests/test-quotearg-simple.c: New file, extracted from
67143         tests/test-quotearg.c.
67144         * tests/test-quotearg.c: Don't include <ctype.h>.
67145         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67146         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67147         use_quote_double_quotes, use_quotearg_colon): Moved to
67148         tests/test-quotearg.h.
67149         (results_g, flag_results, custom_quotes, custom_results): Moved
67150         to tests/test-quotearg-simple.c.
67151         (main): Moved the part that does not depend on gettext to
67152         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67153         performed.
67154         * modules/quotearg-simple: New file.
67155         * modules/quotearg-simple-tests: New file.
67156         * modules/quotearg (Depends-on): Add quotearg-simple.
67157         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67158         (Files): Add tests/test-quotearg.h.
67159         Reported by Paolo Bonzini.
67161 2010-06-03  Bruno Haible  <bruno@clisp.org>
67163         Reduce dependencies.
67164         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67166 2010-06-03  Bruno Haible  <bruno@clisp.org>
67168         time: Undefine more broken macros.
67169         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67170         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67171         Reported by Eric Blake.
67173 2010-06-03  Bruno Haible  <bruno@clisp.org>
67175         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67176         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67177         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67178         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67179         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67180         Reported by Ludovic Courtès <ludo@gnu.org>.
67182 2010-06-02  Eric Blake  <eblake@redhat.com>
67184         time: work with mingw + pthreads-win32 library
67185         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67186         if timespec is defined only in pthread.h.
67187         * modules/time (Makefile.am): Substitute it.
67188         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67189         <pthread.h>, when needed.
67190         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67191         from the library.
67193 2010-05-31  Bruno Haible  <bruno@clisp.org>
67195         Avoid expanding two macros in the wrong order.
67196         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67197         gl_LIBUNISTRING if it is defined.
67198         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67199         autoconf >= 2.64.
67200         Reported by Ludovic Courtès <ludo@gnu.org>.
67202 2010-05-27  Jim Meyering  <meyering@redhat.com>
67204         maint.mk: also prohibit "#undef" of always-defined symbols
67205         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67206         Allow more than one space before the symbol name.
67207         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67208         the regexp uses alternation.
67210 2010-05-26  Eric Blake  <eblake@redhat.com>
67212         maint.mk: avoid echo -e
67213         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67214         Convert all uses of echo -* to printf.
67215         Reported by Matthias Bolte.
67217 2010-05-25  Bruno Haible  <bruno@clisp.org>
67219         Update to GNU gettext 0.18, part 2.
67220         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67221         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67223 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67225         Add missing include in test-pwrite.c.
67226         * tests/test-pwrite.c: Include string.h, for strcmp.
67228 2010-05-24  Bruno Haible  <bruno@clisp.org>
67230         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67232 2010-05-24  Bruno Haible  <bruno@clisp.org>
67234         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67235         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67236         iconveh_error argument.
67237         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67238         U_STRCONV_TO_LOCALE.
67239         * lib/unistr/u16-strcoll.c: Likewise.
67240         * lib/unistr/u32-strcoll.c: Likewise.
67241         * modules/unistr/u8-strcoll (Depends-on): Add
67242         uniconv/u8-strconv-to-enc, localcharset. Remove
67243         uniconv/u8-strconv-to-locale.
67244         (configure.ac): Bump version number.
67245         * modules/unistr/u16-strcoll (Depends-on): Add
67246         uniconv/u16-strconv-to-enc, localcharset. Remove
67247         uniconv/u16-strconv-to-locale.
67248         (configure.ac): Bump version number.
67249         * modules/unistr/u32-strcoll (Depends-on): Add
67250         uniconv/u32-strconv-to-enc, localcharset. Remove
67251         uniconv/u32-strconv-to-locale.
67252         (configure.ac): Bump version number.
67254 2010-05-24  Bruno Haible  <bruno@clisp.org>
67256         Avoid a test failure on NetBSD 5.0.
67257         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67258         an iconv() bug.
67260 2010-05-24  Bruno Haible  <bruno@clisp.org>
67262         Adjust #include directive style.
67263         * modules/regex (Includes): Recommend to write <regex.h>.
67265 2010-05-24  Bruno Haible  <bruno@clisp.org>
67267         regex: Don't require alloca.
67268         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67269         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67270         only inside if (0).
67272 2010-05-23  Jim Meyering  <meyering@redhat.com>
67274         test-renameat.c: include <sys/stat.h>
67275         * tests/test-renameat.c: Include <sys/stat.h>; required for
67276         definition of S_IS* macros.
67278 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67280         Update maintainer documentation for 'relocatable-prog' module.
67281         * doc/relocatable-maint.texi: Update.
67282         Comments by Bruno Haible.
67284 2010-05-23  Bruno Haible  <bruno@clisp.org>
67286         git-merge-changelog: Enable --split-merged-entry by default.
67287         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67288         (usage): Don't mention this option any more.
67289         Reported by Ralf Wildenhues.
67291 2010-05-23  Jim Meyering  <meyering@redhat.com>
67293         test-pwrite: do not leave behind a test file named "out"
67294         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67295         The trivial-looking use of init.sh is really necessary.
67296         It ensures that the temporary file, "out", is created in
67297         a temporary directory, and removed upon termination.
67298         * tests/test-pwrite.sh: Re-add file.
67299         * modules/pwrite-tests: Reference it.
67301 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67303         Fix output redirection buglet in init.sh.
67304         * tests/init.sh: Fix redirection of stderr.
67306 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67308         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67310 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67312         * modules/valgrind-tests: New file.
67313         * m4/valgrind-tests.m4: New file.
67314         * doc/valgrind-tests.texi: New file.
67315         * doc/gnulib.texi (Running self-tests under valgrind): New
67316         section.
67318 2010-05-19  Bruno Haible  <bruno@clisp.org>
67320         Clean up dead code in recent commit.
67321         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67322         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67323         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67324         Suggested by Paolo Bonzini.
67326 2010-05-19  Bruno Haible  <bruno@clisp.org>
67328         Avoid valgrind error reports from libunistring.
67329         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67330         * modules/libunistring (Files): Add it.
67331         * modules/libunistring-optional (Files): Likewise.
67333 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67334             Bruno Haible  <bruno@clisp.org>
67336         New module 'libunistring-optional'.
67337         * modules/libunistring-optional: New file.
67338         * m4/libunistring-base.m4: New file.
67339         * m4/libunistring-optional.m4: New file.
67340         * lib/unicase.in.h: Renamed from lib/unicase.h.
67341         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67342         * lib/unictype.in.h: Renamed from lib/unictype.h.
67343         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67344         * lib/uniname.in.h: Renamed from lib/uniname.h.
67345         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67346         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67347         * lib/unistr.in.h: Renamed from lib/unistr.h.
67348         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67349         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67350         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67351         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67352         gl_LIBUNISTRING. If the library was found, determine the installed
67353         version and set LIBUNISTRING_VERSION.
67354         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67355         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67356         handle a configuration option --with-included-libunistring.
67357         * modules/libunistring (Files): Add m4/absolute-header.m4.
67358         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67359         Add m4/libunistring-base.m4.
67360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67361         (Makefile.am): Build unicase.h from unicase.in.h.
67362         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67363         Add m4/libunistring-base.m4.
67364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67365         (Makefile.am): Build uniconv.h from uniconv.in.h.
67366         * modules/unictype/base (Files): Use unictype.in.h instead of
67367         unictype.h. Add m4/libunistring-base.m4.
67368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67369         (Makefile.am): Build unictype.h from unictype.in.h.
67370         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67371         Add m4/libunistring-base.m4.
67372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67373         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67374         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67375         Add m4/libunistring-base.m4.
67376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67377         (Makefile.am): Build uniname.h from uniname.in.h.
67378         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67379         Add m4/libunistring-base.m4.
67380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67381         (Makefile.am): Build uninorm.h from uninorm.in.h.
67382         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67383         unistdio.h. Add m4/libunistring-base.m4.
67384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67385         (Makefile.am): Build unistdio.h from unistdio.in.h.
67386         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67387         Add m4/libunistring-base.m4.
67388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67389         (Makefile.am): Build unistr.h from unistr.in.h.
67390         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67391         Add m4/libunistring-base.m4.
67392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67393         (Makefile.am): Build unitypes.h from unitypes.in.h.
67394         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67395         Add m4/libunistring-base.m4.
67396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67397         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67398         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67399         uniwidth.h. Add m4/libunistring-base.m4.
67400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67401         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67402         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67403         instead of augmenting lib_SOURCES.
67404         * modules/unicase/empty-suffix-context: Likewise.
67405         * modules/unicase/locale-language: Likewise.
67406         * modules/unicase/tolower: Likewise.
67407         * modules/unicase/totitle: Likewise.
67408         * modules/unicase/toupper: Likewise.
67409         * modules/unicase/u8-casecmp: Likewise.
67410         * modules/unicase/u8-casecoll: Likewise.
67411         * modules/unicase/u8-casefold: Likewise.
67412         * modules/unicase/u8-casexfrm: Likewise.
67413         * modules/unicase/u8-ct-casefold: Likewise.
67414         * modules/unicase/u8-ct-tolower: Likewise.
67415         * modules/unicase/u8-ct-totitle: Likewise.
67416         * modules/unicase/u8-ct-toupper: Likewise.
67417         * modules/unicase/u8-is-cased: Likewise.
67418         * modules/unicase/u8-is-casefolded: Likewise.
67419         * modules/unicase/u8-is-lowercase: Likewise.
67420         * modules/unicase/u8-is-titlecase: Likewise.
67421         * modules/unicase/u8-is-uppercase: Likewise.
67422         * modules/unicase/u8-prefix-context: Likewise.
67423         * modules/unicase/u8-suffix-context: Likewise.
67424         * modules/unicase/u8-tolower: Likewise.
67425         * modules/unicase/u8-totitle: Likewise.
67426         * modules/unicase/u8-toupper: Likewise.
67427         * modules/unicase/u16-casecmp: Likewise.
67428         * modules/unicase/u16-casecoll: Likewise.
67429         * modules/unicase/u16-casefold: Likewise.
67430         * modules/unicase/u16-casexfrm: Likewise.
67431         * modules/unicase/u16-ct-casefold: Likewise.
67432         * modules/unicase/u16-ct-tolower: Likewise.
67433         * modules/unicase/u16-ct-totitle: Likewise.
67434         * modules/unicase/u16-ct-toupper: Likewise.
67435         * modules/unicase/u16-is-cased: Likewise.
67436         * modules/unicase/u16-is-casefolded: Likewise.
67437         * modules/unicase/u16-is-lowercase: Likewise.
67438         * modules/unicase/u16-is-titlecase: Likewise.
67439         * modules/unicase/u16-is-uppercase: Likewise.
67440         * modules/unicase/u16-prefix-context: Likewise.
67441         * modules/unicase/u16-suffix-context: Likewise.
67442         * modules/unicase/u16-tolower: Likewise.
67443         * modules/unicase/u16-totitle: Likewise.
67444         * modules/unicase/u16-toupper: Likewise.
67445         * modules/unicase/u32-casecmp: Likewise.
67446         * modules/unicase/u32-casecoll: Likewise.
67447         * modules/unicase/u32-casefold: Likewise.
67448         * modules/unicase/u32-casexfrm: Likewise.
67449         * modules/unicase/u32-ct-casefold: Likewise.
67450         * modules/unicase/u32-ct-tolower: Likewise.
67451         * modules/unicase/u32-ct-totitle: Likewise.
67452         * modules/unicase/u32-ct-toupper: Likewise.
67453         * modules/unicase/u32-is-cased: Likewise.
67454         * modules/unicase/u32-is-casefolded: Likewise.
67455         * modules/unicase/u32-is-lowercase: Likewise.
67456         * modules/unicase/u32-is-titlecase: Likewise.
67457         * modules/unicase/u32-is-uppercase: Likewise.
67458         * modules/unicase/u32-prefix-context: Likewise.
67459         * modules/unicase/u32-suffix-context: Likewise.
67460         * modules/unicase/u32-tolower: Likewise.
67461         * modules/unicase/u32-totitle: Likewise.
67462         * modules/unicase/u32-toupper: Likewise.
67463         * modules/unicase/ulc-casecmp: Likewise.
67464         * modules/unicase/ulc-casecoll: Likewise.
67465         * modules/unicase/ulc-casexfrm: Likewise.
67466         * modules/uniconv/u8-conv-from-enc: Likewise.
67467         * modules/uniconv/u8-conv-to-enc: Likewise.
67468         * modules/uniconv/u8-strconv-from-enc: Likewise.
67469         * modules/uniconv/u8-strconv-from-locale: Likewise.
67470         * modules/uniconv/u8-strconv-to-enc: Likewise.
67471         * modules/uniconv/u8-strconv-to-locale: Likewise.
67472         * modules/uniconv/u16-conv-from-enc: Likewise.
67473         * modules/uniconv/u16-conv-to-enc: Likewise.
67474         * modules/uniconv/u16-strconv-from-enc: Likewise.
67475         * modules/uniconv/u16-strconv-from-locale: Likewise.
67476         * modules/uniconv/u16-strconv-to-enc: Likewise.
67477         * modules/uniconv/u16-strconv-to-locale: Likewise.
67478         * modules/uniconv/u32-conv-from-enc: Likewise.
67479         * modules/uniconv/u32-conv-to-enc: Likewise.
67480         * modules/uniconv/u32-strconv-from-enc: Likewise.
67481         * modules/uniconv/u32-strconv-from-locale: Likewise.
67482         * modules/uniconv/u32-strconv-to-enc: Likewise.
67483         * modules/uniconv/u32-strconv-to-locale: Likewise.
67484         * modules/unictype/bidicategory-byname: Likewise.
67485         * modules/unictype/bidicategory-name: Likewise.
67486         * modules/unictype/bidicategory-of: Likewise.
67487         * modules/unictype/bidicategory-test: Likewise.
67488         * modules/unictype/block-list: Likewise.
67489         * modules/unictype/block-test: Likewise.
67490         * modules/unictype/category-C: Likewise.
67491         * modules/unictype/category-Cc: Likewise.
67492         * modules/unictype/category-Cf: Likewise.
67493         * modules/unictype/category-Cn: Likewise.
67494         * modules/unictype/category-Co: Likewise.
67495         * modules/unictype/category-Cs: Likewise.
67496         * modules/unictype/category-L: Likewise.
67497         * modules/unictype/category-Ll: Likewise.
67498         * modules/unictype/category-Lm: Likewise.
67499         * modules/unictype/category-Lo: Likewise.
67500         * modules/unictype/category-Lt: Likewise.
67501         * modules/unictype/category-Lu: Likewise.
67502         * modules/unictype/category-M: Likewise.
67503         * modules/unictype/category-Mc: Likewise.
67504         * modules/unictype/category-Me: Likewise.
67505         * modules/unictype/category-Mn: Likewise.
67506         * modules/unictype/category-N: Likewise.
67507         * modules/unictype/category-Nd: Likewise.
67508         * modules/unictype/category-Nl: Likewise.
67509         * modules/unictype/category-No: Likewise.
67510         * modules/unictype/category-P: Likewise.
67511         * modules/unictype/category-Pc: Likewise.
67512         * modules/unictype/category-Pd: Likewise.
67513         * modules/unictype/category-Pe: Likewise.
67514         * modules/unictype/category-Pf: Likewise.
67515         * modules/unictype/category-Pi: Likewise.
67516         * modules/unictype/category-Po: Likewise.
67517         * modules/unictype/category-Ps: Likewise.
67518         * modules/unictype/category-S: Likewise.
67519         * modules/unictype/category-Sc: Likewise.
67520         * modules/unictype/category-Sk: Likewise.
67521         * modules/unictype/category-Sm: Likewise.
67522         * modules/unictype/category-So: Likewise.
67523         * modules/unictype/category-Z: Likewise.
67524         * modules/unictype/category-Zl: Likewise.
67525         * modules/unictype/category-Zp: Likewise.
67526         * modules/unictype/category-Zs: Likewise.
67527         * modules/unictype/category-and: Likewise.
67528         * modules/unictype/category-and-not: Likewise.
67529         * modules/unictype/category-byname: Likewise.
67530         * modules/unictype/category-name: Likewise.
67531         * modules/unictype/category-none: Likewise.
67532         * modules/unictype/category-of: Likewise.
67533         * modules/unictype/category-or: Likewise.
67534         * modules/unictype/category-test: Likewise.
67535         * modules/unictype/combining-class: Likewise.
67536         * modules/unictype/ctype-alnum: Likewise.
67537         * modules/unictype/ctype-alpha: Likewise.
67538         * modules/unictype/ctype-blank: Likewise.
67539         * modules/unictype/ctype-cntrl: Likewise.
67540         * modules/unictype/ctype-digit: Likewise.
67541         * modules/unictype/ctype-graph: Likewise.
67542         * modules/unictype/ctype-lower: Likewise.
67543         * modules/unictype/ctype-print: Likewise.
67544         * modules/unictype/ctype-punct: Likewise.
67545         * modules/unictype/ctype-space: Likewise.
67546         * modules/unictype/ctype-upper: Likewise.
67547         * modules/unictype/ctype-xdigit: Likewise.
67548         * modules/unictype/decimal-digit: Likewise.
67549         * modules/unictype/digit: Likewise.
67550         * modules/unictype/mirror: Likewise.
67551         * modules/unictype/numeric: Likewise.
67552         * modules/unictype/property-alphabetic: Likewise.
67553         * modules/unictype/property-ascii-hex-digit: Likewise.
67554         * modules/unictype/property-bidi-arabic-digit: Likewise.
67555         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67556         * modules/unictype/property-bidi-block-separator: Likewise.
67557         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67558         * modules/unictype/property-bidi-common-separator: Likewise.
67559         * modules/unictype/property-bidi-control: Likewise.
67560         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67561         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67562         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67563         * modules/unictype/property-bidi-european-digit: Likewise.
67564         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67565         * modules/unictype/property-bidi-left-to-right: Likewise.
67566         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67567         * modules/unictype/property-bidi-other-neutral: Likewise.
67568         * modules/unictype/property-bidi-pdf: Likewise.
67569         * modules/unictype/property-bidi-segment-separator: Likewise.
67570         * modules/unictype/property-bidi-whitespace: Likewise.
67571         * modules/unictype/property-byname: Likewise.
67572         * modules/unictype/property-combining: Likewise.
67573         * modules/unictype/property-composite: Likewise.
67574         * modules/unictype/property-currency-symbol: Likewise.
67575         * modules/unictype/property-dash: Likewise.
67576         * modules/unictype/property-decimal-digit: Likewise.
67577         * modules/unictype/property-default-ignorable-code-point: Likewise.
67578         * modules/unictype/property-deprecated: Likewise.
67579         * modules/unictype/property-diacritic: Likewise.
67580         * modules/unictype/property-extender: Likewise.
67581         * modules/unictype/property-format-control: Likewise.
67582         * modules/unictype/property-grapheme-base: Likewise.
67583         * modules/unictype/property-grapheme-extend: Likewise.
67584         * modules/unictype/property-grapheme-link: Likewise.
67585         * modules/unictype/property-hex-digit: Likewise.
67586         * modules/unictype/property-hyphen: Likewise.
67587         * modules/unictype/property-id-continue: Likewise.
67588         * modules/unictype/property-id-start: Likewise.
67589         * modules/unictype/property-ideographic: Likewise.
67590         * modules/unictype/property-ids-binary-operator: Likewise.
67591         * modules/unictype/property-ids-trinary-operator: Likewise.
67592         * modules/unictype/property-ignorable-control: Likewise.
67593         * modules/unictype/property-iso-control: Likewise.
67594         * modules/unictype/property-join-control: Likewise.
67595         * modules/unictype/property-left-of-pair: Likewise.
67596         * modules/unictype/property-line-separator: Likewise.
67597         * modules/unictype/property-logical-order-exception: Likewise.
67598         * modules/unictype/property-lowercase: Likewise.
67599         * modules/unictype/property-math: Likewise.
67600         * modules/unictype/property-non-break: Likewise.
67601         * modules/unictype/property-not-a-character: Likewise.
67602         * modules/unictype/property-numeric: Likewise.
67603         * modules/unictype/property-other-alphabetic: Likewise.
67604         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67605         * modules/unictype/property-other-grapheme-extend: Likewise.
67606         * modules/unictype/property-other-id-continue: Likewise.
67607         * modules/unictype/property-other-id-start: Likewise.
67608         * modules/unictype/property-other-lowercase: Likewise.
67609         * modules/unictype/property-other-math: Likewise.
67610         * modules/unictype/property-other-uppercase: Likewise.
67611         * modules/unictype/property-paired-punctuation: Likewise.
67612         * modules/unictype/property-paragraph-separator: Likewise.
67613         * modules/unictype/property-pattern-syntax: Likewise.
67614         * modules/unictype/property-pattern-white-space: Likewise.
67615         * modules/unictype/property-private-use: Likewise.
67616         * modules/unictype/property-punctuation: Likewise.
67617         * modules/unictype/property-quotation-mark: Likewise.
67618         * modules/unictype/property-radical: Likewise.
67619         * modules/unictype/property-sentence-terminal: Likewise.
67620         * modules/unictype/property-soft-dotted: Likewise.
67621         * modules/unictype/property-space: Likewise.
67622         * modules/unictype/property-terminal-punctuation: Likewise.
67623         * modules/unictype/property-test: Likewise.
67624         * modules/unictype/property-titlecase: Likewise.
67625         * modules/unictype/property-unassigned-code-value: Likewise.
67626         * modules/unictype/property-unified-ideograph: Likewise.
67627         * modules/unictype/property-uppercase: Likewise.
67628         * modules/unictype/property-variation-selector: Likewise.
67629         * modules/unictype/property-white-space: Likewise.
67630         * modules/unictype/property-xid-continue: Likewise.
67631         * modules/unictype/property-xid-start: Likewise.
67632         * modules/unictype/property-zero-width: Likewise.
67633         * modules/unictype/scripts: Likewise.
67634         * modules/unictype/syntax-c-ident: Likewise.
67635         * modules/unictype/syntax-c-whitespace: Likewise.
67636         * modules/unictype/syntax-java-ident: Likewise.
67637         * modules/unictype/syntax-java-whitespace: Likewise.
67638         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67639         * modules/unilbrk/u8-width-linebreaks: Likewise.
67640         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67641         * modules/unilbrk/u16-width-linebreaks: Likewise.
67642         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67643         * modules/unilbrk/u32-width-linebreaks: Likewise.
67644         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67645         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67646         * modules/uniname/uniname: Likewise.
67647         * modules/uninorm/canonical-decomposition: Likewise.
67648         * modules/uninorm/composition: Likewise.
67649         * modules/uninorm/decomposing-form: Likewise.
67650         * modules/uninorm/decomposition: Likewise.
67651         * modules/uninorm/filter: Likewise.
67652         * modules/uninorm/nfc: Likewise.
67653         * modules/uninorm/nfd: Likewise.
67654         * modules/uninorm/nfkc: Likewise.
67655         * modules/uninorm/nfkd: Likewise.
67656         * modules/uninorm/u8-normalize: Likewise.
67657         * modules/uninorm/u8-normcmp: Likewise.
67658         * modules/uninorm/u8-normcoll: Likewise.
67659         * modules/uninorm/u8-normxfrm: Likewise.
67660         * modules/uninorm/u16-normalize: Likewise.
67661         * modules/uninorm/u16-normcmp: Likewise.
67662         * modules/uninorm/u16-normcoll: Likewise.
67663         * modules/uninorm/u16-normxfrm: Likewise.
67664         * modules/uninorm/u32-normalize: Likewise.
67665         * modules/uninorm/u32-normcmp: Likewise.
67666         * modules/uninorm/u32-normcoll: Likewise.
67667         * modules/uninorm/u32-normxfrm: Likewise.
67668         * modules/unistdio/u8-asnprintf: Likewise.
67669         * modules/unistdio/u8-asprintf: Likewise.
67670         * modules/unistdio/u8-snprintf: Likewise.
67671         * modules/unistdio/u8-sprintf: Likewise.
67672         * modules/unistdio/u8-u8-asnprintf: Likewise.
67673         * modules/unistdio/u8-u8-asprintf: Likewise.
67674         * modules/unistdio/u8-u8-snprintf: Likewise.
67675         * modules/unistdio/u8-u8-sprintf: Likewise.
67676         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67677         * modules/unistdio/u8-u8-vasprintf: Likewise.
67678         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67679         * modules/unistdio/u8-u8-vsprintf: Likewise.
67680         * modules/unistdio/u8-vasnprintf: Likewise.
67681         * modules/unistdio/u8-vasprintf: Likewise.
67682         * modules/unistdio/u8-vsnprintf: Likewise.
67683         * modules/unistdio/u8-vsprintf: Likewise.
67684         * modules/unistdio/u16-asnprintf: Likewise.
67685         * modules/unistdio/u16-asprintf: Likewise.
67686         * modules/unistdio/u16-snprintf: Likewise.
67687         * modules/unistdio/u16-sprintf: Likewise.
67688         * modules/unistdio/u16-u16-asnprintf: Likewise.
67689         * modules/unistdio/u16-u16-asprintf: Likewise.
67690         * modules/unistdio/u16-u16-snprintf: Likewise.
67691         * modules/unistdio/u16-u16-sprintf: Likewise.
67692         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67693         * modules/unistdio/u16-u16-vasprintf: Likewise.
67694         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67695         * modules/unistdio/u16-u16-vsprintf: Likewise.
67696         * modules/unistdio/u16-vasnprintf: Likewise.
67697         * modules/unistdio/u16-vasprintf: Likewise.
67698         * modules/unistdio/u16-vsnprintf: Likewise.
67699         * modules/unistdio/u16-vsprintf: Likewise.
67700         * modules/unistdio/u32-asnprintf: Likewise.
67701         * modules/unistdio/u32-asprintf: Likewise.
67702         * modules/unistdio/u32-snprintf: Likewise.
67703         * modules/unistdio/u32-sprintf: Likewise.
67704         * modules/unistdio/u32-u32-asnprintf: Likewise.
67705         * modules/unistdio/u32-u32-asprintf: Likewise.
67706         * modules/unistdio/u32-u32-snprintf: Likewise.
67707         * modules/unistdio/u32-u32-sprintf: Likewise.
67708         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67709         * modules/unistdio/u32-u32-vasprintf: Likewise.
67710         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67711         * modules/unistdio/u32-u32-vsprintf: Likewise.
67712         * modules/unistdio/u32-vasnprintf: Likewise.
67713         * modules/unistdio/u32-vasprintf: Likewise.
67714         * modules/unistdio/u32-vsnprintf: Likewise.
67715         * modules/unistdio/u32-vsprintf: Likewise.
67716         * modules/unistdio/ulc-asnprintf: Likewise.
67717         * modules/unistdio/ulc-asprintf: Likewise.
67718         * modules/unistdio/ulc-fprintf: Likewise.
67719         * modules/unistdio/ulc-snprintf: Likewise.
67720         * modules/unistdio/ulc-sprintf: Likewise.
67721         * modules/unistdio/ulc-vasnprintf: Likewise.
67722         * modules/unistdio/ulc-vasprintf: Likewise.
67723         * modules/unistdio/ulc-vfprintf: Likewise.
67724         * modules/unistdio/ulc-vsnprintf: Likewise.
67725         * modules/unistdio/ulc-vsprintf: Likewise.
67726         * modules/unistr/u8-check: Likewise.
67727         * modules/unistr/u8-chr: Likewise.
67728         * modules/unistr/u8-cmp: Likewise.
67729         * modules/unistr/u8-cmp2: Likewise.
67730         * modules/unistr/u8-cpy: Likewise.
67731         * modules/unistr/u8-cpy-alloc: Likewise.
67732         * modules/unistr/u8-endswith: Likewise.
67733         * modules/unistr/u8-mblen: Likewise.
67734         * modules/unistr/u8-mbsnlen: Likewise.
67735         * modules/unistr/u8-mbtouc: Likewise.
67736         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67737         * modules/unistr/u8-mbtoucr: Likewise.
67738         * modules/unistr/u8-move: Likewise.
67739         * modules/unistr/u8-next: Likewise.
67740         * modules/unistr/u8-prev: Likewise.
67741         * modules/unistr/u8-set: Likewise.
67742         * modules/unistr/u8-startswith: Likewise.
67743         * modules/unistr/u8-stpcpy: Likewise.
67744         * modules/unistr/u8-stpncpy: Likewise.
67745         * modules/unistr/u8-strcat: Likewise.
67746         * modules/unistr/u8-strchr: Likewise.
67747         * modules/unistr/u8-strcmp: Likewise.
67748         * modules/unistr/u8-strcoll: Likewise.
67749         * modules/unistr/u8-strcpy: Likewise.
67750         * modules/unistr/u8-strcspn: Likewise.
67751         * modules/unistr/u8-strdup: Likewise.
67752         * modules/unistr/u8-strlen: Likewise.
67753         * modules/unistr/u8-strmblen: Likewise.
67754         * modules/unistr/u8-strmbtouc: Likewise.
67755         * modules/unistr/u8-strncat: Likewise.
67756         * modules/unistr/u8-strncmp: Likewise.
67757         * modules/unistr/u8-strncpy: Likewise.
67758         * modules/unistr/u8-strnlen: Likewise.
67759         * modules/unistr/u8-strpbrk: Likewise.
67760         * modules/unistr/u8-strrchr: Likewise.
67761         * modules/unistr/u8-strspn: Likewise.
67762         * modules/unistr/u8-strstr: Likewise.
67763         * modules/unistr/u8-strtok: Likewise.
67764         * modules/unistr/u8-to-u16: Likewise.
67765         * modules/unistr/u8-to-u32: Likewise.
67766         * modules/unistr/u8-uctomb: Likewise.
67767         * modules/unistr/u16-check: Likewise.
67768         * modules/unistr/u16-chr: Likewise.
67769         * modules/unistr/u16-cmp: Likewise.
67770         * modules/unistr/u16-cmp2: Likewise.
67771         * modules/unistr/u16-cpy: Likewise.
67772         * modules/unistr/u16-cpy-alloc: Likewise.
67773         * modules/unistr/u16-endswith: Likewise.
67774         * modules/unistr/u16-mblen: Likewise.
67775         * modules/unistr/u16-mbsnlen: Likewise.
67776         * modules/unistr/u16-mbtouc: Likewise.
67777         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67778         * modules/unistr/u16-mbtoucr: Likewise.
67779         * modules/unistr/u16-move: Likewise.
67780         * modules/unistr/u16-next: Likewise.
67781         * modules/unistr/u16-prev: Likewise.
67782         * modules/unistr/u16-set: Likewise.
67783         * modules/unistr/u16-startswith: Likewise.
67784         * modules/unistr/u16-stpcpy: Likewise.
67785         * modules/unistr/u16-stpncpy: Likewise.
67786         * modules/unistr/u16-strcat: Likewise.
67787         * modules/unistr/u16-strchr: Likewise.
67788         * modules/unistr/u16-strcmp: Likewise.
67789         * modules/unistr/u16-strcoll: Likewise.
67790         * modules/unistr/u16-strcpy: Likewise.
67791         * modules/unistr/u16-strcspn: Likewise.
67792         * modules/unistr/u16-strdup: Likewise.
67793         * modules/unistr/u16-strlen: Likewise.
67794         * modules/unistr/u16-strmblen: Likewise.
67795         * modules/unistr/u16-strmbtouc: Likewise.
67796         * modules/unistr/u16-strncat: Likewise.
67797         * modules/unistr/u16-strncmp: Likewise.
67798         * modules/unistr/u16-strncpy: Likewise.
67799         * modules/unistr/u16-strnlen: Likewise.
67800         * modules/unistr/u16-strpbrk: Likewise.
67801         * modules/unistr/u16-strrchr: Likewise.
67802         * modules/unistr/u16-strspn: Likewise.
67803         * modules/unistr/u16-strstr: Likewise.
67804         * modules/unistr/u16-strtok: Likewise.
67805         * modules/unistr/u16-to-u32: Likewise.
67806         * modules/unistr/u16-to-u8: Likewise.
67807         * modules/unistr/u16-uctomb: Likewise.
67808         * modules/unistr/u32-check: Likewise.
67809         * modules/unistr/u32-chr: Likewise.
67810         * modules/unistr/u32-cmp: Likewise.
67811         * modules/unistr/u32-cmp2: Likewise.
67812         * modules/unistr/u32-cpy: Likewise.
67813         * modules/unistr/u32-cpy-alloc: Likewise.
67814         * modules/unistr/u32-endswith: Likewise.
67815         * modules/unistr/u32-mblen: Likewise.
67816         * modules/unistr/u32-mbsnlen: Likewise.
67817         * modules/unistr/u32-mbtouc: Likewise.
67818         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67819         * modules/unistr/u32-mbtoucr: Likewise.
67820         * modules/unistr/u32-move: Likewise.
67821         * modules/unistr/u32-next: Likewise.
67822         * modules/unistr/u32-prev: Likewise.
67823         * modules/unistr/u32-set: Likewise.
67824         * modules/unistr/u32-startswith: Likewise.
67825         * modules/unistr/u32-stpcpy: Likewise.
67826         * modules/unistr/u32-stpncpy: Likewise.
67827         * modules/unistr/u32-strcat: Likewise.
67828         * modules/unistr/u32-strchr: Likewise.
67829         * modules/unistr/u32-strcmp: Likewise.
67830         * modules/unistr/u32-strcoll: Likewise.
67831         * modules/unistr/u32-strcpy: Likewise.
67832         * modules/unistr/u32-strcspn: Likewise.
67833         * modules/unistr/u32-strdup: Likewise.
67834         * modules/unistr/u32-strlen: Likewise.
67835         * modules/unistr/u32-strmblen: Likewise.
67836         * modules/unistr/u32-strmbtouc: Likewise.
67837         * modules/unistr/u32-strncat: Likewise.
67838         * modules/unistr/u32-strncmp: Likewise.
67839         * modules/unistr/u32-strncpy: Likewise.
67840         * modules/unistr/u32-strnlen: Likewise.
67841         * modules/unistr/u32-strpbrk: Likewise.
67842         * modules/unistr/u32-strrchr: Likewise.
67843         * modules/unistr/u32-strspn: Likewise.
67844         * modules/unistr/u32-strstr: Likewise.
67845         * modules/unistr/u32-strtok: Likewise.
67846         * modules/unistr/u32-to-u16: Likewise.
67847         * modules/unistr/u32-to-u8: Likewise.
67848         * modules/unistr/u32-uctomb: Likewise.
67849         * modules/uniwbrk/u8-wordbreaks: Likewise.
67850         * modules/uniwbrk/u16-wordbreaks: Likewise.
67851         * modules/uniwbrk/u32-wordbreaks: Likewise.
67852         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67853         * modules/uniwbrk/wordbreak-property: Likewise.
67854         * modules/uniwidth/u8-strwidth: Likewise.
67855         * modules/uniwidth/u8-width: Likewise.
67856         * modules/uniwidth/u16-strwidth: Likewise.
67857         * modules/uniwidth/u16-width: Likewise.
67858         * modules/uniwidth/u32-strwidth: Likewise.
67859         * modules/uniwidth/u32-width: Likewise.
67860         * modules/uniwidth/width: Likewise.
67861         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67862         with $(LIBUNISTRING).
67863         * modules/unicase/ignorable-tests: Likewise.
67864         * modules/unicase/locale-language-tests: Likewise.
67865         * modules/unicase/tolower-tests: Likewise.
67866         * modules/unicase/totitle-tests: Likewise.
67867         * modules/unicase/toupper-tests: Likewise.
67868         * modules/unicase/u8-casecmp-tests: Likewise.
67869         * modules/unicase/u8-casecoll-tests: Likewise.
67870         * modules/unicase/u8-casefold-tests: Likewise.
67871         * modules/unicase/u8-is-cased-tests: Likewise.
67872         * modules/unicase/u8-is-casefolded-tests: Likewise.
67873         * modules/unicase/u8-is-lowercase-tests: Likewise.
67874         * modules/unicase/u8-is-titlecase-tests: Likewise.
67875         * modules/unicase/u8-is-uppercase-tests: Likewise.
67876         * modules/unicase/u8-tolower-tests: Likewise.
67877         * modules/unicase/u8-totitle-tests: Likewise.
67878         * modules/unicase/u8-toupper-tests: Likewise.
67879         * modules/unicase/u16-casecmp-tests: Likewise.
67880         * modules/unicase/u16-casecoll-tests: Likewise.
67881         * modules/unicase/u16-casefold-tests: Likewise.
67882         * modules/unicase/u16-is-cased-tests: Likewise.
67883         * modules/unicase/u16-is-casefolded-tests: Likewise.
67884         * modules/unicase/u16-is-lowercase-tests: Likewise.
67885         * modules/unicase/u16-is-titlecase-tests: Likewise.
67886         * modules/unicase/u16-is-uppercase-tests: Likewise.
67887         * modules/unicase/u16-tolower-tests: Likewise.
67888         * modules/unicase/u16-totitle-tests: Likewise.
67889         * modules/unicase/u16-toupper-tests: Likewise.
67890         * modules/unicase/u32-casecmp-tests: Likewise.
67891         * modules/unicase/u32-casecoll-tests: Likewise.
67892         * modules/unicase/u32-casefold-tests: Likewise.
67893         * modules/unicase/u32-is-cased-tests: Likewise.
67894         * modules/unicase/u32-is-casefolded-tests: Likewise.
67895         * modules/unicase/u32-is-lowercase-tests: Likewise.
67896         * modules/unicase/u32-is-titlecase-tests: Likewise.
67897         * modules/unicase/u32-is-uppercase-tests: Likewise.
67898         * modules/unicase/u32-tolower-tests: Likewise.
67899         * modules/unicase/u32-totitle-tests: Likewise.
67900         * modules/unicase/u32-toupper-tests: Likewise.
67901         * modules/unicase/ulc-casecmp-tests: Likewise.
67902         * modules/unicase/ulc-casecoll-tests: Likewise.
67903         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67904         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67905         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67906         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67907         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67908         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67909         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67910         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67911         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67912         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67913         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67914         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67915         * modules/unictype/bidicategory-byname-tests: Likewise.
67916         * modules/unictype/bidicategory-name-tests: Likewise.
67917         * modules/unictype/bidicategory-of-tests: Likewise.
67918         * modules/unictype/bidicategory-test-tests: Likewise.
67919         * modules/unictype/block-list-tests: Likewise.
67920         * modules/unictype/block-of-tests: Likewise.
67921         * modules/unictype/block-test-tests: Likewise.
67922         * modules/unictype/category-C-tests: Likewise.
67923         * modules/unictype/category-Cc-tests: Likewise.
67924         * modules/unictype/category-Cf-tests: Likewise.
67925         * modules/unictype/category-Cn-tests: Likewise.
67926         * modules/unictype/category-Co-tests: Likewise.
67927         * modules/unictype/category-Cs-tests: Likewise.
67928         * modules/unictype/category-L-tests: Likewise.
67929         * modules/unictype/category-Ll-tests: Likewise.
67930         * modules/unictype/category-Lm-tests: Likewise.
67931         * modules/unictype/category-Lo-tests: Likewise.
67932         * modules/unictype/category-Lt-tests: Likewise.
67933         * modules/unictype/category-Lu-tests: Likewise.
67934         * modules/unictype/category-M-tests: Likewise.
67935         * modules/unictype/category-Mc-tests: Likewise.
67936         * modules/unictype/category-Me-tests: Likewise.
67937         * modules/unictype/category-Mn-tests: Likewise.
67938         * modules/unictype/category-N-tests: Likewise.
67939         * modules/unictype/category-Nd-tests: Likewise.
67940         * modules/unictype/category-Nl-tests: Likewise.
67941         * modules/unictype/category-No-tests: Likewise.
67942         * modules/unictype/category-P-tests: Likewise.
67943         * modules/unictype/category-Pc-tests: Likewise.
67944         * modules/unictype/category-Pd-tests: Likewise.
67945         * modules/unictype/category-Pe-tests: Likewise.
67946         * modules/unictype/category-Pf-tests: Likewise.
67947         * modules/unictype/category-Pi-tests: Likewise.
67948         * modules/unictype/category-Po-tests: Likewise.
67949         * modules/unictype/category-Ps-tests: Likewise.
67950         * modules/unictype/category-S-tests: Likewise.
67951         * modules/unictype/category-Sc-tests: Likewise.
67952         * modules/unictype/category-Sk-tests: Likewise.
67953         * modules/unictype/category-Sm-tests: Likewise.
67954         * modules/unictype/category-So-tests: Likewise.
67955         * modules/unictype/category-Z-tests: Likewise.
67956         * modules/unictype/category-Zl-tests: Likewise.
67957         * modules/unictype/category-Zp-tests: Likewise.
67958         * modules/unictype/category-Zs-tests: Likewise.
67959         * modules/unictype/category-and-not-tests: Likewise.
67960         * modules/unictype/category-and-tests: Likewise.
67961         * modules/unictype/category-byname-tests: Likewise.
67962         * modules/unictype/category-name-tests: Likewise.
67963         * modules/unictype/category-none-tests: Likewise.
67964         * modules/unictype/category-of-tests: Likewise.
67965         * modules/unictype/category-or-tests: Likewise.
67966         * modules/unictype/category-test-withtable-tests: Likewise.
67967         * modules/unictype/combining-class-tests: Likewise.
67968         * modules/unictype/ctype-alnum-tests: Likewise.
67969         * modules/unictype/ctype-alpha-tests: Likewise.
67970         * modules/unictype/ctype-blank-tests: Likewise.
67971         * modules/unictype/ctype-cntrl-tests: Likewise.
67972         * modules/unictype/ctype-digit-tests: Likewise.
67973         * modules/unictype/ctype-graph-tests: Likewise.
67974         * modules/unictype/ctype-lower-tests: Likewise.
67975         * modules/unictype/ctype-print-tests: Likewise.
67976         * modules/unictype/ctype-punct-tests: Likewise.
67977         * modules/unictype/ctype-space-tests: Likewise.
67978         * modules/unictype/ctype-upper-tests: Likewise.
67979         * modules/unictype/ctype-xdigit-tests: Likewise.
67980         * modules/unictype/decimal-digit-tests: Likewise.
67981         * modules/unictype/digit-tests: Likewise.
67982         * modules/unictype/mirror-tests: Likewise.
67983         * modules/unictype/numeric-tests: Likewise.
67984         * modules/unictype/property-alphabetic-tests: Likewise.
67985         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67986         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67987         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67988         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67989         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67990         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67991         * modules/unictype/property-bidi-control-tests: Likewise.
67992         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67993         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67994         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67995         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67996         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67997         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67998         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67999         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68000         * modules/unictype/property-bidi-pdf-tests: Likewise.
68001         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68002         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68003         * modules/unictype/property-byname-tests: Likewise.
68004         * modules/unictype/property-combining-tests: Likewise.
68005         * modules/unictype/property-composite-tests: Likewise.
68006         * modules/unictype/property-currency-symbol-tests: Likewise.
68007         * modules/unictype/property-dash-tests: Likewise.
68008         * modules/unictype/property-decimal-digit-tests: Likewise.
68009         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68010         * modules/unictype/property-deprecated-tests: Likewise.
68011         * modules/unictype/property-diacritic-tests: Likewise.
68012         * modules/unictype/property-extender-tests: Likewise.
68013         * modules/unictype/property-format-control-tests: Likewise.
68014         * modules/unictype/property-grapheme-base-tests: Likewise.
68015         * modules/unictype/property-grapheme-extend-tests: Likewise.
68016         * modules/unictype/property-grapheme-link-tests: Likewise.
68017         * modules/unictype/property-hex-digit-tests: Likewise.
68018         * modules/unictype/property-hyphen-tests: Likewise.
68019         * modules/unictype/property-id-continue-tests: Likewise.
68020         * modules/unictype/property-id-start-tests: Likewise.
68021         * modules/unictype/property-ideographic-tests: Likewise.
68022         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68023         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68024         * modules/unictype/property-ignorable-control-tests: Likewise.
68025         * modules/unictype/property-iso-control-tests: Likewise.
68026         * modules/unictype/property-join-control-tests: Likewise.
68027         * modules/unictype/property-left-of-pair-tests: Likewise.
68028         * modules/unictype/property-line-separator-tests: Likewise.
68029         * modules/unictype/property-logical-order-exception-tests: Likewise.
68030         * modules/unictype/property-lowercase-tests: Likewise.
68031         * modules/unictype/property-math-tests: Likewise.
68032         * modules/unictype/property-non-break-tests: Likewise.
68033         * modules/unictype/property-not-a-character-tests: Likewise.
68034         * modules/unictype/property-numeric-tests: Likewise.
68035         * modules/unictype/property-other-alphabetic-tests: Likewise.
68036         * modules/unictype/property-other-default-ignorable-code-point-tests:
68037         Likewise.
68038         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68039         * modules/unictype/property-other-id-continue-tests: Likewise.
68040         * modules/unictype/property-other-id-start-tests: Likewise.
68041         * modules/unictype/property-other-lowercase-tests: Likewise.
68042         * modules/unictype/property-other-math-tests: Likewise.
68043         * modules/unictype/property-other-uppercase-tests: Likewise.
68044         * modules/unictype/property-paired-punctuation-tests: Likewise.
68045         * modules/unictype/property-paragraph-separator-tests: Likewise.
68046         * modules/unictype/property-pattern-syntax-tests: Likewise.
68047         * modules/unictype/property-pattern-white-space-tests: Likewise.
68048         * modules/unictype/property-private-use-tests: Likewise.
68049         * modules/unictype/property-punctuation-tests: Likewise.
68050         * modules/unictype/property-quotation-mark-tests: Likewise.
68051         * modules/unictype/property-radical-tests: Likewise.
68052         * modules/unictype/property-sentence-terminal-tests: Likewise.
68053         * modules/unictype/property-soft-dotted-tests: Likewise.
68054         * modules/unictype/property-space-tests: Likewise.
68055         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68056         * modules/unictype/property-test-tests: Likewise.
68057         * modules/unictype/property-titlecase-tests: Likewise.
68058         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68059         * modules/unictype/property-unified-ideograph-tests: Likewise.
68060         * modules/unictype/property-uppercase-tests: Likewise.
68061         * modules/unictype/property-variation-selector-tests: Likewise.
68062         * modules/unictype/property-white-space-tests: Likewise.
68063         * modules/unictype/property-xid-continue-tests: Likewise.
68064         * modules/unictype/property-xid-start-tests: Likewise.
68065         * modules/unictype/property-zero-width-tests: Likewise.
68066         * modules/unictype/scripts-tests: Likewise.
68067         * modules/unictype/syntax-c-ident-tests: Likewise.
68068         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68069         * modules/unictype/syntax-java-ident-tests: Likewise.
68070         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68071         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68072         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68073         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68074         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68075         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68076         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68077         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68078         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68079         * modules/uniname/uniname-tests: Likewise.
68080         * modules/uninorm/canonical-decomposition-tests: Likewise.
68081         * modules/uninorm/compat-decomposition-tests: Likewise.
68082         * modules/uninorm/composition-tests: Likewise.
68083         * modules/uninorm/decomposing-form-tests: Likewise.
68084         * modules/uninorm/decomposition-tests: Likewise.
68085         * modules/uninorm/filter-tests: Likewise.
68086         * modules/uninorm/nfc-tests: Likewise.
68087         * modules/uninorm/nfd-tests: Likewise.
68088         * modules/uninorm/nfkc-tests: Likewise.
68089         * modules/uninorm/nfkd-tests: Likewise.
68090         * modules/uninorm/u8-normcmp-tests: Likewise.
68091         * modules/uninorm/u8-normcoll-tests: Likewise.
68092         * modules/uninorm/u16-normcmp-tests: Likewise.
68093         * modules/uninorm/u16-normcoll-tests: Likewise.
68094         * modules/uninorm/u32-normcmp-tests: Likewise.
68095         * modules/uninorm/u32-normcoll-tests: Likewise.
68096         * modules/unistdio/u8-asnprintf-tests: Likewise.
68097         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68098         * modules/unistdio/u8-vasprintf-tests: Likewise.
68099         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68100         * modules/unistdio/u8-vsprintf-tests: Likewise.
68101         * modules/unistdio/u16-asnprintf-tests: Likewise.
68102         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68103         * modules/unistdio/u16-vasprintf-tests: Likewise.
68104         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68105         * modules/unistdio/u16-vsprintf-tests: Likewise.
68106         * modules/unistdio/u32-asnprintf-tests: Likewise.
68107         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68108         * modules/unistdio/u32-vasprintf-tests: Likewise.
68109         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68110         * modules/unistdio/u32-vsprintf-tests: Likewise.
68111         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68112         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68113         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68114         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68115         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68116         * modules/unistr/u8-check-tests: Likewise.
68117         * modules/unistr/u8-chr-tests: Likewise.
68118         * modules/unistr/u8-cmp-tests: Likewise.
68119         * modules/unistr/u8-cmp2-tests: Likewise.
68120         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68121         * modules/unistr/u8-cpy-tests: Likewise.
68122         * modules/unistr/u8-mblen-tests: Likewise.
68123         * modules/unistr/u8-mbsnlen-tests: Likewise.
68124         * modules/unistr/u8-mbtouc-tests: Likewise.
68125         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68126         * modules/unistr/u8-mbtoucr-tests: Likewise.
68127         * modules/unistr/u8-move-tests: Likewise.
68128         * modules/unistr/u8-next-tests: Likewise.
68129         * modules/unistr/u8-prev-tests: Likewise.
68130         * modules/unistr/u8-set-tests: Likewise.
68131         * modules/unistr/u8-stpcpy-tests: Likewise.
68132         * modules/unistr/u8-stpncpy-tests: Likewise.
68133         * modules/unistr/u8-strcat-tests: Likewise.
68134         * modules/unistr/u8-strcmp-tests: Likewise.
68135         * modules/unistr/u8-strcoll-tests: Likewise.
68136         * modules/unistr/u8-strcpy-tests: Likewise.
68137         * modules/unistr/u8-strdup-tests: Likewise.
68138         * modules/unistr/u8-strlen-tests: Likewise.
68139         * modules/unistr/u8-strmblen-tests: Likewise.
68140         * modules/unistr/u8-strmbtouc-tests: Likewise.
68141         * modules/unistr/u8-strncat-tests: Likewise.
68142         * modules/unistr/u8-strncmp-tests: Likewise.
68143         * modules/unistr/u8-strncpy-tests: Likewise.
68144         * modules/unistr/u8-strnlen-tests: Likewise.
68145         * modules/unistr/u8-to-u16-tests: Likewise.
68146         * modules/unistr/u8-to-u32-tests: Likewise.
68147         * modules/unistr/u8-uctomb-tests: Likewise.
68148         * modules/unistr/u16-check-tests: Likewise.
68149         * modules/unistr/u16-chr-tests: Likewise.
68150         * modules/unistr/u16-cmp-tests: Likewise.
68151         * modules/unistr/u16-cmp2-tests: Likewise.
68152         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68153         * modules/unistr/u16-cpy-tests: Likewise.
68154         * modules/unistr/u16-mblen-tests: Likewise.
68155         * modules/unistr/u16-mbsnlen-tests: Likewise.
68156         * modules/unistr/u16-mbtouc-tests: Likewise.
68157         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68158         * modules/unistr/u16-mbtoucr-tests: Likewise.
68159         * modules/unistr/u16-move-tests: Likewise.
68160         * modules/unistr/u16-next-tests: Likewise.
68161         * modules/unistr/u16-prev-tests: Likewise.
68162         * modules/unistr/u16-set-tests: Likewise.
68163         * modules/unistr/u16-stpcpy-tests: Likewise.
68164         * modules/unistr/u16-stpncpy-tests: Likewise.
68165         * modules/unistr/u16-strcat-tests: Likewise.
68166         * modules/unistr/u16-strcmp-tests: Likewise.
68167         * modules/unistr/u16-strcoll-tests: Likewise.
68168         * modules/unistr/u16-strcpy-tests: Likewise.
68169         * modules/unistr/u16-strdup-tests: Likewise.
68170         * modules/unistr/u16-strlen-tests: Likewise.
68171         * modules/unistr/u16-strmblen-tests: Likewise.
68172         * modules/unistr/u16-strmbtouc-tests: Likewise.
68173         * modules/unistr/u16-strncat-tests: Likewise.
68174         * modules/unistr/u16-strncmp-tests: Likewise.
68175         * modules/unistr/u16-strncpy-tests: Likewise.
68176         * modules/unistr/u16-strnlen-tests: Likewise.
68177         * modules/unistr/u16-to-u32-tests: Likewise.
68178         * modules/unistr/u16-to-u8-tests: Likewise.
68179         * modules/unistr/u16-uctomb-tests: Likewise.
68180         * modules/unistr/u32-check-tests: Likewise.
68181         * modules/unistr/u32-chr-tests: Likewise.
68182         * modules/unistr/u32-cmp-tests: Likewise.
68183         * modules/unistr/u32-cmp2-tests: Likewise.
68184         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68185         * modules/unistr/u32-cpy-tests: Likewise.
68186         * modules/unistr/u32-mblen-tests: Likewise.
68187         * modules/unistr/u32-mbsnlen-tests: Likewise.
68188         * modules/unistr/u32-mbtouc-tests: Likewise.
68189         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68190         * modules/unistr/u32-mbtoucr-tests: Likewise.
68191         * modules/unistr/u32-move-tests: Likewise.
68192         * modules/unistr/u32-next-tests: Likewise.
68193         * modules/unistr/u32-prev-tests: Likewise.
68194         * modules/unistr/u32-set-tests: Likewise.
68195         * modules/unistr/u32-stpcpy-tests: Likewise.
68196         * modules/unistr/u32-stpncpy-tests: Likewise.
68197         * modules/unistr/u32-strcat-tests: Likewise.
68198         * modules/unistr/u32-strcmp-tests: Likewise.
68199         * modules/unistr/u32-strcoll-tests: Likewise.
68200         * modules/unistr/u32-strcpy-tests: Likewise.
68201         * modules/unistr/u32-strdup-tests: Likewise.
68202         * modules/unistr/u32-strlen-tests: Likewise.
68203         * modules/unistr/u32-strmblen-tests: Likewise.
68204         * modules/unistr/u32-strmbtouc-tests: Likewise.
68205         * modules/unistr/u32-strncat-tests: Likewise.
68206         * modules/unistr/u32-strncmp-tests: Likewise.
68207         * modules/unistr/u32-strncpy-tests: Likewise.
68208         * modules/unistr/u32-strnlen-tests: Likewise.
68209         * modules/unistr/u32-to-u16-tests: Likewise.
68210         * modules/unistr/u32-to-u8-tests: Likewise.
68211         * modules/unistr/u32-uctomb-tests: Likewise.
68212         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68213         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68214         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68215         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68216         * modules/uniwidth/u8-strwidth-tests: Likewise.
68217         * modules/uniwidth/u8-width-tests: Likewise.
68218         * modules/uniwidth/u16-strwidth-tests: Likewise.
68219         * modules/uniwidth/u16-width-tests: Likewise.
68220         * modules/uniwidth/u32-strwidth-tests: Likewise.
68221         * modules/uniwidth/u32-width-tests: Likewise.
68222         * modules/uniwidth/width-tests: Likewise.
68224 2010-05-18  Richard Jones  <rjones@redhat.com>
68226         doc: users.txt: list hivex
68227         * users.txt: Add hivex.
68229 2010-05-18  Richard Jones  <rjones@redhat.com>
68231         doc: users.txt: list febootstrap
68232         * users.txt: Add febootstrap.
68234 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68236         bootstrap: fix an error when gnulib is not used as a git submodule
68237         * build-aux/bootstrap (gnulib_path): If its length is zero then
68238         assign "gnulib" to it.
68239         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68241 2010-05-16  Bruno Haible  <bruno@clisp.org>
68243         Avoid autoconf warnings about AM_ICONV.
68244         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68245         2.64.
68247 2010-05-16  Bruno Haible  <bruno@clisp.org>
68249         absolute-header: Make the macro usable in more situations.
68250         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68251         from gl_ABSOLUTE_HEADER.
68252         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68254 2010-05-16  James Youngman  <jay@gnu.org>
68256         doc: update users.txt
68257         * users.txt: Add CSSC.
68259 2010-05-16  Jim Meyering  <meyering@redhat.com>
68261         init.sh: fix an error in the previous change; add more comments
68262         * tests/init.sh: Compare exit code in loop against 9, not 2.
68263         Patch by Bruno Haible.
68264         Make the two tests more similar by adding an empty "then" clause.
68265         Add comments.
68267         init.sh: avoid unnecessary shell re-exec
68268         * tests/init.sh: Improve the re-exec-required check to first test the
68269         current shell.  If it passes the test, do not search for a shell that
68270         does pass, and do not re-exec.  This test is particularly contorted to
68271         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68272         of $(...) evokes a syntax error and causes immediate shell exit with
68273         status 2.  Bruno Haible reported that the re-exec made it impossible
68274         to single-step through any init.sh-using script.
68276 2010-05-16  Bruno Haible  <bruno@clisp.org>
68278         Fix collision between gnulib's and libintl's printf replacements.
68279         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68280         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68281         (printf): When using GNU C, map the __printf__ function to rpl_printf
68282         via __asm__. When not using GNU C, define rpl_printf instead of
68283         __printf__.
68284         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68285         commit.
68286         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68287         commit.
68288         * m4/asm-underscore.m4: New file.
68289         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68290         * modules/stdio (Files): Add m4/asm-underscore.m4.
68291         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68292         Reported by Ben Pfaff.
68294 2010-05-16  Bruno Haible  <bruno@clisp.org>
68296         verify: Avoid skipping the test on openSUSE 11.0.
68297         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68299 2010-05-13  Bruno Haible  <bruno@clisp.org>
68301         Avoid useless warnings from G++.
68302         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68303         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68304         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68306 2010-05-11  Jim Meyering  <meyering@redhat.com>
68308         maint.mk: tweak preceding change
68309         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68310         regexps tighter by anchoring at EOL, and make the new group "shy"
68311         for slightly decreased overhead.
68313 2010-05-11  Eric Blake  <eblake@redhat.com>
68315         maint.mk: gnulib doesn't guarantee NSIG
68316         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68318 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68320         test-pwrite.c: Remove unused variable declaration.
68321         * tests/test-pwrite.c (main): Remove read_buf declaration.
68323         Remove useless test-pwrite.sh file.
68324         * tests/test-pwrite.sh: Delete file.
68325         * modules/pwrite-tests: Remove references.
68326         Reported by Bruno Haible.
68328 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68330         init.sh: fix a typo
68331         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68333 2010-05-10  Jim Meyering  <meyering@redhat.com>
68335         maint.mk: avoid using a temporary file in the always-defined-macros check
68336         * top/maint.mk (.re-defmac): Remove rule.
68337         (gl_trap_): Remove definition.
68338         (sc_prohibit_always-defined_macros): Rewrite not to create and
68339         depend on a temporary file.  Instead, depend on GNU grep's ability
68340         to read a list of regular expressions from stdin when given "-f -".
68342 2010-05-09  Bruno Haible  <bruno@clisp.org>
68344         Update to GNU gettext 0.18, part 1.
68345         * m4/gettext.m4: Update to GNU gettext 0.18.
68346         * m4/intl.m4: Likewise.
68347         * m4/po.m4: Likewise.
68348         * modules/gettext (Files): Add m4/fcntl-o.m4.
68349         (configure.ac): Require gettext infrastructure from version 0.18.
68351 2010-05-09  Jim Meyering  <meyering@redhat.com>
68353         init.sh: enable MALLOC_PERTURB_
68354         * tests/init.sh: Enable glibc's malloc-perturbing option.
68356         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68357         With my recent change in init.sh from the two-line form:
68358             -#   : ${srcdir=.}
68359             -#   . "$srcdir/init.sh"; path_prepend_ .
68360             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68361         I noticed that using the one-line form would cause this test
68362         to fail with a false-positive, or to stop working altogether,
68363         depending on whether help-version changed or all the tests did.
68364         * top/maint.mk (_hv_regex): Remove this definition.
68365         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68366         (_hv_regex_strong): Use a stronger regex to check for conformance.
68367         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68368         Give a separate diagnostic for lack of conforming use.
68370         maint.mk: prohibit definition of symbols defined by gnulib
68371         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68372         definition of symbols defined by gnulib.
68374 2010-05-09  Bruno Haible  <bruno@clisp.org>
68376         acl: Avoid test failure on Cygwin-hosted mingw.
68377         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68379 2010-05-09  Bruno Haible  <bruno@clisp.org>
68381         error: Use system's fcntl function.
68382         * lib/error.c (fcntl): Undefine.
68384 2010-05-09  Jim Meyering  <meyering@redhat.com>
68386         verify: adjust formatting to be more consistent
68387         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68388         argument-list '('s, and after one comma.
68390 2010-05-09  Bruno Haible  <bruno@clisp.org>
68392         error: More reliable output on mingw.
68393         * lib/error.c: Include <windows.h>.
68394         (is_open): New function.
68395         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68396         defined.
68398 2010-05-09  Bruno Haible  <bruno@clisp.org>
68400         vasnprintf: Fix syntax errors in libintl build on mingw.
68401         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68402         pad_ourselves and prec_ourselves after use.
68404 2010-05-08  Bruno Haible  <bruno@clisp.org>
68406         * lib/config.charset: Update comments for Cygwin 1.7.
68407         * lib/localcharset.c: Likewise.
68409 2010-05-07  Jim Meyering  <meyering@redhat.com>
68411         init.sh: improve comments
68412         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68413         . "${srcdir=.}/init.sh"; path_prepend_ .
68414         Add a note about path_prepend_ and the alternative of using
68415         TESTS_ENVIRONMENT.
68417 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68419         exclude: Unescape hashed patterns in wildcard mode.
68420         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68421         to the hash list.
68422         * tests/test-exclude8.sh: New test case.
68423         * modules/exclude-tests: Add new test.
68425 2010-05-05  Eric Blake  <eblake@redhat.com>
68427         verify: automate tests
68428         * modules/verify-tests: New module.
68429         * tests/test-verify.sh: New file.
68430         * tests/test-verify.c: Guard each negative test with a unique id.
68431         Also avoid warning about unused left hand of comma expressions.
68433 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68435         Further improvements to verify.h, suggested by Eric Blake.
68436         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68437         the GL_* versions, to avoid collision with OpenGL.
68438         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68439         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68440         than testing merely whether it's defined.
68442         Modify verify.h to pacify gcc -Wredundant_decls.
68443         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68444         These use the prefix "GL_" since they're likely to be useful elsewhere.
68445         We may need to break them out into a different .h file.
68446         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68447         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68448         of verify_function__.
68450 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68452         Tests for module pwrite.
68453         * modules/pwrite-tests: New file.
68454         * tests/test-pwrite.sh: New file.
68455         * tests/test-pwrite.c: New file.
68457         New module pwrite.
68458         * lib/unistd.in.h (pwrite): New declaration.
68459         * lib/pwrite.c: New file, from glibc with modifications.
68460         * m4/pwrite.m4: New file.
68461         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68462         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68463         REPLACE_PWRITE.
68464         * modules/pwrite: New file.
68465         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68466         REPLACE_PWRITE.
68467         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68468         * doc/posix-functions/pwrite.texi: Mention the new module.
68470 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68472         pread: Update documentation.
68473         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68475 2010-05-04  Eric Blake  <eblake@redhat.com>
68477         docs: update cygwin progress
68478         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68479         this bug.
68480         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68481         Added in cygwin 1.7.2.
68482         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68483         Likewise.
68484         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68485         Likewise.
68486         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68487         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68488         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68489         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68490         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68491         Mention nproc module.
68492         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68493         bug in cygwin 1.7.5 addition.
68494         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68495         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68496         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68497         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68498         1.7.5.
68499         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68500         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68501         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68502         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68503         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68504         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68505         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68506         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68507         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68508         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68509         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68510         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68511         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68512         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68513         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68514         Likewise.
68515         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68516         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68517         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68518         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68519         Likewise.
68520         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68521         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68522         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68523         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68524         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68525         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68526         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68527         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68528         Likewise.
68529         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68530         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68531         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68532         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68533         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68534         Likewise.
68535         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68536         Likewise.
68537         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68538         Likewise.
68539         * doc/glibc-functions/xdrrec_endofrecord.texi
68540         (xdrrec_endofrecord): Likewise.
68541         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68542         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68543         Likewise.
68544         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68545         Likewise.
68547 2010-05-04  Jim Meyering  <meyering@redhat.com>
68549         gendocs.sh: make its "-s FILE" option more useful
68550         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68551         $PACKAGE to reflect the probably-different basename of "FILE".
68553 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68555         bootstrap: don't ignore download_po_files failure
68556         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68557         failure.
68559 2010-05-03  Jim Meyering  <meyering@redhat.com>
68561         maint.mk: allow to pass options to gendocs.sh
68562         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68563         (gendocs_options_): New overridable variable.
68565         gnu-web-doc-update: don't ignore configure or build failure
68566         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68568         announce-gen: backslash-escape '@'s in --help output
68569         * build-aux/announce-gen: Fix syntax errors.
68571         maint.mk, announce-gen: allow project-specific announcement mail headers
68572         * top/maint.mk (translation_project_): Define default.
68573         (announcement_Cc_, announcement_mail_headers_): Likewise.
68574         (announcement): Invoke announce-gen with new --mail-headers option.
68575         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68577         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68578         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68579         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68580         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68581         line in the "err2" output file when running "make check" in verbose
68582         mode (i.e., with set -x enabled).
68584 2010-05-03  Bruno Haible  <bruno@clisp.org>
68586         wctob: Fix for weird platforms.
68587         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68588         argument value.
68590 2010-05-03  Jim Meyering  <meyering@redhat.com>
68592         maint.mk: prohibit unwarranted use of <strings.h>
68593         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68594         strings.h in a file that does not also use strcasecmp, strncasecmp,
68595         ffs or ffsll.
68597         maint.mk: remove obsolete comments
68598         * top/maint.mk: Remove stale, commented-out rules.
68600 2010-05-02  Bruno Haible  <bruno@clisp.org>
68602         wcwidth: Declare also when it's aliased.
68603         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68604         macro.
68606 2010-05-02  Bruno Haible  <bruno@clisp.org>
68608         Fix regression from 2010-04-25.
68609         * gnulib-tool (func_modules_transitive_closure): Check the status of
68610         all modules, not only of the tests that are of the form foo-tests where
68611         foo is a module.
68613 2010-05-02  Bruno Haible  <bruno@clisp.org>
68615         wctob: Work around nasty Cygwin 1.7.2 bug.
68616         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68617         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68619 2010-05-01  Bruno Haible  <bruno@clisp.org>
68621         fpurge: Sharper test.
68622         * tests/test-fpurge.c (main): Add one more ftell check.
68623         * modules/fpurge-tests (Depends-on): Add ftell.
68624         Suggested by Eric Blake.
68626 2010-05-01  Bruno Haible  <bruno@clisp.org>
68628         ftello: Another test.
68629         * tests/test-ftello3.c: New file.
68630         * modules/ftello-tests (Files): Add it.
68631         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68632         MOSTLYCLEANFILES.
68634         ftell: Another test.
68635         * tests/test-ftell3.c: New file.
68636         * modules/ftell-tests (Files): Add it.
68637         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68638         MOSTLYCLEANFILES.
68640 2010-05-01  Bruno Haible  <bruno@clisp.org>
68642         ftell, ftello: Work around Solaris bug.
68643         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68644         * lib/ftello.c: Include stdio-impl.h.
68645         (ftello): On Solaris, when _IOWRT is set, compute the result without
68646         looking at _IOREAD.
68647         * modules/ftello (Files): Add lib/stdio-impl.h.
68648         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68649         * doc/posix-functions/ftello.texi: Likewise.
68650         Reported by Eric Blake.
68652 2010-05-01  Bruno Haible  <bruno@clisp.org>
68654         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68655         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68656         the _IOWRT flag is also set.
68658 2010-05-01  Bruno Haible  <bruno@clisp.org>
68660         Fix doc about a HP-UX stdio bug.
68661         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68662         * doc/posix-functions/ftello.texi: Likewise.
68664 2010-05-01  Bruno Haible  <bruno@clisp.org>
68666         lseek test: Fix failure on Solaris.
68667         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68668         output.
68670 2010-04-30  Jim Meyering  <meyering@redhat.com>
68672         bootstrap: don't ignore failure to generate po*/Makevars
68673         * build-aux/bootstrap (with_gettext): Don't ignore failure
68674         to create po/Makevars or runtime-po/Makevars.
68676 2010-04-29  Eric Blake  <eblake@redhat.com>
68678         headers: relax license to LGPLv2+
68679         * modules/fcntl-h (License): Relax license.
68680         * modules/getopt-posix (License): Likewise.
68681         * modules/locale (License): Likewise.
68682         * modules/math (License): Likewise.
68683         * modules/pty (License): Likewise.
68684         * modules/sched (License): Likewise.
68685         * modules/search (License): Likewise.
68686         * modules/spawn (License): Likewise.
68687         * modules/stdarg (License): Likewise.
68688         * modules/sysexits (License): Likewise.
68690 2010-04-29  Jim Meyering  <meyering@redhat.com>
68692         inttypes: relax license to LGPLv2+
68693         * modules/inttypes (License): Relax license.
68695 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68697         * top/maint.mk (indent): Run twice to produce idempotent results.
68699 2010-04-28  Bruno Haible  <bruno@clisp.org>
68701         getdate: Generate getdate.c in the source directory.
68702         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68703         MOSTLYCLEANFILES.
68704         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68706 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68708         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68709         is not declared as a const *; avoid warnings in that case.
68711 2010-04-28  Eric Blake  <eblake@redhat.com>
68713         canonicalize-lgpl: avoid compiler warning
68714         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68715         declaration' / 'extraneous semicolon' warning with some compilers.
68716         Reported by Andreas Gruenbacher.
68718 2010-04-28  Jim Meyering  <meyering@redhat.com>
68720         init.sh: ensure a more reliable exit status when exiting via trap
68721         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68722         Inspired by patches from Dmitry V. Levin.
68723         Also trap on signal 3 (SIGQUIT).
68725 2010-04-27  Bruno Haible  <bruno@clisp.org>
68727         Update doc about utimes().
68728         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68729         'utimens' module.
68730         Reported by Andreas Gruenbacher <agruen@suse.de>.
68732 2010-04-27  Eric Blake  <eblake@redhat.com>
68734         full-read, full-write: relax license
68735         * modules/full-read (License): Drop to LGPLv2+.
68736         * modules/full-write (License): Likewise.
68737         * modules/safe-read (License): Likewise.
68738         * modules/safe-write (License): Likewise.
68740         pthread: mention library for linking
68741         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68743 2010-04-27  Jim Meyering  <meyering@redhat.com>
68745         maint.mk: fix a bug introduced in last change
68746         * top/maint.mk (gl_assured_headers_): Now that all names are on
68747         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68748         is not anchored to end of word, it should be adequate.
68750         maint.mk: avoid side-effect in latest syntax-check
68751         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68752         to run commands via $(shell...), and hence to incur cost only when
68753         the new rule is actually run.
68755         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68756         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68757         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68758         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68759         (gl_assured_headers_, az_, AZ_): Define.
68760         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68762 2010-04-26  Jim Meyering  <jim@meyering.net>
68763             Bruno Haible  <bruno@clisp.org>
68765         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68766         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68767         Prompted by an exchange with Gilles Espinasse.
68769 2010-04-26  Jim Meyering  <meyering@redhat.com>
68771         git-version-gen: aesthetic tweak
68772         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68773         so that the command remains on a single line.
68775 2010-04-26  Eric Blake  <eblake@redhat.com>
68777         git-version-gen: allow use on EBCDIC hosts
68778         * build-aux/git-version-gen (dirty): Use literal rather than tying
68779         ourselves to ascii.
68780         Reported by Steve Goetze.
68782 2010-04-25  Bruno Haible  <bruno@clisp.org>
68784         netdb: Add support for GNULIB_POSIXCHECK.
68785         * lib/netdb.in.h: Include warn-on-use.h.
68786         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68787         functions are used when GNULIB_POSIXCHECK is defined and the
68788         getaddrinfo module is not in use.
68789         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68790         freeaddrinfo, gai_strerror, getnameinfo are declared.
68791         * modules/netdb (Depends-on): Add warn-on-use.
68792         (Makefile.am): Include warn-on-use.h in netdb.h.
68794 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68796         build: avoid "make check" failure without .git/ directory
68797         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68798         there is no .git/ directory.
68800 2010-04-25  Bruno Haible  <bruno@clisp.org>
68802         ptsname: Fix misuse of ttyname_r.
68803         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68804         of errno.
68806 2010-04-25  Bruno Haible  <bruno@clisp.org>
68808         ttyname_r: Make it work on Solaris 10.
68809         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68810         if the system function has the POSIX declaration. Test whether the
68811         function fails if the buffer is less than 128 bytes large.
68812         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68813         system's ttyname_r function. Provide a reasonably large buffer.
68814         * modules/ttyname_r (Depends-on): Add extensions.
68815         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68817 2010-04-25  Bruno Haible  <bruno@clisp.org>
68819         Use the 'extensions' module for some more functions on Solaris.
68820         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68821         module.
68822         * doc/posix-functions/ctime_r.texi: Likewise.
68823         * doc/posix-functions/getgrgid_r.texi: Likewise.
68824         * doc/posix-functions/getgrnam_r.texi: Likewise.
68825         * doc/posix-functions/getpwnam_r.texi: Likewise.
68826         * doc/posix-functions/getpwuid_r.texi: Likewise.
68827         * doc/posix-functions/readdir_r.texi: Likewise.
68828         * doc/posix-functions/sigwait.texi: Likewise.
68829         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68830         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68832 2010-04-25  Bruno Haible  <bruno@clisp.org>
68834         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68835         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68836         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68837         * lib/ttyname_r.c: Include <limits.h>.
68838         (ttyname_r): Define using the system's ttyname_r function, if it exists
68839         and not on Solaris.
68840         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68841         set.
68842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68843         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68844         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68845         Reported by Simon Josefsson.
68847 2010-04-25  Bruno Haible  <bruno@clisp.org>
68849         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68850         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68851         * doc/posix-functions/ctime_r.texi: Likewise.
68852         * doc/posix-functions/getgrgid_r.texi: Likewise.
68853         * doc/posix-functions/getgrnam_r.texi: Likewise.
68854         * doc/posix-functions/getlogin_r.texi: Likewise.
68855         * doc/posix-functions/getpwnam_r.texi: Likewise.
68856         * doc/posix-functions/getpwuid_r.texi: Likewise.
68857         * doc/posix-functions/readdir_r.texi: Likewise.
68858         * doc/posix-functions/sigwait.texi: Likewise.
68859         * doc/posix-functions/ttyname_r.texi: Likewise.
68860         Reported by Simon Josefsson.
68862 2010-04-25  Bruno Haible  <bruno@clisp.org>
68864         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68865         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68866         also to --create-testdir.
68867         (func_acceptable): Don't consider the status of *-tests modules here.
68868         (func_modules_transitive_closure): Consider it here, before including a
68869         test module.
68870         (func_import, func_create_testdir): Set inc_all_direct_tests,
68871         inc_all_indirect_tests.
68872         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68873         --create-testdir and --create-megatestdir.
68875 2010-04-25  Bruno Haible  <bruno@clisp.org>
68877         gnulib-tool: Add --without-*-tests options.
68878         * gnulib-tool (func_usage): Document the --without-*-tests options.
68879         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68880         excl_unportable_tests): New variables.
68881         Fail if they are specified with --import or --update.
68882         (func_acceptable): Respect the excl_*_tests variables.
68883         (func_import): Set the excl_*_tests variables to empty.
68885 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68886             Bruno Haible  <bruno@clisp.org>
68888         Work around a MacOS X 10.4 bug with openpty.
68889         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68890         * tests/test-openpty.c (main): Close the master side explicitly.
68892 2010-04-25  Bruno Haible  <bruno@clisp.org>
68894         strnlen: Fix a C++ test error on MacOS X and Solaris.
68895         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68896         the function is not declared.
68897         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68898         Simon Josefsson.
68900 2010-04-24  Bruno Haible  <bruno@clisp.org>
68902         Avoid a gcc warning.
68903         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68904         of correct type for %08lx directive.
68905         Reported by Eric Blake.
68907 2010-04-24  Bruno Haible  <bruno@clisp.org>
68909         vasnprintf: Correct errno value in case of out-of-memory.
68910         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68911         or sprintf. Use the errno value from SNPRINTF or sprintf.
68912         Reported by Ian Beckwith <ianb@erislabs.net>.
68914 2010-04-24  Bruno Haible  <bruno@clisp.org>
68916         ansi-c++-opt: Find correct compiler when cross-compiling.
68917         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68918         AC_CHECK_PROGS.
68919         Reported by Simon Josefsson.
68921 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68923         vc-list-files: Add support for subversion
68924         * build-aux/vc-list-files: Use "svn list" to generate the list of
68925         files controlled by subversion.
68927 2010-04-23  Jim Meyering  <meyering@redhat.com>
68929         vc-list-files tests: convert to use init.sh
68930         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68931         path_prepend_.
68932         Use Exit, not exit.
68933         Use skip_ rather than open coding it.
68934         Remove trap set-up and compare definitions.
68935         * tests/test-vc-list-files-git.sh: Likewise.
68936         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68938 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68940         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68941         backup files.
68943 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68945         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68947 2010-04-20  Eric Blake  <eblake@redhat.com>
68949         tests: be robust to ignored SIGPIPE
68950         * tests/test-select-in.sh: Consume all output.
68951         * tests/test-lseek.sh: Check correct exit status, while avoiding
68952         EPIPE.
68954 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68955             Bruno Haible  <bruno@clisp.org>
68957         visibility: Don't use -fvisibility if it leads to a warning.
68958         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68959         yes, don't pretend that visibility works if it leads to a warning.
68960         Reported by Mike Gran <spk121@yahoo.com>.
68962 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68964         * build-aux/bootstrap: Use "git -h" for testing for supported options
68965         instead of "git --help".  The short-form option only shows a summary,
68966         and doesn't layout the full man page.  Grep for the full option name
68967         in the summary, too.
68969 2010-04-19  Bruno Haible  <bruno@clisp.org>
68971         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68972         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68973         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68974         mention of RELOCATABLE_STRIP.
68975         Reported by Sylvain Beucler <beuc@beuc.net>.
68977 2010-04-19  Bruno Haible  <bruno@clisp.org>
68979         * lib/diffseq.h: Fix typo in comment.
68980         Reported by Eric Blake.
68982 2010-04-19  Bruno Haible  <bruno@clisp.org>
68984         ioctl: Move autoconf macro to a .m4 file.
68985         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68986         * modules/ioctl (Files): Add it.
68987         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68988         Reported by Ian Beckwith <ianb@erislabs.net>.
68990 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68991             Bruno Haible  <bruno@clisp.org>
68993         diffseq: Accommodate use-case with abstract arrays.
68994         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68995         is not defined.
68996         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68997         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68999 2010-04-18  Bruno Haible  <bruno@clisp.org>
69001         * doc/posix-headers/stdbool.texi: More precise wording.
69003 2010-04-17  Jim Meyering  <meyering@redhat.com>
69005         maint.mk: use gnu-style indentation in an embedded perl script
69006         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69007         Rename variable: s/two/last_two_bytes/
69009 2010-04-16  Eric Blake  <eblake@redhat.com>
69011         test-stdbool: skip test that fails with Solaris CC
69012         * tests/test-stdbool.c (f): Skip test that causes compilation
69013         error under buggy C++ compiler.
69014         * lib/stdbool.in.h: Document the limitation.
69015         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69017         setenv: allow compilation with C++
69018         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69019         register keyword.
69021         stdint: allow test to pass with C++
69022         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69024         getopt: allow compilation with C++
69025         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69026         struct.
69027         * lib/getopt.c (_getopt_internal_r): Use correct type.
69028         Reported by Dagobert Michelson, via Joel E. Denny.
69030 2010-04-16  Bruno Haible  <bruno@clisp.org>
69032         Override netdb.h always.
69033         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69034         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69035         Reported by Ludovic Courtès <ludo@gnu.org>.
69037 2010-04-15  Bruno Haible  <bruno@clisp.org>
69039         openpty: Fix mistake from 2010-03-21.
69040         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69041         Reported by Simon Josefsson.
69043 2010-04-15  Eric Blake  <eblake@redhat.com>
69045         test-forkpty: fix expected signature
69046         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69047         Reported by Simon Josefsson.
69049 2010-04-15  Jim Meyering  <meyering@redhat.com>
69051         maint.mk: texinfo_suffix_re_: correct the default regexp
69052         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69054         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69055         make it configurable via texinfo_suffix_re_.
69057 2010-04-14  Eric Blake  <eblake@redhat.com>
69059         strtok_r: relax license to LGPLv2+
69060         * modules/strtok_r (License): Relax license.
69061         Reported by Matthias Bolte.
69063 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69065         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69066         version 1.4.4 by default instead of requiring the libgcrypt
69067         version used during build.  This makes it possible to use the
69068         application with older but still binary compatible libgcrypt
69069         versions.
69071 2010-04-13  Eric Blake  <eblake@redhat.com>
69073         getopt-gnu: match recent glibc fixes and posix ruling
69074         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69075         '+' handling, when requesting extensions.
69076         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69077         'W;' handling.
69078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69079         * doc/posix-functions/getopt.texi (getopt): Document this.
69080         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69081         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69082         Likewise.
69084         getopt: merge bug fixes from glibc
69085         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69086         diagnostics.  Honor '+:' correctly.  Reject ';'.
69088         getopt-posix: detect MacOS bug
69089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69090         optind when missing a required argument.
69091         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69092         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69093         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69094         Likewise.
69096         getopt-posix: avoid spurious failure on Solaris
69097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69098         an indicator that setting optind=1 is sufficient for reset.
69100         getopt-posix: avoid spurious failure on FreeBSD
69101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69102         in POSIX mode, since the m4 test uses it.
69104         gnulib-tool: silence warning on BSD sh
69105         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69107 2010-04-13  Jim Meyering  <meyering@redhat.com>
69109         doc: users.txt: GNU patch now uses gnulib
69110         * users.txt: Add patch.
69112 2010-04-12  Jim Meyering  <meyering@redhat.com>
69114         maint.mk: generate more concise timing data for syntax-check rules
69115         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69116         " done" from each line that reports a syntax-check test duration.
69118 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69120         git-version-gen: use "git update-index..." rather than "git status"
69121         * build-aux/git-version-gen: Use git update-index --refresh, not
69122         "git status".  With some versions of git, "git status" would fail
69123         to update the index and result in an unwarranted "-dirty" suffix.
69125 2010-04-11  Jim Meyering  <meyering@redhat.com>
69127         openat: correct formatting (no semantic change)
69128         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69129         Suggested by Bruno Haible.
69131 2010-04-11  Bruno Haible  <bruno@clisp.org>
69133         Stricter declaration checking in testdirs.
69134         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69135         If for_tests is true, augment AM_CPPFLAGS to define
69136         GNULIB_STRICT_CHECKING.
69137         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69138         GNULIB_STRICT_CHECKING is defined, verify that the function is
69139         declared.
69141 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69142             Bruno Haible  <bruno@clisp.org>
69144         libunistring: Improve configure output.
69145         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69146         Don't say "consider installing GNU libunistring" when checking again
69147         with libiconv.
69149 2010-04-11  Bruno Haible  <bruno@clisp.org>
69151         libunistring: Correct value of $LTLIBUNISTRING.
69152         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69153         correct the value of $LTLIBUNISTRING.
69155 2010-04-11  Bruno Haible  <bruno@clisp.org>
69157         havelib: Add static libraries to LIBS in the right order.
69158         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69159         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69161 2010-04-11  Bruno Haible  <bruno@clisp.org>
69163         libunistring: Detect libunistring also when it depends on libiconv.
69164         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69165         the second AC_LIB_HAVE_LINKFLAGS invocation.
69167 2010-04-11  James Youngman  <jay@gnu.org>
69169         close-stream: declare local scalars to be "const"
69170         * lib/close-stream.c (close_stream): Make boolean variables const
69171         to document the fact that we set but do not change them.
69173 2010-04-11  Bruno Haible  <bruno@clisp.org>
69175         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69177 2010-04-11  Jim Meyering  <meyering@redhat.com>
69179         maint.mk: don't include dist-check.mk
69180         * top/maint.mk: Remove bogus include directive.
69182         maint.mk: improve empty-line-at-EOF check
69183         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69184         solution, rather than tail+Perl-based one.  The latter would read
69185         a few kilobytes from the end of each file, and did not handle empty
69186         files properly.
69188         maint.mk: print the elapsed time for each syntax-check rule
69189         * top/maint.mk (sc_m_rules_): Save start time in a file.
69190         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69191         (local-check): Interpose the .z rules
69193 2010-04-11  Jim Meyering  <meyering@redhat.com>
69195         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69196         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69197         empty file with one that ends in an empty line.
69199 2010-04-10  Bruno Haible  <bruno@clisp.org>
69201         mkdir: Make it work on mingw64.
69202         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69203         * lib/mkdir.c: Update comment.
69204         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69206 2010-04-10  Bruno Haible  <bruno@clisp.org>
69208         Don't override improved macro from newer autoconf.
69209         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69210         autoconf >= 2.62.
69211         Reported by Joel E. Denny <jdenny@clemson.edu>.
69213 2010-04-10  Jim Meyering  <meyering@redhat.com>
69215         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69216         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69218         maint.mk: correct a diagnostic
69219         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69220         in diagnostic; now use $prohibit.
69222 2010-04-10  Bruno Haible  <address@hidden>
69224         fchownat: Fix a C++ test error on Solaris 8.
69225         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69226         the function does not exist.
69228 2010-04-10  Bruno Haible  <bruno@clisp.org>
69230         vasnprintf: Add more tests.
69231         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69232         (test_function): Test converting an invalid wide string.
69234         vasnprintf: Correct handling of unconvertible wide string arguments.
69235         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69236         VASNPRINTF.
69237         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69238         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69239         smaller than the expected maximum need for the directive. Set errno to
69240         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69241         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69243         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69244         * modules/vasnprintf (Files): Add m4/printf.m4.
69245         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69247 2010-04-10  Bruno Haible  <bruno@clisp.org>
69249         vasnprintf: Fix crash in %ls directive.
69250         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69251         string is passed as argument to %ls, with no precision and no width.
69252         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69254 2010-04-10  Bruno Haible  <bruno@clisp.org>
69256         vasnprintf: Fix multiple test failures on mingw.
69257         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69258         _snprintf, or snwprintf, not _snwprintf.
69260 2010-04-10  Bruno Haible  <bruno@clisp.org>
69262         write: Fix a C++ test error on mingw.
69263         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69265 2010-04-10  Bruno Haible  <bruno@clisp.org>
69267         vasnprintf test: Reduce code duplication.
69268         * tests/test-vasnprintf.c (test_function): New function, extracted from
69269         test_vasnprintf.
69270         (test_vasnprintf, test_asnprintf): Invoke it.
69272 2010-04-10  Bruno Haible  <bruno@clisp.org>
69274         strnlen: Fix warning in C++ mode on MacOS X.
69275         * lib/string.in.h (strnlen): Use the modern idiom.
69276         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69277         defining strnlen as a macro already in <config.h>.
69278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69279         REPLACE_STRNLEN.
69280         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69281         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69283 2010-04-08  James Youngman  <jay@gnu.org>
69285         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69286         the example.
69288 2010-04-09  Jim Meyering  <meyering@redhat.com>
69290         maint.mk: print better diagnostic when there is no $(_hv_file)
69291         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69292         announce that when $(_hv_file) (aka help-version) does not exist.
69294         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69295         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69296         not try to interpret its random input bytes.  Jarno Rajahalme reported
69297         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69298         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69299         (mktempd_): Likewise, just in case.
69301         ftruncate: add two years to projected module removal date: 2012
69302         * m4/ftruncate.m4: Adjust comments.
69304         ftruncate: mark module as obsolete; even MinGW provides it, now
69305         * modules/ftruncate (Status): Obsolete.
69306         (Notice): Say that.
69307         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69310 2010-04-08  Bruno Haible  <bruno@clisp.org>
69312         Fix side effects from tests-related modules.
69313         * modules/dprintf-posix (Comment): New section.
69314         * modules/fprintf-posix (Comment): Likewise.
69315         * modules/obstack-printf-posix (Comment): Likewise.
69316         * modules/printf-posix (Comment): Likewise.
69317         * modules/snprintf-posix (Comment): Likewise.
69318         * modules/sprintf-posix (Comment): Likewise.
69319         * modules/vasnprintf-posix (Comment): Likewise.
69320         * modules/vasprintf-posix (Comment): Likewise.
69321         * modules/vdprintf-posix (Comment): Likewise.
69322         * modules/vfprintf-posix (Comment): Likewise.
69323         * modules/vprintf-posix (Comment): Likewise.
69324         * modules/vsnprintf-posix (Comment): Likewise.
69325         * modules/vsprintf-posix (Comment): Likewise.
69326         * modules/xprintf-posix (Comment): Likewise.
69327         * modules/xvasprintf-posix (Comment): Likewise.
69328         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69329         * modules/floorf-tests (Depends-on): Likewise.
69330         * modules/round-tests (Depends-on): Likewise.
69331         * modules/roundf-tests (Depends-on): Likewise.
69332         * modules/trunc-tests (Depends-on): Likewise.
69333         * modules/truncf-tests (Depends-on): Likewise.
69334         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69335         'fprintf-posix' module is not present.
69336         * tests/test-floorf2.c (check): Likewise.
69337         * tests/test-trunc2.c (check): Likewise.
69338         * tests/test-truncf2.c (check): Likewise.
69339         * tests/test-round2.c (equal): Likewise.
69340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69342 2010-04-07  Karl Berry  <karl@gnu.org>
69344         * config/srclist.txt,
69345         * config/srclistvars.sh,
69346         * config/srclist-update: doc fixes.
69348 2010-04-07  Jim Meyering  <meyering@redhat.com>
69350         maint.mk: add a PATH crosschecking syntax-check rule
69351         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69352         Useful if you use a test like the one in help-version (coreutils,
69353         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69354         printed by prog --version.
69356 2010-04-06  Bruno Haible  <bruno@clisp.org>
69358         Fix link error on mingw.
69359         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69360         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69362 2010-04-06  Bruno Haible  <bruno@clisp.org>
69364         Assume rmdir exists.
69365         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69367 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69369         doc: update users.txt
69370         * users.txt: Add gcal.
69372 2010-04-06  Jim Meyering  <meyering@redhat.com>
69374         init.sh: simply unset TMPDIR rather than risking env -i
69375         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69376         although it probably works fine on all Unix-based systems, some
69377         systems (Cygwin?) cannot tolerate a totally cleared environment.
69378         Suggestion from Eric Blake.
69380 2010-04-06  Jim Meyering  <meyering@redhat.com>
69382         init.sh: portability fix: use env's POSIX-specified -i option not -u
69383         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69384         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69386 2010-04-05  Bruno Haible  <bruno@clisp.org>
69388         btowc: Work around Cygwin 1.7.2 bug.
69389         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69390         does not map NUL to 0.
69391         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69393 2010-04-05  Bruno Haible  <bruno@clisp.org>
69395         Make the multithread modules work on Cygwin 1.7.2.
69396         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69397         imported symbols can be declared weak, so that it returns "no" on
69398         Cygwin 1.7.2.
69400 2010-04-05  Bruno Haible  <bruno@clisp.org>
69402         Use the module 'strncat'.
69403         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69405         Tests for module 'strncat'.
69406         * modules/strncat-tests: New file.
69407         * tests/test-strncat.c: New file.
69409         New module 'strncat'.
69410         * lib/string.in.h (strncat): New declaration.
69411         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69412         * m4/strncat.m4: New file, based on m4/memchr.m4.
69413         * modules/strncat: New file.
69414         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69415         is declared.
69416         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69417         REPLACE_STRNCAT.
69418         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69419         REPLACE_STRNCAT.
69420         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69421         module.
69422         * tests/test-string-c++.cc: Check signature of strncat.
69424 2010-04-05  Jim Meyering  <meyering@redhat.com>
69426         xstrtoumax-tests: convert to use init.sh
69427         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69428         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69429         Use Exit, not exit.
69430         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69432         xstrtoimax-tests: convert to use init.sh
69433         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69434         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69435         Use Exit, not exit.
69436         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69438 2010-04-05  Bruno Haible  <bruno@clisp.org>
69440         sys_socket: Avoid #define replacements in C++ mode.
69441         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69442         warning to the function if possible, rather than #defining the symbol
69443         to a dysfunctional alias.
69445 2010-04-05  Bruno Haible  <bruno@clisp.org>
69447         fseeko: Fix C++ test error on mingw.
69448         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69449         gl_FUNC_FSEEKO.
69450         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69451         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69452         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69453         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69455 2010-04-05  Bruno Haible  <bruno@clisp.org>
69457         duplocale: Improve test output.
69458         * tests/test-duplocale.c (main): Print reason for skipped test.
69460 2010-04-05  Bruno Haible  <bruno@clisp.org>
69462         Assume rmdir exists.
69463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69464         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69466 2010-04-05  Bruno Haible  <bruno@clisp.org>
69468         Fix link error on Solaris 8 with cc.
69469         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69471 2010-04-05  Bruno Haible  <bruno@clisp.org>
69473         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69474         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69476 2010-04-05  Bruno Haible  <bruno@clisp.org>
69478         vasprintf: Update documentation.
69479         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69481 2010-04-05  Bruno Haible  <bruno@clisp.org>
69483         ptsname: Improve test.
69484         * tests/test-ptsname.c (main): Also try the various master names of BSD
69485         systems.
69487 2010-04-05  Bruno Haible  <bruno@clisp.org>
69489         memchr: Avoid a possible C++ test error.
69490         * lib/string.in.h (memchr): Provide declaration if function is missing.
69491         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69492         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69494         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69496 2010-04-05  Bruno Haible  <bruno@clisp.org>
69498         strtok_r: Improve idiom.
69499         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69500         AC_LIBOBJ is used.
69502 2010-04-05  Bruno Haible  <bruno@clisp.org>
69504         strdup: Improve idiom.
69505         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69506         AC_LIBOBJ is used.
69507         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69508         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69509         when AC_LIBOBJ is used.
69511 2010-04-05  Bruno Haible  <bruno@clisp.org>
69513         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69514         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69515         don't set REPLACE_MBSINIT to 1.
69516         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69517         don't set REPLACE_MBRTOWC to 1.
69518         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69519         exist, don't set REPLACE_MBSRTOWCS to 1.
69520         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69521         exist, don't set REPLACE_MBSNRTOWCS to 1.
69522         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69523         don't set REPLACE_WCRTOMB to 1.
69524         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69525         exist, don't set REPLACE_WCSRTOMBS to 1.
69526         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69527         exist, don't set REPLACE_WCSNRTOMBS to 1.
69529 2010-04-05  Bruno Haible  <bruno@clisp.org>
69531         ldexpl: Improve idiom.
69532         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69533         make sure to set HAVE_DECL_LDEXPL to 0.
69535 2010-04-05  Jim Meyering  <meyering@redhat.com>
69537         xstrtol-tests: convert to use init.sh
69538         * modules/xstrtol-tests (Files): Add tests/init.sh.
69539         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69540         Use Exit, not exit.
69541         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69543         atexit-tests: convert to use init.sh
69544         * modules/atexit-tests (Files): Add tests/init.sh.
69545         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69546         Use Exit, not exit.
69547         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69549         init.sh: fix typo
69550         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69552         init.sh: make it easier for a test script to write to the tty, ...
69553         when using automake's parallel-tests mode.
69554         * tests/init.sh (stderr_fileno_): Define overridable variable.
69555         (warn_): New function, to use it.
69556         (fail_, skip_, framework_failure_): Use warn_.
69558 2010-04-04  Bruno Haible  <bruno@clisp.org>
69560         btowc: Avoid warning.
69561         * lib/btowc.c: Include <stdlib.h>.
69562         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69564 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69565             Bruno Haible  <bruno@clisp.org>
69567         wchar: Port to NetBSD 1.5.
69568         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69569         * lib/wctype.in.h (WEOF): Likewise.
69571 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69572             Bruno Haible  <bruno@clisp.org>
69574         Port extended stdio to NetBSD 1.5.
69575         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69576         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69577         older.
69579 2010-04-04  Bruno Haible  <bruno@clisp.org>
69581         string: Remove unused substitution.
69582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69583         HAVE_DECL_STRERROR.
69584         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69586 2010-04-04  Bruno Haible  <bruno@clisp.org>
69588         strtod: Avoid a possible C++ test error.
69589         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69590         set REPLACE_STRTOD.
69592 2010-04-04  Bruno Haible  <bruno@clisp.org>
69594         strerror: Update documentation.
69595         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69597 2010-04-04  Bruno Haible  <bruno@clisp.org>
69599         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69600         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69601         _GL_CXXALIAS_SYS_CAST.
69603 2010-04-04  Bruno Haible  <bruno@clisp.org>
69605         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69606         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69607         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69608         REPLACE_FREXPL to 1.
69609         * doc/posix-functions/frexpl.texi: Update documentation.
69611 2010-04-04  Bruno Haible  <bruno@clisp.org>
69613         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69614         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69616 2010-04-04  Bruno Haible  <bruno@clisp.org>
69618         Implement nanosleep for native Windows.
69619         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69621 2010-04-04  Bruno Haible  <bruno@clisp.org>
69623         math: Fix some C++ test errors on Solaris 8.
69624         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69626 2010-04-04  Bruno Haible  <bruno@clisp.org>
69628         math: Fix some C++ test errors on Cygwin.
69629         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69630         truncl): Provide declaration if the system does not have it.
69631         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69632         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69633         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69634         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69635         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69636         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69637         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69638         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69639         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69640         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69641         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69642         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69643         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69644         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69645         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69646         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69648         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69649         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69650         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69651         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69652         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69654 2010-04-04  Bruno Haible  <bruno@clisp.org>
69656         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69657         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69658         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69659         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69660         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69661         * m4/isinf.m4 (gl_ISINF): Likewise.
69662         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69664 2010-04-04  Bruno Haible  <bruno@clisp.org>
69666         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69667         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69669 2010-04-04  Bruno Haible  <bruno@clisp.org>
69671         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69672         * modules/tmpfile (configure.ac): Update.
69674         tmpfile: Fix C++ test error on mingw.
69675         * lib/stdio.in.h (tmpfile): New declaration.
69676         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69677         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69678         * modules/tmpfile (Depends-on): Add stdio.
69679         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69680         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69681         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69682         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69683         REPLACE_TMPFILE.
69684         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69686 2010-04-04  Bruno Haible  <bruno@clisp.org>
69688         ioctl: Fix C++ test error on mingw.
69689         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69690         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69691         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69693 2010-04-03  Bruno Haible  <bruno@clisp.org>
69695         wcwidth: Fix C++ test error on mingw.
69696         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69698         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69700 2010-04-03  Bruno Haible  <bruno@clisp.org>
69702         nanosleep: Fix C++ test error on mingw.
69703         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69704         * lib/time.in.h (nanosleep): Use modern idiom.
69705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69706         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69707         REPLACE_NANOSLEEP to 1.
69708         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69709         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69711 2010-04-03  Bruno Haible  <bruno@clisp.org>
69713         strptime: Fix C++ test error on mingw.
69714         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69715         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69716         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69717         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69718         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69719         not REPLACE_STRPTIME.
69720         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69721         REPLACE_STRPTIME.
69723 2010-04-03  Bruno Haible  <bruno@clisp.org>
69725         timegm: Fix C++ test error on mingw.
69726         * lib/time.in.h (timegm): Use modern idiom.
69727         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69728         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69729         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69730         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69732 2010-04-03  Bruno Haible  <bruno@clisp.org>
69734         timegm: Assume declaration if function exists.
69735         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69736         if it exists. Don't clobber ac_cv_func_timegm.
69738 2010-04-03  Bruno Haible  <bruno@clisp.org>
69740         time_r: Fix C++ test error on mingw.
69741         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69742         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69743         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69745         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69747 2010-04-03  Bruno Haible  <bruno@clisp.org>
69749         time_r: Minor updates.
69750         * modules/time_r (Description): Mention the provided functions.
69751         * lib/time_r.c: Don't include <string.h>.
69752         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69753         * doc/posix-functions/localtime_r.texi: Likewise.
69755 2010-04-03  Bruno Haible  <bruno@clisp.org>
69757         time: Fix regression introduced on 2010-03-08.
69758         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69759         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69761 2010-04-03  Jim Meyering  <meyering@redhat.com>
69763         maint.mk: don't silently disable project-specific syntax-check rules
69764         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69765         that they need to convert their project-specific syntax-check rules
69766         to use the new _sc_search_regexp.
69768 2010-04-03  Bruno Haible  <bruno@clisp.org>
69770         fchdir: Fix regression introduced on 2010-03-08.
69771         * lib/unistd.in.h (fchdir): Fix declaration.
69772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69774         REPLACE_FCHDIR.
69775         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69776         REPLACE_FCHDIR.
69778 2010-04-03  Bruno Haible  <bruno@clisp.org>
69780         getpagesize: Fix C++ test error on mingw.
69781         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69782         system does not declare the function.
69783         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69784         declared.
69785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69786         HAVE_DECL_GETPAGESIZE.
69787         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69789 2010-04-03  Bruno Haible  <bruno@clisp.org>
69791         stdio: Make C++ tests work on mingw.
69792         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69793         does not declare the function.
69795 2010-04-03  Bruno Haible  <bruno@clisp.org>
69797         ftello: Fix C++ test error on mingw.
69798         * lib/stdio.in.h (ftello): Use modern idiom.
69799         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69800         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69801         is missing and that it needs to be replaced.
69802         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69804         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69806 2010-04-03  Bruno Haible  <bruno@clisp.org>
69808         fseeko: Fix C++ test error on mingw.
69809         * lib/stdio.in.h (fseeko): Use modern idiom.
69810         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69811         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69812         is missing and that it needs to be replaced.
69813         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69815         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69817 2010-04-03  Bruno Haible  <bruno@clisp.org>
69819         mkstemp: Fix C++ test error on mingw.
69820         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69822         function is missing and that it needs to be replaced.
69823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69824         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69826 2010-04-03  Bruno Haible  <bruno@clisp.org>
69828         stpncpy: Fix C++ test error on mingw.
69829         * lib/string.in.h (stpncpy): Use modern idiom.
69830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69831         function is missing and that it needs to be replaced.
69832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69833         REPLACE_STPNCPY.
69834         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69836 2010-04-03  Bruno Haible  <bruno@clisp.org>
69838         sys_stat: Fix C++ test error on mingw.
69839         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69840         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69842 2010-04-03  Bruno Haible  <bruno@clisp.org>
69844         pty: Update doc.
69845         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69847 2010-04-03  Bruno Haible  <bruno@clisp.org>
69849         unistd: Fix C++ test error on mingw.
69850         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69852 2010-04-03  Bruno Haible  <bruno@clisp.org>
69854         Update doc regarding mingw.
69855         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69856         * doc/glibc-functions/login_tty.texi: Likewise.
69857         * doc/glibc-functions/forkpty.texi: Likewise.
69859 2010-04-03  Bruno Haible  <bruno@clisp.org>
69861         stdlib: Avoid compilation failure of c-strtold on mingw.
69862         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69864 2010-04-03  Bruno Haible  <bruno@clisp.org>
69866         locale: Make C++ tests work on Cygwin and mingw.
69867         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69868         cannot provide the function.
69869         Reported by Simon Josefsson.
69871 2010-04-03  Bruno Haible  <bruno@clisp.org>
69873         localename: Port to MacOS X 10.6.
69874         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69875         memory layout of the locales in MacOS X 10.6 as well.
69876         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69878 2010-04-02  Bruno Haible  <bruno@clisp.org>
69880         gnulib-tool: Ensure that long-running tests are executed last.
69881         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69882         running tests after the one for the other tests.
69884 2010-04-02  Bruno Haible  <bruno@clisp.org>
69886         gnulib-tool: Ensure the tests in the main directory are executed first.
69887         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69888         start with the current directory.
69890 2010-04-02  Bruno Haible  <bruno@clisp.org>
69892         Tests for module 'havelib', moved here from GNU gettext.
69893         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69894         modifications.
69895         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69896         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69897         with modifications.
69898         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69899         modifications.
69900         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69901         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69902         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69903         with modifications.
69904         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69905         with modifications.
69906         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69907         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69908         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69909         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69910         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69911         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69912         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69913         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69914         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69915         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69916         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69917         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69918         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69919         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69920         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69921         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69922         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69923         with modifications.
69924         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69925         with modifications.
69926         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69927         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69928         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69929         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69930         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69931         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69932         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69933         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69934         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69935         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69936         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69937         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69938         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69939         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69940         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69941         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69942         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69943         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69944         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69945         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69946         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69947         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69948         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69949         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69950         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69951         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69952         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69953         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69954         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69955         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69956         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69957         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69958         * tests/havelib/rpathx/rpathx.c: New file, from
69959         gettext/autoconf-lib-link.
69960         * tests/havelib/rpathx/Makefile.am: New file, from
69961         gettext/autoconf-lib-link.
69962         * tests/havelib/rpathx/configure.ac: New file, from
69963         gettext/autoconf-lib-link with modifications.
69964         * tests/havelib/rpathy/rpathy.c: New file, from
69965         gettext/autoconf-lib-link.
69966         * tests/havelib/rpathy/Makefile.am: New file, from
69967         gettext/autoconf-lib-link.
69968         * tests/havelib/rpathy/configure.ac: New file, from
69969         gettext/autoconf-lib-link with modifications.
69970         * tests/havelib/rpathz/rpathz.c: New file, from
69971         gettext/autoconf-lib-link.
69972         * tests/havelib/rpathz/Makefile.am: New file, from
69973         gettext/autoconf-lib-link.
69974         * tests/havelib/rpathz/configure.ac: New file, from
69975         gettext/autoconf-lib-link with modifications.
69976         * tests/havelib/rpathlx/usex.c: New file, from
69977         gettext/autoconf-lib-link.
69978         * tests/havelib/rpathlx/Makefile.am: New file, from
69979         gettext/autoconf-lib-link.
69980         * tests/havelib/rpathlx/configure.ac: New file, from
69981         gettext/autoconf-lib-link with modifications.
69982         * tests/havelib/rpathly/usey.c: New file, from
69983         gettext/autoconf-lib-link.
69984         * tests/havelib/rpathly/Makefile.am: New file, from
69985         gettext/autoconf-lib-link.
69986         * tests/havelib/rpathly/configure.ac: New file, from
69987         gettext/autoconf-lib-link with modifications.
69988         * tests/havelib/rpathlz/usez.c: New file, from
69989         gettext/autoconf-lib-link.
69990         * tests/havelib/rpathlz/Makefile.am: New file, from
69991         gettext/autoconf-lib-link.
69992         * tests/havelib/rpathlz/configure.ac: New file, from
69993         gettext/autoconf-lib-link with modifications.
69994         * tests/havelib/rpathlyx/usey.c: New file, from
69995         gettext/autoconf-lib-link.
69996         * tests/havelib/rpathlyx/Makefile.am: New file, from
69997         gettext/autoconf-lib-link.
69998         * tests/havelib/rpathlyx/configure.ac: New file, from
69999         gettext/autoconf-lib-link with modifications.
70000         * tests/havelib/rpathlzyx/usez.c: New file, from
70001         gettext/autoconf-lib-link.
70002         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70003         gettext/autoconf-lib-link.
70004         * tests/havelib/rpathlzyx/configure.ac: New file, from
70005         gettext/autoconf-lib-link with modifications.
70006         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70007         with modifications.
70009 2010-04-02  Bruno Haible  <bruno@clisp.org>
70011         gnulib-tool: Create distributed built sources also for the tests.
70012         * gnulib-tool (func_create_testdir): Also generate distributed built
70013         sources in the tests directory.
70015 2010-04-02  Bruno Haible  <bruno@clisp.org>
70017         gnulib-tool: Obey user's environment variables.
70018         * gnulib-tool (func_create_testdir): When creating built sources,
70019         respect the environment variables for autoconf, automake, etc. given by
70020         the user.
70022 2010-04-02  Bruno Haible  <bruno@clisp.org>
70024         gnulib-tool: Provide the value of --m4-base to modules.
70025         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70026         of gl_m4_base.
70028 2010-04-02  Eric Blake  <eblake@redhat.com>
70030         maint.mk: fix some fallout
70031         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70032         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70034 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70036         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70037         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70038         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70039         (sc_cast_of_x_alloc_return_value): Likewise.
70040         (sc_cast_of_alloca_return_value): Likewise.
70041         (sc_space_tab): Likewise.
70042         (sc_prohibit_atoi_atof): Likewise.
70043         (sc_prohibit_magic_number_exit): Likewise.
70044         (sc_error_exit_success): Likewise.
70045         (sc_file_system): Likewise.
70046         (sc_prohibit_have_config_h): Likewise.
70047         (sc_require_config_h): Likewise.
70048         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70049         (sc_obsolete_symbols): Likewise.
70050         (sc_changelog): Likewise.
70051         (sc_program_name): Likewise.
70052         (sc_the_the): Likewise.
70053         (sc_trailing_blank): Likewise.
70054         (sc_two_space_separator_in_usage): Likewise.
70055         (sc_useless_cpp_parens): Likewise.
70056         (sc_GPL_version): Likewise.
70057         (sc_GFDL_version): Likewise.
70058         (sc_texinfo_acronym): Likewise.
70059         (sc_prohibit_cvs_keyword): Likewise.
70060         (sc_prohibit_stat_st_blocks): Likewise.
70061         (sc_prohibit_S_IS_definition): Likewise.
70062         (sc_redundant_const): Likewise.
70063         (sc_makefile_TAB_only_indentation): Likewise.
70064         (sc_m4_quote_check): Likewise.
70065         (sc_makefile_path_separator_check): Likewise.
70066         (sc_copyright_check): Likewise.
70067         (sc_Wundef_boolean): Likewise.
70068         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70070         maint.mk: match 0 or more whitespace-before-function-call '('
70071         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70072         that have zero or two-and-more spaces between the function name
70073         and the open parenthesis.
70074         (sc_error_message_warn_fatal): Likewise.
70075         (sc_error_message_uppercase): Likewise.
70076         (sc_error_message_period): Likewise.
70078 2010-03-31  Eric Blake  <eblake@redhat.com>
70080         maint.mk: check for [ as well as test
70081         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70082         Based on a libvirt report by Matthias Bolte.
70084         gnumakefile: don't squelch _version output
70085         * top/GNUmakefile (_version): Create one-shot dependency rather
70086         than using $(shell) when version must be regenerated.
70087         (_autoreconf): Run verbosely, by default.
70089         sys_time: avoid compiler warnings
70090         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70091         unconditional, fixing regression from 2010-03-29.
70092         Reported by Simon Josefsson.
70094 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70096         maint.mk: s/_header_without_use/_sc_header_without_use/
70097         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70098         (sc_prohibit_assert_without_use): Use the new name.
70099         (sc_prohibit_close_stream_without_use): Likewise.
70100         (sc_prohibit_getopt_without_use): Likewise.
70101         (sc_prohibit_quotearg_without_use): Likewise.
70102         (sc_prohibit_quote_without_use): Likewise.
70103         (sc_prohibit_long_options_without_use): Likewise.
70104         (sc_prohibit_inttostr_without_use): Likewise.
70105         (sc_prohibit_ignore_value_without_use): Likewise.
70106         (sc_prohibit_error_without_use): Likewise.
70107         (sc_prohibit_xalloc_without_use): Likewise.
70108         (sc_prohibit_hash_without_use): Likewise.
70109         (sc_prohibit_hash_pjw_without_use): Likewise.
70110         (sc_prohibit_safe_read_without_use): Likewise.
70111         (sc_prohibit_argmatch_without_use): Likewise.
70112         (sc_prohibit_canonicalize_without_use): Likewise.
70113         (sc_prohibit_root_dev_ino_without_use): Likewise.
70114         (sc_prohibit_openat_without_use): Likewise.
70115         (sc_prohibit_c_ctype_without_use): Likewise.
70116         (sc_prohibit_signal_without_use): Likewise.
70117         (sc_prohibit_intprops_without_use): Likewise.
70119 2010-03-30  Eric Blake  <eblake@redhat.com>
70121         maint: improve module indicators
70122         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70123         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70124         columns, and avoid extra macro expansion.
70126         fdopendir: work around FreeBSD bug
70127         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70128         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70129         * modules/dirent (Makefile.am): Substitute it.
70130         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70131         declaration.
70132         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70133         fix.
70134         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70136 2010-03-29  Bruno Haible  <bruno@clisp.org>
70138         Emit #pragma system_header after the inclusion guard, not before.
70139         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70140         guard that spans the entire file, not before. This enables an
70141         optimization in GCC's preprocessor.
70142         * lib/ctype.in.h: Likewise.
70143         * lib/dirent.in.h: Likewise.
70144         * lib/errno.in.h: Likewise.
70145         * lib/float.in.h: Likewise.
70146         * lib/getopt.in.h: Likewise.
70147         * lib/iconv.in.h: Likewise.
70148         * lib/langinfo.in.h: Likewise.
70149         * lib/locale.in.h: Likewise.
70150         * lib/math.in.h: Likewise.
70151         * lib/netdb.in.h: Likewise.
70152         * lib/netinet_in.in.h: Likewise.
70153         * lib/pty.in.h: Likewise.
70154         * lib/sched.in.h: Likewise.
70155         * lib/se-selinux.in.h: Likewise.
70156         * lib/search.in.h: Likewise.
70157         * lib/spawn.in.h: Likewise.
70158         * lib/stdarg.in.h: Likewise.
70159         * lib/stdint.in.h: Likewise.
70160         * lib/string.in.h: Likewise.
70161         * lib/strings.in.h: Likewise.
70162         * lib/sys_file.in.h: Likewise.
70163         * lib/sys_ioctl.in.h: Likewise.
70164         * lib/sys_time.in.h: Likewise.
70165         * lib/sys_times.in.h: Likewise.
70166         * lib/sys_utsname.in.h: Likewise.
70167         * lib/sys_wait.in.h: Likewise.
70168         * lib/sysexits.in.h: Likewise.
70169         * lib/wctype.in.h: Likewise.
70171 2010-03-28  James Youngman  <jay@gnu.org>
70173         save-cwd: don't leak a file descriptor when the caller execs.
70174         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70175         saved file descriptor.
70176         * modules/save-cwd (Depends-on): Depend on cloexec.
70178 2010-03-29  Bruno Haible  <bruno@clisp.org>
70180         Remove vestiges of fts-lgpl module.
70181         * lib/fts_.h: Assume GNULIB_FTS is 1.
70182         * lib/fts.c: Likewise.
70183         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70185 2010-03-28  Bruno Haible  <bruno@clisp.org>
70187         Fix definition of tests witness macro.
70188         * gnulib-tool (func_import): Fix definition of witness macro.
70190 2010-03-28  Bruno Haible  <bruno@clisp.org>
70192         Fix ioctl's protoype on glibc systems.
70193         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70194         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70195         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70196         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70197         signature. If not, arrange to replace the ioctl function.
70198         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70199         REPLACE_IOCTL.
70200         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70201         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70202         Reported by Ludovic Courtès <ludo@gnu.org>.
70204 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70206         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70207         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70208         made it so grep -r --include=GLOB* ... did not work.
70210 2010-03-26  Jim Meyering  <meyering@redhat.com>
70211             Eric Blake  <eblake@redhat.com>
70213         maint.mk: prohibit use of test's -o and -a operators
70214         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70216 2010-03-28  Bruno Haible  <bruno@clisp.org>
70218         Remove unused GNULIB_XYZ macro definitions.
70219         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70220         invocation.
70222 2010-03-28  Bruno Haible  <bruno@clisp.org>
70224         Mark privileged tests modules.
70225         * modules/idpriv-drop-tests (Status): New section.
70226         * modules/idpriv-droptemp-tests (Status): New section.
70228 2010-03-28  Bruno Haible  <bruno@clisp.org>
70230         Split C++ tests into separate tests modules.
70231         * modules/dirent-c++-tests: New file, extracted from
70232         modules/dirent-tests.
70233         * modules/dirent-tests: Depend on it.
70234         * modules/fcntl-h-c++-tests: New file, extracted from
70235         modules/fcntl-h-tests.
70236         * modules/fcntl-h-tests: Depend on it.
70237         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70238         * modules/glob-tests: Depend on it.
70239         * modules/iconv-h-c++-tests: New file, extracted from
70240         modules/iconv-h-tests.
70241         * modules/iconv-h-tests: Depend on it.
70242         * modules/langinfo-c++-tests: New file, extracted from
70243         modules/langinfo-tests.
70244         * modules/langinfo-tests: Depend on it.
70245         * modules/locale-c++-tests: New file, extracted from
70246         modules/locale-tests.
70247         * modules/locale-tests: Depend on it.
70248         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70249         * modules/math-tests: Depend on it.
70250         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70251         * modules/pty-tests: Depend on it.
70252         * modules/search-c++-tests: New file, extracted from
70253         modules/search-tests.
70254         * modules/search-tests: Depend on it.
70255         * modules/signal-c++-tests: New file, extracted from
70256         modules/signal-tests.
70257         * modules/signal-tests: Depend on it.
70258         * modules/spawn-c++-tests: New file, extracted from
70259         modules/spawn-tests.
70260         * modules/spawn-tests: Depend on it.
70261         * modules/stdio-c++-tests: New file, extracted from
70262         modules/stdio-tests.
70263         * modules/stdio-tests: Depend on it.
70264         * modules/stdlib-c++-tests: New file, extracted from
70265         modules/stdlib-tests.
70266         * modules/stdlib-tests: Depend on it.
70267         * modules/string-c++-tests: New file, extracted from
70268         modules/string-tests.
70269         * modules/string-tests: Depend on it.
70270         * modules/sys_ioctl-c++-tests: New file, extracted from
70271         modules/sys_ioctl-tests.
70272         * modules/sys_ioctl-tests: Depend on it.
70273         * modules/sys_select-c++-tests: New file, extracted from
70274         modules/sys_select-tests.
70275         * modules/sys_select-tests: Depend on it.
70276         * modules/sys_socket-c++-tests: New file, extracted from
70277         modules/sys_socket-tests.
70278         * modules/sys_socket-tests: Depend on it.
70279         * modules/sys_stat-c++-tests: New file, extracted from
70280         modules/sys_stat-tests.
70281         * modules/sys_stat-tests: Depend on it.
70282         * modules/sys_time-c++-tests: New file, extracted from
70283         modules/sys_time-tests.
70284         * modules/sys_time-tests: Depend on it.
70285         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70286         * modules/time-tests: Depend on it.
70287         * modules/unistd-c++-tests: New file, extracted from
70288         modules/unistd-tests.
70289         * modules/unistd-tests: Depend on it.
70290         * modules/wchar-c++-tests: New file, extracted from
70291         modules/wchar-tests.
70292         * modules/wchar-tests: Depend on it.
70293         * modules/wctype-c++-tests: New file, extracted from
70294         modules/wctype-tests.
70295         * modules/wctype-tests: Depend on it.
70296         Reported by Simon Josefsson.
70298 2010-03-28  Bruno Haible  <bruno@clisp.org>
70300         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70301         * gnulib-tool (func_exists_module): New function, extracted from
70302         func_verify_module.
70303         (func_verify_module): Use it.
70304         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70305         'foo' only if 'foo' exists.
70306         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70307         module.
70309 2010-03-28  Bruno Haible  <bruno@clisp.org>
70311         gnulib-tool: Add support for special categories of tests.
70312         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70313         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70314         (func_usage): Document them.
70315         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70316         inc_unportable_tests, inc_all_tests): New variables.
70317         (func_acceptable): Consider these variables.
70318         (func_modules_transitive_closure): Make it work when the 'Status' field
70319         consists of multiple words.
70320         (func_import): Store and restore the values of inc_cxx_tests,
70321         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70322         inc_all_tests in gnulib-comp.m4.
70323         (func_create_testdir): Set inc_all_tests to true.
70324         * doc/gnulib.texi (Extra tests modules): New section.
70325         Suggested by Jim Meyering.
70327 2010-03-28  Bruno Haible  <bruno@clisp.org>
70329         ansi-c++-opt: Allow turning off the C++ build by default.
70330         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70331         gl_CXX_CHOICE_DEFAULT_NO is defined.
70332         Requested by Eric Blake.
70334 2010-03-28  Bruno Haible  <bruno@clisp.org>
70336         unistd: Avoid #define replacements in C++ mode.
70337         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70338         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70339         setsockopt, shutdown, select): In C++, attach a warning to the function
70340         if possible, rather than #defining the symbol to a dysfunctional alias.
70341         Reported by John W. Eaton <jwe@gnu.org>.
70343 2010-03-28  Bruno Haible  <bruno@clisp.org>
70345         Fix link errors on mingw.
70346         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70347         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70348         $(LIBSOCKET).
70349         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70350         $(LIBSOCKET).
70352 2010-03-28  Bruno Haible  <bruno@clisp.org>
70353             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70355         lib-ignore: Determine different options for different compilers.
70356         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70357         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70358         Add comments.
70359         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70360         * NEWS: Mention the change.
70362 2010-03-27  Bruno Haible  <bruno@clisp.org>
70364         Remove unused GNULIB_XYZ macro definitions.
70365         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70366         * modules/fseek (configure.ac): Likewise.
70367         * modules/ioctl (configure.ac): Likewise.
70368         * modules/open (configure.ac): Likewise.
70369         * modules/stdlib-safer (configure.ac): Likewise.
70371 2010-03-27  Bruno Haible  <bruno@clisp.org>
70373         Add a remark about certain modules.
70374         * modules/malloc (Comment): New section.
70375         * modules/realloc (Comment): Likewise.
70376         * modules/sigpipe (Comment): Likewise.
70378 2010-03-27  Bruno Haible  <bruno@clisp.org>
70380         Resolve conflict between the two kinds of module indicators.
70381         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70382         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70383         * modules/canonicalize (configure.ac): Invoke
70384         gl_MODULE_INDICATOR_FOR_TESTS.
70385         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70386         GNULIB_XYZ.
70387         * tests/test-dirent-c++.cc: Likewise.
70388         * tests/test-dirent-safer.c: Likewise.
70389         * tests/test-dup2.c: Likewise.
70390         * tests/test-fchdir.c: Likewise.
70391         * tests/test-fcntl-h-c++.cc: Likewise.
70392         * tests/test-getopt.c: Likewise.
70393         * tests/test-getopt.h: Likewise.
70394         * tests/test-langinfo-c++.cc: Likewise.
70395         * tests/test-locale-c++.cc: Likewise.
70396         * tests/test-math-c++.cc: Likewise.
70397         * tests/test-pty-c++.cc: Likewise.
70398         * tests/test-search-c++.cc: Likewise.
70399         * tests/test-signal-c++.cc: Likewise.
70400         * tests/test-spawn-c++.cc: Likewise.
70401         * tests/test-stdio-c++.cc: Likewise.
70402         * tests/test-stdlib-c++.cc: Likewise.
70403         * tests/test-string-c++.cc: Likewise.
70404         * tests/test-sys_ioctl-c++.cc: Likewise.
70405         * tests/test-sys_select-c++.cc: Likewise.
70406         * tests/test-sys_socket-c++.cc: Likewise.
70407         * tests/test-sys_stat-c++.cc: Likewise.
70408         * tests/test-sys_time-c++.cc: Likewise.
70409         * tests/test-time-c++.cc: Likewise.
70410         * tests/test-unistd-c++.cc: Likewise.
70411         * tests/test-wchar-c++.cc: Likewise.
70412         * tests/uninorm/test-u8-nfc.c: Likewise.
70413         * tests/uninorm/test-u8-nfd.c: Likewise.
70414         * tests/uninorm/test-u8-nfkc.c: Likewise.
70415         * tests/uninorm/test-u8-nfkd.c: Likewise.
70416         * tests/uninorm/test-u16-nfc.c: Likewise.
70417         * tests/uninorm/test-u16-nfd.c: Likewise.
70418         * tests/uninorm/test-u16-nfkc.c: Likewise.
70419         * tests/uninorm/test-u16-nfkd.c: Likewise.
70420         * tests/uninorm/test-u32-nfc.c: Likewise.
70421         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70422         * tests/uninorm/test-u32-nfd.c: Likewise.
70423         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70424         * tests/uninorm/test-u32-nfkc.c: Likewise.
70425         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70426         * tests/uninorm/test-u32-nfkd.c: Likewise.
70427         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70428         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70430 2010-03-27  Bruno Haible  <bruno@clisp.org>
70432         Distinguish two kinds of module indicators.
70433         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70434         gl_MODULE_INDICATOR.
70435         (gl_MODULE_INDICATOR): New macro.
70436         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70437         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70438         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70439         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70440         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70441         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70442         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70443         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70444         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70445         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70446         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70447         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70449         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70450         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70451         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70452         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70453         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70454         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70455         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70456         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70457         * modules/cloexec (configure.ac): Likewise.
70458         * modules/getopt-gnu (configure.ac): Likewise.
70459         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70460         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70461         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70462         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70464 2010-03-27  Bruno Haible  <bruno@clisp.org>
70466         New module description field 'Comment'.
70467         * gnulib-tool: New option --extract-comment.
70468         (func_usage): Document it.
70469         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70470         (func_get_comment): New function.
70471         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70473 2010-03-27  Bruno Haible  <bruno@clisp.org>
70475         Addendum to 2010-02-07 commit.
70476         * gnulib-tool (func_usage): Document --extract-applicability option.
70478 2010-03-27  Bruno Haible  <bruno@clisp.org>
70480         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70481         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70482         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70483         rather than link errors.
70485 2010-03-27  Bruno Haible  <bruno@clisp.org>
70487         Avoid side effects from tests-related modules on the compilation of lib.
70488         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70489         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70490         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70491         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70492         macro.
70493         (func_import): Define a witness macro. Assign it a value that depends
70494         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70495         tests-related modules.
70496         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70497         Reported by Jim Meyering.
70499 2010-03-27  Bruno Haible  <bruno@clisp.org>
70501         Factorize common .m4 code.
70502         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70503         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70504         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70505         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70506         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70507         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70508         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70509         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70510         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70511         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70512         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70513         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70514         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70515         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70517         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70518         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70519         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70521         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70522         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70524         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70525         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70526         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70527         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70528         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70530         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70531         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70532         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70533         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70535 2010-03-27  Bruno Haible  <bruno@clisp.org>
70537         Fix a compilation error on Cygwin with g++ >= 4.3.
70538         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70539         if it is undefined or if we alias it to chmod.
70540         (lstat): Don't warn about the use of this function if it is undefined
70541         or if we alias it to stat.
70542         Reported by Simon Josefsson.
70544 2010-03-27  Bruno Haible  <bruno@clisp.org>
70546         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70547         * modules/getlogin (configure.ac): Update.
70549         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70550         * modules/getlogin_r (configure.ac): Update.
70552         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70554         * modules/inet_ntop (configure.ac): Update.
70556         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70557         * modules/inet_pton (configure.ac): Update.
70559         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70560         * modules/mbslen (configure.ac): Update.
70562         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70563         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70564         * modules/forkpty (configure.ac): Update.
70565         * modules/openpty (configure.ac): Update.
70567 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70569         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70570         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70572 2010-03-25  Eric Blake  <eblake@redhat.com>
70574         maint: use pragma consistently across replacement headers
70575         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70576         * lib/dirent.in.h (system_header): Likewise.
70577         * lib/errno.in.h (system_header): Likewise.
70578         * lib/float.in.h (system_header): Likewise.
70579         * lib/getopt.in.h (system_header): Likewise.
70580         * lib/iconv.in.h (system_header): Likewise.
70581         * lib/inttypes.in.h (system_header): Likewise.
70582         * lib/langinfo.in.h (system_header): Likewise.
70583         * lib/locale.in.h (system_header): Likewise.
70584         * lib/math.in.h (system_header): Likewise.
70585         * lib/netdb.in.h (system_header): Likewise.
70586         * lib/netinet_in.in.h (system_header): Likewise.
70587         * lib/pty.in.h (system_header): Likewise.
70588         * lib/sched.in.h (system_header): Likewise.
70589         * lib/se-selinux.in.h (system_header): Likewise.
70590         * lib/search.in.h (system_header): Likewise.
70591         * lib/spawn.in.h (system_header): Likewise.
70592         * lib/stdarg.in.h (system_header): Likewise.
70593         * lib/stdint.in.h (system_header): Likewise.
70594         * lib/string.in.h (system_header): Likewise.
70595         * lib/strings.in.h (system_header): Likewise.
70596         * lib/sys_file.in.h (system_header): Likewise.
70597         * lib/sys_ioctl.in.h (system_header): Likewise.
70598         * lib/sys_socket.in.h (system_header): Likewise.
70599         * lib/sys_times.in.h (system_header): Likewise.
70600         * lib/sys_utsname.in.h (system_header): Likewise.
70601         * lib/sys_wait.in.h (system_header): Likewise.
70602         * lib/sysexits.in.h (system_header): Likewise.
70603         * lib/unistd.in.h (system_header): Likewise.
70604         * lib/wctype.in.h (system_header): Likewise.
70606         arpa/inet: fix mingw compilation warning
70607         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70608         Reported by Matthew Bolte.
70610 2010-03-25  Bruno Haible  <bruno@clisp.org>
70612         Avoid collision between gnulib wrapper and libintl wrapper.
70613         * lib/printf.c (printf): Don't define if a printf wrapper is already
70614         defined in intl/printf.c.
70615         Reported by Michel Boaventura <michel@michelboaventura.com>.
70617 2010-03-25  Bruno Haible  <bruno@clisp.org>
70619         Use ANSI C.
70620         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70622 2010-03-25  Bruno Haible  <bruno@clisp.org>
70624         Minor formatting changes.
70625         * lib/acosl.c: Insert space before function argument list.
70626         * lib/argz.c: Likewise.
70627         * lib/asinl.c: Likewise.
70628         * lib/expl.c: Likewise.
70629         * lib/gen-uni-tables.c: Likewise.
70630         * lib/gettext.h: Likewise.
70631         * lib/glthread/lock.h: Likewise.
70632         * lib/tanl.c: Likewise.
70633         * lib/uniname/uniname.c: Likewise.
70634         * tests/test-idpriv-drop.c: Likewise.
70635         * tests/test-idpriv-droptemp.c: Likewise.
70636         * tests/test-lock.c: Likewise.
70637         * tests/test-tls.c: Likewise.
70638         * lib/argp-help.c: Insert space before function-like macro argument
70639         list.
70640         * lib/memcmp.c: Likewise.
70641         * tests/test-base64.c: Likewise.
70642         * lib/localename.c: Insert space before sizeof's argument list.
70643         * lib/safe-alloc.h: Likewise.
70644         * lib/file-set.h: Insert space before macro argument list.
70645         * tests/test-argp.c: Likewise.
70646         * lib/argp-namefrob.h: Insert space before function parameter list.
70647         * lib/getaddrinfo.c: Likewise.
70648         * lib/netdb.in.h: Likewise.
70649         * lib/parse-duration.h: Likewise.
70650         * lib/parse-duration.c: Likewise.
70651         * lib/poll.c: Likewise.
70652         * lib/select.c: Likewise.
70653         * lib/trim.h: Likewise.
70654         * tests/test-usleep.c: Likewise.
70655         * lib/ldexpl.c: Insert space before function parameter list and before
70656         function argument list.
70657         * lib/logl.c: Likewise.
70658         * lib/sqrtl.c: Likewise.
70659         * lib/trim.c: Likewise.
70660         * lib/cosl.c: Use GNU style indentation. Insert space before function
70661         argument list.
70662         * lib/sinl.c: Likewise.
70663         * lib/tsearch.c: Insert space after 'for'.
70664         Reported by Jim Meyering.
70666 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70668         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70669         config header before grepping, as it's not present before
70670         autoreconf/configure are run.  Reported by Simon Josefsson.
70672 2010-03-23  Bruno Haible  <bruno@clisp.org>
70674         pt_chown: Make it work with automake < 1.11.
70675         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70676         Reported by Simon Josefsson.
70678 2010-03-23  Bruno Haible  <bruno@clisp.org>
70680         pt_chown: Don't depend on GPLed modules.
70681         * lib/pt_chown.c: Don't include idpriv.h.
70682         (main): Don't drop privileges.
70683         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70684         Reported by Simon Josefsson.
70686 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70688         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70689         suggestions from karl@freefriends.org (Karl Berry).
70691 2010-03-22  Eric Blake  <eblake@redhat.com>
70693         gethostname: further tweaks
70694         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70695         are overriding gethostname.
70696         Suggested by Bruno Haible.
70698 2010-03-21  Bruno Haible  <bruno@clisp.org>
70700         Fix comments.
70701         * lib/forkpty.c (rpl_forkpty): Fix comment.
70702         * lib/openpty.c (rpl_openpty): Likewise.
70703         Reported by Eric Blake.
70705 2010-03-22  Eric Blake  <eblake@redhat.com>
70707         gethostname: fix build on mingw
70708         * lib/unistd.in.h (includes): Work around fact that mingw
70709         <winsock2.h> re-includes <unistd.h>, by avoiding any
70710         redeclarations if we are being included by <winsock2.h>.
70711         Reported by Matthias Bolte.
70713 2010-03-21  Bruno Haible  <bruno@clisp.org>
70715         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70716         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70717         modifications.
70718         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70719         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70720         provide the replacement.
70721         * modules/forkpty (Depends-on): Add openpty, login_tty.
70722         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70723         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70724         * doc/glibc-functions/forkpty.texi: More supported platforms.
70725         * config/srclist.txt: Add forkpty.c (commented).
70727 2010-03-21  Bruno Haible  <bruno@clisp.org>
70729         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70730         (Makefile.am): Verify that PTY_LIB is defined.
70732         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70734 2010-03-21  Bruno Haible  <bruno@clisp.org>
70736         Tests for module 'login_tty'.
70737         * modules/login_tty-tests: New file.
70738         * tests/test-login_tty.c: New file.
70740         New module 'login_tty'.
70741         * lib/login_tty.c: New file.
70742         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70743         * modules/login_tty: New file.
70744         * doc/glibc-functions/login_tty.texi: Mention the new module.
70746 2010-03-21  Bruno Haible  <bruno@clisp.org>
70748         login_tty: Documentation.
70749         * doc/glibc-functions/login_tty.texi: New file.
70750         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70752 2010-03-21  Bruno Haible  <bruno@clisp.org>
70754         pty: Consistent macro naming.
70755         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70756         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70757         * modules/pty (configure.ac): Update.
70759 2010-03-21  Bruno Haible  <bruno@clisp.org>
70761         Tests for openpty: Make stricter.
70762         * tests/test-openpty.c (main): Add test of canonical processing and
70763         erase.
70764         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70766         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70767         * lib/openpty.c (openpty): New replacement function.
70768         * lib/pty.in.h: Include <termios.h>.
70769         (openpty): Update declaration. Add comments.
70770         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70771         is not declared, arrange to provide the replacement. Check for _getpty
70772         and posix_openpt.
70773         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70774         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70775         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70776         * modules/pty-tests (test_pty_c___LDADD): New variable.
70777         * doc/glibc-functions/openpty.texi: More supported platforms.
70779 2010-03-21  Bruno Haible  <bruno@clisp.org>
70781         setenv: Tweaks.
70782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70783         the test program.
70784         * doc/posix-functions/setenv.texi: Update platforms list.
70786 2010-03-21  Bruno Haible  <bruno@clisp.org>
70788         New module 'unlockpt'.
70789         * lib/unlockpt.c: New file, from glibc with modifications.
70790         * m4/unlockpt.m4: New file.
70791         * modules/unlockpt: New file.
70792         * lib/stdlib.in.h (unlockpt): New declaration.
70793         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70794         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70795         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70796         HAVE_UNLOCKPT.
70797         * doc/posix-functions/unlockpt.texi: Mention the new module.
70798         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70799         * config/srclist.txt: Add unlockpt.c (commented).
70801 2010-03-21  Jim Meyering  <meyering@redhat.com>
70803         maint.mk: prohibit inclusion of "intprops.h" without use
70804         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70806 2010-03-21  Bruno Haible  <bruno@clisp.org>
70808         New module 'grantpt'.
70809         * lib/grantpt.c: New file, from glibc with modifications.
70810         * m4/grantpt.m4: New file.
70811         * modules/grantpt: New file.
70812         * lib/stdlib.in.h (grantpt): New declaration.
70813         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70814         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70815         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70816         HAVE_GRANTPT.
70817         * doc/posix-functions/grantpt.texi: Mention the new module.
70818         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70819         * config/srclist.txt: Add grantpt.c (commented).
70821 2010-03-21  Bruno Haible  <bruno@clisp.org>
70823         New module 'pt_chown'.
70824         * lib/pt_chown.c: New file, from glibc with modifications.
70825         * lib/pty-private.h: New file, from glibc with modifications.
70826         * modules/pt_chown: New file.
70827         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70829 2010-03-21  Bruno Haible  <bruno@clisp.org>
70831         Tests for module 'ptsname'.
70832         * modules/ptsname-tests: New file.
70833         * tests/test-ptsname.c: New file.
70835         New module 'ptsname'.
70836         * lib/ptsname.c: New file, from glibc with modifications.
70837         * m4/ptsname.m4: New file.
70838         * modules/ptsname: New file.
70839         * lib/stdlib.in.h (ptsname): New declaration.
70840         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70841         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70842         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70843         HAVE_PTSNAME.
70844         * doc/posix-functions/ptsname.texi: Mention the new module.
70845         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70846         * config/srclist.txt: Add ptsname.c (commented).
70848 2010-03-21  Bruno Haible  <bruno@clisp.org>
70850         Tests for module 'ttyname_r'.
70851         * modules/ttyname_r-tests: New file.
70852         * tests/test-ttyname_r.c: New file.
70854         New module 'ttyname_r'.
70855         * lib/ttyname_r.c: New file.
70856         * m4/ttyname_r.m4: New file.
70857         * modules/ttyname_r: New file.
70858         * lib/unistd.in.h (ttyname_r): New declaration.
70859         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70861         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70862         HAVE_TTYNAME_R.
70863         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70864         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70866 2010-03-20  Bruno Haible  <bruno@clisp.org>
70868         signal: Undefine macro definitions in C++ mode.
70869         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70870         sigfillset): Undefine macro definitions from the system header in C++
70871         mode.
70872         Reported by John W. Eaton <jwe@gnu.org>.
70874 2010-03-20  Bruno Haible  <bruno@clisp.org>
70876         Ensure no #include statements inside extern "C" { ... }.
70877         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70878         contain #include statements.
70879         * lib/time.in.h: Likewise.
70881 2010-03-20  Bruno Haible  <bruno@clisp.org>
70883         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70884         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70885         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70886         Reported by John W. Eaton <jwe@gnu.org>.
70888 2010-03-20  Bruno Haible  <bruno@clisp.org>
70890         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70891         Reported by Jim Meyering.
70893 2010-03-20  Bruno Haible  <bruno@clisp.org>
70895         pipe: Set errno upon failure.
70896         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70897         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70898         errno value in error message.
70900 2010-03-20  Bruno Haible  <bruno@clisp.org>
70901             Jim Meyering  <meyering@redhat.com>
70903         lchown: Avoid "unused variable" warning.
70904         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70906 2010-03-20  Bruno Haible  <bruno@clisp.org>
70908         Work around unlink() bug on MacOS X 10.5.6.
70909         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70910         attempting to unlink a parent directory.
70911         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70912         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70913         activate for the replacement function.
70914         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70916 2010-03-20  Bruno Haible  <bruno@clisp.org>
70918         Fix link errors on Solaris 8.
70919         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70920         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70922 2010-03-19  Jim Meyering  <meyering@redhat.com>
70924         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70925         The _LIBC implementation of build_range_exp correctly honors the
70926         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70927         However, the non-_LIBC implementation would ignore that syntax-bit
70928         flag and return REG_ERANGE unconditionally.
70929         This change makes it honor that flag.
70930         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70931         Make two pointer parameters "const".
70932         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70933         (parse_bracket_exp): Update caller.
70935         regex.m4: correct the reversed range endpoint ([b-a]) test
70936         * m4/regex.m4: When requiring that [b-a] evoke failure,
70937         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70938         test pass once again for x86-based systems.
70940 2010-03-19  Bruno Haible  <bruno@clisp.org>
70942         scandir: Fix link error on Solaris 8.
70943         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70944         macros.
70946 2010-03-19  Bruno Haible  <bruno@clisp.org>
70948         getusershell: Fix documentation.
70949         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70950         module.
70951         * doc/glibc-functions/setusershell.texi: Likewise.
70953         getusershell: Provide declaration, missing on Solaris 9.
70954         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70955         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70956         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70957         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70959         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70960         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70961         HAVE_GETUSERSHELL.
70962         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70964 2010-03-19  Bruno Haible  <bruno@clisp.org>
70966         wctype: Provide iswblank function.
70967         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70968         exists and is fine.
70969         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70970         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70971         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70972         * doc/posix-functions/iswblank.texi: Update.
70974 2010-03-19  Bruno Haible  <bruno@clisp.org>
70976         Tests of module 'pty' in C++ mode.
70977         * modules/pty-tests: New file.
70978         * tests/test-pty-c++.cc: New file.
70979         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70981 2010-03-19  Eric Blake  <eblake@redhat.com>
70983         logb: fix documentation
70984         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70985         1.5 declaration bug.
70987         forkpty, openpty: prefer glibc's const-safe prototype
70988         * lib/forkpty.c (rpl_forkpty): New file.
70989         * lib/openpty.c (rpl_openpty): Likewise.
70990         * modules/forkpty (Files): Distribute it.
70991         * modules/openpty (Files): Likewise.
70992         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70993         check...
70994         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70995         replacement for non-const BSD signature.
70996         * modules/pty (Makefile.am): Substitute witnesses.
70997         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70998         * tests/test-forkpty.c: Update signature check.
70999         * tests/test-openpty.c: Likewise.
71000         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71001         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71003         forkpty, openpty: split functions into new modules
71004         * modules/pty (Makefile.am): Substitute new witnesses.
71005         (Libraries): Move library detection...
71006         * modules/forkpty: ...into new module.
71007         * modules/openpty: Another new module.
71008         * modules/pty-tests: Rename and split...
71009         * modules/forkpty-tests: ...to this...
71010         * modules/openpty-tests: ...and this.
71011         * tests/test-pty.c: Rename and split...
71012         * tests/test-forkpty.c: ...to this...
71013         * tests/test-openpty.c: ...and this.
71014         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71015         (gl_PTY): Split library searching...
71016         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71017         (gl_FORKPTY, gl_OPENPTY): New macros.
71018         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71019         * NEWS: Mention the split.
71020         * MODULES.html.sh (Misc): Document the modules.
71021         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71022         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71024         pty: improve replacement header
71025         * lib/pty.in.h: New file.
71026         * modules/pty (Files): Ship it.
71027         (Makefile.am): Always build replacement.
71028         * m4/pty.m4: Rename...
71029         * m4/pty_h.m4: ...to this.
71030         (gl_PTY): Modernize setting of witness macros; update check of
71031         forkpty to take proper advantage of cache.
71032         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71034         getopt: avoid compiler warning
71035         * lib/getopt.c (attribute_hidden): Remove unused macro.
71037 2010-03-18  Bruno Haible  <bruno@clisp.org>
71039         Fix link errors on Solaris 8.
71040         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71041         * modules/search-tests (test_search_c___LDADD): Likewise.
71042         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71043         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71044         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71045         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71046         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71047         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71048         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71050 2010-03-18  Bruno Haible  <bruno@clisp.org>
71052         Fix bug introduced on 2010-03-14.
71053         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71054         (gl_SPAWN_H): Require it.
71055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71056         Reported by Simon Josefsson.
71058 2010-03-18  Bruno Haible  <bruno@clisp.org>
71060         Fix typo introduced on 2009-12-31.
71061         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71062         posix_spawn_file_actions_adddup2.
71064 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71065         and Eric Blake  <eblake@redhat.com>
71067         test-vc-list-files-git: make more robust
71068         * tests/test-vc-list-files-git.sh: Unset problematic environment
71069         variables.  Chain commands together.
71071 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71073         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71074         `AC_CHECK_DECL' invocation.
71076 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71078         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71079         appears before executable statements. Suggested by Petr Sumbera
71080         <Petr.Sumbera@Sun.COM>.
71082 2010-03-14  Bruno Haible  <bruno@clisp.org>
71084         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71085         portability problems. Instead use a simpler test.
71086         (main): Check that invalid arguments are rejected only on Linux.
71088 2010-03-14  Bruno Haible  <bruno@clisp.org>
71090         Fix bug introduced on 2009-12-31.
71091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71092         gl_PREREQ_SYS_H_WINSOCK2 always.
71093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71094         SYS_SOCKET_H variable.
71095         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71096         Update comments.
71097         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71098         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71099         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71101         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71103 2010-03-14  Bruno Haible  <bruno@clisp.org>
71105         Fix values returned by sinl, cosl.
71106         * lib/trigl.h: Add specification comments.
71107         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71108         that combines the values from the precomputed table with the values of
71109         the Chebyshev polynomials.
71111 2010-03-14  Bruno Haible  <bruno@clisp.org>
71113         Fix compilation error when modules 'posix_spawn[p]' are not used.
71114         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71115         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71117 2010-03-14  Bruno Haible  <bruno@clisp.org>
71119         Fix compilation error on mingw when module 'time_r' is not used.
71120         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71121         is 1.
71122         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71123         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71124         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71127 2010-03-14  Bruno Haible  <bruno@clisp.org>
71129         Fix compilation error with Sun C.
71130         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71131         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71132         instead of GCC specific ULONG_LONG_MAX.
71133         * lib/xstrtoll.c: Likewise.
71134         * lib/xstrtoull.c: Likewise.
71136 2010-03-13  Bruno Haible  <bruno@clisp.org>
71138         Allow the user to disable C++ code and tests.
71139         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71140         (gl_PROG_ANSI_CXX): Require it.
71142 2010-03-13  Bruno Haible  <bruno@clisp.org>
71144         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71145         cases.
71147 2010-03-13  Bruno Haible  <bruno@clisp.org>
71149         Test that gnulib does not break the standard C++ headers.
71150         * tests/test-locale-c++2.cc: New file.
71151         * modules/locale-tests (Files): Add it.
71152         (Makefile.am): Compile it for test-locale-c++.
71153         * tests/test-math-c++2.cc: New file.
71154         * modules/math-tests (Files): Add it.
71155         (Makefile.am): Compile it for test-math-c++.
71156         * tests/test-signal-c++2.cc: New file.
71157         * modules/signal-tests (Files): Add it.
71158         (Makefile.am): Compile it for test-signal-c++.
71159         * tests/test-stdio-c++2.cc: New file.
71160         * modules/stdio-tests (Files): Add it.
71161         (Makefile.am): Compile it for test-stdio-c++.
71162         * tests/test-stdlib-c++2.cc: New file.
71163         * modules/stdlib-tests (Files): Add it.
71164         (Makefile.am): Compile it for test-stdlib-c++.
71165         * tests/test-string-c++2.cc: New file.
71166         * modules/string-tests (Files): Add it.
71167         (Makefile.am): Compile it for test-string-c++.
71168         * tests/test-time-c++2.cc: New file.
71169         * modules/time-tests (Files): Add it.
71170         (Makefile.am): Compile it for test-time-c++.
71171         Reported by John W. Eaton <jwe@gnu.org>.
71173 2010-03-13  Bruno Haible  <bruno@clisp.org>
71175         * gnulib-tool (func_usage): Clarify which options are available for
71176         --create-testdir and --create-megatestdir.
71178 2010-03-13  Bruno Haible  <bruno@clisp.org>
71180         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71181         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71182         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71183         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71184         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71185         when appropriate.
71186         Reported by Jim Meyering.
71188 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71190         * gnulib-tool (func_import): Explain origin of code.
71192 2010-03-12  Bruno Haible  <bruno@clisp.org>
71194         Fix problem with automake's definition of CXXLINK.
71195         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71196         Reported by Simon Josefsson and Ludovic Courtès.
71198 2010-03-12  Bruno Haible  <bruno@clisp.org>
71200         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71201         stable releases.
71203 2010-03-11  Bruno Haible  <bruno@clisp.org>
71205         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71206         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71207         whether the system provides one variant or multiple variants of the
71208         function.
71209         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71210         C++ compilers.
71211         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71212         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71213         Reported by Jim Meyering.
71215 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71217         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71219 2010-03-08  Bruno Haible  <bruno@clisp.org>
71221         gnulib-tool: Add support for --libtool in --create-testdir.
71222         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71223         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71225 2010-03-08  Eric Blake  <eblake@redhat.com>
71227         gnulib-tool.texi: mention possibility of git submodule
71228         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71229         submodules.
71230         * doc/.gitignore: Ignore another generated file.
71232 2010-03-08  Karl Berry  <karl@gnu.org>
71234         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71235         of committing gnulib files while skipping others.
71237 2010-03-07  Bruno Haible  <bruno@clisp.org>
71239         Tests of module 'wctype' in C++ mode.
71240         * tests/test-wctype-c++.cc: New file.
71241         * modules/wctype-tests (Files): Add it and tests/signature.h.
71242         (Depends-on): Add ansi-c++-opt.
71243         (Makefile.am): Arrange to compile and run test-wctype-c++.
71245         Tests of module 'wchar' in C++ mode.
71246         * tests/test-wchar-c++.cc: New file.
71247         * modules/wchar-tests (Files): Add it and tests/signature.h.
71248         (Depends-on): Add ansi-c++-opt.
71249         (Makefile.am): Arrange to compile and run test-wchar-c++.
71250         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71251         gl_MODULE_INDICATOR.
71253         Tests of module 'unistd' in C++ mode.
71254         * tests/test-unistd-c++.cc: New file.
71255         * modules/unistd-tests (Files): Add it and tests/signature.h.
71256         (Depends-on): Add ansi-c++-opt.
71257         (Makefile.am): Arrange to compile and run test-unistd-c++.
71258         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71259         gl_MODULE_INDICATOR.
71261         Tests of module 'time' in C++ mode.
71262         * tests/test-time-c++.cc: New file.
71263         * modules/time-tests (Files): Add it and tests/signature.h.
71264         (Depends-on): Add ansi-c++-opt.
71265         (Makefile.am): Arrange to compile and run test-time-c++.
71266         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71268         Tests of module 'sys_time' in C++ mode.
71269         * tests/test-sys_time-c++.cc: New file.
71270         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71271         (Depends-on): Add ansi-c++-opt.
71272         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71273         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71274         gl_MODULE_INDICATOR.
71276         Tests of module 'sys_stat' in C++ mode.
71277         * tests/test-sys_stat-c++.cc: New file.
71278         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71279         (Depends-on): Add ansi-c++-opt.
71280         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71281         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71282         gl_MODULE_INDICATOR.
71284         Tests of module 'sys_socket' in C++ mode.
71285         * tests/test-sys_socket-c++.cc: New file.
71286         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71287         (Depends-on): Add ansi-c++-opt.
71288         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71289         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71290         gl_MODULE_INDICATOR.
71292         Tests of module 'sys_select' in C++ mode.
71293         * tests/test-sys_select-c++.cc: New file.
71294         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71295         (Depends-on): Add ansi-c++-opt.
71296         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71297         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71298         gl_MODULE_INDICATOR.
71300         Tests of module 'sys_ioctl' in C++ mode.
71301         * tests/test-sys_ioctl-c++.cc: New file.
71302         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71303         (Depends-on): Add ansi-c++-opt.
71304         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71306         gl_MODULE_INDICATOR.
71308         Tests of module 'string' in C++ mode.
71309         * tests/test-string-c++.cc: New file.
71310         * modules/string-tests (Files): Add it and tests/signature.h.
71311         (Depends-on): Add ansi-c++-opt.
71312         (Makefile.am): Arrange to compile and run test-string-c++.
71313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71314         gl_MODULE_INDICATOR.
71316         Tests of module 'stdlib' in C++ mode.
71317         * tests/test-stdlib-c++.cc: New file.
71318         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71319         (Depends-on): Add ansi-c++-opt.
71320         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71321         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71322         gl_MODULE_INDICATOR.
71324         Tests of module 'stdio' in C++ mode.
71325         * tests/test-stdio-c++.cc: New file.
71326         * modules/stdio-tests (Files): Add it and tests/signature.h.
71327         (Depends-on): Add ansi-c++-opt.
71328         (Makefile.am): Arrange to compile and run test-stdio-c++.
71329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71330         gl_MODULE_INDICATOR.
71332         Tests of module 'spawn' in C++ mode.
71333         * tests/test-spawn-c++.cc: New file.
71334         * modules/spawn-tests (Files): Add it and tests/signature.h.
71335         (Depends-on): Add ansi-c++-opt.
71336         (Makefile.am): Arrange to compile and run test-spawn-c++.
71337         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71338         gl_MODULE_INDICATOR.
71340         Tests of module 'signal' in C++ mode.
71341         * tests/test-signal-c++.cc: New file.
71342         * modules/signal-tests (Files): Add it and tests/signature.h.
71343         (Depends-on): Add ansi-c++-opt.
71344         (Makefile.am): Arrange to compile and run test-signal-c++.
71345         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71346         gl_MODULE_INDICATOR.
71348         Tests of module 'search' in C++ mode.
71349         * tests/test-search-c++.cc: New file.
71350         * modules/search-tests (Files): Add it and tests/signature.h.
71351         (Depends-on): Add ansi-c++-opt.
71352         (Makefile.am): Arrange to compile and run test-search-c++.
71353         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71354         gl_MODULE_INDICATOR.
71356         Tests of module 'math' in C++ mode.
71357         * tests/test-math-c++.cc: New file.
71358         * modules/math-tests (Files): Add it and tests/signature.h.
71359         (Depends-on): Add ansi-c++-opt.
71360         (Makefile.am): Arrange to compile and run test-math-c++.
71361         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71363         Tests of module 'locale' in C++ mode.
71364         * tests/test-locale-c++.cc: New file.
71365         * modules/locale-tests (Files): Add it and tests/signature.h.
71366         (Depends-on): Add ansi-c++-opt.
71367         (Makefile.am): Arrange to compile and run test-locale-c++.
71368         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71369         gl_MODULE_INDICATOR.
71371         Tests of module 'langinfo' in C++ mode.
71372         * tests/test-langinfo-c++.cc: New file.
71373         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71374         (Depends-on): Add ansi-c++-opt.
71375         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71376         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71377         gl_MODULE_INDICATOR.
71379         Tests of module 'iconv-h' in C++ mode.
71380         * tests/test-iconv-h-c++.cc: New file.
71381         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71382         (Depends-on): Add ansi-c++-opt.
71383         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71385         Tests of module 'glob' in C++ mode.
71386         * tests/test-glob-c++.cc: New file.
71387         * modules/glob-tests (Files): Add it.
71388         (Depends-on): Add ansi-c++-opt.
71389         (Makefile.am): Arrange to compile and run test-glob-c++.
71391         Tests of module 'fcntl-h' in C++ mode.
71392         * tests/test-fcntl-h-c++.cc: New file.
71393         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71394         (Depends-on): Add ansi-c++-opt.
71395         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71396         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71397         gl_MODULE_INDICATOR.
71399         Tests of module 'dirent' in C++ mode.
71400         * tests/test-dirent-c++.cc: New file.
71401         * modules/dirent-tests (Files): Add it and tests/signature.h.
71402         (Depends-on): Add ansi-c++-opt.
71403         (Makefile.am): Arrange to compile and run test-dirent-c++.
71404         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71405         gl_MODULE_INDICATOR.
71407         New module 'ansi-c++-opt'.
71408         * modules/ansi-c++-opt: New file.
71409         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71411         Document C++ namespace mode.
71412         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71414         wctype: Avoid #define replacements in C++ mode.
71415         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71416         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71417         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71418         In C++, define a namespaced alias symbol.
71419         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71420         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71421         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71422         rule.
71424         wchar: Avoid #define replacements in C++ mode.
71425         * lib/wchar.in.h: Include c++defs.h.
71426         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71427         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71428         symbol.
71429         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71430         * modules/wchar (Depends-on): Add c++defs.
71431         (Makefile.am): Update wchar.h rule.
71433         unistd: Avoid #define replacements in C++ mode.
71434         * lib/unistd.in.h: Include c++defs.h.
71435         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71436         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71437         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71438         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71439         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71440         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71441         symbol.
71442         (environ): Update.
71443         * modules/unistd (Depends-on): Add c++defs.
71444         (Makefile.am): Update unistd.h rule.
71446         time: Avoid #define replacements in C++ mode.
71447         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71448         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71449         define a namespaced alias symbol.
71450         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71451         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71452         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71453         * modules/time (Depends-on): Add c++defs, warn-on-use.
71454         (Makefile.am): Update time.h rule.
71455         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71456         * modules/nanosleep (configure.ac): Likewise.
71457         * modules/strptime (configure.ac): Likewise.
71458         * modules/timegm (configure.ac): Likewise.
71460         sys_time: Avoid #define replacements in C++ mode.
71461         * lib/sys_time.in.h: Include c++defs.h.
71462         (gettimeofday): In C++, define a namespaced alias symbol.
71463         * modules/sys_time (Depends-on): Add c++defs.
71464         (Makefile.am): Update sys/time.h rule.
71466         sys_stat: Avoid #define replacements in C++ mode.
71467         * lib/sys_stat.in.h: Include c++defs.h.
71468         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71469         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71470         namespaced alias symbol.
71471         In C++, define a namespaced alias symbol.
71472         * modules/sys_stat (Depends-on): Add c++defs.
71473         (Makefile.am): Update sys/stat.h rule.
71475         sys_socket: Avoid #define replacements in C++ mode.
71476         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71477         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71478         definitions also when the system has a <sys/socket.h>.
71479         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71480         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71481         In C++, define a namespaced alias symbol.
71482         * modules/sys_socket (Depends-on): Add c++defs.
71483         (Makefile.am): Update sys/socket.h rule.
71485         sys_select: Avoid #define replacements in C++ mode.
71486         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71487         definitions also when the system has a <sys/select.h>.
71488         (select): In C++, define a namespaced alias symbol.
71489         * modules/sys_select (Depends-on): Add c++defs.
71490         (Makefile.am): Update sys/select.h rule.
71492         sys_ioctl: Avoid #define replacements in C++ mode.
71493         * lib/sys_ioctl.in.h: Include c++defs.h.
71494         (ioctl): In C++, define a namespaced alias symbol.
71495         * modules/sys_ioctl (Depends-on): Add c++defs.
71496         (Makefile.am): Update sys/ioctl.h rule.
71498         string: Avoid #define replacements in C++ mode.
71499         * lib/string.in.h: Include c++defs.h.
71500         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71501         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71502         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71503         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71504         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71505         * modules/string (Depends-on): Add c++defs.
71506         (Makefile.am): Update string.h rule.
71508         stdlib: Avoid #define replacements in C++ mode.
71509         * lib/stdlib.in.h: Include c++defs.h.
71510         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71511         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71512         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71513         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71514         symbol.
71515         * modules/stdlib (Depends-on): Add c++defs.
71516         (Makefile.am): Update stdlib.h rule.
71518         stdio: Avoid #define replacements in C++ mode.
71519         * lib/stdio.in.h: Include c++defs.h.
71520         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71521         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71522         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71523         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71524         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71525         namespaced alias symbol.
71526         * modules/stdio (Depends-on): Add c++defs.
71527         (Makefile.am): Update stdio.h rule.
71529         spawn: Avoid #define replacements in C++ mode.
71530         * lib/spawn.in.h: Include c++defs.h.
71531         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71532         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71533         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71534         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71535         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71536         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71537         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71538         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71539         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71540         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71541         In C++, define a namespaced alias symbol.
71542         * modules/spawn (Depends-on): Add c++defs.
71543         (Makefile.am): Update spawn.h rule.
71545         signal: Avoid #define replacements in C++ mode.
71546         * lib/signal.in.h: Include c++defs.h.
71547         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71548         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71549         namespaced alias symbol.
71550         * modules/signal (Depends-on): Add c++defs.
71551         (Makefile.am): Update signal.h rule.
71553         search: Avoid #define replacements in C++ mode.
71554         * lib/search.in.h: Include c++defs.h.
71555         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71556         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71557         symbol.
71558         * modules/search (Depends-on): Add c++defs.
71559         (Makefile.am): Update search.h rule.
71561         math: Avoid #define replacements in C++ mode.
71562         * lib/math.in.h: Include c++defs.h.
71563         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71564         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71565         trunc, truncl): In C++, define a namespaced alias symbol.
71566         * modules/math (Depends-on): Add c++defs.
71567         (Makefile.am): Update math.h rule.
71569         locale: Avoid #define replacements in C++ mode.
71570         * lib/locale.in.h: Include c++defs.h.
71571         (duplocale): In C++, define a namespaced alias symbol.
71572         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71573         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71574         * modules/locale (Depends-on): Add c++defs.
71575         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71577         langinfo: Avoid #define replacements in C++ mode.
71578         * lib/langinfo.in.h: Include c++defs.h.
71579         (nl_langinfo): In C++, define a namespaced alias symbol.
71580         * modules/langinfo (Depends-on): Add c++defs.
71581         (Makefile.am): Update langinfo.h rule.
71583         iconv-h: Avoid #define replacements in C++ mode.
71584         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71585         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71586         symbol.
71587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71588         whenever iconv is present.
71589         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71590         (Makefile.am): Update iconv.h rule.
71592         glob: Avoid #define replacements in C++ mode.
71593         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71594         (_gl_glob_errfunc_fn): New type.
71595         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71596         symbol.
71597         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71598         (Makefile.am): Update glob.h rule.
71600         fcntl-h: Avoid #define replacements in C++ mode.
71601         * lib/fcntl.in.h: Include c++defs.h.
71602         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71603         * modules/fcntl-h (Depends-on): Add c++defs.
71604         (Makefile.am): Update fcntl.h rule.
71606         dirent: Avoid #define replacements in C++ mode.
71607         * lib/dirent.in.h: Include c++defs.h.
71608         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71609         namespaced alias symbol.
71610         (dirfd): Update declaration.
71611         * modules/dirent (Depends-on): Add c++defs.
71612         (Makefile.am): Update dirent.h rule.
71614         ctype: Make it usable in C++ code.
71615         * lib/ctype.in.h: Include c++defs.h.
71616         (isblank): Declare as extern "C".
71617         * modules/ctype (Depends-on): Add c++defs.
71618         (Makefile.am): Update ctype.h rule.
71620         New module 'c++defs'.
71621         * modules/c++defs: New file.
71622         * build-aux/c++defs.h: New file.
71623         Reported by John W. Eaton <jwe@gnu.org>.
71625 2010-03-07  Bruno Haible  <bruno@clisp.org>
71627         logb: Provide missing declaration for Cygwin.
71628         * lib/math.in.h (logb): New declaration.
71629         * m4/logb.m4: New file.
71630         * modules/logb (Files): Add m4/logb.m4.
71631         (Depends-on): Add math.
71632         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71633         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71635         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71636         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71638 2010-03-07  Bruno Haible  <bruno@clisp.org>
71640         Fix test-cond link error.
71641         * tests/test-cond.c: Include <stdio.h>.
71643 2010-03-07  Bruno Haible  <bruno@clisp.org>
71645         Fix test-dirent-safer link error.
71646         * modules/dirent-safer-tests (Makefile.am): Define
71647         test_dirent_safer_LDADD.
71649 2010-03-07  Bruno Haible  <bruno@clisp.org>
71651         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71652         among default module list.
71654 2010-03-07  Bruno Haible  <bruno@clisp.org>
71656         Fix link error on platforms with GNU libiconv.
71657         * modules/unistr/u8-strcoll-tests (Makefile): Define
71658         test_u8_strcoll_LDADD.
71659         * modules/unistr/u16-strcoll-tests (Makefile): Define
71660         test_u16_strcoll_LDADD.
71661         * modules/unistr/u32-strcoll-tests (Makefile): Define
71662         test_u32_strcoll_LDADD.
71664 2010-03-07  Bruno Haible  <bruno@clisp.org>
71666         Use POSIX declarations for socket functions.
71667         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71668         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71669         rpl_sendto): Change declaration to match POSIX.
71670         * lib/connect.c (rpl_connect): Likewise.
71671         * lib/accept.c (rpl_accept): Likewise.
71672         * lib/bind.c (rpl_bind): Likewise.
71673         * lib/getpeername.c (rpl_getpeername): Likewise.
71674         * lib/getsockname.c (rpl_getsockname): Likewise.
71675         * lib/recv.c (rpl_recv): Likewise.
71676         * lib/send.c (rpl_send): Likewise.
71677         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71678         * lib/sendto.c (rpl_sendto): Likewise.
71680 2010-03-06  Bruno Haible  <bruno@clisp.org>
71682         Clarify access, euidaccess, faccessat.
71683         * doc/posix-functions/faccessat.texi: Mention security problem under
71684         "Other problems", not "Portability problems".
71685         * doc/posix-functions/access.texi: Likewise. Mention a related security
71686         problem.
71687         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71688         * lib/euidaccess.c: Add comments about platforms.
71689         * lib/unistd.in.h (access, euidaccess): Add warnings.
71691 2010-03-07  Bruno Haible  <bruno@clisp.org>
71693         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71694         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71695         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71696         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71697         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71698         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71699         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71700         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71701         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71702         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71703         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71704         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71705         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71706         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71707         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71708         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71709         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71710         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71711         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71712         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71713         Likewise.
71714         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71715         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71716         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71717         Likewise.
71718         * tests/test-spawn.c (main): Make it work when
71719         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71721 2010-03-07  Bruno Haible  <bruno@clisp.org>
71723         Fix incorrect Makefile.am generation in German locale.
71724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71725         Execute sed command with character range in C locale.
71727 2010-03-06  Bruno Haible  <bruno@clisp.org>
71729         Tests for module 'iconv-h'.
71730         * modules/iconv-h-tests: New file.
71731         * tests/test-iconv-h.c: New file.
71733         New module 'iconv-h'.
71734         * modules/iconv-h: New file.
71735         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71736         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71737         (configure.ac): Remove gl_ICONV_H.
71738         (Makefile.am): Remove rule for iconv.h.
71740 2010-03-06  Bruno Haible  <bruno@clisp.org>
71742         More consistent naming of *.m4 files.
71743         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71744         * modules/wctype (Files): Update.
71746         More consistent naming of *.m4 files.
71747         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71748         * modules/wchar (Files): Update.
71750 2010-03-06  Jim Meyering  <meyering@redhat.com>
71752         euidaccess: relax license to LGPLv2+
71753         * modules/euidaccess (License): Relax to LGPLv2+.
71755 2010-03-06  Bruno Haible  <bruno@clisp.org>
71757         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71758         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71759         (Makefile.am): Augment lib_SOURCES instead.
71761 2010-03-04  Jim Meyering  <meyering@redhat.com>
71763         utime: remove obsolete module
71764         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71765         unnecessary for years, and has been marked as obsolete for 10 months.
71766         * modules/utime: Remove file.
71767         * lib/utime.c: Remove file.
71768         * m4/utime.m4: Remove file.
71769         * m4/utimes-null.m4: Remove file.
71770         * doc/posix-functions/utime.texi (utime): Remove reference to
71771         the module.  Move the sole "fixed by gnulib" item into the
71772         "problems not fixed by Gnulib" list.
71773         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71775 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71777         * modules/exit (License): Relax license to LGPLv2+.
71778         (Status): Mark as obsolete.
71779         * NEWS: Mention deprecated 'exit' module.
71780         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71781         of now obsolete 'exit'.
71783 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71785         fts-lgpl: remove unused module
71786         * modules/fts-lgpl: Remove.
71787         * MODULES.html.sh (func_all_modules): Adjust.
71788         * check-module (find_included_lib_files): Adjust.
71789         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71791 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71793         copy-acl: enhance Solaris ACL error handling
71794         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71795         * lib/set-mode-acl.c (qset_acl): Likewise.
71797 2010-03-02  Bruno Haible  <bruno@clisp.org>
71799         spawn: Don't override the system defined values on FreeBSD 8.
71800         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71801         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71802         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71803         if HAVE_POSIX_SPAWN is 1.
71804         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71806 2010-03-01  Bruno Haible  <bruno@clisp.org>
71808         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71809         regarding Automake.
71811 2010-02-25  Bruno Haible  <bruno@clisp.org>
71813         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71814         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71815         setting, not afterwards.
71816         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71818 2010-02-24  Eric Blake  <eblake@redhat.com>
71820         bootstrap, git-version-gen: use timestamp
71821         * build-aux/git-version-gen (scriptversion): Force UTC.
71822         * build-aux/bootstrap (scriptversion): New variable.
71824         bootstrap: allow older git
71825         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71826         older than 1.6.4.  Requested by the libvirt project.
71828 2010-02-23  Eric Blake  <eblake@redhat.com>
71830         warn-on-use: work with old autoconf
71831         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71832         AS_VAR semantics of autoconf 2.60.
71833         Reported by Bruno Haible.
71835         bootstrap: improve some comments
71836         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71837         clarification comments.
71839         gettimeofday: provide correct function
71840         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71841         when replacement is declared, otherwise provide gettimeofday.
71842         Reported by Michael Goffioul.
71844 2010-02-23  Jim Meyering  <meyering@redhat.com>
71846         lib-ignore: relax license to "unlimited", not LGPLv2+
71847         * modules/lib-ignore (License): Relax to "unlimited".
71849 2010-02-23  Jim Meyering  <meyering@redhat.com>
71851         lib-ignore: relax license to LGPLv2+
71852         * modules/lib-ignore (License): Relax to LGPLv2+.
71854 2010-02-22  Eric Blake  <eblake@redhat.com>
71856         lseek: avoid bash 3.2 broken pipe bug
71857         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71858         warning from bash 3.2.
71859         Reported by Ben Pfaff, with analysis from Bruno Haible.
71861         bootstrap: support non-FSF copyright holder
71862         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71863         bootstrap.conf override of COPYRIGHT_HOLDER.
71864         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71866         bootstrap: interoperate with gettext 0.14.1
71867         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71869         bootstrap: allow for alternate submodule location
71870         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71871         hardcoding submodule location.
71872         (gnulib_mk): Allow direct use of Makefile.am.
71874         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71875         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71876         rather than reconfiguring where the submodule points.
71878         gettimeofday: restore support for platforms that lack function
71879         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71880         replacement if function is missing.
71881         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71882         * modules/sys_time (Makefile.am): Substitute it.
71883         * lib/sys_time.in.h (gettimeofday): Check it.
71884         Reported by Michael Goffioul.
71886 2010-02-21  Bruno Haible  <bruno@clisp.org>
71888         * lib/stdio.in.h (obstack_printf): Fix typo.
71890 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71892         vc-list-files: use bzr ls's -R option
71893         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71894         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71896 2010-02-21  Jim Meyering  <meyering@redhat.com>
71898         init.sh: fix EXEEXT shims to work also for names like test-prog
71899         * tests/init.sh: Re-exec a better shell, when needed.
71900         If the current shell lacks support for posix $(...), an init.sh-using
71901         test will now try to find a shell that supports that.  If EXEEXT is
71902         nonempty, we also require support for hyphen-in-alias-name and shell
71903         substitutions like ${var#glob}.  Failure to find such a shell results
71904         in a skipped test.
71906 2010-02-21  Bruno Haible  <bruno@clisp.org>
71908         Really work around "broken pipe" error message from bash 3.2.
71909         * gnulib-tool (func_reset_sigpipe): Remove function.
71910         (echo): In bash 3.2, define to a function that uses printf.
71911         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71913 2010-02-20  Bruno Haible  <bruno@clisp.org>
71915         Restore support for automake 1.9.6 with autoconf 2.61.
71916         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71917         Reported by James Youngman <jay@gnu.org>.
71919 2010-02-20  Bruno Haible  <bruno@clisp.org>
71921         Improve *printf warning condition.
71922         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71923         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71924         and the function is overridden due to SIGPIPE emulation.
71926 2010-02-20  Bruno Haible  <bruno@clisp.org>
71928         * lib/stdio.in.h: Tweak comments.
71930 2010-02-19  Bruno Haible  <bruno@clisp.org>
71932         Make it easier to find modules. New gnulib-tool option '--find'.
71933         * gnulib-tool: New option --find.
71934         (func_usage): Document it.
71935         (func_sanitize_modulelist): New function, extracted from
71936         func_all_modules.
71937         (func_all_modules): Invoke it.
71938         * doc/gnulib-tool.texi (Which modules?): New node.
71940 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71942         * lib/sys_select.in.h: Provide select replacement even if
71943         sys/select.h exists on a system, for Interix.
71945 2010-02-18  Jim Meyering  <meyering@redhat.com>
71947         init.sh: don't use $(...) just yet
71948         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71949         to accommodate e.g., Solaris' /bin/sh.
71951 2010-02-17  Bruno Haible  <bruno@clisp.org>
71953         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71954         Reported by Ludovic Courtès <ludo@gnu.org>.
71956 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71958         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71959         linking with -lintl.
71961 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71963         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71964         if not provided by the system's netdb.h.  Reported by
71965         ludo@gnu.org (Ludovic Courtès).
71967 2010-02-15  Jim Meyering  <meyering@redhat.com>
71969         init.sh: improve portability and efficiency
71970         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71971         "dummy" in a for loop.
71972         Use '!', not '^' to select the complement of a character set used
71973         in a "case" statement.
71974         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71975         Suggestions from Eric Blake.
71977         init.sh: automatically accommodate programs with the .exe suffix
71978         Automatically arrange for an invocation of "prog" to execute the
71979         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71980         may use the simpler "prog", yet still work when built on a system
71981         that requires specifying the added suffix.
71982         Do this by constructing a function named "prog" that invokes
71983         "prog.exe" for each .exe file in selected directories.
71984         * tests/init.sh (find_exe_basenames_): New function.
71985         (create_exe_shim_functions_): New function.
71986         (path_prepend_): Use it.
71988         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71989         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71990         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71992 2010-02-14  Jim Meyering  <meyering@redhat.com>
71994         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71995         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71996         (sc_prohibit_hash_pjw_without_use): New rule.
71998         maint.mk: allow the default upload destination dir to be overridden
71999         * top/maint.mk (upload_dest_dir_): Define with a default that
72000         preserves the status quo.
72001         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72002         Reported by Peter Simons.
72004         maint.mk: prohibit inclusion of "hash.h" without_use
72005         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72007 2010-02-10  Jim Meyering  <meyering@redhat.com>
72009         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72010         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72012 2010-02-09  Eric Blake  <ebb9@byu.net>
72013         and Bruno Haible  <bruno@clisp.org>
72015         obstack-printf-posix: ensure declaration
72016         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72017         extracted from gl_FUNC_OBSTACK_PRINTF.
72018         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72019         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72020         Likewise.
72021         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72022         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72023         0.
72025 2010-02-08  Bruno Haible  <bruno@clisp.org>
72027         gnulib-tool: Fix typo in 2010-02-07 commit.
72028         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72029         Reported by Eric Blake.
72031 2010-02-07  Bruno Haible  <bruno@clisp.org>
72033         gnulib-tool: Fix up caching patches.
72034         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72035         option --no-cache. Use associative arrays when supported by the shell.
72036         (sed_comments): New variable.
72037         (modcache): Renamed from do_cache.
72038         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72039         abbreviate unnecessarily.
72040         (have_associative): New variable.
72041         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72042         way also for ksh and zsh.
72043         (func_init_sed_convert_to_cache_statements): New function, extracted
72044         from func_cache_lookup_module. Add support for associative arrays.
72045         Don't set the c_MODULE_cached variable here. Ignore all lines before
72046         the first field header. Remove only the final newline, not all trailing
72047         newlines. Support empty fields correctly. Limit the use of 'eval' to
72048         assignments.
72049         (func_get_description, func_get_status, func_get_notice,
72050         func_get_applicability, func_get_filelist, func_get_dependencies,
72051         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72052         func_get_automake_snippet, func_get_include_directive,
72053         func_get_link_directive, func_get_license, func_get_maintainer):
72054         Update documentation. List the unoptimized code first. Add support for
72055         associative arrays. Limit the use of 'eval' to assignments.
72056         (func_get_applicability): Undo stylistic pessimisations.
72057         (func_get_automake_snippet, func_get_include_directive): Reduce code
72058         duplication.
72059         (func_modules_transitive_closure, func_modules_add_dummy,
72060         func_modules_notice, func_modules_to_filelist, func_add_file,
72061         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72062         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72063         func_create_testdir, func_create_megatestdir): Update documentation.
72065 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72067         * gnulib-tool (func_cache_lookup_module): Store the module name
72068         belonging to the cache variable; error out if two different
72069         module names map to the same cache variable name.
72071 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72073         gnulib-tool: Make caching optional.
72074         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72075         Update matching short versions of --no-changelog.
72076         (func_usage): Update.
72077         (sed_extract_cache_prog): Renamed from ...
72078         (sed_extract_prog): ... this; revert to old extraction script.
72079         (func_get_description, func_get_status)
72080         (func_get_notice, func_get_applicability, func_get_filelist)
72081         (func_get_dependencies, func_get_autoconf_early_snippet)
72082         (func_get_autoconf_snippet, func_get_automake_snippet)
72083         (func_get_include_directive, func_get_link_directive)
72084         (func_get_license, func_get_maintainer): If $do_cache is false,
72085         use old, non-caching extraction scripts.
72086         Suggestion by Bruno Haible.
72088 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72090         gnulib-tool: cache module metainformation.
72091         * gnulib-tool (sed_extract_prog): Match newline before each
72092         header, and rewrite header to a shell variable suffix.
72093         (func_cache_var, func_cache_lookup_module): New functions,
72094         to turn a module name into a cache variable prefix, and to
72095         look up and cache module metainformation.
72096         (func_get_description, func_get_status)
72097         (func_get_notice, func_get_applicability, func_get_filelist)
72098         (func_get_dependencies, func_get_autoconf_early_snippet)
72099         (func_get_autoconf_snippet, func_get_automake_snippet)
72100         (func_get_include_directive, func_get_link_directive)
72101         (func_get_license, func_get_maintainer): Use
72102         func_cache_lookup_module.
72104 2010-02-07  Bruno Haible  <bruno@clisp.org>
72106         fnctl: Fix missing dependency.
72107         * modules/fcntl (Depends-on): Add getdtablesize.
72108         Reported by John W. Eaton <jwe@gnu.org>.
72110 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72112         Argp: fix recognition of short alias options.
72114         * lib/argp-parse.c (convert_options): Fix improper use of
72115         `|' between character values.
72116         * tests/test-argp.c (group1_option): New alias option
72117         --read (-r).
72118         (group1_parser): Special handling for 'r'.
72119         (test15): New test case.
72120         (test_fun): Add test15.
72121         * tests/test-argp-2.sh: Update expected --help and --usage
72122         outputs.
72124 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72126         * tests/test-argp.c: Fix indentation.
72128 2010-02-04  Eric Blake  <ebb9@byu.net>
72130         gettimeofday: expose type of second argument
72131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72132         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72133         * tests/test-gettimeofday.c: Use it to silence warning.
72134         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72135         the issue.
72137 2010-02-03  Jim Meyering  <meyering@redhat.com>
72139         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72140         * lib/regcomp.c (TYPE_SIGNED): Define.
72141         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72143         regcomp.c: avoid a new -Wshadow warning
72144         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72146 2010-02-01  Jim Meyering  <meyering@redhat.com>
72148         removing useless parentheses in cpp #define directives
72149         For motivation, see commit c0221df4, "define STREQ(a,b)
72150         consistently, removing useless parentheses"
72151         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72152         * lib/mountlist.c (MNT_IGNORE): Likewise.
72153         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72155 2010-02-01  Eric Blake  <ebb9@byu.net>
72157         sys_time: use link-warning
72158         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72159         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72160         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72161         * modules/sys_time (Depends-on): Add warn-on-use.
72162         (Makefile.am): Always build replacement.
72163         (configure.ac): Update substitutions.
72164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72165         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72166         bother with SYS_TIME_H.
72167         * modules/gettimeofday (configure.ac): Declare indicator.
72168         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72169         in use.
72171         closein-tests: silence compiler warning
72172         * tests/test-closein.c (main): Ignore fread result.
72173         * modules/closein-tests (Depends-on): Add ignore-value.
72175         tests: silence warning about system return
72176         * tests/test-areadlink-with-size.c (main): Ignore system result.
72177         * tests/test-areadlink.c (main): Likewise.
72178         * tests/test-areadlinkat-with-size.c (main): Likewise.
72179         * tests/test-areadlinkat.c (main): Likewise.
72180         * tests/test-canonicalize-lgpl.c (main): Likewise.
72181         * tests/test-canonicalize.c (main): Likewise.
72182         * tests/test-chown.c (main): Likewise.
72183         * tests/test-fchownat.c (main): Likewise.
72184         * tests/test-fdutimensat.c (main): Likewise.
72185         * tests/test-fstatat.c (main): Likewise.
72186         * tests/test-futimens.c (main): Likewise.
72187         * tests/test-lchown.c (main): Likewise.
72188         * tests/test-link.c (main): Likewise.
72189         * tests/test-linkat.c (main): Likewise.
72190         * tests/test-lstat.c (main): Likewise.
72191         * tests/test-mkdir.c (main): Likewise.
72192         * tests/test-mkdirat.c (main): Likewise.
72193         * tests/test-mkfifo.c (main): Likewise.
72194         * tests/test-mkfifoat.c (main): Likewise.
72195         * tests/test-mknod.c (main): Likewise.
72196         * tests/test-readlink.c (main): Likewise.
72197         * tests/test-remove.c (main): Likewise.
72198         * tests/test-rename.c (main): Likewise.
72199         * tests/test-renameat.c (main): Likewise.
72200         * tests/test-rmdir.c (main): Likewise.
72201         * tests/test-symlink.c (main): Likewise.
72202         * tests/test-symlinkat.c (main): Likewise.
72203         * tests/test-unlink.c (main): Likewise.
72204         * tests/test-unlinkat.c (main): Likewise.
72205         * tests/test-utimens.c (main): Likewise.
72206         * tests/test-utimensat.c (main): Likewise.
72207         * modules/areadlink-tests (Depends-on): Add ignore-value.
72208         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72209         * modules/areadlinkat-tests (Depends-on): Likewise.
72210         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72211         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72212         * modules/canonicalize-tests (Depends-on): Likewise.
72213         * modules/chown-tests (Depends-on): Likewise.
72214         * modules/fdutimensat-tests (Depends-on): Likewise.
72215         * modules/futimens-tests (Depends-on): Likewise.
72216         * modules/lchown-tests (Depends-on): Likewise.
72217         * modules/link-tests (Depends-on): Likewise.
72218         * modules/linkat-tests (Depends-on): Likewise.
72219         * modules/lstat-tests (Depends-on): Likewise.
72220         * modules/mkdir-tests (Depends-on): Likewise.
72221         * modules/mkfifo-tests (Depends-on): Likewise.
72222         * modules/mkfifoat-tests (Depends-on): Likewise.
72223         * modules/mknod-tests (Depends-on): Likewise.
72224         * modules/openat-tests (Depends-on): Likewise.
72225         * modules/readlink-tests (Depends-on): Likewise.
72226         * modules/remove-tests (Depends-on): Likewise.
72227         * modules/rename-tests (Depends-on): Likewise.
72228         * modules/renameat-tests (Depends-on): Likewise.
72229         * modules/rmdir-tests (Depends-on): Likewise.
72230         * modules/symlink-tests (Depends-on): Likewise.
72231         * modules/symlinkat-tests (Depends-on): Likewise.
72232         * modules/unlink-tests (Depends-on): Likewise.
72233         * modules/utimens-tests (Depends-on): Likewise.
72234         * modules/utimensat-tests (Depends-on): Likewise.
72236 2010-01-31  Bruno Haible  <bruno@clisp.org>
72238         Perform the same test for many <math.h> functions.
72239         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72240         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72241         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72242         of gl_MATHFUNC.
72243         * modules/acos (configure.ac): Likewise.
72244         * modules/asin (configure.ac): Likewise.
72245         * modules/atan (configure.ac): Likewise.
72246         * modules/atan2 (configure.ac): Likewise.
72247         * modules/cbrt (configure.ac): Likewise.
72248         * modules/copysign (configure.ac): Likewise.
72249         * modules/cos (configure.ac): Likewise.
72250         * modules/cosh (configure.ac): Likewise.
72251         * modules/erf (configure.ac): Likewise.
72252         * modules/erfc (configure.ac): Likewise.
72253         * modules/exp (configure.ac): Likewise.
72254         * modules/fmod (configure.ac): Likewise.
72255         * modules/hypot (configure.ac): Likewise.
72256         * modules/j0 (configure.ac): Likewise.
72257         * modules/j1 (configure.ac): Likewise.
72258         * modules/jn (configure.ac): Likewise.
72259         * modules/lgamma (configure.ac): Likewise.
72260         * modules/log (configure.ac): Likewise.
72261         * modules/log10 (configure.ac): Likewise.
72262         * modules/log1p (configure.ac): Likewise.
72263         * modules/pow (configure.ac): Likewise.
72264         * modules/remainder (configure.ac): Likewise.
72265         * modules/sin (configure.ac): Likewise.
72266         * modules/sinh (configure.ac): Likewise.
72267         * modules/tan (configure.ac): Likewise.
72268         * modules/tanh (configure.ac): Likewise.
72269         * modules/y0 (configure.ac): Likewise.
72270         * modules/y1 (configure.ac): Likewise.
72271         * modules/yn (configure.ac): Likewise.
72272         Suggested by Paolo Bonzini.
72274 2010-01-31  Bruno Haible  <bruno@clisp.org>
72276         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72278 2010-01-31  Bruno Haible  <bruno@clisp.org>
72280         Work around getdelim() bug on FreeBSD 8.0.
72281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72282         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72283         not work.
72284         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72285         is 1.
72286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72287         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72288         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72289         a non-zero size.
72290         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72292 2010-01-31  Bruno Haible  <bruno@clisp.org>
72294         Work around getline() bug on FreeBSD 8.0.
72295         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72296         and a non-zero size.
72297         * tests/test-getline.c (main): Likewise.
72298         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72299         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72301 2010-01-28  Eric Blake  <ebb9@byu.net>
72303         regex: fix build failure
72304         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72305         platforms.
72307 2010-01-28  Jim Meyering  <meyering@redhat.com>
72309         regex: do not ignore memory allocation failure
72310         * lib/regex_internal.c (create_cd_newstate): Detect
72311         re_node_set_init_copy failure.   Extracted from glibc commit
72312         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72314         regex: sync more white-space changes from libc
72315         * lib/regex_internal.c: White-space only changes.
72316         * lib/regexec.c: Likewise.
72318         regex: add many uses of __attribute_warn_unused_result__
72319         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72320         * lib/regexec.c: Likewise.
72321         Extracted from a messy glibc commit.
72323         regcomp.c: spelling and merge-artifact from glibc
72324         * lib/regcomp.c: Merge remainder of glibc's
72325         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72327         regcomp.c: sync white-space changes from glibc
72328         * lib/regcomp.c: Merge to accommodate white space
72329         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72331         regcomp.c: do not ignore internal return values
72332         * lib/regcomp.c: Do not ignore internal return values.
72333         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72334         but without its white-space changes and spelling fixes.
72336         regex_internal.h: define __attribute_warn_unused_result__
72337         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72339         maint: add a syntax-check rule to check for vulnerable Makefile.in
72340         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72342 2010-01-27  Jim Meyering  <meyering@redhat.com>
72344         ncftpput-ftp: clean up spaces
72345         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72346         Remove trailing blanks.
72348 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72350         * build-aux/git-version-gen: Fix copyright statement.
72351         * build-aux/gnupload: Likewise.
72352         * tests/test-arcfour.c: Likewise.
72353         * tests/test-arctwo.c: Likewise.
72354         * tests/test-count-one-bits.c: Likewise.
72355         * tests/test-crc.c: Likewise.
72356         * tests/test-des.c: Likewise.
72357         * tests/test-gc-arcfour.c: Likewise.
72358         * tests/test-gc-arctwo.c: Likewise.
72359         * tests/test-gc-des.c: Likewise.
72360         * tests/test-gc-hmac-md5.c: Likewise.
72361         * tests/test-gc-hmac-sha1.c: Likewise.
72362         * tests/test-gc-md2.c: Likewise.
72363         * tests/test-gc-md4.c: Likewise.
72364         * tests/test-gc-md5.c: Likewise.
72365         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72366         * tests/test-gc-rijndael.c: Likewise.
72367         * tests/test-gc-sha1.c: Likewise.
72368         * tests/test-gc.c: Likewise.
72369         * tests/test-gethostname.c: Likewise.
72370         * tests/test-gettimeofday.c: Likewise.
72371         * tests/test-hash.c: Likewise.
72372         * tests/test-hmac-md5.c: Likewise.
72373         * tests/test-hmac-sha1.c: Likewise.
72374         * tests/test-md2.c: Likewise.
72375         * tests/test-md4.c: Likewise.
72376         * tests/test-md5.c: Likewise.
72377         * tests/test-memchr.c: Likewise.
72378         * tests/test-memchr2.c: Likewise.
72379         * tests/test-memcmp.c: Likewise.
72380         * tests/test-memmem.c: Likewise.
72381         * tests/test-memrchr.c: Likewise.
72382         * tests/test-rawmemchr.c: Likewise.
72383         * tests/test-read-file.c: Likewise.
72384         * tests/test-rijndael.c: Likewise.
72385         * tests/test-sockets.c: Likewise.
72386         * tests/test-strchrnul.c: Likewise.
72387         * tests/test-strstr.c: Likewise.
72388         * tests/test-strtod.c: Likewise.
72389         * build-aux/ncftpput-ftp: Likewise.
72391 2010-01-26  Eric Blake  <ebb9@byu.net>
72393         ignore-value: update recommended header name
72394         * modules/ignore-value (Include): Only use <> for headers that
72395         exist in glibc.
72397 2010-01-26  Jim Meyering  <meyering@redhat.com>
72399         test-userspec.c: avoid compiler warnings
72400         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72401         and "initialization discards qualifiers..." warnings.
72402         Put the first "uid" in its own scope, and make char* members "const".
72404 2010-01-25  Bruno Haible  <bruno@clisp.org>
72406         gnulib-tool: Make warning diagnostics consistent.
72407         * gnulib-tool (func_warning): New function.
72408         Use it everywhere where gnulib-tool produces output to stderr and it is
72409         not a fatal error.
72411 2010-01-25  Bruno Haible  <bruno@clisp.org>
72413         Fix test dependencies.
72414         * modules/xstrtol-tests (Depends-on): Add inttypes.
72415         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72417 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72419         syntax-check: detect incorrect boolean macro values in config.h
72420         * modules/maintainer-makefile (configure.ac): Parameterize the location
72421         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72422         The logic is from Eric Blake and the location indicated by Jim Meyering.
72423         Note the more natural CONFIG_HEADER name is prohibited by automake
72424         for backwards compatibility reasons.
72425         * top/maint.mk (sc_Wundef_boolean): New rule.
72427 2010-01-25  Jim Meyering  <meyering@redhat.com>
72429         bootstrap: detect MacOS 10.6's shasum, too
72430         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72431         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72433 2010-01-23  Jim Meyering  <meyering@redhat.com>
72435         xstrtoll: new module
72436         * modules/xstrtoll: New file.
72437         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72438         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72439         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72440         ./configure fails if you use this module and lack "long long".
72441         * modules/xstrtoll-tests: New module.
72442         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72443         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72444         new init.sh-based test framework.
72446 2010-01-24  Bruno Haible  <bruno@clisp.org>
72448         Tests for module 'yn'.
72449         * modules/yn-tests: New file.
72450         * tests/test-yn.c: New file.
72452         Tests for module 'y1'.
72453         * modules/y1-tests: New file.
72454         * tests/test-y1.c: New file.
72456         Tests for module 'y0'.
72457         * modules/y0-tests: New file.
72458         * tests/test-y0.c: New file.
72460         Tests for module 'tanh'.
72461         * modules/tanh-tests: New file.
72462         * tests/test-tanh.c: New file.
72464         Tests for module 'tan'.
72465         * modules/tan-tests: New file.
72466         * tests/test-tan.c: New file.
72468         Tests for module 'sqrt'.
72469         * modules/sqrt-tests: New file.
72470         * tests/test-sqrt.c: New file.
72472         Tests for module 'sinh'.
72473         * modules/sinh-tests: New file.
72474         * tests/test-sinh.c: New file.
72476         Tests for module 'sin'.
72477         * modules/sin-tests: New file.
72478         * tests/test-sin.c: New file.
72480         Tests for module 'rint'.
72481         * modules/rint-tests: New file.
72482         * tests/test-rint.c: New file.
72484         Tests for module 'remainder'.
72485         * modules/remainder-tests: New file.
72486         * tests/test-remainder.c: New file.
72488         Tests for module 'pow'.
72489         * modules/pow-tests: New file.
72490         * tests/test-pow.c: New file.
72492         Tests for module 'nextafter'.
72493         * modules/nextafter-tests: New file.
72494         * tests/test-nextafter.c: New file.
72496         Tests for module 'modf'.
72497         * modules/modf-tests: New file.
72498         * tests/test-modf.c: New file.
72500         Tests for module 'logb'.
72501         * modules/logb-tests: New file.
72502         * tests/test-logb.c: New file.
72504         Tests for module 'log1p'.
72505         * modules/log1p-tests: New file.
72506         * tests/test-log1p.c: New file.
72508         Tests for module 'log10'.
72509         * modules/log10-tests: New file.
72510         * tests/test-log10.c: New file.
72512         Tests for module 'log'.
72513         * modules/log-tests: New file.
72514         * tests/test-log.c: New file.
72516         Tests for module 'lgamma'.
72517         * modules/lgamma-tests: New file.
72518         * tests/test-lgamma.c: New file.
72520         Tests for module 'ldexp'.
72521         * modules/ldexp-tests: New file.
72522         * tests/test-ldexp.c: New file.
72524         Tests for module 'jn'.
72525         * modules/jn-tests: New file.
72526         * tests/test-jn.c: New file.
72528         Tests for module 'j1'.
72529         * modules/j1-tests: New file.
72530         * tests/test-j1.c: New file.
72532         Tests for module 'j0'.
72533         * modules/j0-tests: New file.
72534         * tests/test-j0.c: New file.
72536         Tests for module 'hypot'.
72537         * modules/hypot-tests: New file.
72538         * tests/test-hypot.c: New file.
72540         Tests for module 'fmod'.
72541         * modules/fmod-tests: New file.
72542         * tests/test-fmod.c: New file.
72544         Tests for module 'fabs'.
72545         * modules/fabs-tests: New file.
72546         * tests/test-fabs.c: New file.
72548         Tests for module 'exp'.
72549         * modules/exp-tests: New file.
72550         * tests/test-exp.c: New file.
72552         Tests for module 'erfc'.
72553         * modules/erfc-tests: New file.
72554         * tests/test-erfc.c: New file.
72556         Tests for module 'erf'.
72557         * modules/erf-tests: New file.
72558         * tests/test-erf.c: New file.
72560         Tests for module 'cosh'.
72561         * modules/cosh-tests: New file.
72562         * tests/test-cosh.c: New file.
72564         Tests for module 'cos'.
72565         * modules/cos-tests: New file.
72566         * tests/test-cos.c: New file.
72568         Tests for module 'copysign'.
72569         * modules/copysign-tests: New file.
72570         * tests/test-copysign.c: New file.
72572         Tests for module 'cbrt'.
72573         * modules/cbrt-tests: New file.
72574         * tests/test-cbrt.c: New file.
72576         Tests for module 'atan2'.
72577         * modules/atan2-tests: New file.
72578         * tests/test-atan2.c: New file.
72580         Tests for module 'atan'.
72581         * modules/atan-tests: New file.
72582         * tests/test-atan.c: New file.
72584         Tests for module 'asin'.
72585         * modules/asin-tests: New file.
72586         * tests/test-asin.c: New file.
72588         Tests for module 'acos'.
72589         * modules/acos-tests: New file.
72590         * tests/test-acos.c: New file.
72592 2010-01-24  Bruno Haible  <bruno@clisp.org>
72594         Fix tests for common <math.h> functions.
72595         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72596         code snippet that references the function pointer, rather than merely
72597         calling the function. Substitute the FUNC_LIBM variable.
72598         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72599         * modules/acos (configure.ac): Likewise.
72600         * modules/asin (configure.ac): Likewise.
72601         * modules/atan (configure.ac): Likewise.
72602         * modules/atan2 (configure.ac): Likewise.
72603         * modules/cbrt (configure.ac): Likewise.
72604         * modules/copysign (configure.ac): Likewise.
72605         * modules/cos (configure.ac): Likewise.
72606         * modules/cosh (configure.ac): Likewise.
72607         * modules/erf (configure.ac): Likewise.
72608         * modules/erfc (configure.ac): Likewise.
72609         * modules/exp (configure.ac): Likewise.
72610         * modules/fabs (configure.ac): Likewise.
72611         * modules/fmod (configure.ac): Likewise.
72612         * modules/hypot (configure.ac): Likewise.
72613         * modules/j0 (configure.ac): Likewise.
72614         * modules/j1 (configure.ac): Likewise.
72615         * modules/jn (configure.ac): Likewise.
72616         * modules/ldexp (configure.ac): Likewise.
72617         * modules/lgamma (configure.ac): Likewise.
72618         * modules/log (configure.ac): Likewise.
72619         * modules/log10 (configure.ac): Likewise.
72620         * modules/log1p (configure.ac): Likewise.
72621         * modules/logb (configure.ac): Likewise.
72622         * modules/modf (configure.ac): Likewise.
72623         * modules/nextafter (configure.ac): Likewise.
72624         * modules/pow (configure.ac): Likewise.
72625         * modules/remainder (configure.ac): Likewise.
72626         * modules/rint (configure.ac): Likewise.
72627         * modules/sin (configure.ac): Likewise.
72628         * modules/sinh (configure.ac): Likewise.
72629         * modules/tan (configure.ac): Likewise.
72630         * modules/tanh (configure.ac): Likewise.
72631         * modules/y0 (configure.ac): Likewise.
72632         * modules/y1 (configure.ac): Likewise.
72633         * modules/yn (configure.ac): Likewise.
72635 2010-01-24  Bruno Haible  <bruno@clisp.org>
72637         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72638         * tests/test-acosl.c (x): New variable.
72639         (main): Store argument in x and fetch it from x.
72640         * tests/test-asinl.c (x): New variable.
72641         (main): Store argument in x and fetch it from x.
72642         * tests/test-atanl.c (x): New variable.
72643         (main): Store argument in x and fetch it from x.
72644         * tests/test-cosl.c (x): New variable.
72645         (main): Store argument in x and fetch it from x.
72646         * tests/test-expl.c (x): New variable.
72647         (main): Store argument in x and fetch it from x.
72648         * tests/test-logl.c (x): New variable.
72649         (main): Store argument in x and fetch it from x.
72650         * tests/test-sinl.c (x): New variable.
72651         (main): Store argument in x and fetch it from x.
72652         * tests/test-sqrtl.c (x): New variable.
72653         (main): Store argument in x and fetch it from x.
72654         * tests/test-tanl.c (x): New variable.
72655         (main): Store argument in x and fetch it from x.
72657 2010-01-24  Bruno Haible  <bruno@clisp.org>
72659         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72660         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72661         assignments to the initial TESTS_ENVIRONMENT.
72662         * doc/gnulib.texi (Unit test modules): Document it.
72663         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72664         TESTS_ENVIRONMENT.
72665         * modules/btowc-tests (Makefile.am): Likewise.
72666         * modules/c-stack-tests (Makefile.am): Likewise.
72667         * modules/c-strcase-tests (Makefile.am): Likewise.
72668         * modules/copy-file-tests (Makefile.am): Likewise.
72669         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72670         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72671         * modules/mbrtowc-tests (Makefile.am): Likewise.
72672         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72673         * modules/mbscasestr-tests (Makefile.am): Likewise.
72674         * modules/mbschr-tests (Makefile.am): Likewise.
72675         * modules/mbscspn-tests (Makefile.am): Likewise.
72676         * modules/mbsinit-tests (Makefile.am): Likewise.
72677         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72678         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72679         * modules/mbspbrk-tests (Makefile.am): Likewise.
72680         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72681         * modules/mbsrchr-tests (Makefile.am): Likewise.
72682         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72683         * modules/mbsspn-tests (Makefile.am): Likewise.
72684         * modules/mbsstr-tests (Makefile.am): Likewise.
72685         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72686         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72687         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72688         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72689         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72690         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72691         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72692         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72693         * modules/wcrtomb-tests (Makefile.am): Likewise.
72694         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72695         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72696         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72697         assignments from TESTS_ENVIRONMENT.
72698         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72699         augmentation.
72700         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72701         * modules/atexit-tests (Makefile.am): Likewise.
72702         * modules/binary-io-tests (Makefile.am): Likewise.
72703         * modules/closein-tests (Makefile.am): Likewise.
72704         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72705         * modules/exclude-tests (Makefile.am): Likewise.
72706         * modules/fflush-tests (Makefile.am): Likewise.
72707         * modules/fpending-tests (Makefile.am): Likewise.
72708         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72709         * modules/freadahead-tests (Makefile.am): Likewise.
72710         * modules/freadptr-tests (Makefile.am): Likewise.
72711         * modules/freadseek-tests (Makefile.am): Likewise.
72712         * modules/fseek-tests (Makefile.am): Likewise.
72713         * modules/fseeko-tests (Makefile.am): Likewise.
72714         * modules/ftell-tests (Makefile.am): Likewise.
72715         * modules/ftello-tests (Makefile.am): Likewise.
72716         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72717         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72718         * modules/lseek-tests (Makefile.am): Likewise.
72719         * modules/parse-duration-tests (Makefile.am): Likewise.
72720         * modules/perror-tests (Makefile.am): Likewise.
72721         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72722         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72723         * modules/pipe-tests (Makefile.am): Likewise.
72724         * modules/pread-tests (Makefile.am): Likewise.
72725         * modules/printf-posix-tests (Makefile.am): Likewise.
72726         * modules/select-tests (Makefile.am): Likewise.
72727         * modules/sigpipe-tests (Makefile.am): Likewise.
72728         * modules/tsearch-tests (Makefile.am): Likewise.
72729         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72730         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72731         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72732         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72733         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72734         * modules/version-etc-tests (Makefile.am): Likewise.
72735         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72736         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72737         * modules/xalloc-die-tests (Makefile.am): Likewise.
72738         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72739         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72740         * modules/xstrtol-tests (Makefile.am): Likewise.
72741         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72742         * modules/yesno-tests (Makefile.am): Likewise.
72743         Suggested by Jim Meyering.
72745 2010-01-24  Bruno Haible  <bruno@clisp.org>
72747         More documentation.
72748         * doc/gnulib.texi (Writing modules): New chapter.
72749         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72750         the new chapter.
72752 2010-01-24  Jim Meyering  <meyering@redhat.com>
72754         maint.mk: do not prepend "./" after filtering
72755         * top/maint.mk (_prepend_srcdir_prefix): New variable
72756         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72757         "./" when $(srcdir) is ".".
72759         define STREQ(a,b) consistently, removing useless parentheses
72760         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72761         since the only risk is that "a" or "b" contains an unparenthesized
72762         comma, but if either did that, STREQ would have 3 or more arguments.
72763         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72764         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72765         * lib/hash-triple.c (STREQ): Likewise.
72766         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72767         * lib/getugroups.c (STREQ): Likewise.
72769 2010-01-23  Jim Meyering  <meyering@redhat.com>
72771         maint.mk: fix syntax-check in a non-srcdir build directory
72772         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72773         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72775 2010-01-22  Jim Meyering  <meyering@redhat.com>
72777         userspec: add unit tests
72778         * tests/test-userspec.c: New file.
72779         * modules/userspec-tests: Likewise.
72781 2010-01-21  Jim Meyering  <meyering@redhat.com>
72783         maint.mk: handle source file names containing "." robustly
72784         * top/maint.mk (_dot_escaped_srcdir): Define.
72785         (VC_LIST): Use it in LHS of sed substitution.
72787 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72789         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72790         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72791         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72792         from a non-srcdir build.
72794 2010-01-20  Eric Blake  <ebb9@byu.net>
72796         warn-on-use: use instead of link-warning
72797         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72798         * modules/unistd (Depends-on, Makefile.am): Likewise.
72799         * modules/arpa_inet (Depends-on): Replace link-warning with
72800         warn-on-use.
72801         (Makefile.am): Update rules accordingly.
72802         * modules/ctype (Depends-on, Makefile.am): Likewise.
72803         * modules/dirent (Depends-on, Makefile.am): Likewise.
72804         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72805         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72806         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72807         * modules/locale (Depends-on, Makefile.am): Likewise.
72808         * modules/math (Depends-on, Makefile.am): Likewise.
72809         * modules/search (Depends-on, Makefile.am): Likewise.
72810         * modules/signal (Depends-on, Makefile.am): Likewise.
72811         * modules/spawn (Depends-on, Makefile.am): Likewise.
72812         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72813         * modules/string (Depends-on, Makefile.am): Likewise.
72814         * modules/strings (Depends-on, Makefile.am): Likewise.
72815         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72816         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72817         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72818         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72819         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72820         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72821         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72822         * modules/wchar (Depends-on, Makefile.am): Likewise.
72823         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72824         should be poisoned.
72825         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72826         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72827         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72828         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72829         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72830         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72831         * m4/math_h.m4 (gl_MATH_H): Likewise.
72832         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72833         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72834         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72835         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72836         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72837         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72838         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72839         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72840         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72842         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72844         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72845         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72846         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72847         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72848         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72849         GL_LINK_WARNING.
72850         * lib/ctype.in.h: Likewise.
72851         * lib/dirent.in.h: Likewise.
72852         * lib/fcntl.in.h: Likewise.
72853         * lib/inttypes.in.h: Likewise.
72854         * lib/langinfo.in.h: Likewise.
72855         * lib/locale.in.h: Likewise.
72856         * lib/math.in.h: Likewise.
72857         * lib/search.in.h: Likewise.
72858         * lib/signal.in.h: Likewise.
72859         * lib/spawn.in.h: Likewise.
72860         * lib/stdio.in.h: Likewise.
72861         * lib/stdlib.in.h: Likewise.
72862         * lib/string.in.h: Likewise.
72863         * lib/strings.in.h: Likewise.
72864         * lib/sys_file.in.h: Likewise.
72865         * lib/sys_ioctl.in.h: Likewise.
72866         * lib/sys_select.in.h: Likewise.
72867         * lib/sys_socket.in.h: Likewise.
72868         * lib/sys_stat.in.h: Likewise.
72869         * lib/sys_times.in.h: Likewise.
72870         * lib/sys_utsname.in.h: Likewise.
72871         * lib/unistd.in.h: Likewise.
72872         * lib/wchar.in.h: Likewise.
72874 2010-01-20  Bruno Haible  <bruno@clisp.org>
72876         Avoid duplicate -lm.
72877         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72878         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72879         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72880         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72881         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72882         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72883         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72884         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72886         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72887         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72888         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72889         Reported by Paolo Bonzini.
72891 2010-01-19  Bruno Haible  <bruno@clisp.org>
72893         langinfo, nl_langinfo: Relicense under LGPLv2+.
72894         * modules/langinfo (License): Change to LGPLv2+.
72895         * modules/nl_langinfo (License): Likewise.
72896         Patch by David Lutterkort <lutter@redhat.com>.
72898 2010-01-19  Bruno Haible  <bruno@clisp.org>
72900         Avoid compilation error with cc on OSF/1 5.1.
72901         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72902         statement, not before.
72903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72905 2010-01-18  Bruno Haible  <bruno@clisp.org>
72907         Avoid a link error due to the __printf__ symbol.
72908         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72909         and 2.6.x.
72910         (__format__, __printf__): Remove definitions.
72911         * lib/argp-fmtstream.h: Likewise.
72912         * lib/argp.h: Likewise.
72913         * lib/error.h: Likewise.
72914         * lib/vasnprintf.h: Likewise.
72915         * lib/xprintf.h: Likewise.
72916         * lib/xvasprintf.h: Likewise.
72917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72919 2010-01-18  Bruno Haible  <bruno@clisp.org>
72921         Tests for module 'tanl'.
72922         * modules/tanl-tests: New file.
72923         * tests/test-tanl.c: New file.
72925         Tests for module 'sqrtl'.
72926         * modules/sqrtl-tests: New file.
72927         * tests/test-sqrtl.c: New file.
72929         Tests for module 'sinl'.
72930         * modules/sinl-tests: New file.
72931         * tests/test-sinl.c: New file.
72933         Tests for module 'logl'.
72934         * modules/logl-tests: New file.
72935         * tests/test-logl.c: New file.
72937         Tests for module 'expl'.
72938         * modules/expl-tests: New file.
72939         * tests/test-expl.c: New file.
72941         Tests for module 'cosl'.
72942         * modules/cosl-tests: New file.
72943         * tests/test-cosl.c: New file.
72945         Tests for module 'atanl'.
72946         * modules/atanl-tests: New file.
72947         * tests/test-atanl.c: New file.
72949         Tests for module 'asinl'.
72950         * modules/asinl-tests: New file.
72951         * tests/test-asinl.c: New file.
72953         Tests for module 'acosl'.
72954         * modules/acosl-tests: New file.
72955         * tests/test-acosl.c: New file.
72957         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72958         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72959         tanl): Use the standard gnulib idiom.
72960         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72961         * lib/sinl.c: Likewise.
72962         * lib/tanl.c: Don't include trigl.c.
72963         (kernel_tanl): Make static.
72964         * lib/sincosl.c: Include trigl.h first.
72965         * lib/trigl.c: Likewise.
72966         * m4/acosl.m4: New file.
72967         * m4/asinl.m4: New file.
72968         * m4/atanl.m4: New file.
72969         * m4/cosl.m4: New file.
72970         * m4/expl.m4: New file.
72971         * m4/logl.m4: New file.
72972         * m4/sinl.m4: New file.
72973         * m4/sqrtl.m4: New file.
72974         * m4/tanl.m4: New file.
72975         * m4/mathl.m4: Remove file.
72976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72977         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72978         Don't initialize GNULIB_MATHL.
72979         * modules/acosl: New file.
72980         * modules/asinl: New file.
72981         * modules/atanl: New file.
72982         * modules/cosl: New file.
72983         * modules/expl: New file.
72984         * modules/logl: New file.
72985         * modules/sinl: New file.
72986         * modules/sqrtl: New file.
72987         * modules/tanl: New file.
72988         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72989         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72990         substitute GNULIB_MATHL.
72991         * modules/mathl: Rewritten.
72992         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72993         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72994         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72995         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72996         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72997         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72998         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72999         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73000         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73002 2010-01-18  Bruno Haible  <bruno@clisp.org>
73004         sqrt: Make gl_FUNC_SQRT requirable.
73005         * m4/sqrt.m4: New file.
73006         * modules/sqrt (Files): Add it.
73007         (configure.ac): Invoke gl_FUNC_SQRT.
73009 2010-01-18  Bruno Haible  <bruno@clisp.org>
73011         New modules for common <math.h> functions.
73012         * m4/mathfunc.m4: New file.
73013         * modules/acos: New file.
73014         * modules/asin: New file.
73015         * modules/atan: New file.
73016         * modules/atan2: New file.
73017         * modules/cbrt: New file.
73018         * modules/copysign: New file.
73019         * modules/cos: New file.
73020         * modules/cosh: New file.
73021         * modules/erf: New file.
73022         * modules/erfc: New file.
73023         * modules/exp: New file.
73024         * modules/fabs: New file.
73025         * modules/fmod: New file.
73026         * modules/hypot: New file.
73027         * modules/j0: New file.
73028         * modules/j1: New file.
73029         * modules/jn: New file.
73030         * modules/ldexp: New file.
73031         * modules/lgamma: New file.
73032         * modules/log: New file.
73033         * modules/log10: New file.
73034         * modules/log1p: New file.
73035         * modules/logb: New file.
73036         * modules/modf: New file.
73037         * modules/nextafter: New file.
73038         * modules/pow: New file.
73039         * modules/remainder: New file.
73040         * modules/rint: New file.
73041         * modules/sin: New file.
73042         * modules/sinh: New file.
73043         * modules/sqrt: New file.
73044         * modules/tan: New file.
73045         * modules/tanh: New file.
73046         * modules/y0: New file.
73047         * modules/y1: New file.
73048         * modules/yn: New file.
73049         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73050         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73051         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73052         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73053         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73054         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73055         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73056         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73057         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73058         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73059         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73060         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73061         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73062         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73063         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73064         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73065         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73066         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73067         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73068         * doc/posix-functions/log.texi: Mention the 'log' module.
73069         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73070         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73071         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73072         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73073         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73074         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73075         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73076         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73077         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73078         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73079         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73080         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73081         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73082         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73083         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73084         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73086 2010-01-18  Jim Meyering  <meyering@redhat.com>
73088         ignore-value: relax license to LGPLv2+
73089         * modules/ignore-value (License): Relax to LGPLv2+.
73091         getdate: don't leak when TZ contains two or more '"'s
73092         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73093         double quote in TZ after the first one.
73095         readtokens: do not leak internal token_lengths buffer
73096         * lib/readtokens.c (readtokens): Free the local, lengths,
73097         when the supplied "token_lengths" parameter is NULL.
73099 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73101         Fix a couple of missing LIBTHREAD link failures on AIX.
73102         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73103         $(LIBTHREAD).
73104         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73106         Link test-poll against INET_PTON_LIB.
73107         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73108         for inet_pton on Solaris 10.
73110 2010-01-17  Bruno Haible  <bruno@clisp.org>
73112         unistdio/*-sprintf: Fix typo in module description.
73113         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73114         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73115         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73116         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73117         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73118         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73119         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73120         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73122 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73124         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73125         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73126         variables in shell case patterns, for AIX and HP-UX ksh.
73128         Split large sed scripts, for HP-UX sed.
73129         * modules/stdio: Split sed scripts around 50 sed commands,
73130         to avoid HP-UX limit of 99 commands, in the near future.
73131         * modules/string: Likewise.
73132         * modules/unistd: Likewise.
73134         gnulib-tool: avoid writing in the current directory.
73135         * gnulib-tool (func_emit_lib_Makefile_am)
73136         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73137         not in the current directory, so concurrent gnulib-tool
73138         instances do not interfere.
73140 2010-01-16  Jim Meyering  <meyering@redhat.com>
73142         doc: update users.txt
73143         * users.txt: Add grep.
73144         (diffutils, gzip): Update URLs.
73146 2010-01-12  Bruno Haible  <bruno@clisp.org>
73148         posix_spawn: Avoid test failure on Cygwin.
73149         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73150         characters.
73151         Reported by Simon Josefsson.
73153 2010-01-12  Bruno Haible  <bruno@clisp.org>
73155         * tests/test-cond.c (main): When skipping the test, show the reason.
73157 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73159         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73161 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73163         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73164         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73166 2010-01-12  Eric Blake  <ebb9@byu.net>
73168         build: guarantee AS_VAR_IF
73169         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73170         (gl_AS_VAR_IF): Move...
73171         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73172         Reported by Simon Josefsson.
73174 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73176         * lib/stdio.in.h: Fix typo.
73178 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73180         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73181         libgpg-error.
73183 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73185         * tests/test-xalloc-die.sh: Use $EXEEXT.
73187 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73188             Bruno Haible  <bruno@clisp.org>
73190         getlogin, getlogin_r: Avoid test failure.
73191         * tests/test-getlogin.c: Include <stdio.h>.
73192         (main): Skip the test when the function fails because stdin is not a
73193         tty.
73194         * tests/test-getlogin_r.c: Include <stdio.h>.
73195         (main): Skip the test when the function fails because stdin is not a
73196         tty.
73198 2010-01-11  Eric Blake  <ebb9@byu.net>
73200         tests: avoid more large file warnings
73201         * tests/test-fflush.c: Avoid warning about ftell use.
73202         * tests/test-fseek.c: Avoid warning about fseek use.
73204 2010-01-10  Bruno Haible  <bruno@clisp.org>
73206         nproc: Work better on Linux when /proc and /sys are not mounted.
73207         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73208         as lower bound when, on glibc/Linux systems,
73209         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73210         Suggested by Pádraig Brady <P@draigbrady.com>.
73211         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73213         nproc: Refactor.
73214         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73215         extracted from num_processors.
73216         (num_processors): Call it.
73218 2010-01-11  Jim Meyering  <meyering@redhat.com>
73220         utimecmp: avoid new warning from upcoming gcc-4.5.0
73221         * lib/utimecmp.c (BILLION): Define using #define rather than an
73222         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73224 2010-01-11  Eric Blake  <ebb9@byu.net>
73226         math: add portability warnings for classification macros
73227         * modules/math (Depends-on): Add warn-on-use.
73228         (Makefile.am): Provide new substitutions.
73229         * m4/math_h.m4 (gl_MATH_H): Require inline.
73230         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73231         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73232         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73233         implement warnings.
73235         unistd: warn on use of environ without module
73236         * modules/unistd (Depends-on): Add warn-on-use.
73237         (Makefile.am): Provide new substitutions.
73238         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73239         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73241         stdio: warn on suspicious uses
73242         * modules/stdio (Depends-on): Add warn-on-use.
73243         (Makefile.am): Provide new substitutions.
73244         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73245         fseeko.
73246         * lib/stdio.in.h (gets): Always warn on use.
73247         (fseek, ftell): Adjust when warnings are issued, and honor
73248         _GL_NO_LARGE_FILES as a way to silence the warning.
73249         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73250         any warning about large file offsets.
73251         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73252         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73253         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73254         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73255         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73256         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73257         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73258         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73260         warn-on-use: new module
73261         * modules/warn-on-use: New file.
73262         * build-aux/warn-on-use.h: Likewise.
73263         * m4/warn-on-use.m4: Likewise.
73264         * MODULES.html.sh (Support for building): Mention it.
73266 2010-01-10  Bruno Haible  <bruno@clisp.org>
73268         Tests for module 'unistr/u32-strdup'.
73269         * modules/unistr/u32-strdup-tests: New file.
73270         * tests/unistr/test-u32-strdup.c: New file.
73272         Tests for module 'unistr/u16-strdup'.
73273         * modules/unistr/u16-strdup-tests: New file.
73274         * tests/unistr/test-u16-strdup.c: New file.
73276         Tests for module 'unistr/u8-strdup'.
73277         * modules/unistr/u8-strdup-tests: New file.
73278         * tests/unistr/test-u8-strdup.c: New file.
73279         * tests/unistr/test-strdup.h: New file.
73281         Tests for module 'unistr/u32-strncmp'.
73282         * modules/unistr/u32-strncmp-tests: New file.
73283         * tests/unistr/test-u32-strncmp.c: New file.
73285         Tests for module 'unistr/u16-strncmp'.
73286         * modules/unistr/u16-strncmp-tests: New file.
73287         * tests/unistr/test-u16-strncmp.c: New file.
73289         Tests for module 'unistr/u8-strncmp'.
73290         * modules/unistr/u8-strncmp-tests: New file.
73291         * tests/unistr/test-u8-strncmp.c: New file.
73292         * tests/unistr/test-strncmp.h: New file.
73294         Tests for module 'unistr/u32-strcoll'.
73295         * modules/unistr/u32-strcoll-tests: New file.
73296         * tests/unistr/test-u32-strcoll.c: New file.
73298         Tests for module 'unistr/u16-strcoll'.
73299         * modules/unistr/u16-strcoll-tests: New file.
73300         * tests/unistr/test-u16-strcoll.c: New file.
73302         Tests for module 'unistr/u8-strcoll'.
73303         * modules/unistr/u8-strcoll-tests: New file.
73304         * tests/unistr/test-u8-strcoll.c: New file.
73306         Tests for module 'unistr/u32-strcmp'.
73307         * modules/unistr/u32-strcmp-tests: New file.
73308         * tests/unistr/test-u32-strcmp.c: New file.
73309         * tests/unistr/test-u32-strcmp.h: New file.
73311         Tests for module 'unistr/u16-strcmp'.
73312         * modules/unistr/u16-strcmp-tests: New file.
73313         * tests/unistr/test-u16-strcmp.c: New file.
73314         * tests/unistr/test-u16-strcmp.h: New file.
73316         Tests for module 'unistr/u8-strcmp'.
73317         * modules/unistr/u8-strcmp-tests: New file.
73318         * tests/unistr/test-u8-strcmp.c: New file.
73319         * tests/unistr/test-u8-strcmp.h: New file.
73320         * tests/unistr/test-strcmp.h: New file.
73322         Tests for module 'unistr/u32-strncat'.
73323         * modules/unistr/u32-strncat-tests: New file.
73324         * tests/unistr/test-u32-strncat.c: New file.
73326         Tests for module 'unistr/u16-strncat'.
73327         * modules/unistr/u16-strncat-tests: New file.
73328         * tests/unistr/test-u16-strncat.c: New file.
73330         Tests for module 'unistr/u8-strncat'.
73331         * modules/unistr/u8-strncat-tests: New file.
73332         * tests/unistr/test-u8-strncat.c: New file.
73333         * tests/unistr/test-strncat.h: New file.
73335         Tests for module 'unistr/u32-strcat'.
73336         * modules/unistr/u32-strcat-tests: New file.
73337         * tests/unistr/test-u32-strcat.c: New file.
73339         Tests for module 'unistr/u16-strcat'.
73340         * modules/unistr/u16-strcat-tests: New file.
73341         * tests/unistr/test-u16-strcat.c: New file.
73343         Tests for module 'unistr/u8-strcat'.
73344         * modules/unistr/u8-strcat-tests: New file.
73345         * tests/unistr/test-u8-strcat.c: New file.
73346         * tests/unistr/test-strcat.h: New file.
73348         Tests for module 'unistr/u32-stpncpy'.
73349         * modules/unistr/u32-stpncpy-tests: New file.
73350         * tests/unistr/test-u32-stpncpy.c: New file.
73352         Tests for module 'unistr/u16-stpncpy'.
73353         * modules/unistr/u16-stpncpy-tests: New file.
73354         * tests/unistr/test-u16-stpncpy.c: New file.
73356         Tests for module 'unistr/u8-stpncpy'.
73357         * modules/unistr/u8-stpncpy-tests: New file.
73358         * tests/unistr/test-u8-stpncpy.c: New file.
73359         * tests/unistr/test-stpncpy.h: New file.
73361         Tests for module 'unistr/u32-strncpy'.
73362         * modules/unistr/u32-strncpy-tests: New file.
73363         * tests/unistr/test-u32-strncpy.c: New file.
73365         Tests for module 'unistr/u16-strncpy'.
73366         * modules/unistr/u16-strncpy-tests: New file.
73367         * tests/unistr/test-u16-strncpy.c: New file.
73369         Tests for module 'unistr/u8-strncpy'.
73370         * modules/unistr/u8-strncpy-tests: New file.
73371         * tests/unistr/test-u8-strncpy.c: New file.
73372         * tests/unistr/test-strncpy.h: New file.
73374         Tests for module 'unistr/u32-stpcpy'.
73375         * modules/unistr/u32-stpcpy-tests: New file.
73376         * tests/unistr/test-u32-stpcpy.c: New file.
73378         Tests for module 'unistr/u16-stpcpy'.
73379         * modules/unistr/u16-stpcpy-tests: New file.
73380         * tests/unistr/test-u16-stpcpy.c: New file.
73382         Tests for module 'unistr/u8-stpcpy'.
73383         * modules/unistr/u8-stpcpy-tests: New file.
73384         * tests/unistr/test-u8-stpcpy.c: New file.
73385         * tests/unistr/test-stpcpy.h: New file.
73387         Tests for module 'unistr/u32-strcpy'.
73388         * modules/unistr/u32-strcpy-tests: New file.
73389         * tests/unistr/test-u32-strcpy.c: New file.
73391         Tests for module 'unistr/u16-strcpy'.
73392         * modules/unistr/u16-strcpy-tests: New file.
73393         * tests/unistr/test-u16-strcpy.c: New file.
73395         Tests for module 'unistr/u8-strcpy'.
73396         * modules/unistr/u8-strcpy-tests: New file.
73397         * tests/unistr/test-u8-strcpy.c: New file.
73398         * tests/unistr/test-strcpy.h: New file.
73400         Tests for module 'unistr/u32-strnlen'.
73401         * modules/unistr/u32-strnlen-tests: New file.
73402         * tests/unistr/test-u32-strnlen.c: New file.
73404         Tests for module 'unistr/u16-strnlen'.
73405         * modules/unistr/u16-strnlen-tests: New file.
73406         * tests/unistr/test-u16-strnlen.c: New file.
73408         Tests for module 'unistr/u8-strnlen'.
73409         * modules/unistr/u8-strnlen-tests: New file.
73410         * tests/unistr/test-u8-strnlen.c: New file.
73411         * tests/unistr/test-strnlen.h: New file.
73413         Tests for module 'unistr/u32-strlen'.
73414         * modules/unistr/u32-strlen-tests: New file.
73415         * tests/unistr/test-u32-strlen.c: New file.
73417         Tests for module 'unistr/u16-strlen'.
73418         * modules/unistr/u16-strlen-tests: New file.
73419         * tests/unistr/test-u16-strlen.c: New file.
73421         Tests for module 'unistr/u8-strlen'.
73422         * modules/unistr/u8-strlen-tests: New file.
73423         * tests/unistr/test-u8-strlen.c: New file.
73425         Tests for module 'unistr/u32-prev'.
73426         * modules/unistr/u32-prev-tests: New file.
73427         * tests/unistr/test-u32-prev.c: New file.
73429         Tests for module 'unistr/u16-prev'.
73430         * modules/unistr/u16-prev-tests: New file.
73431         * tests/unistr/test-u16-prev.c: New file.
73433         Tests for module 'unistr/u8-prev'.
73434         * modules/unistr/u8-prev-tests: New file.
73435         * tests/unistr/test-u8-prev.c: New file.
73437         Tests for module 'unistr/u32-next'.
73438         * modules/unistr/u32-next-tests: New file.
73439         * tests/unistr/test-u32-next.c: New file.
73441         Tests for module 'unistr/u16-next'.
73442         * modules/unistr/u16-next-tests: New file.
73443         * tests/unistr/test-u16-next.c: New file.
73445         Tests for module 'unistr/u8-next'.
73446         * modules/unistr/u8-next-tests: New file.
73447         * tests/unistr/test-u8-next.c: New file.
73449         Tests for module 'unistr/u32-strmbtouc'.
73450         * modules/unistr/u32-strmbtouc-tests: New file.
73451         * tests/unistr/test-u32-strmbtouc.c: New file.
73453         Tests for module 'unistr/u16-strmbtouc'.
73454         * modules/unistr/u16-strmbtouc-tests: New file.
73455         * tests/unistr/test-u16-strmbtouc.c: New file.
73457         Tests for module 'unistr/u8-strmbtouc'.
73458         * modules/unistr/u8-strmbtouc-tests: New file.
73459         * tests/unistr/test-u8-strmbtouc.c: New file.
73461         Tests for module 'unistr/u32-strmblen'.
73462         * modules/unistr/u32-strmblen-tests: New file.
73463         * tests/unistr/test-u32-strmblen.c: New file.
73465         Tests for module 'unistr/u16-strmblen'.
73466         * modules/unistr/u16-strmblen-tests: New file.
73467         * tests/unistr/test-u16-strmblen.c: New file.
73469         Tests for module 'unistr/u8-strmblen'.
73470         * modules/unistr/u8-strmblen-tests: New file.
73471         * tests/unistr/test-u8-strmblen.c: New file.
73473         Tests for module 'unistr/u32-cpy-alloc'.
73474         * modules/unistr/u32-cpy-alloc-tests: New file.
73475         * tests/unistr/test-u32-cpy-alloc.c: New file.
73477         Tests for module 'unistr/u16-cpy-alloc'.
73478         * modules/unistr/u16-cpy-alloc-tests: New file.
73479         * tests/unistr/test-u16-cpy-alloc.c: New file.
73481         Tests for module 'unistr/u8-cpy-alloc'.
73482         * modules/unistr/u8-cpy-alloc-tests: New file.
73483         * tests/unistr/test-u8-cpy-alloc.c: New file.
73484         * tests/unistr/test-cpy-alloc.h: New file.
73486         Tests for module 'unistr/u32-mbsnlen'.
73487         * modules/unistr/u32-mbsnlen-tests: New file.
73488         * tests/unistr/test-u32-mbsnlen.c: New file.
73490         Tests for module 'unistr/u16-mbsnlen'.
73491         * modules/unistr/u16-mbsnlen-tests: New file.
73492         * tests/unistr/test-u16-mbsnlen.c: New file.
73494         Tests for module 'unistr/u8-mbsnlen'.
73495         * modules/unistr/u8-mbsnlen-tests: New file.
73496         * tests/unistr/test-u8-mbsnlen.c: New file.
73498         Tests for module 'unistr/u32-chr'.
73499         * modules/unistr/u32-chr-tests: New file.
73500         * tests/unistr/test-u32-chr.c: New file.
73502         Tests for module 'unistr/u16-chr'.
73503         * modules/unistr/u16-chr-tests: New file.
73504         * tests/unistr/test-u16-chr.c: New file.
73506         Tests for module 'unistr/u8-chr'.
73507         * modules/unistr/u8-chr-tests: New file.
73508         * tests/unistr/test-u8-chr.c: New file.
73509         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73511         Tests for module 'unistr/u32-cmp2'.
73512         * modules/unistr/u32-cmp2-tests: New file.
73513         * tests/unistr/test-u32-cmp2.c: New file.
73515         Tests for module 'unistr/u16-cmp2'.
73516         * modules/unistr/u16-cmp2-tests: New file.
73517         * tests/unistr/test-u16-cmp2.c: New file.
73519         Tests for module 'unistr/u8-cmp2'.
73520         * modules/unistr/u8-cmp2-tests: New file.
73521         * tests/unistr/test-u8-cmp2.c: New file.
73522         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73524         Tests for module 'unistr/u32-cmp'.
73525         * modules/unistr/u32-cmp-tests: New file.
73526         * tests/unistr/test-u32-cmp.c: New file.
73528         Tests for module 'unistr/u16-cmp'.
73529         * modules/unistr/u16-cmp-tests: New file.
73530         * tests/unistr/test-u16-cmp.c: New file.
73532         Tests for module 'unistr/u8-cmp'.
73533         * modules/unistr/u8-cmp-tests: New file.
73534         * tests/unistr/test-u8-cmp.c: New file.
73535         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73537         Tests for module 'unistr/u32-set'.
73538         * modules/unistr/u32-set-tests: New file.
73539         * tests/unistr/test-u32-set.c: New file.
73541         Tests for module 'unistr/u16-set'.
73542         * modules/unistr/u16-set-tests: New file.
73543         * tests/unistr/test-u16-set.c: New file.
73545         Tests for module 'unistr/u8-set'.
73546         * modules/unistr/u8-set-tests: New file.
73547         * tests/unistr/test-u8-set.c: New file.
73548         * tests/unistr/test-set.h: New file.
73550         Tests for module 'unistr/u32-move'.
73551         * modules/unistr/u32-move-tests: New file.
73552         * tests/unistr/test-u32-move.c: New file.
73554         Tests for module 'unistr/u16-move'.
73555         * modules/unistr/u16-move-tests: New file.
73556         * tests/unistr/test-u16-move.c: New file.
73558         Tests for module 'unistr/u8-move'.
73559         * modules/unistr/u8-move-tests: New file.
73560         * tests/unistr/test-u8-move.c: New file.
73561         * tests/unistr/test-move.h: New file.
73563         Tests for module 'unistr/u32-cpy'.
73564         * modules/unistr/u32-cpy-tests: New file.
73565         * tests/unistr/test-u32-cpy.c: New file.
73567         Tests for module 'unistr/u16-cpy'.
73568         * modules/unistr/u16-cpy-tests: New file.
73569         * tests/unistr/test-u16-cpy.c: New file.
73571         Tests for module 'unistr/u8-cpy'.
73572         * modules/unistr/u8-cpy-tests: New file.
73573         * tests/unistr/test-u8-cpy.c: New file.
73574         * tests/unistr/test-cpy.h: New file.
73576 2010-01-09  Bruno Haible  <bruno@clisp.org>
73578         Tests for module 'unistr/u32-uctomb'.
73579         * modules/unistr/u32-uctomb-tests: New file.
73580         * tests/unistr/test-u32-uctomb.c: New file.
73582         Tests for module 'unistr/u16-uctomb'.
73583         * modules/unistr/u16-uctomb-tests: New file.
73584         * tests/unistr/test-u16-uctomb.c: New file.
73586         Tests for module 'unistr/u8-uctomb'.
73587         * modules/unistr/u8-uctomb-tests: New file.
73588         * tests/unistr/test-u8-uctomb.c: New file.
73590         Tests for module 'unistr/u32-mbtoucr'.
73591         * modules/unistr/u32-mbtoucr-tests: New file.
73592         * tests/unistr/test-u32-mbtoucr.c: New file.
73594         Tests for module 'unistr/u16-mbtoucr'.
73595         * modules/unistr/u16-mbtoucr-tests: New file.
73596         * tests/unistr/test-u16-mbtoucr.c: New file.
73598         Tests for module 'unistr/u8-mbtoucr'.
73599         * modules/unistr/u8-mbtoucr-tests: New file.
73600         * tests/unistr/test-u8-mbtoucr.c: New file.
73602         Tests for module 'unistr/u32-mbtouc'.
73603         * modules/unistr/u32-mbtouc-tests: New file.
73604         * tests/unistr/test-u32-mbtouc.c: New file.
73606         Tests for module 'unistr/u16-mbtouc'.
73607         * modules/unistr/u16-mbtouc-tests: New file.
73608         * tests/unistr/test-u16-mbtouc.c: New file.
73610         Tests for module 'unistr/u8-mbtouc'.
73611         * modules/unistr/u8-mbtouc-tests: New file.
73612         * tests/unistr/test-u8-mbtouc.c: New file.
73614         Tests for module 'unistr/u32-mbtouc-unsafe'.
73615         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73616         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73617         * tests/unistr/test-u32-mbtouc.h: New file.
73619         Tests for module 'unistr/u16-mbtouc-unsafe'.
73620         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73621         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73622         * tests/unistr/test-u16-mbtouc.h: New file.
73624         Tests for module 'unistr/u8-mbtouc-unsafe'.
73625         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73626         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73627         * tests/unistr/test-u8-mbtouc.h: New file.
73629         Tests for module 'unistr/u32-mblen'.
73630         * modules/unistr/u32-mblen-tests: New file.
73631         * tests/unistr/test-u32-mblen.c: New file.
73633         Tests for module 'unistr/u16-mblen'.
73634         * modules/unistr/u16-mblen-tests: New file.
73635         * tests/unistr/test-u16-mblen.c: New file.
73637         Tests for module 'unistr/u8-mblen'.
73638         * modules/unistr/u8-mblen-tests: New file.
73639         * tests/unistr/test-u8-mblen.c: New file.
73641         Tests for module 'unistr/u32-to-u16'.
73642         * modules/unistr/u32-to-u16-tests: New file.
73643         * tests/unistr/test-u32-to-u16.c: New file.
73645         Tests for module 'unistr/u32-to-u8'.
73646         * modules/unistr/u32-to-u8-tests: New file.
73647         * tests/unistr/test-u32-to-u8.c: New file.
73649         Tests for module 'unistr/u16-to-u32'.
73650         * modules/unistr/u16-to-u32-tests: New file.
73651         * tests/unistr/test-u16-to-u32.c: New file.
73653         Tests for module 'unistr/u16-to-u8'.
73654         * modules/unistr/u16-to-u8-tests: New file.
73655         * tests/unistr/test-u16-to-u8.c: New file.
73657         Tests for module 'unistr/u8-to-u32'.
73658         * modules/unistr/u8-to-u32-tests: New file.
73659         * tests/unistr/test-u8-to-u32.c: New file.
73661         Tests for module 'unistr/u8-to-u16'.
73662         * modules/unistr/u8-to-u16-tests: New file.
73663         * tests/unistr/test-u8-to-u16.c: New file.
73665         Tests for module 'unistr/u32-check'.
73666         * modules/unistr/u32-check-tests: New file.
73667         * tests/unistr/test-u32-check.c: New file.
73669         Tests for module 'unistr/u16-check'.
73670         * modules/unistr/u16-check-tests: New file.
73671         * tests/unistr/test-u16-check.c: New file.
73673         Tests for module 'unistr/u8-check'.
73674         * modules/unistr/u8-check-tests: New file.
73675         * tests/unistr/test-u8-check.c: New file.
73677         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73678         (category_equals): New function.
73679         (main): Add more tests.
73680         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73682         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73684 2010-01-10  Bruno Haible  <bruno@clisp.org>
73686         unistr/u*-strcoll: Try harder to distinguish different strings.
73687         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73688         compare s1 and s2 to see if they are different.
73690 2010-01-10  Bruno Haible  <bruno@clisp.org>
73692         unistr/u*-stpncpy: Fix the return value.
73693         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73694         description of the return value consistent with stpncpy in glibc.
73695         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73696         written non-NUL unit.
73698 2010-01-10  Bruno Haible  <bruno@clisp.org>
73700         unistr/u*-next: Add missing dependencies.
73701         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73702         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73703         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73705 2010-01-10  Bruno Haible  <bruno@clisp.org>
73707         unistr/u8-mbsnlen: Fix return value for incomplete character.
73708         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73709         u8_mblen.
73710         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73711         Remove unistr/u8-mblen.
73712         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73713         u16_mblen.
73714         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73715         Remove unistr/u16-mblen.
73717 2010-01-10  Bruno Haible  <bruno@clisp.org>
73719         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73720         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73721         Reported by Brian Gough <bjg@gnu.org> and
73722         Chris Clayton <chris2553@googlemail.com> via
73723         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73725 2010-01-09  Bruno Haible  <bruno@clisp.org>
73727         unistr/u16-to-u32: Reject invalid input.
73728         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73729         u16_mbtouc.
73730         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73731         Remove unistr/u16-mbtouc.
73733         unistr/u16-to-u8: Reject invalid input.
73734         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73735         u16_mbtouc.
73736         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73737         Remove unistr/u16-mbtouc.
73739         unistr/u8-to-u32: Reject invalid input.
73740         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73741         u8_mbtouc.
73742         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73743         Remove unistr/u8-mbtouc.
73745         unistr/u8-to-u16: Reject invalid input.
73746         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73747         u8_mbtouc.
73748         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73749         Remove unistr/u8-mbtouc.
73751 2010-01-09  Bruno Haible  <bruno@clisp.org>
73753         Tests for module 'getlogin'.
73754         * modules/getlogin-tests: New file.
73755         * tests/test-getlogin.c: New file.
73757         New module 'getlogin'.
73758         * lib/unistd.in.h (getlogin): New declaration.
73759         * lib/getlogin.c: New file.
73760         * m4/getlogin.m4: New file.
73761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73762         HAVE_GETLOGIN.
73763         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73764         HAVE_GETLOGIN.
73765         * modules/getlogin: New file.
73766         * doc/posix-functions/getlogin.texi: Mention the new module.
73767         Reported by John W. Eaton <jwe@gnu.org>.
73769 2010-01-09  Bruno Haible  <bruno@clisp.org>
73771         getlogin_r: Support for native Windows.
73772         * lib/getlogin_r.c: Include <windows.h>
73773         (getlogin_r): Implement for native Windows.
73774         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73775         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73776         via John W. Eaton <jwe@gnu.org>.
73778 2010-01-09  Bruno Haible  <bruno@clisp.org>
73780         getlogin_r: Small fixes.
73781         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73782         succeeds.
73783         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73784         before testing whether getlogin_r is declared. No need to set
73785         HAVE_DECL_GETLOGIN_R to 1.
73786         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73788 2010-01-09  Bruno Haible  <bruno@clisp.org>
73790         * lib/unistd.in.h (getlogin_r): Add comment.
73792 2010-01-09  Bruno Haible  <bruno@clisp.org>
73794         Tests for module 'getlogin_r'.
73795         * modules/getlogin_r-tests: New file.
73796         * tests/test-getlogin_r.c: New file.
73798 2010-01-09  Jim Meyering  <meyering@redhat.com>
73800         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73801         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73802         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73804 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73806         * lib/dup2.c (rpl_dup2): Improve comment.
73808 2010-01-08  Eric Blake  <ebb9@byu.net>
73810         maint.mk: allow packages to add makefile @@ exceptions
73811         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73812         (sc_makefile_check): Rename...
73813         (sc_makefile_at_at_check): ...to this, and use hook.
73815         dup2: work around mingw bug
73816         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73817         Reported by Simon Josefsson.
73819 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73821         glob: Fix C++ compilation.
73822         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73823         C++.
73825 2010-01-07  Bruno Haible  <bruno@clisp.org>
73827         Fix indentation of wctype.in.h, broken since 2007-01-06.
73828         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73830 2010-01-07  Bruno Haible  <bruno@clisp.org>
73832         mbslen: Avoid collision with system function.
73833         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73834         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73835         * m4/mbslen.m4: New file.
73836         * modules/mbslen (Files): Add it.
73837         (configure.ac): Invoke gl_MBSLEN.
73838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73839         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73840         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73841         via Ian Beckwith <ianb@erislabs.net>.
73843 2010-01-07  Bruno Haible  <bruno@clisp.org>
73845         dirent: Document the last fix.
73846         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73848 2010-01-07  Bruno Haible  <bruno@clisp.org>
73850         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73851         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73852         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73853         va_list are defined.
73854         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73855         Reported by Eric Blake.
73857 2010-01-07  Bruno Haible  <bruno@clisp.org>
73859         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73860         * modules/xlist (Depends-on): Add 'list',
73861         * modules/xoset (Depends-on): Add 'oset'.
73862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73864 2010-01-07  Bruno Haible  <bruno@clisp.org>
73866         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73867         * doc/posix-functions/strncasecmp.texi: Likewise.
73869 2010-01-07  Bruno Haible  <bruno@clisp.org>
73871         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73873 2010-01-07  John W. Eaton  <jwe@octave.org>
73875         wctype: allow C++ use
73876         * lib/wctype.in.h: Add extern "C" block for C++.
73878 2010-01-06  Eric Blake  <ebb9@byu.net>
73880         maint.mk: detect incorrect GFDL usage
73881         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73883 2010-01-06  Jim Meyering  <meyering@redhat.com>
73884         and Eric Blake  <ebb9@byu.net>
73886         maint.mk: ignore multi-line copyright in NEWS
73887         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73889 2010-01-06  Eric Blake  <ebb9@byu.net>
73891         select: add missing dependency
73892         * modules/select-tests (Depends-on): Move sockets dependency...
73893         * modules/select (Depends-on): ...here.
73894         Reported by Ian Beckwith.
73896         doc: regenerate INSTALL
73897         * doc/INSTALL: Reflect recent autoconf update.
73898         * doc/INSTALL.ISO: Likewise.
73899         * doc/INSTALL.UTF-8: Likewise.
73901         pread: fix compilation on glibc
73902         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73903         Reported by Ralf Wildenhues.
73905         dirent: fix test failure
73906         * lib/dirent.in.h (includes): Guarantee ino_t.
73907         Reported by Ralf Wildenhues.
73909 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73911         linkat, renameat: avoid bad free
73912         * lib/at-func2.c (at_func2): Fix typo.
73913         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73915 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73917         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73918         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73919         to avoid failure of symlink test later.
73921 2010-01-06  Eric Blake  <ebb9@byu.net>
73923         stdio, unistd: guarantee ssize_t
73924         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73925         2008 are exposed when needed.
73926         * lib/stdio.in.h (includes): Likewise.
73927         Reported by Ralf Wildenhues.
73929 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73931         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73932         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73933         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73935 2010-01-06  Jim Meyering  <meyering@redhat.com>
73937         readtokens: this module *does* require xalloc.h
73938         It uses only functions that were omitted by the old syntax-check rule.
73939         * lib/readtokens.c: Include "xalloc.h" once again.
73940         * modules/readtokens (Depends-on): Add xalloc.
73941         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73943 2010-01-05  Eric Blake  <ebb9@byu.net>
73945         maint: support 'make announcement' from a VPATH build
73946         * top/maint.mk (announcement): Look for correct NEWS file.
73948 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73950         utimens (fdutimens): ignore a negative FD, per contract
73951         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73952         when we have a valid file descriptor.  Otherwise, using a brand
73953         new glibc (with just-patched futimens that now fails with EBADF)
73954         would cause this function to fail with ENOSYS.
73955         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73956         See also http://bugzilla.redhat.com/552320.
73958 2010-01-05  Eric Blake  <ebb9@byu.net>
73960         strcase: document what it provides
73961         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73962         gnulib module.
73963         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73964         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73966 2010-01-05  Jim Meyering  <meyering@redhat.com>
73968         maint: remove useless inclusions of "xalloc.h"
73969         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73970         * lib/readtokens.c: Likewise.
73971         * lib/same.c: Likewise.
73972         * modules/getloadavg (Depends-on): Remove xalloc.
73973         * modules/readtokens: Likewise.
73974         * modules/same: Likewise.
73976         maint.mk: include 4 more function names in alloca.h-checking regexp
73977         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73978         regexp.  Before, we would give a false-positive (saying alloca.h
73979         is included unnecessarily) when the only uses involved omitted symbols.
73981         xalloc.h: use consistent formatting
73982         * lib/xalloc.h: Move declarations to start in the first column.
73984 2010-01-05  Eric Blake  <ebb9@byu.net>
73986         mkdir: avoid xalloc
73987         * lib/mkdir.c (includes): Drop unused header.
73988         Reported by John W. Eaton.
73990 2010-01-04  Jim Meyering  <meyering@redhat.com>
73992         nl_langinfo: avoid configure-time syntax error
73993         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73994         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73995         the empty string.  Don't let that provoke a shell syntax error.
73997         regcomp, regexec, fnmatch: avoid array bounds read error
73998         * lib/regcomp.c (build_equiv_class): From glibc:
73999         Use only the low 24 bits of a findidx return value as an index
74000         into the weights array.  Patch by Ulrich Drepper:
74001         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74002         * lib/regexec.c (check_node_accept_bytes): Likewise.
74003         * lib/fnmatch_loop.c (FCT): Likewise.
74005         regcomp: skip collseq lookup when there are no rules
74006         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74007         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74009         regcomp: recognize ill-formed { } expressions
74010         * lib/regcomp.c (parse_dup_op): From glibc:
74011         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74013         regcomp: fix typo in comment
74014         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74015         s/satisfy/satisfies/.
74017         regcomp: sync from glibc: remove dead store
74018         * lib/regcomp.c (duplicate_node_closure): Remove useless
74019         search_duplicated_node call and dead store.
74021         regcomp: sync from glibc; always use nl_langinfo
74022         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74023         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74024         * modules/regex (Depends-on): Add nl_langinfo.
74026 2010-01-04  Eric Blake  <ebb9@byu.net>
74028         fdopendir: fix configure test
74029         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74031 2010-01-01  Bruno Haible  <bruno@clisp.org>
74033         wchar: Remove unused configure check.
74034         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74036 2010-01-01  Eric Blake  <ebb9@byu.net>
74038         headers: make check of system header explicit
74039         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74040         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74041         ourselves.
74042         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74044         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74045         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74046         internals.
74047         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74048         missing.
74049         Suggested by Bruno Haible.
74051 2010-01-01  Jim Meyering  <meyering@redhat.com>
74053         ChangeLog: tweak to eliminate unnecessary copyright line
74054         * ChangeLog: Remove a copyright line that was mistakenly updated
74055         by today's update-copyright run.  Reported by Eric Blake.
74057         test-update-copyright: don't let envvar setting cause test failure
74058         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74060 2010-01-01  Bruno Haible  <bruno@clisp.org>
74062         localename: Avoid gcc warning.
74063         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74064         function if it is not used.
74066 2010-01-01  Jim Meyering  <meyering@redhat.com>
74068         update nearly all FSF copyright year lists to include 2010
74069         Use the same procedure as for 2009, outlined in
74070         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74072         version-etc: set COPYRIGHT_YEAR to 2010
74073         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74075 2009-12-31  Eric Blake  <ebb9@byu.net>
74077         doc: correct availability of cygwin 1.5.x getopt
74078         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74079         variables.
74080         * doc/posix-functions/opterr.texi (opterr): Likewise.
74081         * doc/posix-functions/optind.texi (optind): Likewise.
74082         * doc/posix-functions/optopt.texi (optopt): Likewise.
74083         * doc/posix-functions/tzname.texi (tzname): Likewise.
74085         openat: update maintainer
74086         * modules/openat (Maintainer): Add myself.
74088         utimens: avoid shadowing warning
74089         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74090         buffers into one, to avoid shadowing, as well as avoiding a
74091         redundant stat.
74092         Reported by Jim Meyering.
74094         test-dup2: avoid compiler warning
74095         * tests/test-dup2.c (is_inheritable): Only define if used.
74097 2010-01-01  Bruno Haible  <bruno@clisp.org>
74099         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74100         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74101         defined, use wctomb instead of wcrtomb.
74103 2010-01-01  Bruno Haible  <bruno@clisp.org>
74105         iconv: Reject native Solaris iconv.
74106         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74107         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74109 2009-12-31  Bruno Haible  <bruno@clisp.org>
74111         * tests/test-signal.c (main): Remove test of 'SIG'.
74113 2009-12-31  Bruno Haible  <bruno@clisp.org>
74115         spawn: Fix incomplete fix.
74116         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74117         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74118         warnings for GNULIB_POSIXCHECK again.
74119         Reported by Eric Blake.
74121 2009-12-31  Bruno Haible  <bruno@clisp.org>
74123         Avoid namespace pollution on glibc systems.
74124         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74125         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74126         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74127         glibc systems.
74129 2009-12-31  Bruno Haible  <bruno@clisp.org>
74131         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74132         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74133         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74134         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74135         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74136         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74137         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74139 2009-12-31  Bruno Haible  <bruno@clisp.org>
74141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74142         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74143         afterwards.
74145 2009-12-31  Bruno Haible  <bruno@clisp.org>
74147         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74148         SYS_UTSNAME_H.
74150 2009-12-31  Bruno Haible  <bruno@clisp.org>
74152         spawn: Fix misapplied patch.
74153         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74154         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74155         warnings for GNULIB_POSIXCHECK.
74157 2009-12-31  Bruno Haible  <bruno@clisp.org>
74159         times: Update after sys_times changed.
74160         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74161         * modules/times (Files): Add it.
74162         (configure.ac): Invoke gl_FUNC_TIMES.
74164 2009-12-31  Bruno Haible  <bruno@clisp.org>
74166         Use AC_C_INLINE where necessary.
74167         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74170         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74171         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74172         * m4/mbiter.m4 (gl_MBITER): Likewise.
74173         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74174         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74175         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74176         * modules/u64 (configure.ac): Likewise.
74178 2009-12-31  Bruno Haible  <bruno@clisp.org>
74180         Use AC_C_INLINE instead of module 'inline' where possible.
74181         * modules/inline (Description): Clarify purpose.
74182         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74183         * modules/count-one-bits (Depends-on): Remove inline.
74184         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74185         * modules/openat (Depends-on): Remove inline.
74186         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74187         instead of depending on module 'inline'.
74188         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74189         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74190         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74191         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74192         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74193         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74194         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74195         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74196         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74197         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74198         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74199         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74200         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74201         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74202         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74203         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74204         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74205         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74206         Likewise.
74207         * modules/unictype/property-ascii-hex-digit (Depends-on,
74208         configure.ac): Likewise.
74209         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74210         configure.ac): Likewise.
74211         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74212         configure.ac): Likewise.
74213         * modules/unictype/property-bidi-block-separator (Depends-on,
74214         configure.ac): Likewise.
74215         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74216         configure.ac): Likewise.
74217         * modules/unictype/property-bidi-common-separator (Depends-on,
74218         configure.ac): Likewise.
74219         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74220         Likewise.
74221         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74222         configure.ac): Likewise.
74223         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74224         configure.ac): Likewise.
74225         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74226         configure.ac): Likewise.
74227         * modules/unictype/property-bidi-european-digit (Depends-on,
74228         configure.ac): Likewise.
74229         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74230         configure.ac): Likewise.
74231         * modules/unictype/property-bidi-left-to-right (Depends-on,
74232         configure.ac): Likewise.
74233         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74234         configure.ac): Likewise.
74235         * modules/unictype/property-bidi-other-neutral (Depends-on,
74236         configure.ac): Likewise.
74237         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74238         Likewise.
74239         * modules/unictype/property-bidi-segment-separator (Depends-on,
74240         configure.ac): Likewise.
74241         * modules/unictype/property-bidi-whitespace (Depends-on,
74242         configure.ac): Likewise.
74243         * modules/unictype/property-combining (Depends-on, configure.ac):
74244         Likewise.
74245         * modules/unictype/property-composite (Depends-on, configure.ac):
74246         Likewise.
74247         * modules/unictype/property-currency-symbol (Depends-on,
74248         configure.ac): Likewise.
74249         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74250         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74251         Likewise.
74252         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74253         configure.ac): Likewise.
74254         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74255         Likewise.
74256         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74257         Likewise.
74258         * modules/unictype/property-extender (Depends-on, configure.ac):
74259         Likewise.
74260         * modules/unictype/property-format-control (Depends-on, configure.ac):
74261         Likewise.
74262         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74263         Likewise.
74264         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74265         Likewise.
74266         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74267         Likewise.
74268         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74269         Likewise.
74270         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74271         Likewise.
74272         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74273         Likewise.
74274         * modules/unictype/property-id-start (Depends-on, configure.ac):
74275         Likewise.
74276         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74277         Likewise.
74278         * modules/unictype/property-ids-binary-operator (Depends-on,
74279         configure.ac): Likewise.
74280         * modules/unictype/property-ids-trinary-operator (Depends-on,
74281         configure.ac): Likewise.
74282         * modules/unictype/property-ignorable-control (Depends-on,
74283         configure.ac): Likewise.
74284         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74285         Likewise.
74286         * modules/unictype/property-join-control (Depends-on, configure.ac):
74287         Likewise.
74288         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74289         Likewise.
74290         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74291         Likewise.
74292         * modules/unictype/property-logical-order-exception (Depends-on,
74293         configure.ac): Likewise.
74294         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74295         Likewise.
74296         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74297         * modules/unictype/property-non-break (Depends-on, configure.ac):
74298         Likewise.
74299         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74300         Likewise.
74301         * modules/unictype/property-numeric (Depends-on, configure.ac):
74302         Likewise.
74303         * modules/unictype/property-other-alphabetic (Depends-on,
74304         configure.ac): Likewise.
74305         * modules/unictype/property-other-default-ignorable-code-point
74306         (Depends-on, configure.ac): Likewise.
74307         * modules/unictype/property-other-grapheme-extend (Depends-on,
74308         configure.ac): Likewise.
74309         * modules/unictype/property-other-id-continue (Depends-on,
74310         configure.ac): Likewise.
74311         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74312         Likewise.
74313         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74314         Likewise.
74315         * modules/unictype/property-other-math (Depends-on, configure.ac):
74316         Likewise.
74317         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74318         Likewise.
74319         * modules/unictype/property-paired-punctuation (Depends-on,
74320         configure.ac): Likewise.
74321         * modules/unictype/property-paragraph-separator (Depends-on,
74322         configure.ac): Likewise.
74323         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74324         Likewise.
74325         * modules/unictype/property-pattern-white-space (Depends-on,
74326         configure.ac): Likewise.
74327         * modules/unictype/property-private-use (Depends-on, configure.ac):
74328         Likewise.
74329         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74330         Likewise.
74331         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74332         Likewise.
74333         * modules/unictype/property-radical (Depends-on, configure.ac):
74334         Likewise.
74335         * modules/unictype/property-sentence-terminal (Depends-on,
74336         configure.ac): Likewise.
74337         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74338         Likewise.
74339         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74340         * modules/unictype/property-terminal-punctuation (Depends-on,
74341         configure.ac): Likewise.
74342         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74343         Likewise.
74344         * modules/unictype/property-unassigned-code-value (Depends-on,
74345         configure.ac): Likewise.
74346         * modules/unictype/property-unified-ideograph (Depends-on,
74347         configure.ac): Likewise.
74348         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74349         Likewise.
74350         * modules/unictype/property-variation-selector (Depends-on,
74351         configure.ac): Likewise.
74352         * modules/unictype/property-white-space (Depends-on, configure.ac):
74353         Likewise.
74354         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74355         Likewise.
74356         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74357         Likewise.
74358         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74359         Likewise.
74360         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74361         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74362         Likewise.
74364 2009-12-31  Bruno Haible  <bruno@clisp.org>
74366         Remove unnecessary AC_C_INLINE invocation.
74367         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74368         since 2009-08-21.
74370 2009-12-31  Jim Meyering  <meyering@redhat.com>
74372         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74373         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74374         With this change, we can all remove the gpg_key_ID = ... definition
74375         from our respective cfg.mk files.
74377         maint.mk: create announcement template in ~/, not in /tmp
74378         * top/maint.mk (emit_upload_commands): Adjust.
74379         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74380         Remove temporary file, .ci-msg.
74382 2009-12-31  Eric Blake  <ebb9@byu.net>
74384         link-warning: always build headers with link warnings
74385         * modules/arpa_inet (Makefile.am): Always build replacement
74386         header.
74387         * modules/ctype (Makefile.am): Likewise.
74388         * modules/dirent (Makefile.am): Likewise.
74389         * modules/inttypes (Makefile.am): Likewise.
74390         * modules/langinfo (Makefile.am): Likewise.
74391         * modules/locale (Makefile.am): Likewise.
74392         * modules/spawn (Makefile.am): Likewise.
74393         * modules/sys_file (Makefile.am): Likewise.
74394         * modules/sys_ioctl (Makefile.am): Likewise.
74395         * modules/sys_select (Makefile.am): Likewise.
74396         * modules/sys_socket (Makefile.am): Likewise.
74397         * modules/sys_times (Makefile.am): Likewise.
74398         * modules/sys_utsname (Makefile.am): Likewise.
74399         * modules/sys_wait (Makefile.am): Likewise.
74400         * modules/wchar (Makefile.am): Likewise.
74401         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74402         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74403         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74404         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74405         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74406         Likewise.
74407         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74408         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74409         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74410         Likewise.
74411         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74412         Likewise.
74413         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74415         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74419         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74420         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74421         (gl_WCHAR_H_DEFAULTS): Likewise.
74423 2009-12-31  Eric Blake  <ebb9@byu.net>
74425         signal, spawn: use link warnings
74426         * lib/signal.in.h (sigset_t): Make unconditional.
74427         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74428         (sigpending, sigprocmask, sigaction): Add link warnings.
74429         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74430         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74431         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74432         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74433         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74434         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74435         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74436         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74437         (posix_spawn_file_actions_destroy)
74438         (posix_spawn_file_actions_addopen)
74439         (posix_spawn_file_actions_addclose)
74440         (posix_spawn_file_actions_adddup2): Likewise.
74441         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74442         * tests/test-signal.c (main): Enhance test.
74444         spawn: improve wrapper support
74445         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74446         (gl_SPAWN_H_DEFAULTS): New defaults.
74447         * modules/spawn (Makefile.am): Substitute them.
74448         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74449         Only declare if missing or broken.
74451         sys_times, sys_utsname: use include_next
74452         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74453         header.
74454         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74455         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74456         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74457         * modules/sys_times (Depends-on): Add include_next.
74458         (Makefile.am): Substitute additional values.
74459         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74460         * lib/sys_times.in.h (includes): Include native header, if
74461         available.
74462         * lib/sys_utsname.in.h (includes): Likewise.
74463         * tests/test-sys_times.c (main): Enhance test.
74465         fdutimensat: revert prior patch
74466         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74467         utimens.h.
74468         Reported by Bruno Haible.
74470 2009-12-30  Eric Blake  <ebb9@byu.net>
74472         sys_wait: drop link-warning dependency
74473         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74474         link-warning efforts.
74475         * lib/sys_wait.in.h: Likewise.
74477         fdutimensat: remove bogus dependency
74478         * modules/fdutimensat (Depends-on): Drop inline.
74480         unistd: fix typo
74481         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74483 2009-12-30  Bruno Haible  <bruno@clisp.org>
74485         Fix compilation error with Solaris cc.
74486         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74487         * lib/unicase/u16-is-invariant.c: Likewise.
74488         * lib/unicase/u32-is-invariant.c: Likewise.
74489         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74491 2009-12-30  Bruno Haible  <bruno@clisp.org>
74493         Fix test crash.
74494         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74495         locales.
74496         Reported by Simon Josefsson <simon@josefsson.org>.
74498 2009-12-30  Bruno Haible  <bruno@clisp.org>
74500         Fix compilation error on most platforms.
74501         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74502         Reported by Simon Josefsson <simon@josefsson.org>
74503         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74505 2009-12-30  Eric Blake  <ebb9@byu.net>
74507         futimens, utimensat: work around ntfs-3g bug
74508         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74509         a ctime bug is present, and expand workaround to cover ntfs-3g.
74510         * lib/utimens.c (fdutimens, lutimens): Likewise.
74511         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74512         (validate_timespec): Adjust return value.
74513         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74514         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74515         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74517 2009-12-29  Eric Blake  <ebb9@byu.net>
74519         link-warning: make usage consistent
74520         * modules/ctype (Depends-on): Add link-warning.
74521         (Makefile.am): Update rules accordingly.
74522         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74523         * modules/locale (Depends-on, Makefile.am): Likewise.
74524         * modules/sys_file (Makefile.am): Likewise.
74525         * modules/getopt-posix (Makefile.am): Delete unused link warning
74526         efforts.
74527         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74528         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74529         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74530         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74532         stdio: remove unused variables
74533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74534         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74535         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74537         tests: test more substitute headers
74538         * modules/ctype-tests: New file.
74539         * modules/dirent-tests: Likewise.
74540         * modules/spawn-tests: Likewise.
74541         * modules/sys_file-tests: Likewise.
74542         * modules/sys_ioctl-tests: Likewise.
74543         * modules/sys_wait-tests: Likewise.
74544         * tests/test-ctype.c: Likewise.
74545         * tests/test-dirent.c: Likewise.
74546         * tests/test-spawn.c: Likewise.
74547         * tests/test-sys_file.c: Likewise.
74548         * tests/test-sys_ioctl.c: Likewise.
74549         * tests/test-sys_wait.c: Likewise.
74550         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74551         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74552         whether or not flock is in use.
74554         tests: remove License section from module
74555         * modules/arpa_inet-tests: Remove unneeded section.
74556         * modules/byteswap-tests: Likewise.
74557         * modules/ceilf-tests: Likewise.
74558         * modules/ceill-tests: Likewise.
74559         * modules/crypto/des-tests: Likewise.
74560         * modules/crypto/gc-arcfour-tests: Likewise.
74561         * modules/crypto/gc-arctwo-tests: Likewise.
74562         * modules/crypto/gc-des-tests: Likewise.
74563         * modules/crypto/gc-hmac-md5-tests: Likewise.
74564         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74565         * modules/crypto/gc-md2-tests: Likewise.
74566         * modules/crypto/gc-md4-tests: Likewise.
74567         * modules/crypto/gc-md5-tests: Likewise.
74568         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74569         * modules/crypto/gc-rijndael-tests: Likewise.
74570         * modules/crypto/gc-sha1-tests: Likewise.
74571         * modules/crypto/gc-tests: Likewise.
74572         * modules/crypto/md2-tests: Likewise.
74573         * modules/crypto/md4-tests: Likewise.
74574         * modules/fcntl-h-tests: Likewise.
74575         * modules/floorf-tests: Likewise.
74576         * modules/floorl-tests: Likewise.
74577         * modules/frexp-nolibm-tests: Likewise.
74578         * modules/frexp-tests: Likewise.
74579         * modules/frexpl-nolibm-tests: Likewise.
74580         * modules/frexpl-tests: Likewise.
74581         * modules/getaddrinfo-tests: Likewise.
74582         * modules/inttypes-tests: Likewise.
74583         * modules/isfinite-tests: Likewise.
74584         * modules/isinf-tests: Likewise.
74585         * modules/ldexpl-tests: Likewise.
74586         * modules/locale-tests: Likewise.
74587         * modules/math-tests: Likewise.
74588         * modules/netdb-tests: Likewise.
74589         * modules/netinet_in-tests: Likewise.
74590         * modules/printf-frexp-tests: Likewise.
74591         * modules/printf-frexpl-tests: Likewise.
74592         * modules/priv-set-tests: Likewise.
74593         * modules/random_r-tests: Likewise.
74594         * modules/round-tests: Likewise.
74595         * modules/roundf-tests: Likewise.
74596         * modules/roundl-tests: Likewise.
74597         * modules/search-tests: Likewise.
74598         * modules/select-tests: Likewise.
74599         * modules/signal-tests: Likewise.
74600         * modules/stdbool-tests: Likewise.
74601         * modules/stddef-tests: Likewise.
74602         * modules/stdint-tests: Likewise.
74603         * modules/stdio-tests: Likewise.
74604         * modules/stdlib-tests: Likewise.
74605         * modules/string-tests: Likewise.
74606         * modules/strings-tests: Likewise.
74607         * modules/sys_select-tests: Likewise.
74608         * modules/sys_socket-tests: Likewise.
74609         * modules/sys_stat-tests: Likewise.
74610         * modules/sys_time-tests: Likewise.
74611         * modules/sys_utsname-tests: Likewise.
74612         * modules/sysexits-tests: Likewise.
74613         * modules/time-tests: Likewise.
74614         * modules/trunc-tests: Likewise.
74615         * modules/truncf-tests: Likewise.
74616         * modules/truncl-tests: Likewise.
74617         * modules/tsearch-tests: Likewise.
74618         * modules/unistd-tests: Likewise.
74619         * modules/wchar-tests: Likewise.
74620         * modules/wctype-tests: Likewise.
74622         tests: fix license on several tests
74623         * tests/test-des.c: Update to GPLv3+.
74624         * tests/test-flock.c: Likewise.
74625         * tests/test-fsync.c: Likewise.
74626         * tests/test-futimens.h: Likewise.
74627         * tests/test-gc-arcfour.c: Likewise.
74628         * tests/test-gc-arctwo.c: Likewise.
74629         * tests/test-gc-des.c: Likewise.
74630         * tests/test-gc-hmac-md5.c: Likewise.
74631         * tests/test-gc-hmac-sha1.c: Likewise.
74632         * tests/test-gc-md2.c: Likewise.
74633         * tests/test-gc-md4.c: Likewise.
74634         * tests/test-gc-md5.c: Likewise.
74635         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74636         * tests/test-gc-rijndael.c: Likewise.
74637         * tests/test-gc-sha1.c: Likewise.
74638         * tests/test-gc.c: Likewise.
74639         * tests/test-getcwd.c: Likewise.
74640         * tests/test-link.c: Likewise.
74641         * tests/test-link.h: Likewise.
74642         * tests/test-lutimens.h: Likewise.
74643         * tests/test-md2.c: Likewise.
74644         * tests/test-md4.c: Likewise.
74645         * tests/test-mkdir.h: Likewise.
74646         * tests/test-rename.c: Likewise.
74647         * tests/test-rename.h: Likewise.
74648         * tests/test-safe-alloc.c: Likewise.
74649         * tests/test-utimens-common.h: Likewise.
74650         * tests/test-utimens.h: Likewise.
74652         maint: sync license texts
74653         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74654         * doc/gpl-3.0.texi: Revert copyright year update.
74655         * doc/lgpl-3.0.texi: Likewise.
74657 2009-12-29  Jim Meyering  <meyering@redhat.com>
74659         update nearly all FSF copyright year lists to include 2009
74660         The files named by the following are exempted:
74661             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74662               test -f "$dst" && { echo "$dst"; continue; }
74663               test -d "$dst" || continue
74664               echo "$dst"/$(basename "$src")
74665             done > exempt
74666             git ls-files tests/unictype >> exempt
74667         In the remaining files, convert to all-interval notation if
74668         - there is already at least one year interval like 2000-2003
74669         - the file is maintained by me
74670         - the file is in lib/uni*/, where that style already prevails
74671         Otherwise, use update-copyright's default.
74673 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74674         and Eric Blake  <ebb9@byu.net>
74676         tests: don't require debug system() to pass
74677         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74678         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74679         * tests/test-unlink.h (test_unlink_func): Likewise.
74680         * tests/test-fstatat.c (main): ...into callers.
74681         * tests/test-lstat.c (main): Likewise.
74682         * tests/test-rmdir.c (main): Likewise.
74683         * tests/test-unlink.c (main): Likewise.
74684         * tests/test-unlinkat.c (main): Likewise.
74685         * tests/test-areadlink-with-size.c (main): Don't require a
74686         debug-only system call to pass, aiding cross-testing to mingw.
74687         * tests/test-areadlink.c (main): Likewise.
74688         * tests/test-areadlinkat-with-size.c (main): Likewise.
74689         * tests/test-areadlinkat.c (main): Likewise.
74690         * tests/test-canonicalize-lgpl.c (main): Likewise.
74691         * tests/test-canonicalize.c (main): Likewise.
74692         * tests/test-chown.c (main): Likewise.
74693         * tests/test-fchownat.c (main): Likewise.
74694         * tests/test-lchown.c (main): Likewise.
74695         * tests/test-fdutimensat.c (main): Likewise.
74696         * tests/test-futimens.c (main): Likewise.
74697         * tests/test-link.c (main): Likewise.
74698         * tests/test-linkat.c (main): Likewise.
74699         * tests/test-mkdir.c (main): Likewise.
74700         * tests/test-mkdirat.c (main): Likewise.
74701         * tests/test-mkfifo.c (main): Likewise.
74702         * tests/test-mkfifoat.c (main): Likewise.
74703         * tests/test-mknod.c (main): Likewise.
74704         * tests/test-readlink.c (main): Likewise.
74705         * tests/test-remove.c (main): Likewise.
74706         * tests/test-rename.c (main): Likewise.
74707         * tests/test-renameat.c (main): Likewise.
74708         * tests/test-symlink.c (main): Likewise.
74709         * tests/test-symlinkat.c (main): Likewise.
74710         * tests/test-utimens.c (main): Likewise.
74711         * tests/test-utimensat.c (main): Likewise.
74713 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74715         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74716         on $(UNUSED_PARAMETER_H) to avoid build failure.
74718 2009-12-28  Jim Meyering  <meyering@redhat.com>
74720         update-copyright: you may specify a max. line length other than 72
74721         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74723         maint: use consistent FSF copyright line syntax
74724         * lib/posixtm.c: Add missing comma in FSF copyright line.
74725         * lib/posixtm.h: Likewise.
74726         * lib/getugroups.c: Add missing ", Inc.".
74728         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74729         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74730         FSF copyright line.  Remove trailing blanks.
74732 2009-12-28  Eric Blake  <ebb9@byu.net>
74734         test-dup2: reduce dependencies
74735         * modules/cloexec (Configure.ac): Set witness.
74736         * modules/dup2-tests (Depends-on): Drop cloexec.
74737         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74738         not present.
74739         Suggested by Bruno Haible.
74741 2009-12-26  Bruno Haible  <bruno@clisp.org>
74743         Remove an unneeded dependency.
74744         * modules/fseterr (Depends-on): Remove dup2.
74746 2009-12-26  Eric Blake  <ebb9@byu.net>
74748         tests: use macros.h in more places
74749         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74750         (ASSERT_STREAM): Provide default of stderr.
74751         * tests/test-dirent-safer.c: Include macros.h, using alternate
74752         stream for assertions.
74753         * tests/test-dup-safer.c: Likewise.
74754         * tests/test-freopen-safer.c: Likewise.
74755         * tests/test-getopt.c: Likewise.
74756         * tests/test-openat-safer.c: Likewise.
74757         * tests/test-pipe.c: Likewise.
74758         * tests/test-popen-safer.c: Likewise.
74759         * modules/dirent-safer-tests (Files): Include macros.h.
74760         * modules/unistd-safer-tests (Files): Likewise.
74761         * modules/freopen-safer-tests (Files): Likewise.
74762         * modules/getopt-posix-tests (Files): Likewise.
74763         * modules/openat-safer-tests (Files): Likewise.
74764         * modules/pipe-tests (Files): Likewise.
74766 2009-12-26  Bruno Haible  <bruno@clisp.org>
74768         javacomp-script: Portability fix.
74769         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74770         that it also works on Solaris.
74772 2009-12-26  Bruno Haible  <bruno@clisp.org>
74774         localename: Fix storage allocation of gl_locale_name_thread's result.
74775         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74776         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74777         all platforms that have 'uselocale'.
74778         (gl_locale_name_thread_unsafe): New function, extracted from
74779         gl_locale_name_thread.
74780         (gl_locale_name_thread): Call struniq on all platforms that have
74781         'uselocale'.
74782         * tests/test-localename.c (test_locale_name_thread): Check that the
74783         resulting strings are permanently allocated.
74784         * modules/localename-tests (Depends-on): Add strdup.
74786 2009-12-26  Bruno Haible  <bruno@clisp.org>
74788         * tests/test-localename.c (categories): Fill in the strings.
74790 2009-12-26  Jim Meyering  <meyering@redhat.com>
74792         isdir: complete the removal of m4/isdir.m4
74793         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74795         isdir: clean up, since at least grep still uses it
74796         * lib/isdir.c: Include "isdir.h".
74797         (S_ISDIR): Remove now-unneeded definition.
74798         * modules/isdir (Files): Add lib/isdir.h.
74799         * lib/isdir.h: New file, with declaration.
74800         * m4/isdir.m4: Remove file -- unneeded.
74802 2009-12-25  Bruno Haible  <bruno@clisp.org>
74804         selinux-h: Make generated .h files standalone.
74805         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74806         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74807         * lib/se-selinux.in.h: Likewise.
74808         * modules/selinux-h (Depends-on): Add unused-parameter.
74809         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74810         selinux/selinux.h and selinux/context.h.
74811         Suggested by Eric Blake.
74813 2009-12-25  Bruno Haible  <bruno@clisp.org>
74815         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74816         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74817         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74818         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74819         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74821 2009-12-24  Bruno Haible  <bruno@clisp.org>
74823         openat: Fix warning.
74824         * lib/openat-proc.c: Include <unistd.h>.
74826 2009-12-24  Bruno Haible  <bruno@clisp.org>
74828         New module 'unused-parameter'.
74829         * build-aux/unused-parameter.h: New file, extracted from earlier
74830         gnulib-common.m4.
74831         * modules/unused-parameter: New file.
74832         * lib/unistr.h: Include unused-parameter.h.
74833         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74834         _GL_UNUSED.
74835         * modules/unistr/base (Depends-on): Add unused-parameter.
74837 2009-12-24  Bruno Haible  <bruno@clisp.org>
74839         Add missing dependencies to 'extensions' module.
74840         * m4/extensions.m4: Add comment.
74841         * modules/accept4 (Depends-on): Add extensions.
74842         * modules/dup3 (Depends-on): Likewise.
74843         * modules/fcntl (Depends-on): Likewise.
74844         * modules/futimens (Depends-on): Likewise.
74845         * modules/mknod (Depends-on): Likewise.
74846         * modules/pipe2 (Depends-on): Likewise.
74847         * modules/stat-time (Depends-on): Likewise.
74848         * modules/strcasestr-simple (Depends-on): Likewise.
74849         * modules/strsignal (Depends-on): Likewise.
74850         * modules/utimensat (Depends-on): Likewise.
74851         * modules/localcharset (Depends-on): Likewise. Needed because of
74852         gl_FCNTL_O_FLAGS.
74853         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74854         AC_TYPE_MBSTATE_T.
74855         * modules/wcsnrtombs (Depends-on): Likewise.
74856         * modules/wcsrtombs (Depends-on): Likewise.
74858 2009-12-24  Bruno Haible  <bruno@clisp.org>
74860         binary-io: Avoid gcc warning due to SET_BINARY.
74861         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74862         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74864 2009-12-24  Bruno Haible  <bruno@clisp.org>
74866         Avoid future namespace pollution on glibc systems.
74867         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74868         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74869         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74870         glibc systems.
74872 2009-12-24  Bruno Haible  <bruno@clisp.org>
74874         Refactor common macros used in tests.
74875         * tests/macros.h: New file.
74876         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74877         and/or <stdlib.h>, if appropriate.
74878         (ASSERT, SIZEOF): Remove macros.
74879         * tests/test-areadlink-with-size.c: Likewise.
74880         * tests/test-areadlinkat.c: Likewise.
74881         * tests/test-areadlinkat-with-size.c: Likewise.
74882         * tests/test-argmatch.c: Likewise.
74883         * tests/test-argv-iter.c: Likewise.
74884         * tests/test-array-mergesort.c: Likewise.
74885         * tests/test-array_list.c: Likewise.
74886         * tests/test-array_oset.c: Likewise.
74887         * tests/test-avltree_list.c: Likewise.
74888         * tests/test-avltree_oset.c: Likewise.
74889         * tests/test-avltreehash_list.c: Likewise.
74890         * tests/test-base64.c: Likewise.
74891         * tests/test-binary-io.c: Likewise.
74892         * tests/test-bitrotate.c: Likewise.
74893         * tests/test-btowc.c: Likewise.
74894         * tests/test-byteswap.c: Likewise.
74895         * tests/test-c-ctype.c: Likewise.
74896         * tests/test-c-stack.c: Likewise.
74897         * tests/test-c-strcasecmp.c: Likewise.
74898         * tests/test-c-strcasestr.c: Likewise.
74899         * tests/test-c-strncasecmp.c: Likewise.
74900         * tests/test-c-strstr.c: Likewise.
74901         * tests/test-canonicalize-lgpl.c: Likewise.
74902         * tests/test-canonicalize.c: Likewise.
74903         * tests/test-carray_list.c: Likewise.
74904         * tests/test-ceilf1.c: Likewise.
74905         * tests/test-ceilf2.c: Likewise.
74906         * tests/test-ceill.c: Likewise.
74907         * tests/test-chown.c: Likewise.
74908         * tests/test-cloexec.c: Likewise.
74909         * tests/test-copy-acl.c: Likewise.
74910         * tests/test-copy-file.c: Likewise.
74911         * tests/test-count-one-bits.c: Likewise.
74912         * tests/test-dprintf-posix.c: Likewise.
74913         * tests/test-dup2.c: Likewise.
74914         * tests/test-dup3.c: Likewise.
74915         * tests/test-duplocale.c: Likewise.
74916         * tests/test-fbufmode.c: Likewise.
74917         * tests/test-fchdir.c: Likewise.
74918         * tests/test-fchownat.c: Likewise.
74919         * tests/test-fcntl-safer.c: Likewise.
74920         * tests/test-fcntl.c: Likewise.
74921         * tests/test-fdopendir.c: Likewise.
74922         * tests/test-fdutimensat.c: Likewise.
74923         * tests/test-fflush2.c: Likewise.
74924         * tests/test-file-has-acl.c: Likewise.
74925         * tests/test-filevercmp.c: Likewise.
74926         * tests/test-flock.c: Likewise.
74927         * tests/test-floorf1.c: Likewise.
74928         * tests/test-floorf2.c: Likewise.
74929         * tests/test-floorl.c: Likewise.
74930         * tests/test-fnmatch.c: Likewise.
74931         * tests/test-fopen.h: Likewise.
74932         * tests/test-fpending.c: Likewise.
74933         * tests/test-fprintf-posix.c: Likewise.
74934         * tests/test-fpurge.c: Likewise.
74935         * tests/test-freadable.c: Likewise.
74936         * tests/test-freadahead.c: Likewise.
74937         * tests/test-freading.c: Likewise.
74938         * tests/test-freadptr.c: Likewise.
74939         * tests/test-freadptr2.c: Likewise.
74940         * tests/test-freadseek.c: Likewise.
74941         * tests/test-freopen.c: Likewise.
74942         * tests/test-frexp.c: Likewise.
74943         * tests/test-frexpl.c: Likewise.
74944         * tests/test-fseek.c: Likewise.
74945         * tests/test-fseeko.c: Likewise.
74946         * tests/test-fstatat.c: Likewise.
74947         * tests/test-fstrcmp.c: Likewise.
74948         * tests/test-fsync.c: Likewise.
74949         * tests/test-ftell.c: Likewise.
74950         * tests/test-ftello.c: Likewise.
74951         * tests/test-func.c: Likewise.
74952         * tests/test-futimens.c: Likewise.
74953         * tests/test-fwritable.c: Likewise.
74954         * tests/test-fwriting.c: Likewise.
74955         * tests/test-getcwd.c: Likewise.
74956         * tests/test-getdate.c: Likewise.
74957         * tests/test-getdelim.c: Likewise.
74958         * tests/test-getdtablesize.c: Likewise.
74959         * tests/test-getgroups.c: Likewise.
74960         * tests/test-getline.c: Likewise.
74961         * tests/test-getndelim2.c: Likewise.
74962         * tests/test-glob.c: Likewise.
74963         * tests/test-hash.c: Likewise.
74964         * tests/test-i-ring.c: Likewise.
74965         * tests/test-iconv-utf.c: Likewise.
74966         * tests/test-iconv.c: Likewise.
74967         * tests/test-idpriv-drop.c: Likewise.
74968         * tests/test-idpriv-droptemp.c: Likewise.
74969         * tests/test-inet_ntop.c: Likewise.
74970         * tests/test-inet_pton.c: Likewise.
74971         * tests/test-isblank.c: Likewise.
74972         * tests/test-isfinite.c: Likewise.
74973         * tests/test-isinf.c: Likewise.
74974         * tests/test-isnan.c: Likewise.
74975         * tests/test-isnand.h: Likewise.
74976         * tests/test-isnanf.h: Likewise.
74977         * tests/test-isnanl.h: Likewise.
74978         * tests/test-lchown.c: Likewise.
74979         * tests/test-ldexpl.c: Likewise.
74980         * tests/test-link.c: Likewise.
74981         * tests/test-linkat.c: Likewise.
74982         * tests/test-linked_list.c: Likewise.
74983         * tests/test-linkedhash_list.c: Likewise.
74984         * tests/test-localename.c: Likewise.
74985         * tests/test-lseek.c: Likewise.
74986         * tests/test-lstat.c: Likewise.
74987         * tests/test-mbmemcasecmp.c: Likewise.
74988         * tests/test-mbmemcasecoll.c: Likewise.
74989         * tests/test-mbrtowc.c: Likewise.
74990         * tests/test-mbscasecmp.c: Likewise.
74991         * tests/test-mbscasestr1.c: Likewise.
74992         * tests/test-mbscasestr2.c: Likewise.
74993         * tests/test-mbscasestr3.c: Likewise.
74994         * tests/test-mbscasestr4.c: Likewise.
74995         * tests/test-mbschr.c: Likewise.
74996         * tests/test-mbscspn.c: Likewise.
74997         * tests/test-mbsinit.c: Likewise.
74998         * tests/test-mbsncasecmp.c: Likewise.
74999         * tests/test-mbsnrtowcs.c: Likewise.
75000         * tests/test-mbspbrk.c: Likewise.
75001         * tests/test-mbspcasecmp.c: Likewise.
75002         * tests/test-mbsrchr.c: Likewise.
75003         * tests/test-mbsrtowcs.c: Likewise.
75004         * tests/test-mbsspn.c: Likewise.
75005         * tests/test-mbsstr1.c: Likewise.
75006         * tests/test-mbsstr2.c: Likewise.
75007         * tests/test-mbsstr3.c: Likewise.
75008         * tests/test-memchr.c: Likewise.
75009         * tests/test-memchr2.c: Likewise.
75010         * tests/test-memcmp.c: Likewise.
75011         * tests/test-memmem.c: Likewise.
75012         * tests/test-memrchr.c: Likewise.
75013         * tests/test-mkdir.c: Likewise.
75014         * tests/test-mkdirat.c: Likewise.
75015         * tests/test-mkfifo.c: Likewise.
75016         * tests/test-mkfifoat.c: Likewise.
75017         * tests/test-mknod.c: Likewise.
75018         * tests/test-nanosleep.c: Likewise.
75019         * tests/test-nl_langinfo.c: Likewise.
75020         * tests/test-obstack-printf.c: Likewise.
75021         * tests/test-open.c: Likewise.
75022         * tests/test-openat.c: Likewise.
75023         * tests/test-pipe-filter-gi1.c: Likewise.
75024         * tests/test-pipe-filter-gi2-main.c: Likewise.
75025         * tests/test-pipe-filter-ii1.c: Likewise.
75026         * tests/test-pipe-filter-ii2-main.c: Likewise.
75027         * tests/test-pipe2.c: Likewise.
75028         * tests/test-popen.h: Likewise.
75029         * tests/test-posixtm.c: Likewise.
75030         * tests/test-pread.c: Likewise.
75031         * tests/test-printf-frexp.c: Likewise.
75032         * tests/test-printf-frexpl.c: Likewise.
75033         * tests/test-printf-posix.c: Likewise.
75034         * tests/test-priv-set.c: Likewise.
75035         * tests/test-quotearg.c: Likewise.
75036         * tests/test-random_r.c: Likewise.
75037         * tests/test-rawmemchr.c: Likewise.
75038         * tests/test-rbtree_list.c: Likewise.
75039         * tests/test-rbtree_oset.c: Likewise.
75040         * tests/test-rbtreehash_list.c: Likewise.
75041         * tests/test-readlink.c: Likewise.
75042         * tests/test-remove.c: Likewise.
75043         * tests/test-rename.c: Likewise.
75044         * tests/test-renameat.c: Likewise.
75045         * tests/test-rmdir.c: Likewise.
75046         * tests/test-round1.c: Likewise.
75047         * tests/test-roundf1.c: Likewise.
75048         * tests/test-roundl.c: Likewise.
75049         * tests/test-safe-alloc.c: Likewise.
75050         * tests/test-sameacls.c: Likewise.
75051         * tests/test-set-mode-acl.c: Likewise.
75052         * tests/test-setenv.c: Likewise.
75053         * tests/test-sigaction.c: Likewise.
75054         * tests/test-signbit.c: Likewise.
75055         * tests/test-sleep.c: Likewise.
75056         * tests/test-snprintf-posix.c: Likewise.
75057         * tests/test-snprintf.c: Likewise.
75058         * tests/test-sprintf-posix.c: Likewise.
75059         * tests/test-stat-time.c: Likewise.
75060         * tests/test-stat.c: Likewise.
75061         * tests/test-strcasestr.c: Likewise.
75062         * tests/test-strchrnul.c: Likewise.
75063         * tests/test-strerror.c: Likewise.
75064         * tests/test-striconv.c: Likewise.
75065         * tests/test-striconveh.c: Likewise.
75066         * tests/test-striconveha.c: Likewise.
75067         * tests/test-strsignal.c: Likewise.
75068         * tests/test-strstr.c: Likewise.
75069         * tests/test-strtod.c: Likewise.
75070         * tests/test-strverscmp.c: Likewise.
75071         * tests/test-symlink.c: Likewise.
75072         * tests/test-symlinkat.c: Likewise.
75073         * tests/test-trunc1.c: Likewise.
75074         * tests/test-trunc2.c: Likewise.
75075         * tests/test-truncf1.c: Likewise.
75076         * tests/test-truncf2.c: Likewise.
75077         * tests/test-truncl.c: Likewise.
75078         * tests/test-uname.c: Likewise.
75079         * tests/test-unlink.c: Likewise.
75080         * tests/test-unlinkat.c: Likewise.
75081         * tests/test-unsetenv.c: Likewise.
75082         * tests/test-usleep.c: Likewise.
75083         * tests/test-utimens.c: Likewise.
75084         * tests/test-utimensat.c: Likewise.
75085         * tests/test-vasnprintf-posix.c: Likewise.
75086         * tests/test-vasnprintf-posix2.c: Likewise.
75087         * tests/test-vasnprintf.c: Likewise.
75088         * tests/test-vasprintf-posix.c: Likewise.
75089         * tests/test-vasprintf.c: Likewise.
75090         * tests/test-vdprintf-posix.c: Likewise.
75091         * tests/test-vfprintf-posix.c: Likewise.
75092         * tests/test-vprintf-posix.c: Likewise.
75093         * tests/test-vsnprintf-posix.c: Likewise.
75094         * tests/test-vsnprintf.c: Likewise.
75095         * tests/test-vsprintf-posix.c: Likewise.
75096         * tests/test-wcrtomb.c: Likewise.
75097         * tests/test-wcsnrtombs.c: Likewise.
75098         * tests/test-wcsrtombs.c: Likewise.
75099         * tests/test-wctype.c: Likewise.
75100         * tests/test-wcwidth.c: Likewise.
75101         * tests/test-xfprintf-posix.c: Likewise.
75102         * tests/test-xmemdup0.c: Likewise.
75103         * tests/test-xprintf-posix.c: Likewise.
75104         * tests/test-xvasprintf.c: Likewise.
75105         * tests/unicase/test-locale-language.c: Likewise.
75106         * tests/unicase/test-mapping-part1.h: Likewise.
75107         * tests/unicase/test-predicate-part1.h: Likewise.
75108         * tests/unicase/test-u8-casecmp.c: Likewise.
75109         * tests/unicase/test-u8-casecoll.c: Likewise.
75110         * tests/unicase/test-u8-casefold.c: Likewise.
75111         * tests/unicase/test-u8-is-cased.c: Likewise.
75112         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75113         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75114         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75115         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75116         * tests/unicase/test-u8-tolower.c: Likewise.
75117         * tests/unicase/test-u8-totitle.c: Likewise.
75118         * tests/unicase/test-u8-toupper.c: Likewise.
75119         * tests/unicase/test-u16-casecmp.c: Likewise.
75120         * tests/unicase/test-u16-casecoll.c: Likewise.
75121         * tests/unicase/test-u16-casefold.c: Likewise.
75122         * tests/unicase/test-u16-is-cased.c: Likewise.
75123         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75124         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75125         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75126         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75127         * tests/unicase/test-u16-tolower.c: Likewise.
75128         * tests/unicase/test-u16-totitle.c: Likewise.
75129         * tests/unicase/test-u16-toupper.c: Likewise.
75130         * tests/unicase/test-u32-casecmp.c: Likewise.
75131         * tests/unicase/test-u32-casecoll.c: Likewise.
75132         * tests/unicase/test-u32-casefold.c: Likewise.
75133         * tests/unicase/test-u32-is-cased.c: Likewise.
75134         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75135         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75136         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75137         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75138         * tests/unicase/test-u32-tolower.c: Likewise.
75139         * tests/unicase/test-u32-totitle.c: Likewise.
75140         * tests/unicase/test-u32-toupper.c: Likewise.
75141         * tests/unicase/test-ulc-casecmp.c: Likewise.
75142         * tests/unicase/test-ulc-casecoll.c: Likewise.
75143         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75144         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75145         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75146         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75147         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75148         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75149         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75150         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75151         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75152         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75153         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75154         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75155         * tests/unictype/test-bidi_byname.c: Likewise.
75156         * tests/unictype/test-bidi_name.c: Likewise.
75157         * tests/unictype/test-bidi_of.c: Likewise.
75158         * tests/unictype/test-bidi_test.c: Likewise.
75159         * tests/unictype/test-block_list.c: Likewise.
75160         * tests/unictype/test-block_of.c: Likewise.
75161         * tests/unictype/test-block_test.c: Likewise.
75162         * tests/unictype/test-categ_and.c: Likewise.
75163         * tests/unictype/test-categ_and_not.c: Likewise.
75164         * tests/unictype/test-categ_byname.c: Likewise.
75165         * tests/unictype/test-categ_name.c: Likewise.
75166         * tests/unictype/test-categ_none.c: Likewise.
75167         * tests/unictype/test-categ_of.c: Likewise.
75168         * tests/unictype/test-categ_or.c: Likewise.
75169         * tests/unictype/test-categ_test_withtable.c: Likewise.
75170         * tests/unictype/test-combining.c: Likewise.
75171         * tests/unictype/test-decdigit.c: Likewise.
75172         * tests/unictype/test-digit.c: Likewise.
75173         * tests/unictype/test-mirror.c: Likewise.
75174         * tests/unictype/test-numeric.c: Likewise.
75175         * tests/unictype/test-pr_byname.c: Likewise.
75176         * tests/unictype/test-pr_test.c: Likewise.
75177         * tests/unictype/test-predicate-part1.h: Likewise.
75178         * tests/unictype/test-scripts.c: Likewise.
75179         * tests/unictype/test-sy_c_ident.c: Likewise.
75180         * tests/unictype/test-sy_java_ident.c: Likewise.
75181         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75182         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75183         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75184         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75185         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75186         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75187         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75188         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75189         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75190         * tests/uninorm/test-compat-decomposition.c: Likewise.
75191         * tests/uninorm/test-composition.c: Likewise.
75192         * tests/uninorm/test-decomposing-form.c: Likewise.
75193         * tests/uninorm/test-decomposition.c: Likewise.
75194         * tests/uninorm/test-u8-nfc.c: Likewise.
75195         * tests/uninorm/test-u8-nfd.c: Likewise.
75196         * tests/uninorm/test-u8-nfkc.c: Likewise.
75197         * tests/uninorm/test-u8-nfkd.c: Likewise.
75198         * tests/uninorm/test-u8-normcmp.c: Likewise.
75199         * tests/uninorm/test-u8-normcoll.c: Likewise.
75200         * tests/uninorm/test-u16-nfc.c: Likewise.
75201         * tests/uninorm/test-u16-nfd.c: Likewise.
75202         * tests/uninorm/test-u16-nfkc.c: Likewise.
75203         * tests/uninorm/test-u16-nfkd.c: Likewise.
75204         * tests/uninorm/test-u16-normcmp.c: Likewise.
75205         * tests/uninorm/test-u16-normcoll.c: Likewise.
75206         * tests/uninorm/test-u32-nfc.c: Likewise.
75207         * tests/uninorm/test-u32-nfd.c: Likewise.
75208         * tests/uninorm/test-u32-nfkc.c: Likewise.
75209         * tests/uninorm/test-u32-nfkd.c: Likewise.
75210         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75211         * tests/uninorm/test-u32-normcmp.c: Likewise.
75212         * tests/uninorm/test-u32-normcoll.c: Likewise.
75213         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75214         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75215         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75216         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75217         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75218         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75219         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75220         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75221         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75222         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75223         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75224         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75225         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75226         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75227         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75228         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75229         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75230         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75231         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75232         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75233         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75234         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75235         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75236         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75237         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75238         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75239         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75240         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75241         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75242         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75243         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75244         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75245         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75246         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75247         * tests/uniwidth/test-u8-width.c: Likewise.
75248         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75249         * tests/uniwidth/test-u16-width.c: Likewise.
75250         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75251         * tests/uniwidth/test-u32-width.c: Likewise.
75252         * tests/uniwidth/test-uc_width.c: Likewise.
75253         * tests/uniwidth/test-uc_width2.c: Likewise.
75254         * modules/acl-tests (Files): Add tests/macros.h.
75255         * modules/areadlink-tests (Files): Likewise.
75256         * modules/areadlink-with-size-tests (Files): Likewise.
75257         * modules/areadlinkat-tests (Files): Likewise.
75258         * modules/areadlinkat-with-size-tests (Files): Likewise.
75259         * modules/argmatch-tests (Files): Likewise.
75260         * modules/argv-iter-tests (Files): Likewise.
75261         * modules/array-list-tests (Files): Likewise.
75262         * modules/array-mergesort-tests (Files): Likewise.
75263         * modules/array-oset-tests (Files): Likewise.
75264         * modules/avltree-list-tests (Files): Likewise.
75265         * modules/avltree-oset-tests (Files): Likewise.
75266         * modules/avltreehash-list-tests (Files): Likewise.
75267         * modules/base64-tests (Files): Likewise.
75268         * modules/binary-io-tests (Files): Likewise.
75269         * modules/bitrotate-tests (Files): Likewise.
75270         * modules/btowc-tests (Files): Likewise.
75271         * modules/byteswap-tests (Files): Likewise.
75272         * modules/c-ctype-tests (Files): Likewise.
75273         * modules/c-stack-tests (Files): Likewise.
75274         * modules/c-strcase-tests (Files): Likewise.
75275         * modules/c-strcasestr-tests (Files): Likewise.
75276         * modules/c-strstr-tests (Files): Likewise.
75277         * modules/canonicalize-lgpl-tests (Files): Likewise.
75278         * modules/canonicalize-tests (Files): Likewise.
75279         * modules/carray-list-tests (Files): Likewise.
75280         * modules/ceilf-tests (Files): Likewise.
75281         * modules/ceill-tests (Files): Likewise.
75282         * modules/chown-tests (Files): Likewise.
75283         * modules/cloexec-tests (Files): Likewise.
75284         * modules/copy-file-tests (Files): Likewise.
75285         * modules/count-one-bits-tests (Files): Likewise.
75286         * modules/dprintf-posix-tests (Files): Likewise.
75287         * modules/dup2-tests (Files): Likewise.
75288         * modules/dup3-tests (Files): Likewise.
75289         * modules/duplocale-tests (Files): Likewise.
75290         * modules/fbufmode-tests (Files): Likewise.
75291         * modules/fchdir-tests (Files): Likewise.
75292         * modules/fcntl-safer-tests (Files): Likewise.
75293         * modules/fcntl-tests (Files): Likewise.
75294         * modules/fdopendir-tests (Files): Likewise.
75295         * modules/fdutimensat-tests (Files): Likewise.
75296         * modules/fflush-tests (Files): Likewise.
75297         * modules/filevercmp-tests (Files): Likewise.
75298         * modules/flock-tests (Files): Likewise.
75299         * modules/floorf-tests (Files): Likewise.
75300         * modules/floorl-tests (Files): Likewise.
75301         * modules/fnmatch-tests (Files): Likewise.
75302         * modules/fopen-safer-tests (Files): Likewise.
75303         * modules/fopen-tests (Files): Likewise.
75304         * modules/fpending-tests (Files): Likewise.
75305         * modules/fprintf-posix-tests (Files): Likewise.
75306         * modules/fpurge-tests (Files): Likewise.
75307         * modules/freadable-tests (Files): Likewise.
75308         * modules/freadahead-tests (Files): Likewise.
75309         * modules/freading-tests (Files): Likewise.
75310         * modules/freadptr-tests (Files): Likewise.
75311         * modules/freadseek-tests (Files): Likewise.
75312         * modules/freopen-tests (Files): Likewise.
75313         * modules/frexp-nolibm-tests (Files): Likewise.
75314         * modules/frexp-tests (Files): Likewise.
75315         * modules/frexpl-nolibm-tests (Files): Likewise.
75316         * modules/frexpl-tests (Files): Likewise.
75317         * modules/fseek-tests (Files): Likewise.
75318         * modules/fseeko-tests (Files): Likewise.
75319         * modules/fstrcmp-tests (Files): Likewise.
75320         * modules/fsync-tests (Files): Likewise.
75321         * modules/ftell-tests (Files): Likewise.
75322         * modules/ftello-tests (Files): Likewise.
75323         * modules/func-tests (Files): Likewise.
75324         * modules/futimens-tests (Files): Likewise.
75325         * modules/fwritable-tests (Files): Likewise.
75326         * modules/fwriting-tests (Files): Likewise.
75327         * modules/getcwd-tests (Files): Likewise.
75328         * modules/getdate-tests (Files): Likewise.
75329         * modules/getdelim-tests (Files): Likewise.
75330         * modules/getdtablesize-tests (Files): Likewise.
75331         * modules/getgroups-tests (Files): Likewise.
75332         * modules/getline-tests (Files): Likewise.
75333         * modules/getndelim2-tests (Files): Likewise.
75334         * modules/glob-tests (Files): Likewise.
75335         * modules/hash-tests (Files): Likewise.
75336         * modules/i-ring-tests (Files): Likewise.
75337         * modules/iconv-tests (Files): Likewise.
75338         * modules/iconv_open-utf-tests (Files): Likewise.
75339         * modules/idpriv-drop-tests (Files): Likewise.
75340         * modules/idpriv-droptemp-tests (Files): Likewise.
75341         * modules/inet_ntop-tests (Files): Likewise.
75342         * modules/inet_pton-tests (Files): Likewise.
75343         * modules/isblank-tests (Files): Likewise.
75344         * modules/isfinite-tests (Files): Likewise.
75345         * modules/isinf-tests (Files): Likewise.
75346         * modules/isnan-tests (Files): Likewise.
75347         * modules/isnand-nolibm-tests (Files): Likewise.
75348         * modules/isnand-tests (Files): Likewise.
75349         * modules/isnanf-nolibm-tests (Files): Likewise.
75350         * modules/isnanf-tests (Files): Likewise.
75351         * modules/isnanl-nolibm-tests (Files): Likewise.
75352         * modules/isnanl-tests (Files): Likewise.
75353         * modules/lchown-tests (Files): Likewise.
75354         * modules/ldexpl-tests (Files): Likewise.
75355         * modules/link-tests (Files): Likewise.
75356         * modules/linkat-tests (Files): Likewise.
75357         * modules/linked-list-tests (Files): Likewise.
75358         * modules/linkedhash-list-tests (Files): Likewise.
75359         * modules/localename-tests (Files): Likewise.
75360         * modules/lseek-tests (Files): Likewise.
75361         * modules/lstat-tests (Files): Likewise.
75362         * modules/mbmemcasecmp-tests (Files): Likewise.
75363         * modules/mbmemcasecoll-tests (Files): Likewise.
75364         * modules/mbrtowc-tests (Files): Likewise.
75365         * modules/mbscasecmp-tests (Files): Likewise.
75366         * modules/mbscasestr-tests (Files): Likewise.
75367         * modules/mbschr-tests (Files): Likewise.
75368         * modules/mbscspn-tests (Files): Likewise.
75369         * modules/mbsinit-tests (Files): Likewise.
75370         * modules/mbsncasecmp-tests (Files): Likewise.
75371         * modules/mbsnrtowcs-tests (Files): Likewise.
75372         * modules/mbspbrk-tests (Files): Likewise.
75373         * modules/mbspcasecmp-tests (Files): Likewise.
75374         * modules/mbsrchr-tests (Files): Likewise.
75375         * modules/mbsrtowcs-tests (Files): Likewise.
75376         * modules/mbsspn-tests (Files): Likewise.
75377         * modules/mbsstr-tests (Files): Likewise.
75378         * modules/memchr-tests (Files): Likewise.
75379         * modules/memchr2-tests (Files): Likewise.
75380         * modules/memcmp-tests (Files): Likewise.
75381         * modules/memmem-tests (Files): Likewise.
75382         * modules/memrchr-tests (Files): Likewise.
75383         * modules/mkdir-tests (Files): Likewise.
75384         * modules/mkfifo-tests (Files): Likewise.
75385         * modules/mkfifoat-tests (Files): Likewise.
75386         * modules/mknod-tests (Files): Likewise.
75387         * modules/nanosleep-tests (Files): Likewise.
75388         * modules/nl_langinfo-tests (Files): Likewise.
75389         * modules/obstack-printf-tests (Files): Likewise.
75390         * modules/open-tests (Files): Likewise.
75391         * modules/openat-tests (Files): Likewise.
75392         * modules/pipe-filter-gi-tests (Files): Likewise.
75393         * modules/pipe-filter-ii-tests (Files): Likewise.
75394         * modules/pipe2-tests (Files): Likewise.
75395         * modules/popen-safer-tests (Files): Likewise.
75396         * modules/popen-tests (Files): Likewise.
75397         * modules/posixtm-tests (Files): Likewise.
75398         * modules/pread-tests (Files): Likewise.
75399         * modules/printf-frexp-tests (Files): Likewise.
75400         * modules/printf-frexpl-tests (Files): Likewise.
75401         * modules/printf-posix-tests (Files): Likewise.
75402         * modules/priv-set-tests (Files): Likewise.
75403         * modules/quotearg-tests (Files): Likewise.
75404         * modules/random_r-tests (Files): Likewise.
75405         * modules/rawmemchr-tests (Files): Likewise.
75406         * modules/rbtree-list-tests (Files): Likewise.
75407         * modules/rbtree-oset-tests (Files): Likewise.
75408         * modules/rbtreehash-list-tests (Files): Likewise.
75409         * modules/readlink-tests (Files): Likewise.
75410         * modules/remove-tests (Files): Likewise.
75411         * modules/rename-tests (Files): Likewise.
75412         * modules/renameat-tests (Files): Likewise.
75413         * modules/rmdir-tests (Files): Likewise.
75414         * modules/round-tests (Files): Likewise.
75415         * modules/roundf-tests (Files): Likewise.
75416         * modules/roundl-tests (Files): Likewise.
75417         * modules/safe-alloc-tests (Files): Likewise.
75418         * modules/setenv-tests (Files): Likewise.
75419         * modules/sigaction-tests (Files): Likewise.
75420         * modules/signbit-tests (Files): Likewise.
75421         * modules/sleep-tests (Files): Likewise.
75422         * modules/snprintf-posix-tests (Files): Likewise.
75423         * modules/snprintf-tests (Files): Likewise.
75424         * modules/sprintf-posix-tests (Files): Likewise.
75425         * modules/stat-tests (Files): Likewise.
75426         * modules/stat-time-tests (Files): Likewise.
75427         * modules/strcasestr-tests (Files): Likewise.
75428         * modules/strchrnul-tests (Files): Likewise.
75429         * modules/strerror-tests (Files): Likewise.
75430         * modules/striconv-tests (Files): Likewise.
75431         * modules/striconveh-tests (Files): Likewise.
75432         * modules/striconveha-tests (Files): Likewise.
75433         * modules/strsignal-tests (Files): Likewise.
75434         * modules/strstr-tests (Files): Likewise.
75435         * modules/strtod-tests (Files): Likewise.
75436         * modules/strverscmp-tests (Files): Likewise.
75437         * modules/symlink-tests (Files): Likewise.
75438         * modules/symlinkat-tests (Files): Likewise.
75439         * modules/trunc-tests (Files): Likewise.
75440         * modules/truncf-tests (Files): Likewise.
75441         * modules/truncl-tests (Files): Likewise.
75442         * modules/uname-tests (Files): Likewise.
75443         * modules/unicase/cased-tests (Files): Likewise.
75444         * modules/unicase/ignorable-tests (Files): Likewise.
75445         * modules/unicase/locale-language-tests (Files): Likewise.
75446         * modules/unicase/tolower-tests (Files): Likewise.
75447         * modules/unicase/totitle-tests (Files): Likewise.
75448         * modules/unicase/toupper-tests (Files): Likewise.
75449         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75450         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75451         * modules/unicase/u8-casefold-tests (Files): Likewise.
75452         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75453         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75454         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75455         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75456         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75457         * modules/unicase/u8-tolower-tests (Files): Likewise.
75458         * modules/unicase/u8-totitle-tests (Files): Likewise.
75459         * modules/unicase/u8-toupper-tests (Files): Likewise.
75460         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75461         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75462         * modules/unicase/u16-casefold-tests (Files): Likewise.
75463         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75464         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75465         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75466         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75467         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75468         * modules/unicase/u16-tolower-tests (Files): Likewise.
75469         * modules/unicase/u16-totitle-tests (Files): Likewise.
75470         * modules/unicase/u16-toupper-tests (Files): Likewise.
75471         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75472         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75473         * modules/unicase/u32-casefold-tests (Files): Likewise.
75474         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75475         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75476         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75477         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75478         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75479         * modules/unicase/u32-tolower-tests (Files): Likewise.
75480         * modules/unicase/u32-totitle-tests (Files): Likewise.
75481         * modules/unicase/u32-toupper-tests (Files): Likewise.
75482         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75483         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75484         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75485         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75486         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75487         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75488         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75489         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75490         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75491         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75492         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75493         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75494         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75495         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75496         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75497         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75498         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75499         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75500         * modules/unictype/block-list-tests (Files): Likewise.
75501         * modules/unictype/block-of-tests (Files): Likewise.
75502         * modules/unictype/block-test-tests (Files): Likewise.
75503         * modules/unictype/category-C-tests (Files): Likewise.
75504         * modules/unictype/category-Cc-tests (Files): Likewise.
75505         * modules/unictype/category-Cf-tests (Files): Likewise.
75506         * modules/unictype/category-Cn-tests (Files): Likewise.
75507         * modules/unictype/category-Co-tests (Files): Likewise.
75508         * modules/unictype/category-Cs-tests (Files): Likewise.
75509         * modules/unictype/category-L-tests (Files): Likewise.
75510         * modules/unictype/category-Ll-tests (Files): Likewise.
75511         * modules/unictype/category-Lm-tests (Files): Likewise.
75512         * modules/unictype/category-Lo-tests (Files): Likewise.
75513         * modules/unictype/category-Lt-tests (Files): Likewise.
75514         * modules/unictype/category-Lu-tests (Files): Likewise.
75515         * modules/unictype/category-M-tests (Files): Likewise.
75516         * modules/unictype/category-Mc-tests (Files): Likewise.
75517         * modules/unictype/category-Me-tests (Files): Likewise.
75518         * modules/unictype/category-Mn-tests (Files): Likewise.
75519         * modules/unictype/category-N-tests (Files): Likewise.
75520         * modules/unictype/category-Nd-tests (Files): Likewise.
75521         * modules/unictype/category-Nl-tests (Files): Likewise.
75522         * modules/unictype/category-No-tests (Files): Likewise.
75523         * modules/unictype/category-P-tests (Files): Likewise.
75524         * modules/unictype/category-Pc-tests (Files): Likewise.
75525         * modules/unictype/category-Pd-tests (Files): Likewise.
75526         * modules/unictype/category-Pe-tests (Files): Likewise.
75527         * modules/unictype/category-Pf-tests (Files): Likewise.
75528         * modules/unictype/category-Pi-tests (Files): Likewise.
75529         * modules/unictype/category-Po-tests (Files): Likewise.
75530         * modules/unictype/category-Ps-tests (Files): Likewise.
75531         * modules/unictype/category-S-tests (Files): Likewise.
75532         * modules/unictype/category-Sc-tests (Files): Likewise.
75533         * modules/unictype/category-Sk-tests (Files): Likewise.
75534         * modules/unictype/category-Sm-tests (Files): Likewise.
75535         * modules/unictype/category-So-tests (Files): Likewise.
75536         * modules/unictype/category-Z-tests (Files): Likewise.
75537         * modules/unictype/category-Zl-tests (Files): Likewise.
75538         * modules/unictype/category-Zp-tests (Files): Likewise.
75539         * modules/unictype/category-Zs-tests (Files): Likewise.
75540         * modules/unictype/category-and-not-tests (Files): Likewise.
75541         * modules/unictype/category-and-tests (Files): Likewise.
75542         * modules/unictype/category-byname-tests (Files): Likewise.
75543         * modules/unictype/category-name-tests (Files): Likewise.
75544         * modules/unictype/category-none-tests (Files): Likewise.
75545         * modules/unictype/category-of-tests (Files): Likewise.
75546         * modules/unictype/category-or-tests (Files): Likewise.
75547         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75548         * modules/unictype/combining-class-tests (Files): Likewise.
75549         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75550         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75551         * modules/unictype/ctype-blank-tests (Files): Likewise.
75552         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75553         * modules/unictype/ctype-digit-tests (Files): Likewise.
75554         * modules/unictype/ctype-graph-tests (Files): Likewise.
75555         * modules/unictype/ctype-lower-tests (Files): Likewise.
75556         * modules/unictype/ctype-print-tests (Files): Likewise.
75557         * modules/unictype/ctype-punct-tests (Files): Likewise.
75558         * modules/unictype/ctype-space-tests (Files): Likewise.
75559         * modules/unictype/ctype-upper-tests (Files): Likewise.
75560         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75561         * modules/unictype/decimal-digit-tests (Files): Likewise.
75562         * modules/unictype/digit-tests (Files): Likewise.
75563         * modules/unictype/mirror-tests (Files): Likewise.
75564         * modules/unictype/numeric-tests (Files): Likewise.
75565         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75566         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75567         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75568         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75569         Likewise.
75570         * modules/unictype/property-bidi-block-separator-tests (Files):
75571         Likewise.
75572         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75573         Likewise.
75574         * modules/unictype/property-bidi-common-separator-tests (Files):
75575         Likewise.
75576         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75577         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75578         Likewise.
75579         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75580         Likewise.
75581         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75582         Likewise.
75583         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75584         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75585         Likewise.
75586         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75587         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75588         Likewise.
75589         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75590         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75591         * modules/unictype/property-bidi-segment-separator-tests (Files):
75592         Likewise.
75593         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75594         * modules/unictype/property-byname-tests (Files): Likewise.
75595         * modules/unictype/property-combining-tests (Files): Likewise.
75596         * modules/unictype/property-composite-tests (Files): Likewise.
75597         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75598         * modules/unictype/property-dash-tests (Files): Likewise.
75599         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75600         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75601         Likewise.
75602         * modules/unictype/property-deprecated-tests (Files): Likewise.
75603         * modules/unictype/property-diacritic-tests (Files): Likewise.
75604         * modules/unictype/property-extender-tests (Files): Likewise.
75605         * modules/unictype/property-format-control-tests (Files): Likewise.
75606         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75607         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75608         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75609         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75610         * modules/unictype/property-hyphen-tests (Files): Likewise.
75611         * modules/unictype/property-id-continue-tests (Files): Likewise.
75612         * modules/unictype/property-id-start-tests (Files): Likewise.
75613         * modules/unictype/property-ideographic-tests (Files): Likewise.
75614         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75615         * modules/unictype/property-ids-trinary-operator-tests (Files):
75616         Likewise.
75617         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75618         * modules/unictype/property-iso-control-tests (Files): Likewise.
75619         * modules/unictype/property-join-control-tests (Files): Likewise.
75620         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75621         * modules/unictype/property-line-separator-tests (Files): Likewise.
75622         * modules/unictype/property-logical-order-exception-tests (Files):
75623         Likewise.
75624         * modules/unictype/property-lowercase-tests (Files): Likewise.
75625         * modules/unictype/property-math-tests (Files): Likewise.
75626         * modules/unictype/property-non-break-tests (Files): Likewise.
75627         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75628         * modules/unictype/property-numeric-tests (Files): Likewise.
75629         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75630         * modules/unictype/property-other-default-ignorable-code-point-tests
75631         (Files): Likewise.
75632         * modules/unictype/property-other-grapheme-extend-tests (Files):
75633         Likewise.
75634         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75635         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75636         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75637         * modules/unictype/property-other-math-tests (Files): Likewise.
75638         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75639         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75640         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75641         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75642         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75643         * modules/unictype/property-private-use-tests (Files): Likewise.
75644         * modules/unictype/property-punctuation-tests (Files): Likewise.
75645         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75646         * modules/unictype/property-radical-tests (Files): Likewise.
75647         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75648         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75649         * modules/unictype/property-space-tests (Files): Likewise.
75650         * modules/unictype/property-terminal-punctuation-tests (Files):
75651         Likewise.
75652         * modules/unictype/property-test-tests (Files): Likewise.
75653         * modules/unictype/property-titlecase-tests (Files): Likewise.
75654         * modules/unictype/property-unassigned-code-value-tests (Files):
75655         Likewise.
75656         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75657         * modules/unictype/property-uppercase-tests (Files): Likewise.
75658         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75659         * modules/unictype/property-white-space-tests (Files): Likewise.
75660         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75661         * modules/unictype/property-xid-start-tests (Files): Likewise.
75662         * modules/unictype/property-zero-width-tests (Files): Likewise.
75663         * modules/unictype/scripts-tests (Files): Likewise.
75664         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75665         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75666         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75667         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75668         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75669         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75670         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75671         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75672         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75673         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75674         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75675         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75676         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75677         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75678         * modules/uninorm/composition-tests (Files): Likewise.
75679         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75680         * modules/uninorm/decomposition-tests (Files): Likewise.
75681         * modules/uninorm/filter-tests (Files): Likewise.
75682         * modules/uninorm/nfc-tests (Files): Likewise.
75683         * modules/uninorm/nfd-tests (Files): Likewise.
75684         * modules/uninorm/nfkc-tests (Files): Likewise.
75685         * modules/uninorm/nfkd-tests (Files): Likewise.
75686         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75687         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75688         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75689         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75690         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75691         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75692         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75693         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75694         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75695         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75696         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75697         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75698         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75699         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75700         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75701         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75702         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75703         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75704         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75705         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75706         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75707         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75708         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75709         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75710         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75711         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75712         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75713         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75714         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75715         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75716         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75717         * modules/uniwidth/u8-width-tests (Files): Likewise.
75718         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75719         * modules/uniwidth/u16-width-tests (Files): Likewise.
75720         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75721         * modules/uniwidth/u32-width-tests (Files): Likewise.
75722         * modules/uniwidth/width-tests (Files): Likewise.
75723         * modules/unlink-tests (Files): Likewise.
75724         * modules/unsetenv-tests (Files): Likewise.
75725         * modules/usleep-tests (Files): Likewise.
75726         * modules/utimens-tests (Files): Likewise.
75727         * modules/utimensat-tests (Files): Likewise.
75728         * modules/vasnprintf-posix-tests (Files): Likewise.
75729         * modules/vasnprintf-tests (Files): Likewise.
75730         * modules/vasprintf-posix-tests (Files): Likewise.
75731         * modules/vasprintf-tests (Files): Likewise.
75732         * modules/vdprintf-posix-tests (Files): Likewise.
75733         * modules/vfprintf-posix-tests (Files): Likewise.
75734         * modules/vprintf-posix-tests (Files): Likewise.
75735         * modules/vsnprintf-posix-tests (Files): Likewise.
75736         * modules/vsnprintf-tests (Files): Likewise.
75737         * modules/vsprintf-posix-tests (Files): Likewise.
75738         * modules/wcrtomb-tests (Files): Likewise.
75739         * modules/wcsnrtombs-tests (Files): Likewise.
75740         * modules/wcsrtombs-tests (Files): Likewise.
75741         * modules/wctype-tests (Files): Likewise.
75742         * modules/wcwidth-tests (Files): Likewise.
75743         * modules/xmemdup0-tests (Files): Likewise.
75744         * modules/xprintf-posix-tests (Files): Likewise.
75745         * modules/xvasprintf-tests (Files): Likewise.
75747 2009-12-24  Eric Blake  <ebb9@byu.net>
75749         test-nanosleep: fix typo
75750         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75751         patch.
75752         Reported by Bruno Haible.
75754 2009-12-24  Bruno Haible  <bruno@clisp.org>
75756         Reduce namespace pollution on glibc systems.
75757         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75758         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75759         systems.
75760         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75761         <getopt.h> on glibc systems.
75762         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75763         systems.
75764         * lib/fcntl.c: Include <unistd.h> here instead.
75766 2009-12-24  Bruno Haible  <bruno@clisp.org>
75768         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75770 2009-12-24  Eric Blake  <ebb9@byu.net>
75772         tests: add signature checks
75773         * tests/signature.h (SIGNATURE_CHECK): New file.
75774         * modules/atexit-tests (Files): Use it.
75775         * modules/btowc-tests (Files): Likewise.
75776         * modules/canonicalize-lgpl-tests (Files): Likewise.
75777         * modules/ceilf-tests (Files): Likewise.
75778         * modules/ceill-tests (Files): Likewise.
75779         * modules/chown-tests (Files): Likewise.
75780         * modules/dprintf-posix-tests (Files): Likewise.
75781         * modules/dup2-tests (Files): Likewise.
75782         * modules/dup3-tests (Files): Likewise.
75783         * modules/duplocale-tests (Files): Likewise.
75784         * modules/fchdir-tests (Files): Likewise.
75785         * modules/fcntl-tests (Files): Likewise.
75786         * modules/fdopendir-tests (Files): Likewise.
75787         * modules/fflush-tests (Files): Likewise.
75788         * modules/flock-tests (Files): Likewise.
75789         * modules/floorf-tests (Files): Likewise.
75790         * modules/floorl-tests (Files): Likewise.
75791         * modules/fnmatch-tests (Files): Likewise.
75792         * modules/fopen-tests (Files): Likewise.
75793         * modules/fprintf-posix-tests (Files): Likewise.
75794         * modules/freopen-tests (Files): Likewise.
75795         * modules/frexp-nolibm-tests (Files): Likewise.
75796         * modules/frexp-tests (Files): Likewise.
75797         * modules/frexpl-nolibm-tests (Files): Likewise.
75798         * modules/frexpl-tests (Files): Likewise.
75799         * modules/fseek-tests (Files): Likewise.
75800         * modules/fseeko-tests (Files): Likewise.
75801         * modules/fsync-tests (Files): Likewise.
75802         * modules/ftell-tests (Files): Likewise.
75803         * modules/ftello-tests (Files): Likewise.
75804         * modules/futimens-tests (Files): Likewise.
75805         * modules/getaddrinfo-tests (Files): Likewise.
75806         * modules/getcwd-tests (Files): Likewise.
75807         * modules/getdelim-tests (Files): Likewise.
75808         * modules/getdtablesize-tests (Files): Likewise.
75809         * modules/getgroups-tests (Files): Likewise.
75810         * modules/gethostname-tests (Files): Likewise.
75811         * modules/getline-tests (Files): Likewise.
75812         * modules/getopt-posix-tests (Files): Likewise.
75813         * modules/gettimeofday-tests (Files): Likewise.
75814         * modules/glob-tests (Files): Likewise.
75815         * modules/iconv-tests (Files): Likewise.
75816         * modules/inet_ntop-tests (Files): Likewise.
75817         * modules/inet_pton-tests (Files): Likewise.
75818         * modules/isblank-tests (Files): Likewise.
75819         * modules/lchown-tests (Files): Likewise.
75820         * modules/ldexpl-tests (Files): Likewise.
75821         * modules/link-tests (Files): Likewise.
75822         * modules/linkat-tests (Files): Likewise.
75823         * modules/lseek-tests (Files): Likewise.
75824         * modules/lstat-tests (Files): Likewise.
75825         * modules/mbrtowc-tests (Files): Likewise.
75826         * modules/mbsinit-tests (Files): Likewise.
75827         * modules/mbsnrtowcs-tests (Files): Likewise.
75828         * modules/mbsrtowcs-tests (Files): Likewise.
75829         * modules/memchr-tests (Files): Likewise.
75830         * modules/memcmp-tests (Files): Likewise.
75831         * modules/memmem-tests (Files): Likewise.
75832         * modules/memrchr-tests (Files): Likewise.
75833         * modules/mkdir-tests (Files): Likewise.
75834         * modules/mkfifo-tests (Files): Likewise.
75835         * modules/mkfifoat-tests (Files): Likewise.
75836         * modules/mknod-tests (Files): Likewise.
75837         * modules/nanosleep-tests (Files): Likewise.
75838         * modules/nl_langinfo-tests (Files): Likewise.
75839         * modules/obstack-printf-tests (Files): Likewise.
75840         * modules/open-tests (Files): Likewise.
75841         * modules/openat-tests (Files): Likewise.
75842         * modules/perror-tests (Files): Likewise.
75843         * modules/pipe2-tests (Files): Likewise.
75844         * modules/poll-tests (Files): Likewise.
75845         * modules/popen-tests (Files): Likewise.
75846         * modules/posix_spawn-tests (Files): Likewise.
75847         * modules/posix_spawnp-tests (Files): Likewise.
75848         * modules/pread-tests (Files): Likewise.
75849         * modules/printf-posix-tests (Files): Likewise.
75850         * modules/pty-tests (Files): Likewise.
75851         * modules/random_r-tests (Files): Likewise.
75852         * modules/rawmemchr-tests (Files): Likewise.
75853         * modules/readlink-tests (Files): Likewise.
75854         * modules/remove-tests (Files): Likewise.
75855         * modules/rename-tests (Files): Likewise.
75856         * modules/renameat-tests (Files): Likewise.
75857         * modules/rmdir-tests (Files): Likewise.
75858         * modules/round-tests (Files): Likewise.
75859         * modules/roundf-tests (Files): Likewise.
75860         * modules/roundl-tests (Files): Likewise.
75861         * modules/select-tests (Files): Likewise.
75862         * modules/setenv-tests (Files): Likewise.
75863         * modules/sigaction-tests (Files): Likewise.
75864         * modules/sleep-tests (Files): Likewise.
75865         * modules/snprintf-posix-tests (Files): Likewise.
75866         * modules/snprintf-tests (Files): Likewise.
75867         * modules/sprintf-posix-tests (Files): Likewise.
75868         * modules/stat-tests (Files): Likewise.
75869         * modules/strcasestr-tests (Files): Likewise.
75870         * modules/strchrnul-tests (Files): Likewise.
75871         * modules/strerror-tests (Files): Likewise.
75872         * modules/strsignal-tests (Files): Likewise.
75873         * modules/strstr-tests (Files): Likewise.
75874         * modules/strtod-tests (Files): Likewise.
75875         * modules/strverscmp-tests (Files): Likewise.
75876         * modules/symlink-tests (Files): Likewise.
75877         * modules/symlinkat-tests (Files): Likewise.
75878         * modules/times-tests (Files): Likewise.
75879         * modules/trunc-tests (Files): Likewise.
75880         * modules/truncf-tests (Files): Likewise.
75881         * modules/truncl-tests (Files): Likewise.
75882         * modules/tsearch-tests (Files): Likewise.
75883         * modules/uname-tests (Files): Likewise.
75884         * modules/unlink-tests (Files): Likewise.
75885         * modules/unsetenv-tests (Files): Likewise.
75886         * modules/usleep-tests (Files): Likewise.
75887         * modules/utimensat-tests (Files): Likewise.
75888         * modules/vasprintf-tests (Files): Likewise.
75889         * modules/vdprintf-posix-tests (Files): Likewise.
75890         * modules/vfprintf-posix-tests (Files): Likewise.
75891         * modules/vprintf-posix-tests (Files): Likewise.
75892         * modules/vsnprintf-posix-tests (Files): Likewise.
75893         * modules/vsnprintf-tests (Files): Likewise.
75894         * modules/vsprintf-posix-tests (Files): Likewise.
75895         * modules/wcrtomb-tests (Files): Likewise.
75896         * modules/wcsnrtombs-tests (Files): Likewise.
75897         * modules/wcsrtombs-tests (Files): Likewise.
75898         * modules/wcwidth-tests (Files): Likewise.
75899         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75900         * tests/test-isinf.c (isinf): Likewise.
75901         * tests/test-isnan.c (isnan): Likewise.
75902         * tests/test-signbit.c (signbit): Likewise.
75903         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75904         declaration, either as macro or with correct signature.
75905         (select): Ensure function under test is declared with correct
75906         signature in correct header.
75907         * tests/test-atexit.c (atexit): Likewise.
75908         * tests/test-btowc.c (btowc): Likewise.
75909         * tests/test-canonicalize-lgpl.c (realpath)
75910         (canonicalize_file_name): Likewise.
75911         * tests/test-ceilf1.c (ceilf): Likewise.
75912         * tests/test-ceill.c (ceill): Likewise.
75913         * tests/test-chown.c (chown): Likewise.
75914         * tests/test-dprintf-posix.c (dprintf): Likewise.
75915         * tests/test-dup2.c (dup2): Likewise.
75916         * tests/test-dup3.c (dup3): Likewise.
75917         * tests/test-duplocale.c (duplocale): Likewise.
75918         * tests/test-fchdir.c (fchdir): Likewise.
75919         * tests/test-fchownat.c (fchownat): Likewise.
75920         * tests/test-fcntl.c (fcntl): Likewise.
75921         * tests/test-fdopendir.c (fdopendir): Likewise.
75922         * tests/test-fflush.c (fflush): Likewise.
75923         * tests/test-flock.c (flock): Likewise.
75924         * tests/test-floorf1.c (floorf): Likewise.
75925         * tests/test-floorl.c (floorl): Likewise.
75926         * tests/test-fnmatch.c (fnmatch): Likewise.
75927         * tests/test-fopen.c (fopen): Likewise.
75928         * tests/test-fprintf-posix.c (fprintf): Likewise.
75929         * tests/test-freopen.c (freopen): Likewise.
75930         * tests/test-frexp.c (frexp): Likewise.
75931         * tests/test-frexpl.c (frexpl): Likewise.
75932         * tests/test-fseek.c (fseek): Likewise.
75933         * tests/test-fseeko.c (fseeko): Likewise.
75934         * tests/test-fstatat.c (fstatat): Likewise.
75935         * tests/test-fsync.c (fsync): Likewise.
75936         * tests/test-ftell.c (ftell): Likewise.
75937         * tests/test-ftello.c (ftello): Likewise.
75938         * tests/test-futimens.c (futimens): Likewise.
75939         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75940         (gai_strerror): Likewise.
75941         * tests/test-getcwd.c (getcwd): Likewise.
75942         * tests/test-getdelim.c (getdelim): Likewise.
75943         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75944         * tests/test-getgroups.c (getgroups): Likewise.
75945         * tests/test-gethostname.c (gethostname): Likewise.
75946         * tests/test-getline.c (getline): Likewise.
75947         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75948         Likewise.
75949         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75950         * tests/test-glob.c (glob, globfree): Likewise.
75951         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75952         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75953         * tests/test-inet_pton.c (inet_pton): Likewise.
75954         * tests/test-isblank.c (isblank): Likewise.
75955         * tests/test-lchown.c (lchown): Likewise.
75956         * tests/test-ldexpl.c (ldexpl): Likewise.
75957         * tests/test-link.c (link): Likewise.
75958         * tests/test-linkat.c (linkat): Likewise.
75959         * tests/test-lseek.c (lseek): Likewise.
75960         * tests/test-lstat.c (lstat): Likewise.
75961         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75962         * tests/test-mbsinit.c (mbsinit): Likewise.
75963         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75964         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75965         * tests/test-memchr.c (memchr): Likewise.
75966         * tests/test-memcmp.c (memcmp): Likewise.
75967         * tests/test-memmem.c (memmem): Likewise.
75968         * tests/test-memrchr.c (memrchr): Likewise.
75969         * tests/test-mkdir.c (mkdir): Likewise.
75970         * tests/test-mkdirat.c (mkdirat): Likewise.
75971         * tests/test-mkfifo.c (mkfifo): Likewise.
75972         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75973         * tests/test-mknod.c (mknod): Likewise.
75974         * tests/test-nanosleep.c (nanosleep): Likewise.
75975         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75976         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75977         Likewise.
75978         * tests/test-open.c (open): Likewise.
75979         * tests/test-openat.c (openat): Likewise.
75980         * tests/test-perror.c (perror): Likewise.
75981         * tests/test-pipe2.c (pipe2): Likewise.
75982         * tests/test-poll.c (poll): Likewise.
75983         * tests/test-popen.c (popen, pclose): Likewise.
75984         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75985         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75986         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75987         (posix_spawn_file_actions_destroy)
75988         (posix_spawn_file_actions_addclose)
75989         (posix_spawn_file_actions_addopen)
75990         (posix_spawn_file_actions_adddup2): Likewise.
75991         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75992         * tests/test-pread.c (pread): Likewise.
75993         * tests/test-printf-posix.c (printf): Likewise.
75994         * tests/test-pty.c (openpty, forkpty): Likewise.
75995         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75996         (random_r): Likewise.
75997         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75998         * tests/test-readlink.c (readlink): Likewise.
75999         * tests/test-remove.c (remove): Likewise.
76000         * tests/test-rename.c (rename): Likewise.
76001         * tests/test-renameat.c (renameat): Likewise.
76002         * tests/test-rmdir.c (rmdir): Likewise.
76003         * tests/test-round1.c (round): Likewise.
76004         * tests/test-roundf1.c (roundf): Likewise.
76005         * tests/test-roundl.c (roundl): Likewise.
76006         * tests/test-setenv.c (setenv): Likewise.
76007         * tests/test-sigaction.c (sigaction): Likewise.
76008         * tests/test-sleep.c (sleep): Likewise.
76009         * tests/test-snprintf.c (snprintf): Likewise.
76010         * tests/test-sprintf-posix.c (sprintf): Likewise.
76011         * tests/test-stat.c (stat): Likewise.
76012         * tests/test-stpncpy.c (stpncpy): Likewise.
76013         * tests/test-strcasestr.c (strcasestr): Likewise.
76014         * tests/test-strchrnul.c (strchrnul): Likewise.
76015         * tests/test-strerror.c (strerror): Likewise.
76016         * tests/test-strsignal.c (strsignal): Likewise.
76017         * tests/test-strstr.c (strstr): Likewise.
76018         * tests/test-strtod.c (strtod): Likewise.
76019         * tests/test-strverscmp.c (strverscmp): Likewise.
76020         * tests/test-symlink.c (symlink): Likewise.
76021         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76022         * tests/test-times.c (times): Likewise.
76023         * tests/test-trunc1.c (trunc): Likewise.
76024         * tests/test-truncf1.c (truncf): Likewise.
76025         * tests/test-truncl.c (truncl): Likewise.
76026         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76027         Likewise.
76028         * tests/test-uname.c (uname): Likewise.
76029         * tests/test-unlink.c (unlink): Likewise.
76030         * tests/test-unlinkat.c (unlinkat): Likewise.
76031         * tests/test-unsetenv.c (unsetenv): Likewise.
76032         * tests/test-usleep.c (usleep): Likewise.
76033         * tests/test-utimensat.c (utimensat): Likewise.
76034         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76035         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76036         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76037         * tests/test-vprintf-posix.c (vprintf): Likewise.
76038         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76039         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76040         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76041         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76042         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76043         * tests/test-wcwidth.c (wcwidth): Likewise.
76045         build: pull in conditional headers during GNULIB_POSIXCHECK
76046         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76047         definitions from any conditionally-included headers.
76048         * lib/stdlib.in.h (includes): Likewise.
76049         * lib/unistd.in.h (includes): Likewise.
76051 2009-12-24  Bruno Haible  <bruno@clisp.org>
76053         * tests/test-argv-iter.c: Include header file being tested immediately
76054         after config.h.
76055         * tests/test-base64.c: Likewise.
76056         * tests/test-flock.c: Likewise.
76057         * tests/test-fsync.c: Likewise.
76058         * tests/test-getdate.c: Likewise.
76059         * tests/test-getndelim2.c: Likewise.
76060         * tests/test-isfinite.c: Likewise.
76061         * tests/test-isinf.c: Likewise.
76062         * tests/test-strerror.c: Likewise.
76063         * tests/test-strsignal.c: Likewise.
76065 2009-12-23  Eric Blake  <ebb9@byu.net>
76067         unistd: work around cygwin bug
76068         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76069         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76070         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76072 2009-12-23  Bruno Haible  <bruno@clisp.org>
76074         localename: More tests.
76075         * tests/test-localename.c (SIZEOF): New macro.
76076         (categories): New variable.
76077         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76078         test_locale_name_default): Add test w.r.t. thread locale.
76079         (test_locale_name_thread): New function.
76080         (main): Invoke it.
76082         localename: Make aware of thread locale.
76083         * lib/localename.h (gl_locale_name_thread): New declaration.
76084         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76085         behaviour with respect to thread locale.
76086         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76087         <langinfo.h>, glthread/lock.h.
76088         (SIZE_BITS): New macro.
76089         (string_hash): New function.
76090         (struct hash_node): New type.
76091         (HASH_TABLE_SIZE): New macro.
76092         (struniq_hash_table, struniq_lock): New variables.
76093         (struniq): New function.
76094         (gl_locale_name_thread): New function.
76095         (gl_locale_name): Invoke it.
76096         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76097         * modules/localename (Depends-on): Add lock.
76098         Reported by Mike Gran <spk121@yahoo.com>.
76100 2009-12-23  Eric Blake  <ebb9@byu.net>
76102         va-args: new module
76103         * modules/va-args: New file.
76104         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76105         * MODULES.html.sh (Core language properties): Mention it.
76107         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76108         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76109         named alias for __attribute__((__unused__)).
76110         * lib/chown.c: Update client.
76111         * lib/fchmodat.c: Likewise.
76112         * lib/fts.c: Likewise.
76113         * lib/getdate.y: Likewise.
76114         * lib/getgroups.c: Likewise.
76115         * lib/getopt.c: Likewise.
76116         * lib/getugroups.c: Likewise.
76117         * lib/mkdir.c: Likewise.
76118         * lib/mkfifo.c: Likewise.
76119         * lib/mkfifoat.c: Likewise.
76120         * lib/mknod.c: Likewise.
76121         * lib/mknodat.c: Likewise.
76122         * lib/readlink.c: Likewise.
76123         * lib/se-context.in.h: Likewise.
76124         * lib/se-selinux.in.h: Likewise.
76125         * lib/sockets.c: Likewise.
76126         * lib/symlink.c: Likewise.
76127         * lib/symlinkat.c: Likewise.
76128         * lib/unicodeio.c: Likewise.
76129         * lib/unistr.h: Likewise.
76130         * tests/test-areadlink.c: Likewise.
76131         * tests/test-areadlinkat.c: Likewise.
76132         * tests/test-filenamecat.c: Likewise.
76133         * tests/test-fseeko.c: Likewise.
76134         * tests/test-ftello.c: Likewise.
76135         * tests/test-getdate.c: Likewise.
76136         * tests/test-getgroups.c: Likewise.
76137         * tests/test-gethostname.c: Likewise.
76138         * tests/test-quotearg.c: Likewise.
76139         * tests/test-version-etc.c: Likewise.
76140         * tests/test-xalloc-die.c: Likewise.
76141         * tests/test-xfprintf-posix.c: Likewise.
76142         * tests/test-xprintf-posix.c: Likewise.
76143         * tests/test-xvasprintf.c: Likewise.
76145         tests: avoid compiler warnings
76146         * tests/test-fcntl.c (main): Delete unused parameters.
76147         * tests/test-freopen-safer.c (main): Likewise.
76148         * tests/test-xalloc-die.c (main): Mark unused parameters.
76149         * tests/test-fseeko.c (main): Likewise.
76150         * tests/test-ftello.c (main): Likewise.
76151         * tests/test-nanosleep.c (main): Avoid declaration warning.
76152         * tests/test-sleep.c (main): Likewise.
76153         * tests/test-unsetenv.c (main): Silence warning about string
76154         literal.
76155         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76157 2009-12-23  Bruno Haible  <bruno@clisp.org>
76159         * tests/test-localename.c (test_locale_name): New function, extracted
76160         from main. Also test mixed situations.
76161         (test_locale_name_posix, test_locale_name_environ,
76162         test_locale_name_default): New functions.
76163         (main): Invoke them all.
76164         * modules/localename-tests (configure.ac): Test for newlocale.
76166 2009-12-23  Bruno Haible  <bruno@clisp.org>
76168         unistd: Ensure getcwd gets declared before being overridden.
76169         * lib/unistd.in.h: Conditionally include <io.h>.
76171 2009-12-22  Bruno Haible  <bruno@clisp.org>
76173         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76174         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76175         (gl_WCHAR_H): Invoke it.
76176         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76177         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76178         Reported by Karl Berry <karl@freefriends.org>.
76180 2009-12-22  Eric Blake  <ebb9@byu.net>
76182         math, unistd: avoid redundant includes
76183         * lib/math.in.h (isnan): No need to re-include <math.h>.
76184         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76186         getsubopt: work around cygwin bug
76187         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76188         avoid conflicting with system getsubopt.
76189         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76190         bug.
76192         getopt: synchronize from glibc
76193         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76194         parameter order.  Adjust all callers.
76195         (_getopt_internal_r, main): Adjust quoting in error messages.
76196         Drop considerations for outdated POSIX 1003.2 error message.
76197         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76198         callers.
76199         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76201         test-getopt: test stderr behavior
76202         * modules/getopt-posix-tests (Depends-on): Add dup2.
76203         * tests/test-getopt.c (ASSERT): Avoid stderr.
76204         (main): Move stderr to a temporary file.
76205         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76206         Instead, add parameter to inform caller if output occurred.
76207         (test_getopt): Adjust all existing tests to expect silence, and
76208         add new tests of leading ":".
76209         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76210         glibc shortcomings with leading "-:" or "+:" in optstring.
76211         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76212         Likewise.
76213         * doc/posix-functions/getopt.texi (getopt): Likewise.
76215         test-getopt: enhance test
76216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76217         supports optind=0.
76218         * tests/test-getopt.c (OPTIND_MIN): Move...
76219         * tests/test-getopt.h (OPTIND_MIN): ...here.
76220         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76221         Require that optind=0 works, since modern BSD supports it in
76222         addition to optreset, and since coreutils expects it.
76223         (test_getopt_long_only): New test.
76224         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76225         glibc shortcomings with 'W;', and enforcement of optind=0.
76226         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76227         Likewise.
76229 2009-12-21  Bruno Haible  <bruno@clisp.org>
76231         localename: Improvements for MacOS X and Cygwin.
76232         * lib/localename.h (gl_locale_name_environ): New declaration.
76233         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76234         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76235         (gl_locale_name_posix): Invoke it.
76236         (gl_locale_name_default): Add comments. Use Windows native API also on
76237         Cygwin.
76239 2009-12-21  Bruno Haible  <bruno@clisp.org>
76241         Update list of Win32 locale ids.
76242         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76243         (LANG_SAMI): Renamed from LANG_SAAMI.
76244         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76245         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76246         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76247         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76248         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76249         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76250         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76251         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76252         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76253         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76254         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76255         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76256         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76257         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76258         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76259         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76260         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76261         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76262         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76263         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76264         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76265         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76266         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76267         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76268         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76269         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76270         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76271         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76272         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76273         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76274         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76275         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76276         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76277         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76278         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76279         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76280         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76281         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76282         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76283         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76284         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76285         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76286         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76287         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76288         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76289         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76290         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76291         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76292         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76293         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76294         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76295         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76296         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76297         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76298         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76299         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76300         Add more languages and countries for Sami, Sorbian. Add more countries
76301         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76302         for Pashto. Change country for Syriac, Tswana.
76304 2009-12-21  Eric Blake  <ebb9@byu.net>
76306         test-utimens: avoid spurious failure
76307         * tests/test-chown.h (nap): Factor...
76308         * tests/nap.h: ...into new file.
76309         * tests/test-lchown.h (nap): Avoid duplication.
76310         * tests/test-utimens-common.h (nap): Use shared implementation,
76311         necessary on file systems with 1-second resolution.
76312         * modules/chown-tests (Files): Include new file.
76313         * modules/fdutimensat-tests (Files): Likewise.
76314         * modules/futimens-tests (Files): Likewise.
76315         * modules/lchown-tests (Files): Likewise.
76316         * modules/openat-tests (Files): Likewise.
76317         * modules/utimens-tests (Files): Likewise.
76318         * modules/utimensat-tests (Files): Likewise.
76320 2009-12-19  Eric Blake  <ebb9@byu.net>
76322         futimens, utimensat: work around Linux bug
76323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76324         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76325         * lib/utimensat.c (rpl_utimensat): Work around it.
76326         * lib/futimens.c (rpl_futimens): Adjust comment.
76328         utimens: work around Linux ctime bug
76329         * lib/utimens.c (detect_ctime_bug): New helper function.
76330         (update_timespec): Differentiate between workaround needed for
76331         this bug vs. what is needed for systems that lack utimensat.
76332         (fdutimens, lutimens): Work around bug.
76334         utimens: check for ctime update
76335         * tests/test-utimens-common.h (check_ctime): Define.
76336         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76337         * tests/test-futimens.h (test_futimens): Likewise.
76338         * tests/test-lutimens.h (test_lutimens): Likewise.
76339         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76340         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76342 2009-12-19  Bruno Haible  <bruno@clisp.org>
76344         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76345         * tests/test-dprintf-posix2.sh: New file.
76346         * tests/test-dprintf-posix2.c: New file.
76347         * modules/dprintf-posix-tests (Files): Add them.
76348         (configure.ac): Check for getrlimit and setrlimit.
76349         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76351 2009-12-19  Bruno Haible  <bruno@clisp.org>
76353         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76354         * tests/test-fprintf-posix3.sh: New file.
76355         * tests/test-fprintf-posix3.c: New file.
76356         * modules/fprintf-posix-tests (Files): Add them.
76357         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76359 2009-12-19  Eric Blake  <ebb9@byu.net>
76361         dirfd: fix prototype
76362         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76363         * lib/dirfd.c (dirfd): Likewise.
76365         canonicalize: reduce memory usage
76366         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76367         allocation to size.
76368         Reported by Solar Designer <solar@openwall.com>.
76370 2009-12-19  Bruno Haible  <bruno@clisp.org>
76372         New module attribute 'Applicability'.
76373         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76374         * gnulib-tool: New option --extract-applicability.
76375         (func_usage): Document it.
76376         (sed_extract_prog): Recognize it.
76377         (func_get_applicability): New function.
76378         (func_import): Generalize handling of 'link-warning' module.
76379         * modules/link-warning (Applicability): New section.
76380         * modules/arg-nonnull (Applicability): New section.
76381         Repoted by Simon Josefsson <simon@josefsson.org>.
76383 2009-12-19  Bruno Haible  <bruno@clisp.org>
76385         fflush: tweak
76386         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76387         * lib/fseeko.c (rpl_fseeko): Likewise.
76389 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76391         * lib/gl_list.h: Fix typo in comment.
76393 2009-12-16  Eric Blake  <ebb9@byu.net>
76395         fcntl: use to simplify other modules
76396         * modules/cloexec (Depends-on): Add fcntl.
76397         * modules/fchdir (Depends-on): Likewise.
76398         * modules/fd-safer-flag (Depends-on): Likewise.
76399         * modules/unistd-safer (Depends-on): Likewise.
76400         * modules/dup3 (configure.ac): Set module indicator.
76401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76402         missing.
76403         * lib/fchdir.c (_gl_register_dup): Fix comment.
76404         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76405         * lib/dup-safer.c (dup_safer): Likewise.
76406         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76407         * lib/dup3.c (dup3): Likewise.
76408         * tests/test-fchdir.c (main): Enhance test.
76409         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76411         fcntl: port portions of fcntl to mingw
76412         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76413         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76414         replacement for mingw.
76415         * modules/fcntl (Description): Update.
76416         (Depends-on): Add dup2.
76417         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76418         * modules/fcntl-h (Makefile.am): Substitute it.
76419         * lib/fcntl.in.h (fcntl): Update declaration.
76420         (F_DUPFD, F_GETFD): New macros, when needed.
76421         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76422         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76423         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76424         we now guarantee.
76426         fcntl: work around cygwin bug in F_DUPFD
76427         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76428         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76429         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76430         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76431         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76433         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76434         * modules/fcntl (Files): List new files.
76435         (configure.ac): Run a test.
76436         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76437         * lib/fcntl.c (rpl_fcntl): Likewise.
76438         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76439         (gl_FCNTL_H): Always replace fcntl.h.
76440         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76441         * lib/fcntl.in.h (fcntl): Declare replacement.
76442         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76443         needed, plus a witness.
76444         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76445         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76446         * tests/test-fcntl.c: New file.
76447         * modules/fcntl-tests: Likewise.
76449         binary-io: avoid potential compilation warning
76450         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76451         directives.
76453         fflush: avoid compilation error on NetBSD
76454         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76455         between off_t and fpos_t, since the latter is sometimes a struct.
76456         * lib/fseeko.c (rpl_fseeko): Likewise.
76457         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76459 2009-12-15  Eric Blake  <ebb9@byu.net>
76461         fcntl-h, stdio, sys_ioctl: fix declarations
76462         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76463         function must not take arguments.
76464         * lib/sys_ioctl.in.h (ioctl): Likewise.
76465         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76466         (open): Add a link warning.
76468 2009-12-15  Jim Meyering  <meyering@redhat.com>
76470         areadlink, areadlink-with-size: relax license to LGPLv2+
76471         * modules/areadlink (License): Relax to LGPLv2+.
76472         * modules/areadlink-with-size (License): Likewise.
76474 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76475             Bruno Haible  <bruno@clisp.org>
76477         *printf: Fix memory leak.
76478         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76479         * lib/vfprintf.c (vfprintf): Likewise.
76480         * lib/dprintf.c (dprintf): Likewise.
76481         * lib/vdprintf.c (vdprintf): Likewise.
76483 2009-12-14  Eric Blake  <ebb9@byu.net>
76485         accept4: adjust module dependencies
76486         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76488         utimens: one more try at avoiding compiler warning
76489         * lib/utimens.c (lutimens): Lower scope of result.
76491 2009-12-13  Bruno Haible  <bruno@clisp.org>
76493         Move the malloc checking from module 'list' to new module 'xlist'.
76494         * modules/xlist: New file.
76495         * lib/gl_xlist.h: New file.
76496         * lib/gl_xlist.c: New file.
76497         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76498         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76499         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76500         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76501         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76502         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76503         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76504         gl_sortedlist_nx_add): New declarations.
76505         (struct gl_list_implementation): Rename and change methods accordingly.
76506         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76507         (gl_list_nx_create): Renamed from gl_list_create.
76508         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76509         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76510         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76511         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76512         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76513         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76514         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76515         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76516         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76517         gl_list_create_empty.
76518         (gl_list_nx_create): Renamed from gl_list_create.
76519         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76520         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76521         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76522         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76523         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76524         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76525         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76526         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76527         * lib/gl_array_list.c: Don't include xalloc.h.
76528         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76529         NULL upon out-of-memory.
76530         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76531         out-of-memory.
76532         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76533         Change return type to 'int'.
76534         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76535         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76536         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76537         upon out-of-memory.
76538         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76539         upon out-of-memory.
76540         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76541         upon out-of-memory.
76542         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76543         upon out-of-memory.
76544         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76545         out-of-memory.
76546         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76547         Update.
76548         (gl_array_list_implementation): Update.
76549         * lib/gl_carray_list.c: Don't include xalloc.h.
76550         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76551         Return NULL upon out-of-memory.
76552         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76553         out-of-memory.
76554         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76555         Change return type to 'int'.
76556         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76557         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76558         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76559         upon out-of-memory.
76560         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76561         upon out-of-memory.
76562         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76563         out-of-memory.
76564         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76565         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76566         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76567         Update.
76568         (gl_carray_list_implementation): Update.
76569         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76570         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76571         gl_linked_create_empty. Return NULL upon out-of-memory.
76572         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76573         out-of-memory.
76574         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76575         Change return type to 'int'. Return -1 upon out-of-memory.
76576         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76577         out-of-memory.
76578         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76579         upon out-of-memory.
76580         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76581         upon out-of-memory.
76582         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76583         NULL upon out-of-memory.
76584         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76585         upon out-of-memory.
76586         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76587         out-of-memory.
76588         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76589         Update.
76590         * lib/gl_linked_list.c: Don't include xalloc.h.
76591         (gl_linked_list_implementation): Update.
76592         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76593         (add_to_bucket): Change return type to 'int'.
76594         (gl_linkedhash_list_implementation): Update.
76595         * lib/gl_anytree_list1.h (free_subtree): New function.
76596         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76597         gl_tree_create_empty. Return NULL upon out-of-memory.
76598         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76599         Change return type to 'int'. Return -1 upon out-of-memory.
76600         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76601         out-of-memory.
76602         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76603         (gl_tree_remove_node): New function, moved here from
76604         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76605         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76606         Update.
76607         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76608         malloc, not xmalloc. Return NULL upon out-of-memory.
76609         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76610         out-of-memory.
76611         (gl_tree_remove_node_from_tree): New function, extracted from
76612         gl_tree_remove_node.
76613         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76614         upon out-of-memory.
76615         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76616         out-of-memory.
76617         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76618         upon out-of-memory.
76619         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76620         upon out-of-memory.
76621         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76622         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76623         not xmalloc. Return NULL upon out-of-memory.
76624         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76625         out-of-memory.
76626         (gl_tree_remove_node_from_tree): New function, extracted from
76627         gl_tree_remove_node.
76628         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76629         upon out-of-memory.
76630         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76631         out-of-memory.
76632         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76633         upon out-of-memory.
76634         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76635         upon out-of-memory.
76636         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76637         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76638         gl_anytree_list1.h before gl_anyavltree_list2.h.
76639         (gl_avltree_list_implementation): Update.
76640         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76641         gl_anytree_list1.h before gl_anyavltree_list2.h.
76642         (gl_rbtree_list_implementation): Update.
76643         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76644         Change return type to 'int'. Return -1 upon out-of-memory. Use
76645         __builtin_expect.
76646         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76647         (gl_avltreehash_list_implementation): Update.
76648         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76649         (gl_rbtreehash_list_implementation): Update.
76650         * modules/array-list (Depends-on): Remove xalloc.
76651         * modules/carray-list (Depends-on): Likewise.
76652         * modules/linked-list (Depends-on): Likewise.
76653         * modules/linkedhash-list (Depends-on): Likewise.
76654         * modules/avltree-list (Depends-on): Likewise.
76655         * modules/rbtree-list (Depends-on): Likewise.
76656         * modules/avltreehash-list (Depends-on): Likewise.
76657         * modules/rbtreehash-list (Depends-on): Likewise.
76659         * modules/xsublist: New file.
76660         * lib/gl_xsublist.h: New file.
76661         * lib/gl_xsublist.c: New file.
76662         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76663         (gl_sublist_nx_create): New declaration.
76664         * lib/gl_sublist.c: Don't include xalloc.h.
76665         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76666         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76667         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76668         Change return type to 'int'. Return -1 upon out-of-memory.
76669         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76670         upon out-of-memory.
76671         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76672         NULL upon out-of-memory.
76673         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76674         upon out-of-memory.
76675         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76676         NULL upon out-of-memory.
76677         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76678         NULL upon out-of-memory.
76679         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76680         upon out-of-memory.
76681         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76682         (gl_sublist_list_implementation): Update.
76683         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76684         upon out-of-memory.
76685         * modules/sublist (Depends-on): Remove xalloc.
76687         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76688         * tests/test-carray_list.c: Likewise.
76689         * tests/test-linked_list.c: Likewise.
76690         * tests/test-linkedhash_list.c: Likewise.
76691         * tests/test-avltree_list.c: Likewise.
76692         * tests/test-rbtree_list.c: Likewise.
76693         * tests/test-avltreehash_list.c: Likewise.
76694         * tests/test-rbtreehash_list.c: Likewise.
76695         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76696         * modules/carray-list-tests (Makefile.am): Likewise.
76697         * modules/linked-list-tests (Makefile.am): Likewise.
76698         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76699         * modules/avltree-list-tests (Makefile.am): Likewise.
76700         * modules/rbtree-list-tests (Makefile.am): Likewise.
76701         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76702         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76704         * NEWS: Mention the changes.
76706         * lib/clean-temp.c: Include gl_xlist.h.
76707         * modules/clean-temp (Depends-on): Add xlist.
76709         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76710         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76712         * tests/test-array_oset.c: Include gl_xlist.h.
76713         * modules/array-oset-tests (Depends-on): Add xlist.
76715         Reported by José E. Marchesi <jemarch@gnu.org>.
76717 2009-12-13  Bruno Haible  <bruno@clisp.org>
76719         Move the malloc checking from module 'oset' to new module 'xoset'.
76720         * modules/xoset: New file.
76721         * lib/gl_xoset.h: New file.
76722         * lib/gl_xoset.c: New file.
76723         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76724         declarations.
76725         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76726         (struct gl_oset_implementation): Rename and change methods accordingly.
76727         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76728         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76729         'int'. Mark as __warn_unused_result__.
76730         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76731         gl_oset_create_empty.
76732         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76733         'int'.
76734         * lib/gl_array_oset.c: Don't include xalloc.h.
76735         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76736         malloc, not xmalloc.
76737         (grow): Change return type to 'int'. Don't call xalloc_die.
76738         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76739         to 'int'.
76740         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76741         'int'.
76742         (gl_array_oset_implementation): Update.
76743         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76744         gl_tree_create_empty.
76745         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76746         'int'.
76747         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76748         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76749         xmalloc.
76750         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76751         not xmalloc.
76752         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76753         xmalloc.
76754         (gl_avltree_oset_implementation): Update.
76755         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76756         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76757         xmalloc.
76758         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76759         not xmalloc.
76760         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76761         xmalloc.
76762         (gl_rbtree_oset_implementation): Update.
76763         * modules/array-oset (Depends-on): Remove xalloc.
76764         * modules/avltree-oset (Depends-on): Likewise.
76765         * modules/rbtree-oset (Depends-on): Likewise.
76766         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76767         * tests/test-avltree_oset.c: Likewise.
76768         * tests/test-rbtree_oset.c: Likewise.
76769         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76770         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76771         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76772         * NEWS: Mention the change.
76774 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76776         maint.mk: allow a project to override release-prep commands
76777         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76778         commands into a new rule.
76779         (release-prep): New rule.
76780         (release-prep-hook): New overridable variable.
76782 2009-12-13  Bruno Haible  <bruno@clisp.org>
76784         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76786 2009-12-13  Jim Meyering  <meyering@redhat.com>
76788         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76789         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76791 2009-12-12  Bruno Haible  <bruno@clisp.org>
76793         duplocale: Tweak.
76794         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76796 2009-12-12  Karl Berry  <karl@gnu.org>
76798         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76800 2009-12-12  Bruno Haible  <bruno@clisp.org>
76802         * m4/po.m4: Undo incorrect untabification.
76804 2009-12-12  Bruno Haible  <bruno@clisp.org>
76806         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76807         * modules/c-strtod (Depends-on): Add locale.
76808         * modules/c-strtold (Depends-on): Likewise.
76810 2009-12-12  Bruno Haible  <bruno@clisp.org>
76812         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76814 2009-12-11  Eric Blake  <ebb9@byu.net>
76816         setenv: relax requirement in light of POSIX ruling
76817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76818         not NULL.
76819         * tests/test-setenv.c (main): Relax test.
76820         * tests/test-unsetenv.c (main): Likewise.
76821         * doc/posix-functions/setenv.texi (setenv): Document this.
76822         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76824 2009-12-11  Bruno Haible  <bruno@clisp.org>
76826         New module 'fd-safer-flag'.
76827         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76828         * lib/dup-safer.c (dup_safer_flag): Remove function.
76829         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76830         * lib/fd-safer.c (fd_safer_flag): Remove function.
76831         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76832         * modules/cloexec (configure.ac): Drop indicator macro.
76833         * modules/fd-safer-flag: New file.
76834         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76835         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76836         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76838 2009-12-11  Bruno Haible  <bruno@clisp.org>
76840         Tests for module 'nl_langinfo'.
76841         * modules/nl_langinfo-tests: New file.
76842         * tests/test-nl_langinfo.sh: New file.
76843         * tests/test-nl_langinfo.c: New file.
76845         New module 'nl_langinfo'.
76846         * lib/nl_langinfo.c: New file.
76847         * m4/nl_langinfo.m4: New file.
76848         * modules/nl_langinfo: New file.
76849         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76851 2009-12-11  Bruno Haible  <bruno@clisp.org>
76853         Tests for module 'langinfo'.
76854         * modules/langinfo-tests: New file.
76855         * tests/test-langinfo.c: New file.
76857         New module 'langinfo'.
76858         * lib/langinfo.in.h: New file.
76859         * m4/langinfo_h.m4: New file.
76860         * modules/langinfo: New file.
76861         * doc/posix-headers/langinfo.texi: Mention the new module.
76863 2009-12-11  Bruno Haible  <bruno@clisp.org>
76865         * lib/config.charset: Untabify.
76867 2009-12-11  Bruno Haible  <bruno@clisp.org>
76869         * modules/unistd-safer (configure.ac): Drop indicator macro.
76871 2009-12-11  Bruno Haible  <bruno@clisp.org>
76873         Move pipe2-safer code to its own file.
76874         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76875         * lib/pipe-safer.c (pipe2_safer): Remove function.
76876         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76877         (Makefile.am): Add it to lib_SOURCES.
76879 2009-12-10  Bruno Haible  <bruno@clisp.org>
76881         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76883 2009-12-10  Bruno Haible  <bruno@clisp.org>
76885         Declare which arguments expect non-NULL values, for GCC and clang.
76886         * build-aux/arg-nonnull.h: New file.
76887         * modules/arg-nonnull: New file.
76888         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76889         (inet_ntop, inet_pton): Use it.
76890         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76891         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76892         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76893         (open, openat): Use it.
76894         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76895         (fnmatch): Use it.
76896         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76897         (getopt, getopt_long, getopt_long_only): Use it.
76898         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76899         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76900         Use it.
76901         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76902         (iconv_open): Use it.
76903         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76904         (strtoimax, strtoumax): Use it.
76905         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76906         (duplocale): Use it.
76907         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76908         (frexp, frexpl): Use it.
76909         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76910         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76911         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76912         (tsearch, tfind, tdelete, twalk): Use it.
76913         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76914         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76915         sigpending): Use it.
76916         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76917         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76918         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76919         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76920         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76921         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76922         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76923         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76924         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76925         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76926         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76927         Use it.
76928         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76929         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76930         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76931         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76932         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76933         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76934         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76935         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76936         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76937         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76938         strtoull, unsetenv): Use it.
76939         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76940         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76941         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76942         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76943         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76944         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76945         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76946         (strcasecmp, strncasecmp): Use it.
76947         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76948         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76949         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76950         rpl_setsockopt): Use it.
76951         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76952         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76953         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76954         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76955         (gettimeofday): Use it.
76956         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76957         (times): Use it.
76958         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76959         (uname): Use it.
76960         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76961         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76962         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76963         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76964         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76965         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76966         unlinkat, write): Use it.
76967         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76968         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76969         * lib/argv-iter.h: Include arg-nonnull.h.
76970         (_ATTRIBUTE_NONNULL_): Remove macro.
76971         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76972         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76973         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76974         optimization.
76975         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76976         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76977         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76978         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76979         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76980         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76981         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76982         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76983         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76984         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76985         * modules/dirent (Depends-on): Add arg-nonnull.
76986         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76987         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76988         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76989         * modules/fnmatch (Depends-on): Add arg-nonnull.
76990         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76991         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76992         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76993         * modules/glob (Depends-on): Add arg-nonnull.
76994         (Makefile.am): Insert arg-nonnull.h into glob.h.
76995         * modules/iconv_open (Depends-on): Add arg-nonnull.
76996         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76997         * modules/inttypes (Depends-on): Add arg-nonnull.
76998         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76999         * modules/locale (Depends-on): Add arg-nonnull.
77000         (Makefile.am): Insert arg-nonnull.h into locale.h.
77001         * modules/math (Depends-on): Add arg-nonnull.
77002         (Makefile.am): Insert arg-nonnull.h into math.h.
77003         * modules/netdb (Depends-on): Add arg-nonnull.
77004         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77005         * modules/search (Depends-on): Add arg-nonnull.
77006         (Makefile.am): Insert arg-nonnull.h into search.h.
77007         * modules/signal (Depends-on): Add arg-nonnull.
77008         (Makefile.am): Insert arg-nonnull.h into signal.h.
77009         * modules/spawn (Depends-on): Add arg-nonnull.
77010         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77011         * modules/stdio (Depends-on): Add arg-nonnull.
77012         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77013         * modules/stdlib (Depends-on): Add arg-nonnull.
77014         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77015         * modules/string (Depends-on): Add arg-nonnull.
77016         (Makefile.am): Insert arg-nonnull.h into string.h.
77017         * modules/strings (Depends-on): Add arg-nonnull.
77018         (Makefile.am): Insert arg-nonnull.h into strings.h.
77019         * modules/sys_socket (Depends-on): Add arg-nonnull.
77020         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77021         * modules/sys_stat (Depends-on): Add arg-nonnull.
77022         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77023         * modules/sys_time (Depends-on): Add arg-nonnull.
77024         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77025         * modules/sys_times (Depends-on): Add arg-nonnull.
77026         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77027         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77028         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77029         * modules/time (Depends-on): Add arg-nonnull.
77030         (Makefile.am): Insert arg-nonnull.h into time.h.
77031         * modules/unistd (Depends-on): Add arg-nonnull.
77032         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77033         * modules/wchar (Depends-on): Add arg-nonnull.
77034         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77035         * modules/argv-iter (Depends-on): Add arg-nonnull.
77036         * tests/test-canonicalize.c (null_ptr): New function.
77037         (main): Use it.
77038         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77039         (main): Use it.
77040         * tests/test-memmem.c (null_ptr): New function.
77041         (main): Use it.
77042         Reported by Jim Meyering.
77044 2009-12-10  Bruno Haible  <bruno@clisp.org>
77046         Use spaces for indentation, not tabs.
77047         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77048         * m4/*.m4: Untabify.
77049         * build-aux/*.h: Untabify.
77050         * tests/**/*.[hc]: Untabify.
77051         * README: New section "Indent with spaces, not TABs", based on
77052         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77053         * NEWS: Mention the change.
77055 2009-12-10  Bruno Haible  <bruno@clisp.org>
77057         pty test: Fix link error.
77058         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77059         test_pty_LDADD.
77061 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77063         * modules/pty: New file.
77064         * modules/pty-tests: New file.
77065         * m4/pty.m4: New file.
77066         * tests/test-pty.c: New file.
77067         * doc/glibc-headers/pty.texi: Modified.
77068         * doc/glibc-functions/forkpty.texi: Modified.
77069         * doc/glibc-functions/openpty.texi: Modified.
77071 2009-12-10  Bruno Haible  <bruno@clisp.org>
77073         Avoid syntax error in C++ mode.
77074         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77076 2009-12-10  Bruno Haible  <bruno@clisp.org>
77078         Use sed with option -e.
77079         * gnulib-tool (func_version, func_emit_copyright_notice,
77080         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77081         option -e to sed.
77082         * modules/link-warning (Makefile.am): Likewise.
77084 2009-12-10  Jim Meyering  <meyering@redhat.com>
77086         mgetgroups: do not write bytes beyond end of malloc'd buffer
77087         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77088         username, we call getgroups with a one-element-shorter buffer,
77089         but still told it the length was original, max_n_groups.
77091 2009-12-09  Eric Blake  <ebb9@byu.net>
77093         cloexec: relax license
77094         * modules/cloexec (Maintainer): Add myself.
77095         (License): Use LGPL, not GPL.
77097         link-warning: optimize generation
77098         * modules/link-warning (Makefile.am): Reduce process usage.
77100 2009-12-09  Bruno Haible  <bruno@clisp.org>
77102         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77103         workaround was added on 2009-11-17.
77105 2009-12-09  Jim Meyering  <meyering@redhat.com>
77106             Bruno Haible  <bruno@clisp.org>
77108         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77109         * modules/link-warning (Makefile.am): Make the comment-removing sed
77110         command more robust in the face of bootstrap-prepended comment lines.
77112 2009-12-09  Bruno Haible  <bruno@clisp.org>
77114         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77115         most one group.
77117 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77118             Bruno Haible  <bruno@clisp.org>
77120         * build-aux/link-warning.h: Add copyright notice.
77121         * modules/link-warning (Makefile.am): Generate link-warning.h from
77122         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77123         * NEWS: Mention change in link-warning module.
77124         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77125         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77126         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77127         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77128         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77129         * modules/math (Makefile.am): Add dependency to math.h.
77130         * modules/search (Makefile.am): Add dependency to search.h.
77131         * modules/signal (Makefile.am): Add dependency to signal.h.
77132         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77133         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77134         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77135         * modules/string (Makefile.am): Add dependency to string.h.
77136         * modules/strings (Makefile.am): Add dependency to strings.h.
77137         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77138         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77139         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77140         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77141         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77142         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77143         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77144         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77145         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77147 2009-12-09  Bruno Haible  <bruno@clisp.org>
77149         fchdir: Optimize away rpl_fstat when possible.
77150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77151         REPLACE_OPEN_DIRECTORY.
77152         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77154 2009-12-09  Bruno Haible  <bruno@clisp.org>
77156         * lib/fchdir.c: Update comment.
77158 2009-12-09  Bruno Haible  <bruno@clisp.org>
77160         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77162 2009-12-08  Eric Blake  <ebb9@byu.net>
77164         fchdir: avoid memory leak on re-registration.
77165         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77167 2009-12-08  Jim Meyering  <meyering@redhat.com>
77169         init.sh: avoid Solaris 10 /bin/sh portability problem
77170         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77171         sourced script:
77172           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77173           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77174           bar
77175         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77176         and two tests used that idiom.
77177         * tests/init.sh: Update suggested usage comments.
77178         (path_prepend_): New function, to be used in place
77179         of the --src-path=DIR option.
77180         (setup_): Move PATH-prepending code into path_prepend_.
77181         * tests/test-pread.sh: Adapt to new usage.
77182         * tests/test-xalloc-die.sh: Likewise.
77184 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77186         * doc/gnulib.texi (Glibc pty.h): Add.
77187         * doc/glibc-functions/forkpty.texi: Add.
77188         * doc/glibc-functions/openpty.texi: Add.
77189         Suggested by Bruno Haible.
77191 2009-12-08  Eric Blake  <ebb9@byu.net>
77193         fchdir: fix logic bugs
77194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77195         * tests/test-fchdir.c (main): Enhance test.
77196         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77197         is in use.
77199         dup2: fix logic bugs
77200         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77201         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77202         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77203         exists.
77204         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77206 2009-12-07  Eric Blake  <ebb9@byu.net>
77208         unlink: fix m4 detection
77209         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77211         unistd-safer: add unit test
77212         * modules/unistd-safer-tests: New file.
77213         * tests/test-dup-safer.c: Likewise.
77214         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77215         * tests/test-dup2.c (setmode): Likewise.
77216         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77218         cloexec: preserve text vs. binary across dup_cloexec
77219         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77220         mode.
77221         * modules/dup2-tests (Depends-on): Add binary-io.
77222         * modules/cloexec-tests (Depends-on): Likewise.
77223         * tests/test-dup2.c (setmode, is_mode): New helpers.
77224         (main): Add tests that translation mode is preserved.
77225         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77226         Reported by Bruno Haible.
77228         mgetgroups: reduce duplicate listings
77229         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77230         resulting array.
77231         * tests/test-chown.h (test_chown): Simplify client.
77232         * tests/test-lchown.h (test_lchown): Likewise.
77234 2009-12-06  Bruno Haible  <bruno@clisp.org>
77236         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77237         value.
77239 2009-12-06  Bruno Haible  <bruno@clisp.org>
77241         * lib/progname.c: Include stdio.h, stdlib.h.
77242         (set_program_name): Reject a NULL argument.
77244 2009-12-05  Eric Blake  <ebb9@byu.net>
77246         pipe2-safer: new module
77247         * modules/pipe2-safer: New file.
77248         * lib/unistd-safer.h (pipe2_safer): New prototype.
77249         * lib/unistd--.h (pipe2): New wrapper.
77250         * lib/pipe-safer.c (pipe2_safer): New function.
77251         * modules/pipe (Depends-on): Add pipe2-safer.
77252         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77254         stdlib-safer: preserve cloexec flag for mkostemp[s]
77255         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77256         fd_safer_flag.
77258         unistd-safer: allow preservation of cloexec status via flag
77259         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77260         prototypes.
77261         * lib/dup-safer.c (dup_safer_flag): New function.
77262         * lib/fd-safer.c (fd_safer_flag): Likewise.
77263         * modules/cloexec (configure.ac): Set witness.
77265         test-dup2: enhance test
77266         * modules/dup2-tests (Depends-on): Add cloexec.
77267         * tests/test-dup2.c (main): Enhance test.
77269         cloexec: add dup_cloexec
77270         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77271         header and comments.
77272         * lib/cloexec.c (set_cloexec_flag): Add comments.
77273         (dup_cloexec): New function, with mingw implementation borrowed
77274         from...
77275         * lib/w32spawn.h (dup_noinherit): ...here.
77276         * modules/execute (Depends-on): Add cloexec.
77277         * modules/pipe (Depends-on): Likewise.
77278         * modules/cloexec (Depends-on): Add dup2.
77279         * modules/cloexec-tests (Files): New file.
77280         * tests/test-cloexec.c: Likewise.
77282         test-xalloc-die: fix test for mingw
77283         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77284         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77285         directory and .exe suffix off argv[0] output.
77287         test-fseeko: fix test for mingw
77288         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77289         than undefining fseek, so test will pass on mingw.
77291 2009-12-05  Bruno Haible  <bruno@clisp.org>
77293         * lib/progname.h (set_program_name): Clarify specification.
77294         * lib/progname.c (set_program_name): Likewise.
77295         Reported by Jim Meyering.
77297 2009-12-05  Jim Meyering  <meyering@redhat.com>
77299         maint.mk: backslash-escape parens in default regexp
77300         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77301         backslash-escape the literal parentheses.
77303         maint.mk: news-date-check: use grep -E
77304         * top/maint.mk (today): Define a Make variable, not a...
77305         (news-date-check): ...shell variable.
77306         (news-date-regexp): Use the Make variable.
77307         Use grep's -E option.  Change the failing diagnostic to mention
77308         the variable, $(news-date-regexp).
77310 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77312         maintainer-makefile: allow customization of NEWS entry format
77313         * top/maint.mk (news-date-regexp): New overridable variable.
77314         (news-date-check): Use it.
77316 2009-12-04  Eric Blake  <ebb9@byu.net>
77318         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77319         * lib/mgetgroups.h (xgetgroups): New prototype.
77320         * lib/mgetgroups.c (xgetgroups): New wrapper.
77321         (mgetgroups): Handle ENOSYS.
77322         * modules/mgetgroups (Depends-on): Add realloc.
77323         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77325         mgetgroups: avoid argument promotion issues with -1
77326         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77327         for invalid gid_t.
77328         * tests/test-chown.h (getegid, test_chown): Likewise.
77329         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77331 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77333         exclude: Fix header file problems.
77334         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77336 2009-12-01  Jim Meyering  <meyering@redhat.com>
77338         fts: fts_open: do not let an empty string cause immediate failure
77339         This is required in support of GNU rm, for which the command
77340         "rm A '' B" must process and remove both A and B, in spite of
77341         the empty string argument.
77342         * lib/fts.c (fts_open): Do not let the presence of an empty string
77343         cause fts_open to fail immediately.  Most fts-using tools must be
77344         able to process all arguments, in order, and can be expected to
77345         diagnose such arguments themselves.
77347 2009-11-30  Eric Blake  <ebb9@byu.net>
77349         utimens: fix compilation error
77350         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77351         Declare variable at right scope.
77353 2009-11-29  Jim Meyering  <meyering@redhat.com>
77355         bootstrap: handle perl-5.11's changed --version output
77356         * build-aux/bootstrap (get_version): Handle perl separately,
77357         since perl-5.11's --version output is different.
77359 2009-11-28  Jim Meyering  <meyering@redhat.com>
77361         userspec: depend on the inttostr module, too
77362         * modules/userspec (Depends-on): Add inttostr.
77364         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77365         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77366         number of MAXUID when it evaluates to (uid_t) -1.
77367         Likewise for group ID.  Reported by Matt McCutchen in
77368         <http://savannah.gnu.org/bugs/?28113>
77370         userspec: reformat to use spaces, not TABs
77371         * lib/userspec.c: Expand TABs to spaces.
77372         Add Emacs' "indent-tabs-mode: nil" hint.
77374 2009-11-27  Eric Blake  <ebb9@byu.net>
77376         getopt-gnu: flush out another BSD bug
77377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77378         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77379         flush out BSD bug.
77380         * tests/test-getopt.h (test_getopt): End lists with NULL.
77381         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77382         (test_getopt_long_posix): Enhance test.
77383         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77384         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77385         getopt-gnu.
77386         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77387         Likewise.
77389 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77391         * modules/idpriv-droptemp-tests (Notice): Fix text.
77393 2009-11-27  Jim Meyering  <meyering@redhat.com>
77395         test-xalloc-die: avoid spurious failure due to libtool argv difference
77396         In a libtool-enabled project, this test would fail due to a difference
77397         in the emitted program name, e.g.,
77398         -test-xalloc-die: memory exhausted
77399         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77400         Use program to avoid that.
77401         * modules/xalloc-die-tests (Depends-on): Add progname.
77402         * tests/test-xalloc-die.c: Include progname.h".
77403         (program_name): Remove decl.
77404         (main): Call set_program_name.
77405         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77407 2009-11-26  Richard Jones  <rjones@redhat.com>
77409         w32sock: leave win32 error in place.
77410         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77412 2009-11-26  Eric Blake  <ebb9@byu.net>
77414         init.sh: suggest to use skip_ and fail_ functions in comments
77415         * tests/init.sh: Add a sentence.
77417 2009-11-25  Bruno Haible  <bruno@clisp.org>
77419         init.sh: add documentation in comments
77420         * tests/init.sh: Add some developer and user documentation.
77422 2009-11-26  Jim Meyering  <meyering@redhat.com>
77424         init.sh: accommodate even those who specify bogus srcdir manually
77425         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77426         configure-time tests to be sanitized, so that there is no need to
77427         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77428         (with no double quotes) suffices.  However, since tests may be
77429         invoked manually, and since you may explicitly set srcdir to the
77430         name of a directory containing spaces, do quote its uses here.
77431         * tests/test-pread.sh: Likewise.
77432         Suggested by Bruno Haible.
77434         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77435         * tests/test-pread.sh: Write no data into the pipe, because
77436         test-pread actually reads none.  This avoids a diagnostic,
77437         "bash: echo: write error: Broken pipe", that arises in the unusual
77438         event something is ignoring SIGPIPE, and might be interpreted
77439         as some sort of failure.  Reported by Bruno Haible.
77441 2009-11-25  Jim Meyering  <meyering@redhat.com>
77443         test-pread: cover failure with ESPIPE and EINVAL
77444         * tests/test-pread.c (main): Test for failure, too.
77445         * tests/test-pread.sh: Invoke with stdin on a pipe.
77446         Suggested by Eric Blake.
77448         pread: improvement and fix
77449         * modules/pread (Depends-on): Depend on lseek, for portability to
77450         e.g., mingw.  Suggested by Eric Blake.
77451         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77453         unistd.in.h: correct declaration of pread
77454         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77455         Reported by Richard W.M. Jones.
77457         test-pread.sh: distribute the test script
77458         * modules/pread-tests (Files): Include test-pread.sh.
77460         test-pread.sh: clean up
77461         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77462         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77463         That is unnecessary, since it's always ".".
77464         Suggestion from Eric Blake.
77466         test-pread.sh: make executable
77467         * tests/test-pread.sh: Set executable bit.
77468         Reported by Eric Blake.
77470         correct typo in test-pread.sh
77471         * tests/test-pread.sh: Add #! line.
77473         test pread
77474         * tests/test-pread.c: New file.
77475         * tests/test-pread.sh: Likewise.
77476         * modules/pread-tests: Likewise.
77478         pread: new module
77479         * modules/pread: New file.
77480         * lib/unistd.in.h (pread): Define/declare.
77481         * lib/pread.c (pread): New file.
77482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77483         * modules/unistd (Makefile.am): Substitute witnesses.
77484         * doc/posix-functions/pread.texi (pread): Update.
77485         * MODULES.html.sh: Add pread.
77487 2009-11-25  Jim Meyering  <meyering@redhat.com>
77489         tests/init.sh: new file to be used via most *.sh tests
77490         * tests/init.sh: New file.
77492 2009-11-25  Eric Blake  <ebb9@byu.net>
77494         utimens: work around older Linux failure with symlinks
77495         * lib/utimens.c (lutimensat_works_really): New variable.
77496         (fdutimens, lutimens): Use it to manage kernels that support
77497         nanosecond times on files, but not on symlinks.
77498         Reported by Ondřej Vašík.
77500         utimes: fix configure grammar
77501         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77503 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77505         regex: Fix fastmap for multibyte character ranges.
77506         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77507         characters when a multibyte character range is included.
77509 2009-11-22  Andy Wingo  <wingo@pobox.com>
77511         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77512         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77514 2009-11-24  Bruno Haible  <bruno@clisp.org>
77516         doc: Most *_l functions exist in MacOS X 10.5.
77517         * doc/posix-functions/duplocale.texi: Update platforms list.
77518         * doc/posix-functions/freelocale.texi: Likewise.
77519         * doc/posix-functions/newlocale.texi: Likewise.
77520         * doc/posix-functions/uselocale.texi: Likewise.
77521         * doc/posix-functions/isalnum_l.texi: Likewise.
77522         * doc/posix-functions/isalpha_l.texi: Likewise.
77523         * doc/posix-functions/isblank_l.texi: Likewise.
77524         * doc/posix-functions/iscntrl_l.texi: Likewise.
77525         * doc/posix-functions/isdigit_l.texi: Likewise.
77526         * doc/posix-functions/isgraph_l.texi: Likewise.
77527         * doc/posix-functions/islower_l.texi: Likewise.
77528         * doc/posix-functions/isprint_l.texi: Likewise.
77529         * doc/posix-functions/ispunct_l.texi: Likewise.
77530         * doc/posix-functions/isspace_l.texi: Likewise.
77531         * doc/posix-functions/isupper_l.texi: Likewise.
77532         * doc/posix-functions/iswalnum_l.texi: Likewise.
77533         * doc/posix-functions/iswalpha_l.texi: Likewise.
77534         * doc/posix-functions/iswblank_l.texi: Likewise.
77535         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77536         * doc/posix-functions/iswctype_l.texi: Likewise.
77537         * doc/posix-functions/iswdigit_l.texi: Likewise.
77538         * doc/posix-functions/iswgraph_l.texi: Likewise.
77539         * doc/posix-functions/iswlower_l.texi: Likewise.
77540         * doc/posix-functions/iswprint_l.texi: Likewise.
77541         * doc/posix-functions/iswpunct_l.texi: Likewise.
77542         * doc/posix-functions/iswspace_l.texi: Likewise.
77543         * doc/posix-functions/iswupper_l.texi: Likewise.
77544         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77545         * doc/posix-functions/isxdigit_l.texi: Likewise.
77546         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77547         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77548         * doc/posix-functions/strcoll_l.texi: Likewise.
77549         * doc/posix-functions/strfmon_l.texi: Likewise.
77550         * doc/posix-functions/strftime_l.texi: Likewise.
77551         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77552         * doc/posix-functions/strxfrm_l.texi: Likewise.
77553         * doc/posix-functions/tolower_l.texi: Likewise.
77554         * doc/posix-functions/toupper_l.texi: Likewise.
77555         * doc/posix-functions/towctrans_l.texi: Likewise.
77556         * doc/posix-functions/towlower_l.texi: Likewise.
77557         * doc/posix-functions/towupper_l.texi: Likewise.
77558         * doc/posix-functions/wcscoll_l.texi: Likewise.
77559         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77560         * doc/posix-functions/wctrans_l.texi: Likewise.
77561         * doc/posix-functions/wctype_l.texi: Likewise.
77562         * doc/glibc-functions/strptime_l.texi: Likewise.
77563         * doc/glibc-functions/strtod_l.texi: Likewise.
77564         * doc/glibc-functions/strtof_l.texi: Likewise.
77565         * doc/glibc-functions/strtol_l.texi: Likewise.
77566         * doc/glibc-functions/strtold_l.texi: Likewise.
77567         * doc/glibc-functions/strtoll_l.texi: Likewise.
77568         * doc/glibc-functions/strtoul_l.texi: Likewise.
77569         * doc/glibc-functions/strtoull_l.texi: Likewise.
77570         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77571         * doc/glibc-functions/wcstod_l.texi: Likewise.
77572         * doc/glibc-functions/wcstof_l.texi: Likewise.
77573         * doc/glibc-functions/wcstol_l.texi: Likewise.
77574         * doc/glibc-functions/wcstold_l.texi: Likewise.
77575         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77576         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77577         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77579 2009-11-24  Bruno Haible  <bruno@clisp.org>
77581         duplocale: Fix logic bug.
77582         * lib/duplocale.c: Don't include <langinfo.h>.
77583         (_NL_LOCALE_NAME): Remove macro.
77584         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77585         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77587 2009-11-23  Jim Meyering  <meyering@redhat.com>
77589         test-update-copyright: don't hard-code /usr/bin/perl
77590         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77591         perl to print the current year.  Gilles Espinasse reported that
77592         the replaced use of perl was hard-coded as /usr/bin/perl.
77594 2009-11-23  Bruno Haible  <bruno@clisp.org>
77596         duplocale: Add support for glibc 2.3.x.
77597         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77599 2009-11-22  Bruno Haible  <bruno@clisp.org>
77601         vasnprintf: Tiny optimization.
77602         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77603         MacOS X.
77605 2009-11-22  Bruno Haible  <bruno@clisp.org>
77607         Tests for module 'duplocale'.
77608         * modules/duplocale-tests: New file.
77609         * tests/test-duplocale.c: New file.
77611         New module 'duplocale'.
77612         * m4/duplocale.m4: New file.
77613         * lib/locale.in.h (duplocale): New declaration.
77614         * lib/duplocale.c: New file.
77615         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77616         gl_LOCALE_H_DEFAULTS): New macros.
77617         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77618         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77619         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77620         REPLACE_DUPLOCALE.
77621         * modules/duplocale: New file.
77622         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77624 2009-11-22  Bruno Haible  <bruno@clisp.org>
77626         * modules/locale-tests (configure.ac): Test for newlocale function.
77627         * tests/test-locale.c: When the system has extended locale functions,
77628         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77630         locale: Make locale_t available when possible.
77631         * lib/locale.in.h: Include <xlocale.h> when it exists.
77632         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77633         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77634         * modules/locale (Depends-on): Add extensions.
77635         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77636         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77638 2009-11-22  Bruno Haible  <bruno@clisp.org>
77640         Add comments.
77641         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77642         invocation.
77643         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77644         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77645         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77647 2009-11-22  Bruno Haible  <bruno@clisp.org>
77649         error: account for the possibility of freopen (stdout).
77650         * lib/error.c: Include <unistd.h>.
77651         (flush_stdout): New function, extracted from error and error_at_line.
77652         Determine stdout's fd dynamically.
77653         (error, error_at_line): Invoke flush_stdout.
77654         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77655         * modules/error (Depends-on): Add unistd.
77657 2009-11-22  Bruno Haible  <bruno@clisp.org>
77659         diffseq: Add comment.
77660         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77662 2009-11-22  Jim Meyering  <meyering@redhat.com>
77664         c-stack: avoid defining an unused static function
77665         * lib/c-stack.c (find_stack_direction): Do not define this function
77666         when it will not be used.
77668         diffseq: avoid spurious gcc warnings
77669         * lib/diffseq.h (IF_LINT2): Define.
77670         (compareseq): Use it to initialize two members of "part".
77671         This avoids two used-uninitialized warnings.
77673 2009-11-21  Jim Meyering  <meyering@redhat.com>
77675         c-stack: avoid "ignoring return value of `write'" warning
77676         * lib/c-stack.c: Include "ignore-value.h".
77677         (die): Explicitly ignore each write return value.
77678         * modules/c-stack (Depends-on): Add ignore-value.
77680 2009-11-21  Bruno Haible  <bruno@clisp.org>
77682         diffseq: reduce scope of variable 'best'.
77683         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77684         variable, earlier used for two different purposes.
77686 2009-11-21  Jim Meyering  <meyering@redhat.com>
77688         diffseq: remove useless assignment to "best"
77689         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77690         assignment.  At that point "best" is already guaranteed to be zero.
77692 2009-11-20  Eric Blake  <ebb9@byu.net>
77694         build: mention ftp redirector in release announcements
77695         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77696         values that used to come from cfg.mk; mention FTP redirect URL.
77697         * build-aux/announce-gen: Mention the mirror list.
77698         Suggested by Karl Berry.
77700         nanosleep: improve port to mingw
77701         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77703         LIB_NANOSLEEP, but only when needed.
77704         * modules/select (Link): Document LIBSOCKET.
77705         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77706         enough.
77708         nanosleep: work around cygwin bug
77709         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77710         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77711         bug.
77712         (getnow): Delete, not needed.
77713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77714         LIB_CLOCK_GETTIME.
77715         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77716         clock-time, gettime.
77717         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77718         bug.
77719         * modules/nanosleep-tests: New test.
77720         * tests/test-nanosleep.c: New file.
77722         sleep: work around cygwin bug
77723         * lib/sleep.c (rpl_sleep): Work around the bug.
77724         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77725         (gl_PREREQ_SLEEP): Delete unused macro.
77726         * modules/sleep (Depends-on): Add verify.
77727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77728         * modules/unistd (Makefile.am): Substitute witness.
77729         * lib/unistd.in.h (sleep): Update prototype.
77730         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77731         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77732         * modules/sleep-tests (Depends-on): Check for alarm.
77734 2009-11-20  Jim Meyering  <meyering@redhat.com>
77736         maint.mk: improve sc_prohibit_magic_number_exit
77737         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77738         so it does not match uses like System.exit(1).
77739         Add comments showing how to correct all offenders.
77741 2009-11-19  Eric Blake  <ebb9@byu.net>
77743         xalloc-die-tests: add missing library
77744         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77746         test-xvasprintf: silence compiler warnings
77747         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77748         empty string from gcc.
77750 2009-11-19  Jim Meyering  <meyering@redhat.com>
77752         xfreopen: new module, from coreutils
77753         * modules/xfreopen: New module.
77754         * lib/xfreopen.c: New file.
77755         * lib/xfreopen.h: New file.
77756         * MODULES.html.sh (File stream based Input/Output"): Add it.
77758 2009-11-19  Eric Blake  <ebb9@byu.net>
77760         manywarnings: depend on warnings
77761         * modules/manywarnings (Depends-on): Add warnings.
77763         build: avoid compiler warnings
77764         * lib/select.c (rpl_select): Delete unused variable.
77765         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77767 2009-11-18  Eric Blake  <ebb9@byu.net>
77769         tests: avoid false negative with --with-packager
77770         * tests/test-version-etc.sh: Discard packager information.
77771         * tests/test-argp-version-etc-1.sh: Likewise.
77772         Reported by Mike Frysinger.
77774         utimens: fix regression on Solaris
77775         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77776         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77777         can only change fd timestamps via futimesat.  Instead, use an
77778         additional witness macro to avoid BSD bug.
77779         Reported by Jim Meyering.
77781 2009-11-17  Eric Blake  <ebb9@byu.net>
77783         usleep: use it to simplify tests
77784         * modules/stat-time-tests (Depends-on): Add usleep.
77785         (configure.ac): Drop usleep check.
77786         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77787         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77788         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77789         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77790         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77791         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77792         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77793         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77794         Likewise.
77795         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77796         * tests/test-lchown.h (nap): Likewise.
77797         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77798         * tests/test-stat-time.c (nap): Likewise.
77799         * tests/test-utimens-common.h (nap): Update comments.
77801         usleep: new module
77802         * modules/usleep: New file.
77803         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77804         * lib/usleep.c (usleep): Likewise.
77805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77806         * modules/unistd (Makefile.am): Substitute witnesses.
77807         * lib/unistd.in.h (usleep): Add declaration.
77808         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77809         * MODULES.html.sh (Date and time): Likewise.
77810         * modules/usleep-tests (Depends-on): New test.
77811         * tests/test-usleep.c: New file.
77813         chown: work around OpenBSD bug
77814         * lib/chown.c (rpl_chown): Work around the bug.
77815         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77816         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77817         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77818         * modules/chown (Depends-on): Add stdbool.
77819         * modules/lchown (Depends-on): Likewise.
77820         * doc/posix-functions/chown.texi (chown): Document the bug.
77821         * doc/posix-functions/lchown.texi (lchown): Likewise.
77822         * tests/test-lchown.h (test_chown): Relax test.
77824         mkstemp: avoid conflict with C++ keyword template
77825         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77826         * lib/mkostemp.c (mkostemp): Likewise.
77827         * lib/mkostemps.c (mkostemps): Likewise.
77828         * lib/mkstemp.c (mkstemp): Likewise.
77829         * lib/mkstemps.c (mkstemps): Likewise.
77831         xalloc-die-tests: optimize
77832         * tests/test-xalloc-die.sh: Reduce number of processes.
77834 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77836         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77837         patch from ludo@gnu.org (Ludovic Courtès).
77839 2009-11-17  Jim Meyering  <meyering@redhat.com>
77841         version-etc: use proper license string
77842         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77843         * modules/version-etc-fsf: Likewise.
77845 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77847         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77848         printed to stdout.  Deal with EOL differences.
77850 2009-11-17  Eric Blake  <ebb9@byu.net>
77852         unsetenv: work around Solaris bug
77853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77854         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77855         Reported by Jim Meyering.
77857         vasnprintf: avoid compiler warnings
77858         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77859         variables.
77860         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77862 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77864         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77865         settings since xalloc-die is no longer the self test,
77866         xalloc-die.sh is.
77868 2009-11-17  Jim Meyering  <meyering@redhat.com>
77870         test-xalloc-die.sh: make the code agree with the commit log
77871         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77872         at the end, just in case you happen to have a test-xalloc-die
77873         program in some other PATH directory.
77875         test-xalloc-die.sh: fix a portability bug
77876         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77877         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77878         Otherwise, argv[0] (as often seen in diagnostics) would be too
77879         system-dependent, sometimes with, and sometimes without the leading "./".
77881         version-etc-fsf: relax license to LGPLv3+
77882         * modules/version-etc-fsf (License): Relax license.
77884 2009-11-16  Eric Blake  <ebb9@byu.net>
77886         xalloc-die-tests: avoid printing null pointer
77887         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77888         shell script.
77889         * tests/test-xalloc-die.c (program_name): Declare.
77890         * tests/test-xalloc-die.sh (tmpfiles): New file.
77892         setenv, unsetenv: work around various bugs
77893         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77894         (setenv) [HAVE_SETENV]: Work around bugs.
77895         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77896         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77897         for bugs.
77898         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77899         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77901         * modules/stdlib (Makefile.am): Update substitutions.
77902         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77903         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77904         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77905         * modules/setenv-tests: New test.
77906         * modules/unsetenv-tests: Likewise.
77907         * tests/test-setenv.c: New file.
77908         * tests/test-unsetenv.c: Likewise.
77910 2009-11-16  Jim Meyering  <meyering@redhat.com>
77912         version-etc: relax license to LGPLv3+
77913         * modules/version-etc (License): Relax license.
77915         better AC_REQUIRE expanded-before-required-warning avoidance
77916         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77917         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77918         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77919         which is no longer needed.
77921 2009-11-16  Eric Blake  <ebb9@byu.net>
77923         test-freading: clean up temporary file
77924         * tests/test-freading.c (main): Remove file on success, and use
77925         ASSERT more liberally.
77926         Reported by Jim Meyering.
77928 2009-11-16  Jim Meyering  <meyering@redhat.com>
77930         avoid new AC_REQUIRE expanded-before-required warnings
77931         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77932         merely using it.
77933         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77934         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77936 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77938         * tests/test-xalloc-die.c: New file.
77939         * modules/xalloc-die-tests: New file.
77940         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77941         XFAIL_TESTS so it can be appended by modules.
77943 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77945         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77946         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77948 2009-11-14  Eric Blake  <ebb9@byu.net>
77950         fnmatch: avoid compiler warning
77951         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77952         to silence compiler warning about mismatch signedness in ?:.
77953         Reported by Robert Millan.
77955         intprops: add double-inclusion guard
77956         * lib/intprops.h: Allow idempotent includes.
77957         Suggested by Bruce Korb.
77959         openat: detect Solaris fchownat bug
77960         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77961         penalizing glibc chownat when only lchownat is broken.
77962         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77963         trailing slash bugs.
77964         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77965         * modules/openat-tests (Files): Include more files.
77966         (Depends-on): Add mgetgroups, sleep, stat-time.
77967         (configure.ac): Add additional checks.
77968         (Makefile.am): Build new test.
77969         * tests/test-fchownat.c: New file.
77971         lchown: detect Solaris and FreeBSD bug
77972         * lib/lchown.c (rpl_lchown): Work around bug.
77973         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77975         * modules/unistd (Makefile.am): Populate it.
77976         * lib/unistd.in.h (lchown): Update declaration.
77977         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77978         * modules/lchown-tests: New file.
77979         * tests/test-lchown.h (test_lchown): Likewise.
77980         * tests/test-lchown.c (main): Likewise.
77982         chown: detect Solaris and FreeBSD bug
77983         * lib/chown.c (rpl_chown): Work around bug.
77984         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77985         (gl_PREREQ_CHOWN): Delete.
77986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77987         * modules/unistd (Makefile.am): Populate it.
77988         * lib/unistd.in.h (chown): Update declaration.
77989         * lib/lchown.c (chown): Update client.
77990         * modules/lchown (Depends-on): Add lstat.
77991         * doc/posix-functions/chown.texi (chown): Document the bug.
77992         * doc/posix-functions/getgroups.texi (getgroups): Document
77993         getgroups pitfall.
77994         * modules/chown-tests: New file.
77995         * tests/test-chown.h (test_chown): Likewise.
77996         * tests/test-chown.c (main): Likewise.
77998 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78000         gnulib-tool: correctly detect absence of m4 directories
78001         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78003 2009-11-14  Jim Meyering  <meyering@redhat.com>
78005         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78006         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78008 2009-11-14  John W. Eaton  <jwe@gnu.org>
78010         strftime.h: wrap function declaration in extern "C" block
78011         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78013 2009-11-13  Eric Blake  <ebb9@byu.net>
78015         getgroups: avoid compiler warning
78016         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78018         getgroups: work around FreeBSD bug
78019         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78020         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78021         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78022         * tests/test-getgroups.c (main): Fix buffer overrun.
78024         getgroups: avoid compilation failure
78025         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78026         * modules/getgroups (Depends-on): Add stdint.
78028 2009-11-13  Jim Meyering  <meyering@redhat.com>
78030         test-getgroups: avoid compilation failure
78031         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78033 2009-11-13  Eric Blake  <ebb9@byu.net>
78035         mgetgroups: new module, taken from coreutils
78036         * modules/mgetgroups: New file.
78037         * lib/mgetgroups.h: Likewise.
78038         * lib/mgetgroups.c (mgetgroups): Likewise.
78039         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78040         * MODULES.html.sh (Users and groups): Mention it.
78042         getgroups: don't expose GETGROUPS_T to user
78043         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78044         an element at a time if GETGROUPS_T is wrong size.
78045         * lib/getugroups.h (getugroups): Change signature.
78046         * lib/unistd.in.h (getgroups): Likewise.
78047         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78048         signature needs fixing.
78049         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78050         AC_TYPE_GETGROUPS.
78051         * modules/group-member (Depends-on): Add getgroups.
78052         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78053         (group_member): Rely on getgroups replacement.
78054         * lib/getugroups.c (getugroups): Use gid_t.
78055         * tests/test-getgroups.c (main): Likewise.
78056         * NEWS: Mention the signature change.
78057         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78058         problem with signature.
78059         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78060         GETGROUPS_T is still useful for setgroups.
78062         getgroups, getugroups: provide stubs for mingw
78063         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78064         * lib/getugroups.c (getugroups): Likewise.
78065         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78066         function.  Modernize replacement scheme.
78067         (gl_PREREQ_GETGROUPS): Delete.
78068         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78069         * modules/getgroups (configure.ac): Declare witness.
78070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78071         * modules/unistd (Depends-on): Substitute witness.
78072         * lib/unistd.in.h (getgroups): Declare replacement.
78074         getgroups: avoid calling exit
78075         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78076         drop xalloc.
78077         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78078         dependencies.
78079         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78080         exiting, in the rare case of malloc failure.
78082         getgroups: fix logic error
78083         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78084         has more than 20 groups.
78085         * modules/getgroups-tests: New test.
78086         * tests/test-getgroups.c: New file.
78088 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78090         * tests/test-base64.c: Improve.
78092 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78094         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78095         Blake <ebb9@byu.net>.
78097 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78099         * tests/test-xvasprintf.c: Add %s%s related checks.
78101 2009-11-12  Eric Blake  <ebb9@byu.net>
78103         version-etc: match standards.texi style
78104         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78105         and use <> only for URLs.
78107 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78109         fts: do not fail on a submount during traversal
78110         * lib/fts.c (fts_build): Read the stat info again after opening
78111         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78112         Original report at http://bugzilla.redhat.com/501848.
78114 2009-11-12  Jim Meyering  <meyering@redhat.com>
78116         bootstrap: sync from coreutils
78117         * build-aux/bootstrap (bootstrap_epilogue): New function.
78118         Use git_modules_config in one more place.  This make bootstrap's
78119         --gnulib-srcdir option more useful for testing.
78121         bootstrap: generalize autoheader check
78122         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78123         AC_CONFIG_HEADERS.
78125 2009-11-11  Eric Blake  <ebb9@byu.net>
78127         mkfifoat: use new modules for Solaris and BSD bugs
78128         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78129         * lib/mkfifoat.c (mknodat): Split...
78130         * lib/mknodat.c (mknodat): ...into new file.
78131         * modules/mkfifoat (Files): Ship new file.
78132         (Depends-on): Add mkfifo, mknod.
78133         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78134         (Depends-on): Add symlink.
78135         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78136         redundant with test_mkfifo.h.
78137         (do_mkfifoat, do_mknodat): New helpers.
78139         mknod: new module
78140         * modules/mknod: New file.
78141         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78142         * lib/mknod.c (mknod): Likewise.
78143         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78144         defaults.
78145         * modules/sys_stat (Makefile.am): Substitute them.
78146         * lib/sys_stat.in.h (mknod): Declare replacement.
78147         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78148         Document it.
78149         * doc/posix-functions/mknod.texi (mknod): Likewise.
78150         * modules/mknod-tests: New test.
78151         * tests/test-mknod.c: Likewise.
78153         mkfifo: new module
78154         * modules/mkfifo: New file.
78155         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78156         * lib/mkfifo.c (mkfifo): Likewise.
78157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78158         defaults.
78159         * modules/sys_stat (Makefile.am): Substitute them.
78160         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78161         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78162         Document it.
78163         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78164         * modules/mkfifo-tests: New test.
78165         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78166         from test-mkfifoat.c.
78167         * tests/test-mkfifo.c: New file.
78169         readlink: detect FreeBSD bug
78170         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78171         slash on symlink.
78172         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78173         * tests/test-readlink.h (test_readlink): Enhance test.
78175         symlink: detect FreeBSD bug
78176         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78177         slash on symlink.
78178         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78179         * tests/test-symlink.h (test_symlink): Enhance test.
78181 2009-11-10  Eric Blake  <ebb9@byu.net>
78183         link: detect FreeBSD bug
78184         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78185         symlink.
78186         * doc/posix-functions/link.texi (link): Document the bug.
78187         * tests/test-link.h (test_link): Enhance test.
78188         * tests/test-linkat.c (main): Update caller.
78190         unlink, remove: detect FreeBSD bug
78191         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78192         slash on symlink.
78193         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78194         * doc/posix-functions/remove.texi (remove): Likewise.
78195         * tests/test-unlink.h (test_unlink): Enhance test.
78196         * tests/test-remove.c (main): Likewise.
78198 2009-11-09  Eric Blake  <ebb9@byu.net>
78200         rename: detect FreeBSD bug
78201         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78202         slash on symlink.
78203         * modules/renameat-tests (Depends-on): Add filenamecat.
78204         * tests/test-rename.h (test_rename): Allow one more errno.
78205         * tests/test-renameat.c (main): Likewise.
78206         * doc/posix-functions/rename.texi (rename): Document the bug.
78208         open: detect FreeBSD bug
78209         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78210         symlink.
78211         * doc/posix-functions/open.texi (open): Document the bug.
78212         * doc/posix-functions/utimes.texi (utimes): Likewise.
78213         * tests/test-open.h (test_open): Add parameters, and test symlink
78214         handling.
78215         * tests/test-open.c (main): Adjust caller.
78216         * tests/test-fcntl-safer.c (main): Likewise.
78217         * modules/open-tests (Depends-on): Add stdbool, symlink.
78218         * modules/fcntl-safer-tests (Depends-on): Likewise.
78219         * tests/test-openat.c (main): Add test-open tests.
78221         stat: detect FreeBSD bug
78222         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78223         symlink.
78224         * doc/posix-functions/stat.texi (stat): Document the bug.
78225         * tests/test-stat.h (test_stat_func): Add argument.
78226         * tests/test-stat.c (main): Adjust caller.
78227         * tests/test-fstatat.c (main): Likewise.
78228         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78229         Reported by Jim Meyering.
78231 2009-11-09  James Youngman  <jay@gnu.org>
78233         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78234         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78236 2009-11-08  Jim Meyering  <meyering@redhat.com>
78238         utimens: remove invalid futimesat call
78239         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78240         It used the file descriptor of the target file as the DIR_FD
78241         parameter and NULL as the file name.  That caused failure with
78242         errno == EFAULT on FreeBSD-8.0-rc2
78244 2009-11-07  Eric Blake  <ebb9@byu.net>
78246         fflush, freadseek: use fseeko, not fseek
78247         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78248         (clear_ungetc_buffer): Avoid potential problems on large files.
78249         * lib/freadseek.c (freadseek): Likewise.
78250         * modules/freadseek (Depends-on): Add fseeko.
78251         * modules/fseek (configure.ac): Set a witness.
78252         * tests/test-fflush.c (main): Use fseeko.
78253         * tests/test-fpurge.c (fseek): Disable link warning.
78254         * tests/test-freadable.c (fseek): Likewise.
78255         * tests/test-freading.c (fseek): Likewise.
78256         * tests/test-fseeko.c (fseek): Likewise.
78257         * tests/test-ftell.c (fseek): Likewise.
78258         * tests/test-ftello.c (fseek): Likewise.
78259         * tests/test-fwritable.c (fseek): Likewise.
78260         * tests/test-fwriting.c (fseek): Likewise.
78262 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78264         * modules/memchr (Depends-on): Drop getpagesize dependency.
78266 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78268         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78269         Reported by Ludovic Courtès.
78270         * build-aux/pmccabe2html: Improve example usage.
78271         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78273 2009-11-06  Jim Meyering  <meyering@redhat.com>
78275         do-release-commit-and-tag: New module.
78276         Automate the release-commit and tag process.
78277         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78278         * modules/do-release-commit-and-tag: New file.
78279         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78281 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78283         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78284         because test-select.c uses inet_pton.
78286 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78288         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78289         GETADDRINFO_LIB.  Bump serial number.
78290         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78291         Suggested by Eric Blake <ebb9@byu.net>.
78293 2009-11-05  Eric Blake  <ebb9@byu.net>
78295         strtod: detect darwin bug
78296         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78297         Reported by Leo Davis.
78299         freopen-safer: new module
78300         * modules/freopen-safer: New module.
78301         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78302         * lib/freopen-safer.c (freopen_safer): New file.
78303         * lib/stdio-safer.h (freopen_safer): New declaration.
78304         * lib/stdio--.h (freopen): New override.
78305         * MODULES.html.sh (File stream based Input/Output): Mention it.
78306         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78307         freopen-safer module.
78308         * doc/posix-functions/stderr.texi (stderr): Likewise.
78309         * doc/posix-functions/stdin.texi (stdin): Likewise.
78310         * doc/posix-functions/stdout.texi (stdout): Likewise.
78311         * modules/freopen-safer-tests: New test.
78312         * tests/test-reopen-safer.c: New file.
78314 2009-11-05  Jim Meyering  <meyering@redhat.com>
78316         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78317         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78319 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78321         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78323 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78325         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78327 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78329         Fix link error.
78330         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78331         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78333 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78335         * tests/test-func.c: Also test value of __func__.
78337 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78339         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78340         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78342 2009-11-05  Bruno Haible  <bruno@clisp.org>
78344         Fix link error.
78345         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78346         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78347         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78349 2009-11-05  Bruno Haible  <bruno@clisp.org>
78351         Tests for module 'inet_pton'.
78352         * modules/inet_pton-tests: New file.
78353         * tests/test-inet_pton.c: New file.
78355 2009-11-05  Bruno Haible  <bruno@clisp.org>
78357         Tests for module 'inet_ntop'.
78358         * modules/inet_ntop-tests: New file.
78359         * tests/test-inet_ntop.c: New file.
78361 2009-11-04  Eric Blake  <ebb9@byu.net>
78363         stdlib-safer: wrap all mkstemp variants
78364         * modules/mkostemp (configure.ac): Set witness.
78365         * modules/mkostemps (configure.ac): Likewise.
78366         * modules/mkstemps (configure.ac): Likewise.
78367         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78368         (mkstemps_safer): Wrap more functions.
78369         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78370         wrapping.
78371         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78372         (mkstemps_safer): Implement the wrappers.
78374         mkstemps, mkostemps: new modules
78375         * modules/mkostemps: New module.
78376         * modules/mkstemps: Likewise.
78377         * lib/mkostemps.c (mkostemps): New file.
78378         * lib/mkstemps.c (mkstemps): Likewise.
78379         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78380         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78382         * modules/stdlib (Makefile.am): Substitute them.
78383         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78384         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78385         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78386         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78387         * MODULES.html.sh (File system functions): Mention them.
78389         tempname: resync from glibc
78390         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78391         same values for __GT_FILE as glibc.  Abort even when assertions
78392         are disabled.
78393         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78394         match its value otherwise.  Allow idempotent inclusion.
78395         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78396         * lib/mkostemp.c (mkostemp): Likewise.
78397         * lib/mkstemp.c (mkstemp): Likewise.
78398         * lib/tmpfile.c (tmpfile): Likewise.
78399         * NEWS: Document this.
78401         utimens: fix use of futimens on older Linux
78402         * lib/utimens.c (fdutimens): Use updated, rather than original,
78403         timespec to avoid bug in older Linux kernel.
78404         Reported by Simon Josefsson.
78406 2009-11-04  Bruno Haible  <bruno@clisp.org>
78408         Make num_processors more flexible and consistent.
78409         * lib/nproc.h (enum nproc_query): New type.
78410         (num_processors): Add a 'query' argument.
78411         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78412         (num_processors): Add a 'query' argument. Test the value of the
78413         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78414         mingw, count the number of CPUs available for the current process.
78415         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78416         Check for sched_getaffinity and sched_getaffinity_np.
78417         * modules/nproc (Depends-on): Add c-ctype, extensions.
78418         * NEWS: Mention the change.
78420 2009-11-03  Bruno Haible  <bruno@clisp.org>
78422         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78424 2009-11-03  Jim Meyering  <meyering@redhat.com>
78426         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78427         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78428         if it is defined.
78430 2009-11-02  Eric Blake  <ebb9@byu.net>
78432         mktime, timegm: share common declaration
78433         * lib/mktime-internal.h: New file.
78434         * lib/mktime.c: Use it rather than open-coding a declaration.
78435         * lib/timegm.c: Likewise.
78436         * modules/mktime (Files): Ship it.
78437         * modules/timegm (Files): Likewise.
78438         Suggested by Bruno Haible.
78440         test-update-copyright: update test to match script changes
78441         * tests/test-update-copyright.sh: Avoid hard-coding perl
78442         location.  Don't update *.bak created by earlier runs.
78444 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78445             Simon Josefsson  <simon@josefsson.org>
78446             Bruno Haible  <bruno@clisp.org>
78448         Fix link error on Solaris 8.
78449         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78450         also in libnsl. Define also INET_PTON_LIB.
78451         * modules/inet_pton (Link): New section.
78453 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78454             Bruno Haible  <bruno@clisp.org>
78456         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78457         * modules/inet_ntop (Link): New section.
78458         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78460 2009-11-02  Eric Blake  <ebb9@byu.net>
78462         maint: avoid compiler warnings in m4 macros
78463         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78466 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78468         * m4/pmccabe2html.m4: Remove file.
78469         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78470         function.  Change maintainer.
78471         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78472         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78473         Courtès).
78475 2009-10-31  Eric Blake  <ebb9@byu.net>
78477         fseeko: fix m4 regression
78478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78479         regression from 2009-10-27.
78480         Reported by Ralf Wildenhues.
78482 2009-10-31  Jim Meyering  <meyering@redhat.com>
78484         inttostr: aesthetics and improved (compile-time) safety
78485         Define inttype_is_signed rather than inttype_is_unsigned,
78486         since the sole use is via "#if inttype_is_signed".
78487         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78488         inttype_is_unsigned.
78489         * lib/offtostr.c (inttype_is_signed): Likewise.
78490         * lib/uinttostr.c (inttype_is_signed): Likewise.
78491         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78492         * lib/inttostr.c (inttostr): Use verify to cross-check the
78493         inttype_is_signed value and the signedness of the actual type.
78494         * modules/inttostr (Depends-on): Add verify.
78496 2009-10-30  Eric Blake  <ebb9@byu.net>
78498         build: avoid compiler warnings
78499         * lib/fchmodat.c (lchmod): Mark unused variables.
78500         * lib/getopt.c (_getopt_initialize): Likewise.
78501         * lib/mktime.c (__mktime_internal): Provide prototype.
78502         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78503         older gcc that do not understand #pragma GCC diagnostic.
78504         * lib/uinttostr.c (inttype_is_unsigned): Define.
78505         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78507 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78509         stat: fix compilation on AIX
78510         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78511         only see struct stat64.
78513 2009-10-30  Eric Blake  <ebb9@byu.net>
78515         exclude: make more robust
78516         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78517         rather than masking a coding bug.
78518         Suggested by Bruno Haible.
78520 2009-10-30  Jim Meyering  <meyering@redhat.com>
78522         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78523         Rather than putting #!/usr/bin/perl on the first line,
78524         start with a variant of what's recommended by "man perlrun" that
78525         invokes the first "perl" program from your shell's search path.
78526         * build-aux/gitlog-to-changelog: Replace #!... as above.
78527         Add a "Local Variables" perl mode setting.
78528         Prompted by a patch from Ludovic Courtès.
78529         Improved by Eric Blake.
78530         * build-aux/useless-if-before-free: Likewise.
78531         * build-aux/announce-gen: Likewise.
78532         * build-aux/update-copyright: Likewise.
78534 2009-10-29  Eric Blake  <ebb9@byu.net>
78536         filenamecat-lgpl: adjust clients
78537         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78538         filenamecat.
78539         * modules/renameat (Depends-on): Likewise.
78541         filenamecat: split into filenamecat-lgpl
78542         * modules/filenamecat-lgpl: New module.
78543         * modules/filenamecat (Files): Move library-safe files into
78544         filenamecat-lgpl.
78545         (Depends-on): Add filenamecat-lgpl.
78546         (configure.ac): Declare witness.
78547         * lib/filenamecat.h (file_name_concat): Only declare when using
78548         GPL module.
78549         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78550         Move...
78551         * lib/filenamecat-lgpl.c: ...into new file.
78552         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78553         (gl_FILE_NAME_CONCAT): Use it.
78554         * MODULES.html.sh (File system functions): Mention new module.
78556         argp: avoid memory leak
78557         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78558         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78559         base_name, since the latter malloc()s and can call exit().
78560         Leak introduced 2006-07-03.
78562         dirname-lgpl: adjust clients that don't need full dirname
78563         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78564         * modules/filenamecat (Depends-on): Likewise.
78565         * modules/linkat (Depends-on): Likewise.
78566         * modules/mkancesdirs (Depends-on): Likewise.
78567         * modules/mkdir (Depends-on): Likewise.
78568         * modules/openat (Depends-on): Likewise.
78569         * modules/savewd (Depends-on): Likewise.
78570         * modules/rename (Depends-on): Likewise.
78571         (License): Relax license.
78572         * modules/mkdir-tests (Depends-on): Drop progname.
78573         (Makefile.am): Delete unneeded LDADD.
78574         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78576         dirname: split into dirname-lgpl
78577         * modules/dirname-lgpl: New module.
78578         * modules/dirname (Files): Move library-safe files into
78579         dirname-lgpl.
78580         (Depends-on): Add dirname-lgpl.
78581         (configure.ac): Declare witness.
78582         * modules/double-slash-root (License): Relax license.
78583         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78584         module.
78585         * lib/dirname.c (dir_len, mdir_name): Move...
78586         * lib/dirname-lgpl.c: ...into new file.
78587         * lib/basename.c (last_component, base_len): Move...
78588         * lib/basename-lgpl.c: ...into new file.
78589         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78590         (gl_DIRNAME): Use it.
78591         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78592         Mention new module.
78593         * modules/dirname-tests (Depends-on): Add progname.
78594         * tests/test-dirname.c (program_name): Delete.
78596         mkdir: make safe for libraries
78597         * modules/mkdir (Depends-on): Drop xalloc.
78598         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78599         exit.
78601         tests: avoid some compiler warnings
78602         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78603         literals.
78604         * tests/test-memchr.c (main): Avoid type mismatch.
78605         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78606         * tests/test-base64.c (main): Likewise.
78607         * tests/test-getdelim.c (main): Likewise.
78608         * tests/test-gethostname.c (main): Likewise.
78609         * tests/test-getline.c (main): Likewise.
78610         * tests/test-netinet_in.c (main): Likewise.
78611         * tests/test-select.c (open_server_socket, main): Likewise.
78612         * tests/test-select-stdin.c (main): Likewise.
78613         * tests/test-sockets.c (main): Likewise.
78614         * tests/test-strsignal.c (main): Likewise.
78615         * tests/test-sys_select.c (main): Likewise.
78616         * tests/test-sys_socket.c (main): Likewise.
78617         * tests/test-u64.c (main): Likewise.
78618         * tests/test-xfprintf-posix.c (main): Likewise.
78619         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78621         sockets: avoid compiler warning
78622         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78624         maint: detect usage(1) and other suspicious exits
78625         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78627 2009-10-29  Jim Meyering  <meyering@redhat.com>
78629         timespec: long-to-int truncation could make timespec_cmp malfunction
78630         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78631         a multiple of 2^32 nanoseconds as no difference.
78633 2009-10-28  Jim Meyering  <meyering@redhat.com>
78635         fprintftime: wrap macro code argument in "do {...} while(0)"
78636         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78637         cpy macro must be a statement that can be followed by a semicolon.
78638         Now that the else clause contains a comment and is hence longer
78639         than one line, I require curly braces.  That in turn requires
78640         that we wrap this code block in the standard do...while(0).
78642         fprintftime: remove stray semicolon from previous change
78643         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78645         fprintftime: avoid a warning about ignored fwrite return value
78646         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78647         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78648         that is unsafe.
78649         * modules/fprintftime (Depends-on): Add ignore-value.
78651         exclude: avoid an unwarranted warning
78652         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78654 2009-10-27  Eric Blake  <ebb9@byu.net>
78656         fseek: avoid compilation failure when fflush is replaced
78657         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78658         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78659         module is in use.
78660         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78661         module is not in use; since REPLACE_FSEEK worked otherwise.
78662         (GNULIB_FTELLO): Likewise for ftell.
78663         Reported by Ian Beckwith and others.
78665 2009-10-27  Bruno Haible  <bruno@clisp.org>
78667         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78668         Reported by Jim Meyering.
78670 2009-10-27  Jim Meyering  <jim@meyering.net>
78671             Bruno Haible  <bruno@clisp.org>
78673         Avoid warning despite dropping the return value of fwrite.
78674         * lib/unicodeio.c: Include ignore-value.h.
78675         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78676         * modules/unicodeio (Depends-on): Add ignore-value.
78678 2009-10-26  Eric Blake  <ebb9@byu.net>
78680         areadlinkat: fix fallback path
78681         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78682         pointer and zero.
78684 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78686         Use a better IO block size for modern systems
78687         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78688         * lib/md2.c: Likewise.
78689         * lib/md4.c: Likewise.
78690         * lib/md5.c: Likewise.
78691         * lib/sha1.c: Likewise.
78692         * lib/sha256.c: Likewise.
78693         * lib/sha512.c: Likewise.
78695 2009-10-22  Eric Blake  <ebb9@byu.net>
78697         tests: avoid several compiler warnings
78698         * tests/test-getcwd.c (main): Avoid buffer underflow.
78699         * tests/test-getdate.c (main): String literals are not safe with
78700         putenv, so use setenv.  Declare unused argument.
78701         * modules/getdate-tests (Depends-on): Add setenv.
78702         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78703         problems with string literals in char *.
78704         * tests/test-hash.c (main): Avoid shadowing declaration.
78705         (insert_new): Treat string literals as char const *.
78706         * tests/test-getopt.h (test_getopt): Likewise.
78707         (getopt_loop): Alter types to minimize casting elsewhere.
78708         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78709         (test_getopt_long_posix): Likewise.
78710         (do_getopt_long): Add wrapper to minimize casting.
78711         * tests/test-atexit.c (clear_temp_file): Use void.
78712         * tests/test-areadlink-with-size.c (main): Declare unused
78713         arguments.
78714         * tests/test-areadlink.c (main): Likewise.
78715         * tests/test-areadlinkat-with-size.c (main): Likewise.
78716         * tests/test-areadlinkat.c (main): Likewise.
78717         * tests/test-canonicalize-lgpl.c (main): Likewise.
78718         * tests/test-canonicalize.c (main): Likewise.
78719         * tests/test-dirent-safer.c (main): Likewise.
78720         * tests/test-dirname.c (main): Likewise.
78721         * tests/test-dup2.c (main): Likewise.
78722         * tests/test-fchdir.c (main): Likewise.
78723         * tests/test-fcntl-h.c (main): Likewise.
78724         * tests/test-fcntl-safer.c (main): Likewise.
78725         * tests/test-fdopendir.c (main): Likewise.
78726         * tests/test-fdutimensat.c (main): Likewise.
78727         * tests/test-fflush.c (main): Likewise.
78728         * tests/test-filenamecat.c (main): Likewise.
78729         * tests/test-filevercmp.c (main): Likewise.
78730         * tests/test-fopen-safer.c (main): Likewise.
78731         * tests/test-fopen.c (main): Likewise.
78732         * tests/test-fpending.c (main): Likewise.
78733         * tests/test-fpurge.c (main): Likewise.
78734         * tests/test-freading.c (main): Likewise.
78735         * tests/test-fstatat.c (main): Likewise.
78736         * tests/test-fsync.c (main): Likewise.
78737         * tests/test-futimens.c (main): Likewise.
78738         * tests/test-getndelim2.c (main): Likewise.
78739         * tests/test-gettimeofday.c (main): Likewise.
78740         * tests/test-getopt.c (main): Likewise.
78741         * tests/test-i-ring.c (main): Likewise.
78742         * tests/test-inttypes.c (main): Likewise.
78743         * tests/test-link.c (main): Likewise.
78744         * tests/test-lstat.c (main): Likewise.
78745         * tests/test-math.c (main): Likewise.
78746         * tests/test-md5.c (main): Likewise.
78747         * tests/test-memchr2.c (main): Likewise.
78748         * tests/test-memrchr.c (main): Likewise.
78749         * tests/test-mkdir.c (main): Likewise.
78750         * tests/test-mkdirat.c (main): Likewise.
78751         * tests/test-mkfifoat.c (main): Likewise.
78752         * tests/test-open.c (main): Likewise.
78753         * tests/test-openat-safer.c (main): Likewise.
78754         * tests/test-openat.c (main): Likewise.
78755         * tests/test-quotearg.c (main): Likewise.
78756         * tests/test-rawmemchr.c (main): Likewise.
78757         * tests/test-readlink.c (main): Likewise.
78758         * tests/test-remove.c (main): Likewise.
78759         * tests/test-rename.c (main): Likewise.
78760         * tests/test-renameat.c (main): Likewise.
78761         * tests/test-rmdir.c (main): Likewise.
78762         * tests/test-sha1.c (main): Likewise.
78763         * tests/test-signal.c (main): Likewise.
78764         * tests/test-sigaction.c (main): Likewise.
78765         * tests/test-stat.c (main): Likewise.
78766         * tests/test-stat-time.c (main): Likewise.
78767         * tests/test-stddef.c (main): Likewise.
78768         * tests/test-stdint.c (main): Likewise.
78769         * tests/test-stdio.c (main): Likewise.
78770         * tests/test-stdlib.c (main): Likewise.
78771         * tests/test-strchrnul.c (main): Likewise.
78772         * tests/test-strerror.c (main): Likewise.
78773         * tests/test-string.c (main): Likewise.
78774         * tests/test-strtod.c (main): Likewise.
78775         * tests/test-strverscmp.c (main): Likewise.
78776         * tests/test-symlink.c (main): Likewise.
78777         * tests/test-symlinkat.c (main): Likewise.
78778         * tests/test-sys_stat.c (main): Likewise.
78779         * tests/test-sys_time.c (main): Likewise.
78780         * tests/test-time.c (main): Likewise.
78781         * tests/test-unistd.c (main): Likewise.
78782         * tests/test-unlink.c (main): Likewise.
78783         * tests/test-unlinkat.c (main): Likewise.
78784         * tests/test-utimens.c (main): Likewise.
78785         * tests/test-utimensat.c (main): Likewise.
78786         * tests/test-version-etc.c (main): Likewise.
78787         * tests/test-wchar.c (main): Likewise.
78788         * tests/test-wctype.c (main): Likewise.
78789         * tests/test-xprintf-posix.c (main): Likewise.
78790         * tests/test-posixtm.c (main): Likewise.
78791         (STREQ): Delete unused macro.
78792         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78793         shadowed variables.
78794         * tests/test-memchr.c (main): Likewise.
78796 2009-10-21  Eric Blake  <ebb9@byu.net>
78798         areadlinkat: avoid failure on older glibc
78799         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78800         rather than mis-comparing 0 against FUNC_RESULT of char*.
78802 2009-10-21  Bruno Haible  <bruno@clisp.org>
78804         * modules/stpncpy (License): Relicense under LGPLv2+.
78805         Reported by David Lutterkort <lutter@redhat.com>.
78807 2009-10-20  Eric Blake  <ebb9@byu.net>
78809         utimensat: work around Solaris 9 bug
78810         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78811         has trailing slash bugs.
78812         * tests/test-lutimens.h (test_lutimens): Enhance test.
78813         * tests/test-utimens.h (test_utimens): Likewise.
78814         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78815         * doc/posix-functions/utimes.texi (utimes): Likewise.
78816         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78817         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78818         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78819         * doc/posix-functions/futimens.texi (futimens): Likewise.
78821         fdutimensat: new module
78822         * modules/fdutimensat: New file.
78823         * lib/fdutimensat.c (fdutimensat): Likewise.
78824         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78825         * MODULES.html.sh (File system functions): Mention module.
78826         * modules/fdutimensat-tests: New test.
78827         * tests/test-fdutimensat.c: Likewise.
78829         doc: regenerate INSTALL
78830         * doc/INSTALL: Reflect recent autoconf update.
78831         * doc/INSTALL.ISO: Likewise.
78832         * doc/INSTALL.UTF-8: Likewise.
78834 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78836         acl: warn if ACL support is not detected
78837         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78839 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78841         * lib/nproc.h: Add extern "C" block for C++.
78843 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78844             Bruno Haible  <bruno@clisp.org>
78846         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78847         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78848         * doc/posix-functions/isalpha.texi: Likewise.
78849         * doc/posix-functions/isblank.texi: Likewise.
78850         * doc/posix-functions/iscntrl.texi: Likewise.
78851         * doc/posix-functions/isdigit.texi: Likewise.
78852         * doc/posix-functions/isgraph.texi: Likewise.
78853         * doc/posix-functions/islower.texi: Likewise.
78854         * doc/posix-functions/isprint.texi: Likewise.
78855         * doc/posix-functions/ispunct.texi: Likewise.
78856         * doc/posix-functions/isspace.texi: Likewise.
78857         * doc/posix-functions/isupper.texi: Likewise.
78858         * doc/posix-functions/isxdigit.texi: Likewise.
78860 2009-10-18  Bruno Haible  <bruno@clisp.org>
78862         Tests for module 'isblank'.
78863         * modules/isblank-tests: New file.
78864         * tests/test-isblank.c: New file.
78866         New module 'isblank'.
78867         * lib/isblank.c: New file.
78868         * m4/isblank.m4: New file.
78869         * modules/isblank: New file.
78870         * doc/posix-functions/isblank.texi: Mention the new module.
78872 2009-10-18  Bruno Haible  <bruno@clisp.org>
78874         New module 'ctype'.
78875         * lib/ctype.in.h: New file.
78876         * m4/ctype.m4: New file.
78877         * modules/ctype: New file.
78878         * doc/posix-headers/ctype.texi: Mention the new module.
78880 2009-10-18  Jim Meyering  <meyering@redhat.com>
78882         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78883         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78884         right after its initialization, rather than farther down.
78885         Keeping these in close proximity makes it easier to ensure
78886         that each such variable is initialized.  E.g.,
78888             LIB_CLOCK_GETTIME=
78889             AC_SUBST([LIB_CLOCK_GETTIME])
78891         This change also increments these serial numbers.
78892         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78893         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78896 2009-10-18  Bruno Haible  <bruno@clisp.org>
78898         Don't let environment variables perturb build.
78899         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78900         (gl_PREREQ_GETHRXTIME): ... not here.
78902 2009-10-18  Bruno Haible  <bruno@clisp.org>
78904         Avoid symlink attack in localcharset module.
78905         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78906         (O_NOFOLLOW): Define fallback.
78907         (get_charset_aliases): Don't open the file if it is a symbolic link.
78908         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78909         gl_FCNTL_H.
78910         (gl_FCNTL_H): Require it.
78911         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78912         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78913         Reported by Fergal Glynn <fglynn@veracode.com>.
78915 2009-10-18  Bruno Haible  <bruno@clisp.org>
78917         Implement nproc for mingw.
78918         * lib/nproc.c: Include <windows.h>
78919         (num_processors): On native Windows platforms, try GetSystemInfo.
78921 2009-10-18  Bruno Haible  <bruno@clisp.org>
78923         Implement nproc for IRIX.
78924         * lib/nproc.c: Include <sys/sysmp.h>.
78925         (num_processors): On IRIX systems, try sysmp.
78926         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78928 2009-10-18  Bruno Haible  <bruno@clisp.org>
78930         Implement nproc for HP-UX.
78931         * lib/nproc.c: Include <sys/pstat.h>
78932         (num_processors): On HP-UX systems, try pstat_getdynamic.
78933         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78934         pstat_getdynamic.
78936 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78937             Bruno Haible  <bruno@clisp.org>
78939         Implement nproc for NetBSD, OpenBSD.
78940         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78941         (ARRAY_SIZE): New macro.
78942         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78943         * m4/nproc.m4: New file.
78944         * modules/nproc (Files): Add m4/nproc.m4.
78945         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78946         (Makefile.am): Instead, augment lib_SOURCES.
78948 2009-10-18  Bruno Haible  <bruno@clisp.org>
78950         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78951         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78952         sys/param.h.
78954 2009-10-16  Eric Blake  <ebb9@byu.net>
78956         utimensat: new module
78957         * modules/utimensat: New file.
78958         * lib/utimensat.c (utimensat): Likewise.
78959         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78960         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78961         so we can work around Linux bugs.
78962         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78963         * modules/sys_stat (Makefile.am): Substitute them.
78964         * lib/sys_stat.in.h (utimensat): Declare it.
78965         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78966         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78967         * modules/utimensat-tests: New test.
78968         * tests/test-utimensat.c: Likewise.
78970         utimens: let lutimens work on non-symlinks
78971         * lib/utimens.c (lutimens): Fall back to utimens rather than
78972         failing with ENOSYS, when file is not a symlink.
78973         (utimens): Reduce redirection.
78974         * tests/test-lutimens.h (test_lutimens): Update test to cover
78975         non-symlinks.
78976         * tests/test-utimens.h (test_utimens): Update test to cover
78977         symlinks.
78978         * tests/test-utimens.c (main): Update caller.
78980         utimens: cache whether utimensat syscall works
78981         * lib/utimens.c (utimensat_works_really): New cache variable.
78982         (fdutimens, lutimens): Use it to avoid failing syscall.
78984         test-stat-time, test-utimens: improve portability
78985         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78986         ext4 on alpha, and for cygwin.
78987         * tests/test-utimens-common.h: New file.
78988         (nap): Factor delays into single function.
78989         * tests/test-lutimens.h (test_lutimens): Use new header.
78990         * tests/test-futimens.h (test_futimens): Likewise.
78991         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78992         timestamps to occur from same machine, as was done previously for
78993         test_utimens.
78994         * modules/utimens-tests (Files): Ship new file.
78995         * modules/futimens-tests (Files): Likewise.
78996         Reported in part by Jim Meyering.
78998         sys_stat: sort replacement declarations
78999         * lib/sys_stat.in.h: Sort declarations.
79000         * lib/futimens.c (futimens): Fix typo.
79002 2009-10-15  Jim Meyering  <meyering@redhat.com>
79004         don't let environment settings perturb build
79005         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79006         could cause a configure-time and/or build-time malfunction.
79007         Typically, a configure-time function-in-library test is performed
79008         via code like this:
79010           LIB_VAR=
79011           AC_SUBST([LIB_VAR])
79012           prefix_saved_LIBS=$LIBS
79013             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79014                        [test "$ac_cv_search_FUNC" = "none required" ||
79015                         LIB_VAR=$ac_cv_search_FUNC])
79016           LIBS=$prefix_saved_LIBS
79018         However, in each of the files affected by this change, the LIB_VAR=
79019         initialization was omitted.  Thus, when set in the environment, its
79020         value would propagate into generated Makefiles when FUNC is not found
79021         in LIB_NAME.
79022         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79023         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79026 2009-10-14  Eric Blake  <ebb9@byu.net>
79028         fchdir: avoid infinite recursion in mingw
79029         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79030         recursing.
79032         test-stat-time: port to mingw
79033         * tests/test-stat-time.c (force_unlink): Return a value.
79034         (test_ctime) [W32]: Fix compilation error.
79035         (nap): Don't call usleep with too large an argument.  Use
79036         force_unlink.
79037         * doc/pastposix-functions/usleep.texi (usleep): Document the
79038         portability issue.
79040 2009-10-13  Jim Meyering  <meyering@redhat.com>
79042         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79043         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79044         * modules/pipe-filter-ii: Likewise.
79045         * modules/sys_socket-tests: Likewise.
79046         * modules/tsearch-tests: Likewise.
79047         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79048         (check): Depend on it.
79050 2009-10-12  Eric Blake  <ebb9@byu.net>
79052         utimens-tests: port to NFS file systems
79053         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79054         comparisons to avoid spurious failures from timestamp drift
79055         between NFS machines.
79057 2009-10-12  Eric Blake  <ebb9@byu.net>
79059         stat-time-tests: minor cleanups
79060         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79061         * tests/test-stat-time.c (nap): Separate assignment from call.
79062         Suggested by Paolo Bonzini and Bruno Haible.
79064         sys_stat: guarantee struct timespec
79065         * lib/sys_stat.in.h (includes): Always include <time.h>
79066         * modules/sys_stat (Depends-on): Add time.
79067         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79068         mode_t permission values.
79069         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79070         get at subsecond timestamps.
79072 2009-10-10  Eric Blake  <ebb9@byu.net>
79074         futimens: new module
79075         * modules/futimens: New file.
79076         * lib/futimens.c (futimens): Likewise.
79077         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79078         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79079         we can work around Linux bugs.
79080         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79081         * modules/sys_stat (Makefile.am): Substitute them.
79082         * lib/sys_stat.in.h (futimens): Declare it.
79083         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79084         * doc/posix-functions/futimens.texi (futimens): Likewise.
79085         * modules/futimens-tests: New test.
79086         * tests/test-futimens.c: Likewise.
79088         utimens: introduce fdutimens
79089         * lib/utimens.h (fdutimens): New prototype.
79090         * lib/utimens.c (gl_futimens): Move guts...
79091         (fdutimens): ...to new interface.
79092         * tests/test-utimens.c (do_fdutimens): Use it.
79094         utimens: add UTIME_NOW and UTIME_OMIT support
79095         * lib/utimens.c (validate_timespec, update_timespec): New helper
79096         functions.
79097         (gl_futimens, lutimens): Use them.
79098         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79099         stdbool, sys_stat.
79100         (Link): Mention resulting library dependency.
79101         * modules/utimecmp (Link): Likewise.
79102         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79103         (Makefile.am): Pick up library dependency.
79104         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79105         definition.
79106         * tests/test-sys_stat.c: Test the definitions.
79107         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79108         * NEWS: Document library dependency.
79110         utimecmp: support symlink timestamps
79111         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79112         hashing when possible.  Use pathconf when available.
79113         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79114         * modules/utimecmp (Depends-on): Add lstat.
79116         utimens: add lutimens interface
79117         * lib/utimens.c (lutimens): New function.
79118         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79119         * lib/utimens.h (lutimens): Declare new interface.
79120         * tests/test-utimens.c (main): Enhance test.
79121         * tests/test-lutimens.h (test_lutimens): New file.
79122         * modules/utimens-tests (Files): Distribute it.
79123         (Depends-on): Add symlink.
79124         (configure.ac): Check for usleep.
79126         utimens: validate futimens usage
79127         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79128         fewer syscalls on failure later on.  Avoid compiler warning on
79129         mingw.
79130         * modules/utimens (Depends-on): Add dup2.
79132         utimens: add test
79133         * modules/utimens-tests: New test.
79134         * tests/test-utimens.h: New file.
79135         * tests/test-futimens.h: Likewise.
79136         * tests/test-utimens.c: Likewise.
79138         doc: mention timestamp portability issues
79139         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79140         instead.
79141         * doc/posix-functions/utime.texi (utime): Likewise.
79142         * doc/posix-functions/utimes.texi (utimes): Likewise.
79143         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79144         instead.
79145         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79146         module.
79147         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79148         Mention weakness with symlink timestamps.
79149         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79150         to utimensat/futimens instead.
79151         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79153         test-dup2: enhance test
79154         * tests/test-dup2.c (main): Also check AT_FDCWD.
79156         test-stat-time: avoid more spurious failures
79157         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79158         xfs; and avoid race if the two timestamps cross quantization edge.
79160         relocatable: prefer 'file system' over 'filesystem'
79161         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79162         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79163         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79164         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79165         * lib/relocatable.c (compute_curr_prefix): Likewise.
79167 2009-10-10  Jim Meyering  <meyering@redhat.com>
79169         stat-time-tests: check for the usleep function
79170         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79172 2009-10-10  Bruno Haible  <bruno@clisp.org>
79174         * modules/xnanosleep: Put the Link section after the Include section.
79176 2009-10-09  Eric Blake  <ebb9@byu.net>
79178         dup2: work around FreeBSD 6.1 bug
79179         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79180         * doc/posix-functions/dup2.texi (dup2): Document it.
79181         Reported by Nelson H. F. Beebe and Jim Meyering.
79183         test-stat-time: port to buggy NFS clients
79184         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79185         (test_ctime): Also skip test if mtime and ctime are skewed.
79187         maint: prefer 'file system' over 'filesystem'
79188         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79189         * doc/posix-functions/lstat.texi (lstat): Likewise.
79190         * lib/file-has-acl.c (file_has_acl): Likewise.
79191         * lib/fwriteerror.c [TEST]: Likewise.
79192         * tests/test-areadlink.h (test_areadlink): Likewise.
79193         * tests/test-areadlinkat-with-size.c (main): Likewise.
79194         * tests/test-areadlinkat.c (main): Likewise.
79195         * tests/test-canonicalize-lgpl.c (main): Likewise.
79196         * tests/test-canonicalize.c (main): Likewise.
79197         * tests/test-fstatat.c (main): Likewise.
79198         * tests/test-linkat.c (main): Likewise.
79199         * tests/test-lstat.h (test_lstat_func): Likewise.
79200         * tests/test-mkdir.h (test_mkdir): Likewise.
79201         * tests/test-readlink.h (test_readlink): Likewise.
79202         * tests/test-remove.c (main): Likewise.
79203         * tests/test-rename.h (test_rename): Likewise.
79204         * tests/test-renameat.c (main): Likewise.
79205         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79206         * tests/test-symlink.h (test_symlink): Likewise.
79207         * tests/test-symlinkat.c (main): Likewise.
79208         * tests/test-unlink.h (test_unlink_func): Likewise.
79209         * tests/test-unlinkat.c (main): Likewise.
79211         maint: make realtime library usage explicit
79212         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79213         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79214         * modules/settime (Link): Likewise.
79215         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79217         test-stat-time: speed up execution
79218         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79219         warning on mingw.
79220         (nap): New helper function.
79221         (prepare_test): Use it to reduce sleep time.
79222         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79223         execution.
79224         * modules/stat-time-tests (configure.ac): Check for usleep.
79226 2009-10-09  Jim Meyering  <meyering@redhat.com>
79228         selinux-h: always use getfilecon wrappers
79229         * lib/getfilecon.c: New file.
79230         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79231         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79232         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79233         (fgetfilecon): Provide a stub.
79234         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79235         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79236         file unconditionally.
79237         When <selinux/selinux.h> is found, arrange to use wrappers.
79238         * modules/selinux-h (Files): Add getfilecon.c.
79239         (Makefile.am): Substitute include-next-related bits
79240         into the now-always-generated selinux/selinux.h file.
79241         * doc/glibc-functions/lgetfilecon.texi: New file.
79242         * doc/glibc-functions/fgetfilecon.texi: New file.
79243         * doc/glibc-functions/getfilecon.texi: New file.
79244         * doc/glibc-functions/getfilecon-desc.texi: New file.
79245         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79246         which to pull in the new files.
79247         * MODULES.html.sh (Misc): Add selinux-h.
79249 2009-10-08  Jim Meyering  <meyering@redhat.com>
79251         unistd: fix comment typo
79252         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79254 2009-10-08  Eric Blake  <ebb9@byu.net>
79256         areadlink: use SIZE_MAX consistently
79257         * modules/areadlink (Depends-on): Add stdint.
79258         * modules/areadlink-with-size (Depends-on): Likewise.
79259         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79260         gives NULL; drop sys/types, since unistd gives size_t; and add
79261         stdint for SIZE_MAX.
79262         (SIZE_MAX): Rely on headers.
79263         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79264         and add stdint.
79265         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79266         (SIZE_MAX): Likewise.
79267         (INITIAL_BUF_SIZE): Turn into enum.
79268         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79270 2009-10-08  Jim Meyering  <meyering@redhat.com>
79272         areadlinkat: avoid compilation failure
79273         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79274         Fix typo in comment.
79276 2009-10-07  Eric Blake  <ebb9@byu.net>
79278         areadlinkat-with-size: new module
79279         * modules/areadlinkat-with-size: New module.
79280         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79281         * lib/areadlink.h (areadlinkat): Declare it.
79282         * MODULES.html.sh (File system functions): Mention it.
79283         * modules/areadlinkat-with-size-tests: New test.
79284         * tests/test-areadlinkat-with-size.c: New file.
79286         xreadlinkat: new module
79287         * modules/xreadlinkat: New module.
79288         * lib/xreadlinkat.c (xreadlinkat): New file.
79289         * lib/xreadlink.h (xreadlinkat): Declare it.
79290         * MODULES.html.sh (File system functions): Mention it.
79292         areadlinkat: new module
79293         * lib/at-func.c (FUNC_FAIL): New define.
79294         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79295         * modules/areadlinkat: New module.
79296         * lib/linkat.c (areadlinkat): Move...
79297         * lib/areadlinkat.c (areadlinkat): ...to new file.
79298         * lib/areadlink.h (areadlinkat): Declare it.
79299         * modules/linkat (Depends-on): Add areadlinkat.
79300         * MODULES.html.sh (File system functions): Mention it.
79301         * modules/areadlinkat-tests: New test.
79302         * tests/test-areadlinkat.c: New file.
79304         areadlink, areadlink-with-size: add tests
79305         * modules/areadlink-tests: New test.
79306         * modules/areadlink-with-size-tests: Likewise.
79307         * tests/test-areadlink.h: New file.
79308         * tests/test-areadlink.c: Likewise.
79309         * tests/test-areadlink-with-size.c: Likewise.
79311         maint: minor cleanups
79312         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79313         _UNUSED_PARAMETER_ instead.
79314         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79315         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79316         * modules/linkat-tests (Files): Distribute test-link.h.
79318         openat, utimens: whitespace cleanup
79319         * lib/openat.c: Prefer space throughout, rather than mix of 8
79320         spaces vs. tabs.
79321         * lib/at-func.c: Likewise.
79322         * lib/utimens.c: Likewise.
79324         openat: avoid using wrong fd
79325         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79326         working directory chooses same fd.
79327         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79329         mkdir, mkdirat: fix cygwin 1.5.x bug
79330         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79331         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79332         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79333         bug.
79334         (gl_PREREQ_MKDIR): Delete unused macro.
79335         * modules/mkdir (Files): Track file rename.
79336         (configure.ac): Update macro name.
79337         * modules/openat (Depends-on): Add mkdir.
79338         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79340         mkdir, mkdirat: add tests
79341         * modules/mkdir-tests: New test.
79342         * tests/test-mkdir.h: New file.
79343         * tests/test-mkdir.c: Likewise.
79344         * tests/test-mkdirat.c: Likewise.
79345         * modules/openat-tests (Files): Add new files.
79346         (Makefile.am): Run new test.
79348 2009-10-06  Eric Blake  <ebb9@byu.net>
79350         doc: tweak *at function documentation
79351         * doc/posix-functions/faccessat.texi (faccessat): Mention
79352         known issue with replacement.
79353         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79354         * doc/posix-functions/linkat.texi (linkat): Likewise.
79355         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79356         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79357         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79358         * doc/posix-functions/renameat.texi (renameat): Likewise.
79359         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79361         openat: fix GNU/Hurd bug in unlinkat
79362         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79363         broken.
79364         * doc/posix-functions/unlink.texi (unlink): Document this.
79365         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79367         fdopendir: fix GNU/Hurd bug
79368         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79369         allowing non-directory fds.
79370         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79371         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79372         * modules/dirent (Makefile.am): Substitute it.
79373         * lib/dirent.in.h (fdopendir): Declare replacement.
79374         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79375         * tests/test-fdopendir.c (main): Test something other than
79376         /dev/null, since on Hurd that behaves like a directory.
79378         test-symlink: port to GNU/Hurd
79379         * tests/test-symlink.h (test_symlink): Relax expected errno.
79381         doc: tweak more cygwin information
79382         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79383         now compatible with glibc.
79384         * doc/posix-functions/getopt.texi (getopt): Likewise.
79386         getopt-gnu: add another test
79387         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79388         guarantee behavior relied on by m4.
79389         * tests/test-getopt.c (main): Use it.
79390         * modules/getopt-posix-tests (Depends-on): Add setenv.
79391         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79393         getopt: fix compilation on darwin
79394         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79395         include.
79396         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79397         Reported by Ludovic Courtès.
79399 2009-10-06  Bruno Haible  <bruno@clisp.org>
79401         * modules/size_max (Description): Discourage its use.
79402         Reported by Simon Josefsson.
79404 2009-10-06  Jim Meyering  <meyering@redhat.com>
79406         linkat: avoid compilation failure
79407         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79409 2009-10-05  Eric Blake  <ebb9@byu.net>
79411         linkat: support Linux 2.6.17
79412         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79413         linkat on Linux, but allow cache variable override.
79414         * lib/linkat.c (rpl_linkat): Define override.
79415         * modules/linkat (Depends-on): Add symlinkat.
79416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79417         * modules/unistd (Makefile.am): Substitute it.
79418         * lib/unistd.in.h (linkat): Declare replacement.
79419         Reported by Pádraig Brady.
79421         quotearg: port test to systems with C.UTF-8 locale
79422         * tests/test-quotearg.c (struct result_strings): Add another
79423         member, differentiating between C.ASCII and C.UTF-8 handling.
79424         (compare_strings): Add parameter.
79425         (main): Adjust all callers.
79427         getopt: avoid clash with FreeBSD _getopt_internal
79428         * lib/getopt.in.h (_getopt_internal): Override the name.
79429         * lib/getopt_int.h (includes): Pick up any overrides.
79430         Reported by Reuben Thomas.
79432         hash: allow C89 compilation
79433         * lib/hash.c (check_tuning): Move declaration before statement.
79434         Reported by Reuben Thomas.
79436 2009-10-05  Karl Berry  <karl@gnu.org>
79438         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79440 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79441             Bruno Haible  <bruno@clisp.org>
79443         * lib/uname.c (uname): Use a table-driven algorithm to compute
79444         Windows NT versions.
79446 2009-10-04  Bruno Haible  <bruno@clisp.org>
79448         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79449         program_invocation_short_name.
79450         * modules/progname (configure.ac): Test for presence of
79451         program_invocation_short_name.
79452         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79454 2009-10-04  Bruno Haible  <bruno@clisp.org>
79456         * lib/progname.c (set_program_name): Fix comment.
79457         Reported by Jim Meyering.
79459 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79460             Bruno Haible  <bruno@clisp.org>
79462         * lib/uname.c: Include <string.h>.
79463         (uname): Do only one call to GetVersionEx in the common case.
79465 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79466             Bruno Haible  <bruno@clisp.org>
79468         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79469         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79470         (uname): Add support for Windows CE and various non-x86 CPU types.
79472 2009-10-03  Bruno Haible  <bruno@clisp.org>
79474         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79475         invocation to tests/configure.ac.
79476         Reported by Ian Beckwith <ianb@erislabs.net>.
79478 2009-10-02  Eric Blake  <ebb9@byu.net>
79480         fchdir: avoid compiler warning
79481         * lib/fchdir.c (canonicalize_file_name)
79482         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79484         test-open: support mingw errno values
79485         * tests/test-open.h (test_open): Relax test.
79486         * tests/test-fopen.h (test_fopen): Likewise.
79487         * tests/test-openat-safer.c (main): Likewise.
79489         open: fix opening directory on mingw
79490         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79492         test-open: on GNU/Hurd, /dev/null is a directory
79493         * tests/test-fopen.h (main): Rename...
79494         (test_fopen): ...to this.  Use a guaranteed non-directory when
79495         confirming open behavior on trailing slash.
79496         * tests/test-openat-safer.c (main): Likewise.
79497         * tests/test-open.h (main): Likewise....
79498         (test_open): ...to this.
79499         * tests/test-fopen.c (main): Adjust caller.
79500         * tests/test-fopen-safer.c (main): Likewise.
79501         * tests/test-open.c (main): Likewise.
79502         * tests/test-fcntl-safer.c (main): Likewise.
79503         Reported by Samuel Thibault.
79505         rename, fchdir: don't ignore chdir failure
79506         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79507         * lib/rename.c (rpl_rename) [W32]: Likewise.
79508         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79509         an empty destination directory if source cannot be renamed,
79510         although there is still possibility for failure.
79511         * doc/posix-functions/rename.texi (rename): Document the race.
79512         Reported by Jim Meyering.
79514         maint: cleanup whitespace in recent commits
79515         * lib/rename.c (rpl_rename): Remove tabs.
79516         * tests/test-link.h (test_link): Likewise.
79517         * lib/fchdir.c (get_name): Likewise.
79518         Reported by Jim Meyering.
79520 2009-10-02  Ben Pfaff  <blp@gnu.org>
79522         relocatable-prog-wrapper: Add missing dependency on
79523         double-slash-root.
79524         * modules/relocatable-prog-wrapper: Add dependency.
79525         Reported by Ian Beckwith <ianb@erislabs.net>.
79527 2009-10-02  Eric Blake  <ebb9@byu.net>
79529         renameat: fix Solaris bugs
79530         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79531         needed fixing.
79532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79533         * modules/stdio (Makefile.am): Substitute it.
79534         * lib/stdio.in.h (renameat): Declare replacement.
79535         * lib/renameat.c (rpl_renameat): Implement fix.
79537         renameat: new module
79538         * modules/renameat: New file.
79539         * lib/renameat.c (renameat): Likewise.
79540         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79542         * modules/stdio (Makefile.am): Substitute them.
79543         * lib/stdio.in.h (renameat): Declare it.
79544         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79545         * doc/posix-functions/renameat.texi (renameat): Likewise.
79546         * modules/renameat-tests: New test.
79547         * tests/test-renameat.c: Likewise.
79549         rename: fix mingw bugs
79550         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79551         directory overwrite bugs.
79553         rename: fix another cygwin 1.5 bug
79554         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79555         checks.
79556         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79557         unnecessary cygwin workarounds.  Also work around bug with moving
79558         full directory onto an empty one.
79559         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79561         rename-dest-slash: merge into rename module
79562         * modules/rename-dest-slash (Status): Mark obsolete.
79563         (Depends-on): Add rename.
79564         (Files): Let rename do it all.
79565         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79566         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79567         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79568         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79569         * lib/rename.c (rpl_rename): Update comments.
79571         rename: fix cygwin 1.5.x bugs
79572         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79573         * lib/rename.c (rpl_rename): Work around them.
79574         * modules/rename (Depends-on): Add same-inode.
79576         rename: fix Solaris 10 bug
79577         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79578         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79579         was the only bug.
79581         rename: fix Solaris 9 bug
79582         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79583         on non-directory.  Avoid calling exit.
79584         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79585         strdup.
79586         * modules/rename-tests (Depends-on): Drop lstat.
79587         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79588         (gl_PREREQ_RENAME): Delete unused macro.
79590         rename-dest-slash: fix NetBSD bug
79591         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79592         links.
79593         * modules/rename-dest-slash (Depends-on): Add same-inode.
79595         rename-tests: new test, exposes several platform bugs
79596         * modules/rename-tests: New file.
79597         * tests/test-rename.h: Likewise.
79598         * tests/test-rename.c: Likewise.
79599         * doc/posix-functions/rename.texi (rename): Improve documentation,
79600         including bugs that will eventually be fixed in gnulib.
79602 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79604         * lib/uname.c: Include <stdlib.h>
79605         (uname): Assume version info is available.
79607 2009-10-02  Jim Meyering  <meyering@redhat.com>
79609         gnu-web-doc-update: correct --help output
79610         * build-aux/gnu-web-doc-update: Make --help output relevant.
79612         gnu-web-doc-update: add standard options
79613         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79615         gnu-web-doc-update: New module.
79616         Use this script to automatically update the on-line web documentation
79617         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79618         * modules/gnu-web-doc-update: New file, from coreutils.
79619         * build-aux/gnu-web-doc-update: New script.
79621 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79623         link: LoadLibrary is not needed.
79624         * lib/link.c: Use GetModuleHandle.
79626 2009-10-01  Eric Blake  <ebb9@byu.net>
79628         getopt: bump serial number
79629         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79630         change.
79632         tests: tighten link, rmdir, and remove tests
79633         * tests/test-link.h (includes): No need to use <config.h> here.
79634         Clean up if directory hard link was created, otherwise test for
79635         trailing '.'.
79636         * tests/test-linkat.c (main): Simplify.
79637         * tests/test-remove.c (main): Enhance test for trailing '.'.
79638         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79640 2009-10-01  Jim Meyering  <meyering@redhat.com>
79642         maint.mk: requiring "make major" was annoying, for a "minor" release.
79643         What is intended is "stable", to contrast with alpha and beta,
79644         so require "make stable", not "make major".
79645         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79646         (get_tool_versions): Likewise.
79647         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79649 2009-09-30  Ben Pfaff  <blp@gnu.org>
79651         Fix broken build of replacement for Windows tmpfile().
79652         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79653         flags argument added along with the 'mkostemp' module.
79655 2009-09-28  Bruno Haible  <bruno@clisp.org>
79657         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79658         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79659         to 'remove_elt'.
79660         (gl_list_remove): Update.
79661         * lib/gl_list.c (gl_list_remove): Update.
79662         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79663         to 'remove_elt'.
79664         (gl_oset_remove): Update.
79665         * lib/gl_list.c (gl_oset_remove): Update.
79666         Reported by Eric Blake.
79668 2009-09-28  Eric Blake  <ebb9@byu.net>
79670         doc: mention yet more cygwin 1.7 status
79671         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79672         cygwin.
79673         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79674         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79676         argp: fix test failure
79677         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79678         that are not upper-case.  Pass correct range to tolower.
79680 2009-09-27  Jim Meyering  <meyering@redhat.com>
79682         test-yesno: work around sparc-dash here-document infelicity
79683         Without this change, the literal \177 byte in a here document
79684         would make dash 0.5.5.1-3 access uninitialized memory.
79685         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79686         Instead, use a marker, "@", and filter through tr to create the desired
79687         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79689 2009-09-27  Bruno Haible  <bruno@clisp.org>
79691         Disable untested support for new flavours of ACLs on AIX.
79692         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79693         progress.
79694         * lib/set-mode-acl.c (qset_acl): Likewise.
79696 2008-12-07  Bruno Haible  <bruno@clisp.org>
79698         Add support for new flavours of ACLs on AIX. (Untested.)
79699         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79700         (file_has_acl): Add support for newer AIX.
79701         * lib/set-mode-acl.c (qset_acl): Likewise.
79702         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79703         Rainer Tammer <tammer@tammer.net>.
79705 2009-09-26  Eric Blake  <ebb9@byu.net>
79707         argp: fix compilation of getopt
79708         * lib/getopt.in.h (includes): Use different guard than glibc.
79709         Reported by Sergey Poznyakoff.
79711         doc: mention more cygwin 1.7 status
79712         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79713         bug.
79714         * doc/posix-functions/execl.texi (execl): Likewise.
79715         * doc/posix-functions/execle.texi (execle): Likewise.
79716         * doc/posix-functions/execlp.texi (execlp): Likewise.
79717         * doc/posix-functions/execv.texi (execv): Likewise.
79718         * doc/posix-functions/execve.texi (execve): Likewise.
79719         * doc/posix-functions/execvp.texi (execvp): Likewise.
79720         * doc/glibc-functions/canonicalize_file_name.texi
79721         (canonicalize_file_name): Cygwin 1.7 now provides this.
79722         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79723         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79724         on AT_SYMLINK_NOFOLLOW.
79726 2009-09-24  Eric Blake  <ebb9@byu.net>
79728         test-linkat: make test more robust
79729         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79731         getopt: fix inclusion guards for cygwin
79732         * modules/getopt-posix (Depends-on): Add include-next.
79733         (Makefile.am): Substitute more items in replacement header.
79734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79735         <getopt.h>.
79736         * lib/getopt.in.h (includes): Use split inclusion guard, and
79737         prefer <getopt.h> over include <unistd.h> when one is present.
79738         (option): Also override name of 'struct option'.
79740         same-inode: revert prior change; it is not yet ready
79741         * NEWS: Undo mention of this change.
79742         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79743         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79744         * lib/cycle-check.c (cycle_check): Likewise.
79745         * lib/same.c (same_name): Likewise.
79746         * lib/at-func2.c (at_func2): Likewise.
79748 2009-09-23  Eric Blake  <ebb9@byu.net>
79750         linkat: new module
79751         * modules/linkat: New file.
79752         * lib/at-func2.c (at_func2): Likewise.
79753         * lib/linkat.c (linkat): Likewise.
79754         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79755         * lib/openat-priv.h (at_func2): Add declaration.
79756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79757         * modules/unistd (Makefile.am): Substitute them.
79758         * lib/unistd.in.h (linkat): Declare it.
79759         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79760         * doc/posix-functions/linkat.texi (linkat): Likewise.
79761         * doc/posix-functions/link.texi (link): Tweak wording.
79762         * tests/test-link.c (main): Move guts...
79763         * tests/test-link.h (test_link): ...into new file.
79764         * modules/linkat-tests: New test.
79765         * tests/test-linkat.c: Likewise.
79766         * modules/link-tests (Files): Ship new file.
79767         (Depends-on): Add stdbool.
79769         dirname: add library-safe mdir_name
79770         * lib/dirname.h (mdir_name): New prototype.
79771         * lib/dirname.c (dir_name): Move guts...
79772         (mdir_name): ...to new function that avoids xalloc_die.
79774         fchdir: another mingw fix
79775         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79776         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79777         on mingw (where it has not yet been ported), and make it optional
79778         elsewhere.
79779         (_gl_register_fd): Use it.
79781         same-inode: make SAME_INODE tri-state, to port to mingw
79782         * NEWS: Mention this change.
79783         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79784         st_ino always being 0.
79785         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79786         * lib/cycle-check.c (cycle_check): Likewise.
79787         * lib/same.c (same_name): Likewise.
79789         lstat: avoid mingw compilation error
79790         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79791         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79792         lstat ourselves.
79793         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79794         was adequate.
79795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79796         the checks for lstat.
79797         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79799         link: fix test failure on Solaris 9
79800         * lib/link.c (rpl_link): Don't assume link will catch bogus
79801         trailing slash on source.
79803         test-symlinkat: enhance test
79804         * tests/test-readlink.c (main): Move guts...
79805         * tests/test-readlink.h (test_readlink): ...into new file.
79806         * tests/test-symlink.c (main): Move guts...
79807         * tests/test-symlink.h (test_symlink): ...into new file.
79808         * tests/test-symlinkat.c (main): Use new files for further
79809         coverage.
79810         (do_symlink, do_readlink): New helper functions.
79811         * modules/symlink-tests (Files): Ship new file.
79812         (Depends-on): Add stdbool.
79813         * modules/readlink-tests (Files): Ship new file.
79814         (Depends-on): Add stdbool.
79815         * modules/symlinkat-tests (Files): Use new files.
79817 2009-09-23  Eric Blake  <ebb9@byu.net>
79819         readlink: document portability issue with symlink length
79820         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79821         systems have bogus st_size on symlinks, and mention the
79822         areadlink-with-size module.
79823         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79824         * doc/posix-functions/readlink.texi (readlink): Mention the
79825         areadlink module, and ERANGE failure.
79826         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79827         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79829         readlink: fix Solaris 9 bug with trailing slash
79830         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79831         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79832         * doc/posix-functions/readlink.texi (readlink): Document this.
79833         * modules/readlink-tests: New test.
79834         * tests/test-readlink.c: Likewise.
79836         readlink: fix cygwin 1.5.x bug with return type
79837         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79838         * lib/unistd.in.h (readlink): Use ssize_t.
79839         * lib/readlink.c (readlink): Likewise.
79840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79841         * modules/unistd (Makefile.am): Substitute it.
79842         * lib/unistd.in.h (readlink): Declare replacement.
79843         * doc/posix-functions/readlink.texi (readlink): Document this.
79845         symlink: use throughout gnulib
79846         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79847         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79848         symlink is not used.
79849         * modules/symlinkat (Depends-on): Add symlink.
79850         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79851         * modules/canonicalize-tests (Depends-on): Likewise.
79852         * modules/lstat-tests (Depends-on): Likewise.
79853         * modules/openat-tests (Depends-on): Likewise.
79854         * modules/remove-tests (Depends-on): Likewise.
79855         * modules/rmdir-tests (Depends-on): Likewise.
79856         * modules/unlink-tests (Depends-on): Likewise.
79857         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79858         * tests/test-canonicalize.c (symlink): Likewise.
79859         * tests/test-fstatat.c (symlink): Likewise.
79860         * tests/test-lstat.c (symlink): Likewise.
79861         * tests/test-remove.c (symlink): Likewise.
79862         * tests/test-rmdir.c (symlink): Likewise.
79863         * tests/test-unlink.c (symlink): Likewise.
79864         * tests/test-unlinkat.c (symlink): Likewise.
79866         symlink: new module, for Solaris 9 bug
79867         * modules/symlink: New file.
79868         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79869         * lib/symlink.c: Likewise.
79870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79871         * modules/unistd (Makefile.am): Substitute them.
79872         * lib/unistd.in.h (symlink): Declare replacement.
79873         * MODULES.html.sh (File system functions): Mention it.
79874         * doc/posix-functions/symlink.texi (symlink): Likewise.
79875         * modules/symlink-tests: New test.
79876         * tests/test-symlink.c: Likewise.
79878 2009-09-23  Bruno Haible  <bruno@clisp.org>
79880         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79881         when needed.
79882         Test case: gnulib-tool --import --with-tests atexit inttypes.
79883         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79885 2009-09-23  Bruno Haible  <bruno@clisp.org>
79887         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79888         subcommand, not in a subshell.
79890 2009-09-22  Eric Blake  <ebb9@byu.net>
79892         unistd: sort replacement declarations
79893         * lib/unistd.in.h: Sort declarations.
79895         open, openat: minor optimization
79896         * lib/open.c (open): If open succeeded, len is non-zero.
79897         * lib/openat.c (rpl_openat): Likewise.
79899         link-follow: ensure correct result
79900         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79901         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79902         distinguish between possible failures.
79904 2009-09-21  Eric Blake  <ebb9@byu.net>
79906         fts: avoid compiler warning
79907         * lib/fts.c (dirent_inode_sort_may_be_useful)
79908         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79910 2009-09-19  Bruno Haible  <bruno@clisp.org>
79912         * lib/progreloc.c (canonicalize_file_name): New declaration.
79914 2009-09-19  Eric Blake  <ebb9@byu.net>
79916         link: fix quoting
79917         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79919         openat: fix openat bugs on Solaris 9
79920         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79921         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79922         * modules/openat (Depends-on): Add open.
79923         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79924         * modules/fcntl-h (Makefile.am): Substitute it.
79925         * lib/fcntl.in.h (openat): Declare replacement.
79926         * doc/posix-functions/openat.texi (openat): Document this.
79928         openat: move fstatat and unlinkat into correct files
79929         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79930         compiled.
79931         * lib/openat.c (fstatat, unlinkat): Move...
79932         * lib/fstatat.c (fstatat): ...into correct files.
79933         * lib/unlinkat.c (unlinkat): Likewise.
79935         openat: fix unlinkat bugs on Solaris 9
79936         * lib/unlinkat.c (unlinkat): New file.
79937         * modules/openat (Depends-on): Add unlink.
79938         (Files): Distribute it.
79939         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79940         trailing slash behavior is broken.
79941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79942         * modules/unistd (Makefile.am): Substitute it.
79943         * lib/unistd.in.h (unlinkat): Declare replacement.
79944         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79946         openat: fix fstatat bugs on Solaris 9
79947         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79948         stat.
79949         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79951         test-unlinkat: enhance test, to expose Solaris 9 bug
79952         * tests/test-unlink.c (main): Factor guts...
79953         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79954         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79955         * tests/test-rmdir.c (main): Adjust caller.
79956         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79957         (unlinker): New helper function.
79958         (rmdirat): Enhance check.
79959         * modules/rmdir-tests (Depends-on): Add stdbool.
79960         * modules/unlink-tests (Depends-on): Likewise.
79961         (Files): Add test-unlink.h.
79962         * modules/openat-tests (Files): Likewise.
79963         (Depends-on): Add unlinkdir.
79965         test-fstatat: new test, to expose Solaris 9 bugs
79966         * tests/test-stat.c (main): Factor guts...
79967         * tests/test-stat.h (test_stat_func): ...into new file.
79968         * tests/test-lstat.c (main): Factor guts...
79969         * tests/test-lstat.h (test_lstat_func): ...into new file.
79970         * tests/test-fstatat.c: New file.
79971         * modules/stat-tests (Files): Add test-stat.h.
79972         * modules/lstat-tests (Files): Add test-lstat.h.
79973         (Depends-on): Add stdbool.
79974         * modules/openat-tests (Depends-on): Add pathmax.
79975         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79976         (Makefile.am): Run new test.
79978         remove: new module, for mingw and Solaris 9 bugs
79979         * modules/remove: New file.
79980         * lib/remove.c: Likewise.
79981         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79983         * modules/stdio (Makefile.am): Use them.
79984         * lib/stdio.in.h (remove): Declare replacement.
79985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79986         * doc/posix-functions/remove.texi (remove): Likewise.
79987         * modules/remove-tests: New test.
79988         * tests/test-remove.c: Likewise.
79990         unlink: new module, for Solaris 9 bug
79991         * modules/unlink: New file.
79992         * lib/unlink.c: Likewise.
79993         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79995         * modules/unistd (Makefile.am): Use them.
79996         * lib/unistd.in.h (stat): Declare replacement.
79997         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79998         * doc/posix-functions/unlink.texi (unlink): Likewise.
79999         * modules/unlink-tests: New test.
80000         * tests/test-unlink.c: Likewise.
80002         lstat: fix Solaris 9 bug
80003         * lib/lstat.c (lstat): Also check for trailing slash on
80004         non-symlink, non-directories.  Use stat module to simplify logic.
80005         * doc/posix-functions/lstat.texi (lstat): Document it.
80006         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80007         (configure.ac): Check for symlink.
80008         * tests/test-lstat.c (main): Add more tests.
80010         stat: add as dependency to other modules
80011         * modules/chown (Depends-on): Add stat.
80012         * modules/euidaccess (Depends-on): Likewise.
80013         * modules/fchdir (Depends-on): Likewise.
80014         * modules/isdir (Depends-on): Likewise.
80015         * modules/link (Depends-on): Likewise.
80016         * modules/lstat (Depends-on): Likewise.
80017         * modules/mkdir-p (Depends-on): Likewise.
80018         * modules/modechange (Depends-on): Likewise.
80019         * modules/open (Depends-on): Likewise.
80020         * modules/readlink (Depends-on): Likewise.
80021         * modules/same (Depends-on): Likewise.
80023         stat: fix Solaris 9 bug
80024         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80025         slash.
80026         * lib/stat.c (rpl_stat): Work around it.
80027         * doc/posix-functions/stat.texi (stat): Update documentation.
80029         stat: new module, for mingw bug
80030         * modules/stat: New file.
80031         * lib/stat.c: Likewise.
80032         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80034         * modules/sys_stat (Makefile.am): Use them.
80035         * lib/sys_stat.in.h (stat): Declare replacement.
80036         * lib/openat.c (fstatat): Deal with lstat and stat being function
80037         macros.
80038         * modules/openat (Depends-on): Add inline.
80039         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80040         * doc/posix-functions/stat.texi (stat): Likewise.
80041         * modules/stat-tests: New test.
80042         * tests/test-stat.c: Likewise.
80044 2009-09-19  Jim Meyering  <meyering@redhat.com>
80046         syntax-check: detect unnecessary inclusion of canonicalize.h
80047         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80049 2009-09-19  Eric Blake  <ebb9@byu.net>
80051         canonicalize-lgpl: adjust clients to use correct header
80052         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80053         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80054         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80055         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80056         * lib/progreloc.c (includes): Likewise.
80058 2009-09-19  Jim Meyering  <meyering@redhat.com>
80060         test-posixtm.c: correct a comment
80061         * tests/test-posixtm.c: Correct first-line comment.
80062         Spotted by Eric Blake.
80064 2009-09-16  Jim Meyering  <meyering@redhat.com>
80066         posixtm-tests: make T const-correct; add a test case
80067         * tests/test-posixtm.c (T): Declare const.
80068         Add a test for -(2^31+1).
80069         Remove useless can-succeed-only-in-2002 test.
80071         posixtm-tests: adjust the sole failing test
80072         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80073         expected output matches what mktime now produces.  Cross-checked via
80074         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80076         posixtm: move #ifdef'd tests into a new module
80077         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80078         * tests/test-posixtm.c: ... this new file.
80079         * modules/posixtm-tests: New module.
80081 2009-09-19  Eric Blake  <ebb9@byu.net>
80083         openat: simplify use of at-func.c
80084         * lib/at-func.c (includes): Include prerequisites here, to
80085         simplify requirements on client files.
80086         * lib/openat-priv.h: Add double-inclusion guard.
80087         * lib/faccessat.c (includes): Simplify.
80088         * lib/fchmodat.c (includes): Likewise.
80089         * lib/fchownat.c (includes): Likewise.
80090         * lib/mkdirat.c (includes): Likewise.
80091         * lib/mkfifoat.c (includes): Likewise.
80092         * lib/symlinkat.c (includes): Likewise.
80094         openat: allow return of fd 0
80095         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80096         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80097         unistd-safer.
80098         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80099         <fcntl.h>; this module does not leak fds.
80100         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80101         must be allowed to return 0, leaving openat_safer to add the
80102         safety.
80103         (openat_permissive): Avoid writing to just-opened fd 2 if
80104         restoring the current directory fails.
80105         * lib/openat-die.c (openat_restore_fail): Add comment.
80106         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80107         (save_cwd): Guarantee safe fd, but without use of open_safer.
80108         * tests/test-openat.c: New test.
80109         * modules/openat-tests (Files, Makefile.am): Distribute and build
80110         new file.
80112         relocatable-prog-wrapper: fix build
80113         * modules/relocatable-prog-wrapper (Files): Update name of
80114         canonicalize m4 file, broken on 2009-09-17.
80115         Reported by emad hajjar <aleppos@hotmail.com>.
80117 2009-09-19  Bruno Haible  <bruno@clisp.org>
80119         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80120         * lib/safe-alloc.c: Likewise.
80121         Reported by Ian Beckwith <ianb@erislabs.net>.
80123 2009-09-18  Bruno Haible  <bruno@clisp.org>
80125         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80126         Reported by <erobles@sensacd.com.mx>.
80128 2009-09-17  Eric Blake  <ebb9@byu.net>
80130         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80131         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80132         slashes when checking if last component is missing.
80133         * tests/test-canonicalize.c (main): Test this.
80135         canonicalize, canonicalize-lgpl: honor // if distinct from /
80136         * modules/canonicalize (Files): Add double-slash-root.m4.
80137         * modules/canonicalize-lgpl (Files): Likewise.
80138         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80139         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80140         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80141         fallback definition.
80142         (canonicalize_filename_mode): Use it to protect //.
80143         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80144         (__realpath): Likewise.
80145         * tests/test-canonicalize.c (main): Test this.
80146         * tests/test-canonicalize-lgpl.c (main): Likewise.
80147         * modules/canonicalize-tests (Depends-on): Add same-inode.
80148         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80150         canonicalize-lgpl: fix glibc bug with trailing slash
80151         * m4/canonicalize-lgpl.m4: Move contents...
80152         * m4/canonicalize.m4: ...here.
80153         (gl_CANONICALIZE_LGPL): Factor realpath check...
80154         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80155         glibc 2.3.5 bug, fixed 2005-04-27.
80156         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80157         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80158         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80159         * modules/canonicalize-lgpl (Files): Manage file rename.
80160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80161         * modules/stdlib (Makefile.am): Substitute witness.
80162         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80163         is needed.
80164         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80165         replacement is required.
80166         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80167         * doc/glibc-functions/canonicalize_file_name.texi
80168         (canonicalize_file_name): Document this.
80169         * doc/posix-functions/realpath.texi (realpath): Likewise.
80171         canonicalize-lgpl: reject non-directory with trailing slash
80172         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80173         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80174         catches failures in glibc 2.3.5.
80175         * tests/test-canonicalize.c (main): Likewise.
80177         canonicalize-lgpl: use native realpath if it works
80178         * lib/canonicalize-lgpl.c (realpath): Guard with
80179         FUNC_REALPATH_WORKS.
80180         * lib/stdlib.in.h (realpath): Make declaration optional based on
80181         HAVE_REALPATH.
80182         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80183         native realpath works.
80184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80185         * modules/stdlib (Makefile.am): Substitute witness.
80187         canonicalize, canonicalize-lgpl: use <stdlib.h>
80188         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80189         (Include): Mention <stdlib.h>.
80190         (configure.ac): Mention functions we provide.
80191         * modules/canonicalize (configure.ac): Likewise.
80192         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80193         realpath if canonicalize_file_name is missing.
80194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80195         * modules/stdlib (Makefile.am): Substitute witnesses.
80196         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80197         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80198         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80199         * NEWS: Document this.
80200         * doc/glibc-functions/canonicalize_file_name.texi
80201         (canonicalize_file_name): Likewise.
80202         * doc/posix-functions/realpath.texi (realpath): Likewise.
80203         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80205         test-canonicalize: consolidate into single C program
80206         * tests/test-canonicalize.sh: Delete; move setup into...
80207         * tests/test-canonicalize.c (main): ...the program, making it
80208         easier to run in debugger.  Add some tests.
80209         * modules/canonicalize-tests (Files): Remove unused file.
80210         (Depends-on): Add progname.
80211         (configure.ac, Makefile.am): Simplify.
80213         test-canonicalize-lgpl: consolidate into single C program
80214         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80215         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80216         easier to run in debugger.  Add some tests.
80217         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80218         (configure.ac, Makefile.am): Simplify.
80220         canonicalize: avoid resolvepath
80221         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80222         unnecessary checks.
80223         * lib/canonicalize.c (includes): Simplify.
80224         (canonicalize_file_name): Drop resolvepath implementation.
80225         * modules/canonicalize (Depends-on): Drop filenamecat.
80227         canonicalize: don't lose errno
80228         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80229         over calls to free.
80231         canonicalize: simplify errno handling
80232         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80233         assignment.
80235         canonicalize, canonicalize-lgpl: update module dependencies
80236         * modules/canonicalize (Depends-on): Add extensions, lstat,
80237         pathmax, stdlib.
80238         (Files): Drop pathmax.h.
80239         (configure.ac): Adjust macro name.
80240         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80241         lstat, stdlib, sys_stat.
80242         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80243         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80244         extensions.
80245         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80246         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80247         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80248         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80249         declaration, if available.
80250         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80251         we can rely on the readlink module.
80252         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80253         (includes): Use <unistd.h> unconditionally.
80255 2009-09-17  Eric Blake  <ebb9@byu.net>
80257         maint: make Include sections of modules consistent
80258         * modules/alloca: Use only header name; no need to list #include.
80259         * modules/alloca-opt: Likewise.
80260         * modules/arpa_inet: Likewise.
80261         * modules/canon-host: Likewise.
80262         * modules/configmake: Likewise.
80263         * modules/dirent: Likewise.
80264         * modules/eealloc: Likewise.
80265         * modules/environ: Likewise.
80266         * modules/fchdir: Likewise.
80267         * modules/fcntl: Likewise.
80268         * modules/fcntl-h: Likewise.
80269         * modules/gethrxtime: Likewise.
80270         * modules/gettime: Likewise.
80271         * modules/ignore-value: Likewise.
80272         * modules/inet_ntop: Likewise.
80273         * modules/inet_pton: Likewise.
80274         * modules/inttypes: Likewise.
80275         * modules/isnand-nolibm: Likewise.
80276         * modules/isnanf-nolibm: Likewise.
80277         * modules/mbchar: Likewise.
80278         * modules/mbfile: Likewise.
80279         * modules/mbiter: Likewise.
80280         * modules/mbuiter: Likewise.
80281         * modules/netdb: Likewise.
80282         * modules/netinet_in: Likewise.
80283         * modules/nproc: Likewise.
80284         * modules/pagealign_alloc: Likewise.
80285         * modules/poll: Likewise.
80286         * modules/printf-frexp: Likewise.
80287         * modules/pthread: Likewise.
80288         * modules/putenv: Likewise.
80289         * modules/random_r: Likewise.
80290         * modules/relocatable-prog: Likewise.
80291         * modules/search: Likewise.
80292         * modules/select: Likewise.
80293         * modules/selinux-h: Likewise.
80294         * modules/settime: Likewise.
80295         * modules/signal: Likewise.
80296         * modules/size_max: Likewise.
80297         * modules/socklen: Likewise.
80298         * modules/ssize_t: Likewise.
80299         * modules/stdarg: Likewise.
80300         * modules/stdbool: Likewise.
80301         * modules/stddef: Likewise.
80302         * modules/stdint: Likewise.
80303         * modules/stdio: Likewise.
80304         * modules/stdlib: Likewise.
80305         * modules/string: Likewise.
80306         * modules/strings: Likewise.
80307         * modules/sys_file: Likewise.
80308         * modules/sys_ioctl: Likewise.
80309         * modules/sys_select: Likewise.
80310         * modules/sys_socket: Likewise.
80311         * modules/sys_stat: Likewise.
80312         * modules/sys_time: Likewise.
80313         * modules/sys_times: Likewise.
80314         * modules/sys_utsname: Likewise.
80315         * modules/sys_wait: Likewise.
80316         * modules/sysexits: Likewise.
80317         * modules/time: Likewise.
80318         * modules/times: Likewise.
80319         * modules/tmpfile: Likewise.
80320         * modules/trim: Likewise.
80321         * modules/unistd: Likewise.
80322         * modules/wchar: Likewise.
80323         * modules/wctype: Likewise.
80325 2009-09-17  Bruno Haible  <bruno@clisp.org>
80327         Make getdate.y compile on QNX and NetBSD 5 / i386.
80328         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80329         TIME_T_FITS_IN_LONG_INT.
80330         * lib/getdate.y (long_time_t): New type.
80331         (relative_time): Change type of 'seconds' field to long_time_t.
80332         (get_date): Update types of local variables. Check against overflow
80333         during conversion from long_time_t to time_t.
80334         Reported by Matt Kraai <kraai@ftbfs.org>
80335         and Hasso Tepper <hasso@netbsd.org>.
80337 2009-09-17  Bruno Haible  <bruno@clisp.org>
80339         * modules/COPYING: Update copyright years.
80340         * modules/README: Likeiwse.
80341         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80342         Reported by Ian Beckwith <ianb@erislabs.net>.
80344 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80346         * users.txt: Update references for gnuit package.
80348 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80350         * m4/getdelim.m4: Fix typo in copyright line.
80352 2009-09-17  Bruno Haible  <bruno@clisp.org>
80354         * lib/atoll.c: Use the standard header with GPL copyright.
80355         * lib/argz.in.h: Likewise.
80356         * lib/glob.c: Likewise.
80357         * lib/glob-libc.h: Likewise.
80358         * lib/random_r.c: Likewise.
80359         * lib/siglist.h: Likewise.
80360         * lib/strsignal.c: Likewise.
80361         Reported by Ian Beckwith <ianb@erislabs.net>.
80363 2009-09-17  Eric Blake  <ebb9@byu.net>
80365         rmdir: ensure correct dependency order
80366         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80368 2009-09-17  Bruno Haible  <bruno@clisp.org>
80370         Disable assertion that fails on NetBSD 5 / i386.
80371         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80372         Reported by Sam Steingold <sds@gnu.org>
80373         and Hasso Tepper <hasso@netbsd.org>.
80375 2009-09-16  Eric Blake  <ebb9@byu.net>
80377         unlinkdir: port to mingw
80378         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80379         on which no one can unlink a directory.
80381         stdlib: sort witness names
80382         * modules/stdlib (Makefile.am): Sort replacements.
80383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80384         * lib/stdlib.in.h: Likewise.
80386         parse-duration-tests: avoid link failure
80387         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80388         LIBINTL.
80389         Reported by Tom G. Christensen.
80391         openat-tests: ensure unlinkat behaves like rmdir
80392         * tests/test-rmdir.c (main): Factor guts...
80393         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80394         * modules/rmdir-tests (Files): Ship new file.
80395         * modules/openat-tests: New test.
80396         * tests/test-unlinkat.c: Likewise.
80398         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80399         * modules/rmdir-errno (Status, Notice): Now obsolete.
80401         rmdir: work around cygwin 1.5.x and mingw bugs
80402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80403         * lib/rmdir.c (rmdir): Work around it.
80404         * modules/rmdir (Status, Notice): No longer obsolete.
80405         (Files): Add dos.m4.
80406         (Depends-on): Add unistd.
80407         (configure.ac): Set witnesses.
80408         (License): Relax to LGPLv2+.
80409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80410         * modules/unistd (Makefile.am): Substitute witnesses.
80411         * lib/unistd.in.h (rmdir): Declare replacement.
80412         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80413         * modules/rmdir-tests: New tests.
80414         * tests/test-rmdir.c: Likewise.
80416 2009-09-15  Eric Blake  <ebb9@byu.net>
80418         fchdir: improve use of replacement functions
80419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80421         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80422         REPLACE_CLOSEDIR.
80423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80424         * modules/sys_stat (Makefile.am): Substitute correct witness.
80425         * modules/dirent (Makefile.am): Likewise.
80426         * modules/unistd (Makefile.am): Likewise.
80427         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80428         * lib/unistd.in.h (dup): Likewise.
80429         * lib/sys_stat.in.h (fstat): Likewise.
80431         maint: ignore gnulib-tool temp files
80432         * .gitignore: Ignore files created during gnulib-tool --test.
80434 2009-09-13  Jim Meyering  <meyering@redhat.com>
80436         posixtm: don't reject a time that specify "60" as the number of seconds
80437         * lib/posixtm.c (posixtime): The code to reject invalid dates
80438         would also reject a time specified with the .60 suffix.
80439         But POSIX allows that, in order to accommodate leap seconds.
80440         So don't reject it.
80441         (main): Adjust tests accordingly.
80442         * modules/posixtm (Depends-on): Add stpcpy.
80444 2009-09-11  Jim Meyering  <meyering@redhat.com>
80446         announce-gen: include [$release_type] in emitted Subject:
80447         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80448         e.g., [stable] in the emitted Subject: line.
80450 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80452         Remove obsolete macros from several modules.
80453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80454         obsolete Autoconf macros with their modern counterparts.
80455         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80456         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80458         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80460         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80461         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80462         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80463         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80464         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80465         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80467         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80468         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80469         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80470         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80471         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80472         * m4/time_r.m4 (gl_TIME_R): Likewise.
80473         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80474         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80475         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80477         Fix copyright header in build-aux scripts.
80478         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80479         recommendation.
80480         * build-aux/ncftpput-ftp: Likewise.
80481         * build-aux/update-copyright: Likewise.
80483 2009-09-09  Eric Blake  <ebb9@byu.net>
80485         test-link: allow Linux choice of errno
80486         * tests/test-link.c (main): Relax test for alternate error.
80488         strndup: fix improper m4 caching
80489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80490         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80491         (gl_PREREQ_STRNDUP): Delete.
80492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80493         * modules/string (Makefile.am): Substitute it.
80494         * lib/string.in.h (strndup): Modernize prototype.
80496         getcwd: port to mingw
80497         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80498         different from the POSIX assumptions made throughout the getcwd
80499         module; fortunately, the mingw getcwd does not need replacement.
80500         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80501         * modules/getcwd-tests: New test.
80502         * tests/test-getcwd.c: Likewise.
80504         link: fix platform bugs
80505         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80506         * lib/link.c (link): Work around them.  Fix related mingw bug.
80507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80508         * modules/unistd (Makefile.am): Substitute it.
80509         * lib/unistd.in.h (link): Declare replacement.
80510         * doc/posix-functions/link.texi (link): Document this.
80511         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80513         test-link: consolidate into single C program, test more cases
80514         * tests/test-link.sh: Delete.
80515         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80516         at least Cygwin and Solaris.
80517         * modules/link-tests (Files): Remove unused file.
80518         (Depends-on): Add errno, sys_stat.
80519         (Makefile.am): Simplify.
80521 2009-09-08  Bruno Haible  <bruno@clisp.org>
80523         Work around towlower, towupper bug on mingw.
80524         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80525         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80526         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80527         * doc/posix-functions/towupper.texi: Likewise.
80528         Reported by Eric Blake.
80530 2009-09-08  Jim Meyering  <meyering@redhat.com>
80532         build: don't try to run autoheader if we don't use it
80533         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80534         is not used in configure.ac.
80536 2009-09-08  Eric Blake  <ebb9@byu.net>
80538         euidaccess: fix compilation error
80539         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80541         rawmemchr: relax license
80542         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80543         okay.
80544         Reported by Jim Meyering.
80546         mkfifoat: new module
80547         * modules/mkfifoat: New file.
80548         * lib/mkfifoat.c: Likewise.
80549         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80550         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80551         * modules/sys_stat (Makefile.am): Use them.
80552         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80553         * MODULES.html.sh (File system functions): Mention module.
80554         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80555         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80556         * modules/mkfifoat-tests: New test.
80557         * tests/test-mkfifoat.c: Likewise.
80559         strchrnul: relax license
80560         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80561         okay.
80562         Reported by Jim Meyering.
80564 2009-09-08  Eric Blake  <ebb9@byu.net>
80566         fstatat: fix compilation on Solaris
80567         * lib/fstatat.c (includes): Add fcntl.h.
80568         Reported by Pádraig Brady.
80570 2009-09-07  Eric Blake  <ebb9@byu.net>
80572         rename: modernize replacement
80573         * modules/rename (Depends-on): Add stdio.
80574         (configure.ac): Declare witness.
80575         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80576         stdio take care of replacement.
80577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80578         * modules/stdio (Makefile.am): Substitute them.
80579         * lib/stdio.in.h (rename): Declare replacement.
80580         * lib/rename.c (includes): Allow cross-compilation to non-windows
80581         machines.
80582         * doc/posix-functions/rename.texi (rename): Improve
80583         documentation.
80585         stdio: sort witness names
80586         * modules/stdio (Makefile.am): Sort replacements.
80587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80588         * lib/stdio.in.h: Likewise.
80590         getcwd: minor cleanups
80591         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80592         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80594         openat: provide more convenience names
80595         * modules/faccessat (configure.ac): Add C witness.
80596         * lib/unistd.in.h (readlinkat): Fix typo.
80597         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80598         convenience wrappers.
80599         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80600         wrappers in syntax checks.
80602 2009-09-06  Eric Blake  <ebb9@byu.net>
80604         doc: fix comments in recent patches
80605         * lib/faccessat.c: Mention correct function.
80606         * lib/fchmodat.c: Likewise.
80607         * lib/fchownat.c: Likewise.
80608         * lib/symlinkat.c: Likewise.
80609         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80610         constants.
80612         faccessat, symlinkat: continue cleanup of previous patch
80613         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80614         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80615         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80617         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80618         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80619         set.
80621 2009-09-06  Bruno Haible  <bruno@clisp.org>
80623         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80624         (fstatat): Declare if GNULIB_FSTATAT is set.
80625         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80626         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80627         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80628         * modules/fcntl-h (Files): Remove m4/openat.m4.
80629         * modules/sys_stat (Files): Remove m4/openat.m4.
80630         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80631         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80632         * modules/unistd (Files): Remove m4/openat.m4.
80633         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80634         GNULIB_OPENAT.
80635         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80636         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80638         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80639         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80640         gl_OPENAT_DEFAULTS.
80641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80642         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80643         Don't require gl_OPENAT_DEFAULTS.
80644         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80645         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80646         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80647         (gl_OPENAT_DEFAULTS): Remove macro.
80649 2009-09-06  Bruno Haible  <bruno@clisp.org>
80651         * modules/openat (configure.ac): Remove unneeded witness.
80653 2009-09-06  Bruno Haible  <bruno@clisp.org>
80655         Set errno to ENOSYS when a function is entirely unsupported.
80656         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80657         EOPNOTSUPP.
80658         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80659         * modules/chown (Depends-on): Remove errno.
80661 2009-09-06  Bruno Haible  <bruno@clisp.org>
80663         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80665 2009-09-06  Bruno Haible  <bruno@clisp.org>
80667         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80669 2009-09-06  Ben Pfaff  <blp@gnu.org>
80670             Bruno Haible  <bruno@clisp.org>
80672         Work around a glibc bug in strtok_r.
80673         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80674         Undefine if UNDEFINE_STRTOK_R is set.
80675         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80677         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80678         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80679         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80680         UNDEFINE_STRTOK_R.
80681         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80683 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80685         exclude: minor fix
80686         * lib/exclude.c: Include wctype.h
80688 2009-09-06  Akim Demaille  <demaille@gostai.com>
80690         bootstrap: improve error message
80691         * build-aux/bootstrap (find_tool): Upon failure, report the list
80692         of candidates.
80693         Honor the initial value of the envvar.
80695 2009-09-05  Eric Blake  <ebb9@byu.net>
80697         symlinkat: new module
80698         * modules/symlinkat: New file.
80699         * lib/symlinkat.c: Likewise.
80700         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80702         * modules/unistd (Makefile.am): Use them.
80703         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80704         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80705         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80706         * MODULES.html.sh (File system functions): Mention module.
80707         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80708         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80709         * modules/symlinkat-tests: New test.
80710         * tests/test-symlinkat.c: Likewise.
80712         test-openat-safer: add more checks
80713         * tests/test-openat-safer.c (main): Check more code paths.
80715 2009-09-05  Jim Meyering  <meyering@redhat.com>
80717         syntax-check: detect unnecessary inclusion of openat.h
80718         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80720 2009-09-05  Bruno Haible  <bruno@clisp.org>
80722         Support towlower, towupper.
80723         * doc/posix-functions/towlower.texi: Mention module wctype.
80724         * doc/posix-functions/towupper.texi: Likewise.
80725         * lib/wctype.in.h (towlower, towupper): New functions.
80726         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80727         (ASSERT): New macro.
80728         (e): New variable.
80729         (main): Test also towlower, towupper. Test WEOF argument.
80730         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80732 2009-09-05  Bruno Haible  <bruno@clisp.org>
80734         Fix conversion behaviour when the input is invalid.
80735         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80736         mark occurring in first pass of indirect conversion.
80737         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80738         input.
80739         Found by clang's static analyzer.
80741 2009-09-05  Bruno Haible  <bruno@clisp.org>
80743         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80744         where direct conversion is possible.
80746 2009-09-04  Eric Blake  <ebb9@byu.net>
80748         openat: fail with ENOENT on empty name
80749         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80750         buffer.
80752         link-follow: fix logic bug in prior patch
80753         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80754         reversed sense of yes and no in prior patch.  Avoid confusing
80755         compilation failure with desired semantics.
80757         link-follow: accommodate mingw and cross-compilation
80758         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80759         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80760         cross-compilation results to -1, to make linkat easier to
80761         implement when cross-compiling.  Trivially support mingw.
80762         * modules/link-follow (configure.ac): Call new name.
80763         * NEWS: Mention this.
80765 2009-09-03  Eric Blake  <ebb9@byu.net>
80767         faccessat: compile replacement
80768         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80769         needed.
80771         fts: fix compilation error
80772         * lib/fts.c (includes): Re-add "openat.h", for
80773         openat_needs_fchdir.
80775         faccessat: new module
80776         * modules/faccessat: New file.
80777         * lib/faccessat.c: Likewise.
80778         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80780         * modules/unistd (Makefile.am): Use it.
80781         * lib/unistd.in.h (faccessat): Declare it.
80782         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80783         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80784         * MODULES.html.sh (File system functions): Mention it.
80785         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80786         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80788         euidaccess: prefer POSIX over non-standard implementation
80789         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80790         * lib/euidaccess.c (euidaccess): Use it if available.
80792         openat: make template easier to use
80793         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80794         AT_FUNC_F2 to be undefined.
80795         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80796         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80797         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80798         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80799         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80800         Likewise.
80801         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80802         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80803         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80804         Likewise.
80806         openat: declare in POSIX headers
80807         * NEWS: Mention this.
80808         * modules/openat (configure.ac): Declare witnesses.
80809         (Depends-on): Add fcntl-h, sys_stat, unistd.
80810         (Include): Mention correct headers.
80811         * modules/fcntl-h (Depends-on): Add link-warning.
80812         (Files): Add openat.m4.
80813         (Makefile.am): Substitute witnesses.
80814         * modules/sys_stat (Files, Makefile.am): Likewise.
80815         * modules/unistd (Files, Makefile.am): Likewise.
80816         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80817         (gl_OPENAT_DEFAULTS): New macro.
80818         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80820         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80821         (SYS_STAT_H): Remove unused variable.
80822         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80823         * lib/fcntl--.h (includes): Remove unneeded header.
80824         * lib/openat-safer.c (includes): Likewise.
80825         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80826         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80827         appropriate headers.
80828         (__OPENAT_PREFIX): Delete.
80829         * lib/fcntl.in.h (openat): Provide declaration.
80830         (AT_FDCWD): Fix Solaris bug.
80831         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80832         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80833         * lib/fchmodat.c (includes):  Adjust to find declaration.
80834         * lib/fchownat.c (includes): Likewise.
80835         * lib/mkdirat.c (includes): Likewise.
80836         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80837         still visible.
80839 2009-09-02  Eric Blake  <ebb9@byu.net>
80841         errno: use consistently
80842         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80843         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80844         * lib/canonicalize.c (ELOOP): Likewise.
80845         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80846         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80847         * lib/lchown.c (EOPNOTSUPP): Likewise.
80848         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80849         * lib/savewd.c (ESTALE): Likewise.
80850         * lib/settime.c (ENOSYS): Likewise.
80851         * lib/utimens.c (ENOSYS): Likewise.
80852         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80853         * lib/chdir-safer.c (ELOOP): Likewise.
80854         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80855         * modules/c-stack (Depends-on): Add errno.
80856         * modules/canonicalize (Depends-on): Likewise.
80857         * modules/chdir-safer (Depends-on): Likewise.
80858         * modules/fdopendir (Depends-on): Likewise.
80859         * modules/inet_ntop (Depends-on): Likewise.
80860         * modules/inet_pton (Depends-on): Likewise.
80861         * modules/lchown (Depends-on): Likewise.
80862         * modules/openat (Depends-on): Likewise.
80863         * modules/savewd (Depends-on): Likewise.
80864         * modules/settime (Depends-on): Likewise.
80865         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80867         fts: avoid leaking fds
80868         * modules/fts (Depends-on): Add cloexec.
80869         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80870         flag.
80872         fts: make directory fds more robust
80873         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80874         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80876         backupfile, chdir-long, fts, savedir: make safer
80877         * lib/backupfile.c (includes): Use "dirent--.h", since
80878         numbered_backup can write to stderr during readdir.
80879         * lib/savedir.c (includes): Likewise.
80880         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80881         emulation can write to stderr on failure.
80882         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80883         * lib/getcwd.c: Document why opendir_safer is unused.
80884         * lib/glob.c: Likewise.
80885         * lib/scandir.c: Likewise.
80886         * lib/openat-proc.c: Likewise, for open_safer.
80887         * modules/backupfile (Depends-on): Add dirent-safer.
80888         * modules/savedir (Depends-on): Likewise.
80889         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80890         * modules/chdir-long (Depends-on): Add openat-safer.
80892         openat-safer: new module
80893         * modules/openat-safer: New file.
80894         * lib/openat-safer.c: Likewise.
80895         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80896         * lib/fcntl-safer.h (openat_safer): Declare.
80897         * lib/fcntl--.h (openat): Override.
80898         * MODULES.html.sh (File descriptor based I/O): Mention it.
80899         * lib/openat.h: Add double-inclusion guards.
80900         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80901         "fcntl--.h", so we can implement openat.
80902         * modules/openat-safer-tests: New test.
80903         * tests/test-openat-safer.c: New file.
80905         dirent-safer: new module
80906         * modules/dirent-safer: New file.
80907         * lib/dirent--.h: Likewise.
80908         * lib/dirent-safer.h: Likewise.
80909         * lib/opendir-safer.c: Likewise.
80910         * m4/dirent-safer.m4: Likewise.
80911         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80912         * modules/dirent-safer-tests: New test.
80913         * tests/test-dirent-safer.c: New file.
80914         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80916         fdopendir: optimize on mingw
80917         * lib/unistd.in.h (_gl_directory_name): New prototype.
80918         * lib/fchdir.c (_gl_directory_name): Implement it.
80919         (fchdir): Use it to simplify implementation.
80920         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80921         fchdir, when available, to avoid calling [f]chdir().
80923         fdopendir: split into its own module
80924         * lib/openat.c (fdopendir): Move...
80925         * lib/fdopendir.c: ...into new file.
80926         * modules/fdopendir: New module.
80927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80928         * modules/openat (Depends-on): Add fdopendir.
80929         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80930         fdopendir here.
80931         * modules/savedir (Depends-on): Only need fdopendir, not full
80932         openat.
80933         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80934         * lib/openat.h (fdopendir): Drop prototype.
80935         * lib/dirent.in.h (fdopendir): Provide prototype.
80936         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80937         * modules/dirent (Makefile.am): Substitute them.
80938         * MODULES.html.sh (File system functions): Mention it.
80939         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80940         * modules/fdopendir-tests: New file.
80941         * tests/test-fdopendir.c: Likewise.
80943         fchdir: use more consistent macro convention
80944         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80945         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80946         REPLACE_FCHDIR, rather than relying on config.h macros.
80947         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80948         inside a single make-time REPLACE_FCHDIR block, rather than using
80949         the config.h FCHDIR_REPLACEMENT.
80950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80951         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80952         Manage fstat replacement.
80953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80954         REPLACE_FCHDIR.
80955         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80956         (Makefile.am): Substitute REPLACE_FCHDIR.
80957         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80958         FCHDIR_REPLACEMENT.
80959         * lib/dup-safer.c (dup_safer): Likewise.
80960         * lib/dup2.c (rpl_dup2): Likewise.
80961         * lib/dup3.c (rpl_dup3): Likewise.
80962         * lib/open.c (rpl_open): Likewise.
80964         fchdir: simplify error handling, and support dup3
80965         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80966         stdbool, malloc-posix, realloc-posix.
80967         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80968         (ensure_dirs_slot): Return false on allocation failure.
80969         (rpl_dup2): Delete.
80970         (_gl_register_dup): New function.
80971         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80972         (_gl_register_fd): Close fd on allocation failure.
80973         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80974         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80975         prototype.
80976         (rpl_dup2_fchdir): Delete prototype.
80977         * lib/open.c (open): Update caller.
80978         * lib/dup2.c (dup2): Track fchdir metadata.
80979         * lib/dup3.c (dup3): Likewise.
80980         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80983 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80985         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80986         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80987         don't pass arguments to AC_OUTPUT.
80989 2009-09-02  Bruno Haible  <bruno@clisp.org>
80991         * modules/mkdtemp (License): Relicense under LGPLv2+.
80992         Reported by Paolo Bonzini.
80994 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80996         Replace uses of obsolete autoconf macros in Jim's modules.
80997         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80998         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80999         can evoke a warning from autoconf when run with -Wobsolete
81000         enabled.  They were declared obsolete for good reasons (see
81001         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81002         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81003         should not continue using the deprecated macros.
81004         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81005         obsolete Autoconf macros with modern counterparts.
81006         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81007         * m4/dos.m4 (gl_AC_DOS): Likewise.
81008         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81010         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81011         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81012         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81014         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81015         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81016         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81017         Likewise.
81018         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81019         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81020         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81021         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81022         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81023         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81025 2009-09-01  Eric Blake  <ebb9@byu.net>
81027         fchdir: fix off-by-one bug in previous patch
81028         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81029         (_gl_unregister_fd): Delete useless if.
81031 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81033         maint.mk: sort the list of syntax-check rules
81034         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81035         easier to get a sense of progress when the rules are run sequentially
81036         and take a long time.
81038 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81040         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81041         * modules/netinet_in: Likewise.
81042         * modules/sys_file: Likewise.
81043         * modules/sys_ioctl: Likewise.
81044         * modules/sys_select: Likewise.
81045         * modules/sys_socket: Likewise.
81046         * modules/sys_stat: Likewise.
81047         * modules/sys_time: Likewise.
81048         * modules/sys_times: Likewise.
81049         * modules/sys_utsname: Likewise.
81050         * modules/sys_wait: Likewise.
81052 2009-09-01  Jim Meyering  <meyering@redhat.com>
81054         fts: help ensure that return values are not ignored
81055         * lib/fts_.h (__GNUC_PREREQ): Define.
81056         (__attribute_warn_unused_result__): Define.
81057         (fts_children, fts_close, fts_open, fts_read): Declare with
81058         __attribute_warn_unused_result__.
81060         fts: fts_close now fails also when closing a dir file descriptor fails
81061         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81062         and propagate to caller, along with errno.
81064         announce-gen: correct formatting in --help output
81065         * build-aux/announce-gen (usage): Move the one-line description in
81066         --help output "up", to where it belongs, just after Usage:.
81068 2009-08-31  Eric Blake  <ebb9@byu.net>
81070         fchdir: port to mingw
81071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81072         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81073         opened, then use a substitute.
81074         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81075         replacement.
81076         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81077         (_gl_register_fd): No need to check stat if open already filters
81078         all directories.
81079         (fchdir): Fix error condition to match POSIX.
81080         * modules/fchdir (Depends-on): Add sys_stat.
81081         * doc/posix-functions/open.texi (open): Document the limitation.
81082         * modules/fchdir-tests: New file.
81083         * tests/test-fchdir.c: Likewise.
81085         canonicalize: allow cross-testing from cygwin to mingw
81086         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81087         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81088         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81089         Likewise.
81090         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81091         target does not support symlinks.
81092         * tests/test-canonicalize-lgpl.sh: Likewise.
81094         chown: avoid compilation warning on mingw
81095         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81096         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81097         mingw.
81098         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81099         * modules/chown (Depends-on): Add errno.
81101 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81103         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81104         command.
81106 2009-08-31  Jim Meyering  <meyering@redhat.com>
81108         canonicalize: remove useless initialization
81109         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81110         initialization of local, "end".
81112 2009-08-30  Bruno Haible  <bruno@clisp.org>
81114         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81115         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81116         ENOSYS.
81118 2009-08-30  Bruno Haible  <bruno@clisp.org>
81120         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81121         /usr/xpg4/bin/tr when it exists.
81122         * tests/test-pipe-filter-gi1.sh: Likewise.
81124 2009-08-30  Bruno Haible  <bruno@clisp.org>
81126         Work around deficient /usr/bin/id program on Solaris.
81127         * tests/test-file-has-acl.sh (ID): New variable.
81128         * tests/test-set-mode-acl.sh (ID): Likewise.
81129         * tests/test-copy-acl.sh (ID): Likewise.
81130         * tests/test-copy-file.sh (ID): Likewise.
81132 2009-08-30  Bruno Haible  <bruno@clisp.org>
81134         New module 'xstriconveh'.
81135         * lib/xstriconveh.h: New file.
81136         * lib/xstriconveh.c: New file.
81137         * modules/xstriconveh: New file.
81139 2009-08-30  Bruno Haible  <bruno@clisp.org>
81141         Make it easier to use mem_cd_iconveh.
81142         * lib/striconveh.h (iconveh_t): New type.
81143         (iconveh_open, iconveh_close): New declarations.
81144         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81145         with a single 'const iconveh_t *' argument.
81146         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81147         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81148         with a single 'const iconveh_t *' argument.
81149         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81150         * tests/test-striconveh.c (main): Update.
81151         * NEWS: Mention the change.
81153 2009-08-30  Bruno Haible  <bruno@clisp.org>
81155         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81156         problem.
81158 2009-08-30  Bruno Haible  <bruno@clisp.org>
81160         Work around iconv_open problem on Solaris.
81161         * lib/iconv_open-solaris.gperf: New file.
81162         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81164         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81165         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81166         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81167         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81169 2009-08-29  Jim Meyering  <meyering@redhat.com>
81171         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81172         * top/maint.mk (cvs-check): Remove target; it was just an alias
81173         to the better-named vc-diff-check.
81174         (maintainer-distcheck): Remove rule.  It was used only from
81175         the (alpha/beta/major) target, and all of its commands but one
81176         were coreutils-specific.
81177         (vc-dist): Remove rule.
81178         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81179         Run vc-diff-check, not vc-dist.
81180         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81182 2009-08-27  Bruno Haible  <bruno@clisp.org>
81184         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81185         of 0.
81187 2009-08-27  Bruno Haible  <bruno@clisp.org>
81189         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81190         compilers.
81191         * doc/func.texi: Document the SunPRO C bug.
81193 2009-08-27  Bruno Haible  <bruno@clisp.org>
81195         Fix link error on Solaris.
81196         * tests/test-parse-duration.c (xstrdup): Remove function.
81198 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81200         ignore-value: handle pointer types, too
81201         * lib/ignore-value.h (__attribute__): Remove definition.
81202         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81203         of a more concise and more-often effective "(void) i" statement.
81204         (ignore_ptr): New function to suppress warnings from functions that
81205         return pointers, and to make it explicit that one function doesn't
81206         handle all cases.
81208 2009-08-25  Bruno Haible  <bruno@clisp.org>
81210         dup2: work around a Linux bug.
81211         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81212         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81213         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81214         Reported by Simon Josefsson.
81216 2009-08-25  Jim Meyering  <meyering@redhat.com>
81218         libguestfs uses gnulib
81219         * users.txt: Add libguestfs.
81221 2009-08-24  Eric Blake  <ebb9@byu.net>
81223         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81224         * lib/pipe2.c (includes): Add binary-io.h.
81225         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81227 2009-08-24  Bruno Haible  <bruno@clisp.org>
81229         Tolerate declared but missing accept4 syscall.
81230         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81231         available.
81232         * lib/sys_socket.in.h (accept4): If the function is already present,
81233         override it.
81234         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81235         * modules/accept4 (Makefile.am): Compile accept4.c always.
81236         Reported by Paolo Bonzini and Eric Blake.
81238 2009-08-23  Bruno Haible  <bruno@clisp.org>
81240         New module 'accept4'.
81241         * lib/sys_socket.in.h (accept4): New declaration.
81242         * lib/accept4.c: New file.
81243         * m4/accept4.m4: New file.
81244         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81245         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81246         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81247         HAVE_ACCEPT4.
81248         * modules/accept4: New file.
81249         * doc/glibc-functions/accept4.texi: Mention the new module.
81251 2009-08-24  Jim Meyering  <meyering@redhat.com>
81253         progname: also set global program_invocation_name, when possible
81254         Before this change, a libtool-enabled program that calls glibc's
81255         error function would report the program name as
81256         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81257         * modules/progname (configure.ac): Check for a declaration of
81258         program_invocation_name.
81259         * lib/progname.c:  Include <errno.h>.
81260         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81261         Set program_invocation_name.
81263 2009-08-23  Bruno Haible  <bruno@clisp.org>
81265         * lib/dup3.c: Include <string.h>.
81267 2009-08-23  Bruno Haible  <bruno@clisp.org>
81269         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81270         * lib/pipe2.c (pipe2): Likewise.
81271         Suggested by Eric Blake.
81273 2009-08-23  Bruno Haible  <bruno@clisp.org>
81275         Tolerate declared but missing dup3 syscall.
81276         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81277         * lib/unistd.in.h (dup3): If the function is already present,
81278         override it.
81279         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81280         * modules/dup3 (Makefile.am): Compile dup3.c always.
81281         Reported by Paolo Bonzini.
81283 2009-08-23  Bruno Haible  <bruno@clisp.org>
81285         Tolerate declared but missing pipe2 syscall.
81286         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81287         available.
81288         * lib/unistd.in.h (pipe2): If the function is already present,
81289         override it.
81290         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81291         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81292         Reported by Paolo Bonzini.
81294 2009-08-23  Bruno Haible  <bruno@clisp.org>
81296         * lib/pipe2.c (pipe2): Move #ifs inside function.
81298 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81300         quotearg: document limitations of quote_these_too
81301         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81302         those limitations are created.
81303         * lib/quotearg.h (set_char_quoting): Document that digits and
81304         letters that are special after backslash are not permitted.
81305         (quotearg_char): Cross-reference set_char_quoting documentation.
81307 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81309         quotearg: implement custom_quoting_style
81310         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81311         right_quote fields.
81312         (set_custom_quoting): New public function.
81313         (quotearg_buffer_restyled): Add left_quote and right_quote
81314         arguments, handle them very much like locale quoting, and update
81315         all uses.
81316         (quotearg_n_custom): New public function.
81317         (quotearg_n_custom_mem): New public function.
81318         (quotearg_custom): New public function.
81319         (quotearg_custom_mem): New public function.
81320         * lib/quotearg.h: Prototype and document new public functions.
81321         (enum quoting_style): For escape_quoting_style and
81322         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81323         ignored even though they're otherwise like c_quoting_style.
81324         Add custom_quoting_style member and document with comparison to
81325         clocale_quoting_style.
81326         * tests/test-quotearg.c (custom_quotes): New array.
81327         (custom_results): New array.
81328         (main): Extend to test custom quoting.
81330 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81332         quotearg: fix right quote escaping when it's in quote_these_too
81333         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81334         quote, be sure to prepend only one backslash.
81335         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81336         (main): Test it.
81338 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81340         quotearg-tests: test escaping of embedded locale quotes
81341         * tests/test-quotearg.c (struct result_strings): Add member for
81342         new input.
81343         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81344         (inputs): Add new input.
81345         (results_g): Add expected results.
81346         (flag_results): Likewise.
81347         (locale_results): Likewise.
81348         (compare_strings): Check those.
81350 2009-08-23  Bruno Haible  <bruno@clisp.org>
81352         Tests for module 'dup3'.
81353         * modules/dup3-tests: New file.
81354         * tests/test-dup3.c: New file.
81356         New module 'dup3'.
81357         * lib/unistd.in.h (dup3): New declaration.
81358         * lib/dup3.c: New file.
81359         * m4/dup3.m4: New file.
81360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81361         HAVE_DUP3.
81362         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81363         * modules/dup3: New file.
81364         * doc/glibc-functions/dup3.texi: Mention the new module.
81366 2009-08-23  Bruno Haible  <bruno@clisp.org>
81368         Tweak the dup2 test.
81369         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81370         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81371         the test file is still empty. Fix argument order of lseek.
81373 2009-08-23  Bruno Haible  <bruno@clisp.org>
81375         Avoid test link errors when the modules getopt-gnu, gettext are used.
81376         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81379 2009-08-23  Bruno Haible  <bruno@clisp.org>
81381         Fix getdtablesize() on mingw.
81382         * lib/getdtablesize.c (getdtablesize): Implement differently.
81383         * lib/unistd.in.h (getdtablesize): Improve comment.
81385 2009-08-23  Bruno Haible  <bruno@clisp.org>
81387         New module 'mkostemp'.
81388         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81389         * lib/stdlib.in.h (mksotemp): New declaration.
81390         * lib/mkostemp.c: New file, from glibc with modifications.
81391         * lib/tempname.h (GT_FILE): Remove outdated comment.
81392         (gen_tempname): Add flags argument.
81393         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81394         (__GT_FILE): Map to 1.
81395         (small_open, large_open): Remove macros.
81396         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81397         * lib/mkstemp.c (mkstemp): Update.
81398         * lib/mkdtemp.c (mkdtemp): Likewise.
81399         * m4/mkostemp.m4: New file.
81400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81401         HAVE_MKOSTEMP.
81402         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81403         HAVE_MKOSTEMP.
81404         * modules/mkostemp: New file, based on modules/mkstemp.
81405         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81406         * NEWS: Mention the change.
81408 2009-08-23  Bruno Haible  <bruno@clisp.org>
81410         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81411         Reported by Eric Blake.
81413 2009-08-23  Bruno Haible  <bruno@clisp.org>
81415         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81416         Reported by Eric Blake.
81418 2009-08-23  Bruno Haible  <bruno@clisp.org>
81420         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81421         * modules/pipe2 (Depends-on): Likewise.
81423 2009-08-23  Eric Blake  <ebb9@byu.net>
81425         fcntl-h: add O_TTY_INIT support
81426         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81427         * tests/test-fcntl-h.c (o): Test it.
81428         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81430         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81431         * modules/fcntl: Move <fcntl.h> header replacement...
81432         * modules/fcntl-h: ...to new name, so as not to collide with
81433         like-named function.
81434         * tests/test-fcntl.c: Rename...
81435         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81436         * modules/fcntl-tests: Rename...
81437         * modules/fcntl-h-tests: ...to this.  Update test file name.
81438         * modules/chdir-long (Depends-on): Update clients.
81439         * modules/chdir-safer (Depends-on): Likewise.
81440         * modules/fcntl-safer (Depends-on): Likewise.
81441         * modules/fts (Depends-on): Likewise.
81442         * modules/mkancesdirs (Depends-on): Likewise.
81443         * modules/mkdir-p (Depends-on): Likewise.
81444         * modules/open (Depends-on): Likewise.
81445         * modules/savewd (Depends-on): Likewise.
81446         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81447         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81449 2009-08-22  Bruno Haible  <bruno@clisp.org>
81451         * modules/binary-io (License): Relicense under LGPL.
81452         * modules/pipe2 (License): Likewise.
81454 2009-08-22  Bruno Haible  <bruno@clisp.org>
81456         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81457         return value.
81458         * lib/pipe-filter-gi.c (filter_init): Likewise.
81459         Reported by Eric Blake.
81461 2009-08-22  Bruno Haible  <bruno@clisp.org>
81463         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81464         * modules/pipe (Depends-on): Add pipe2.
81466 2009-08-22  Bruno Haible  <bruno@clisp.org>
81468         Tests for module 'pipe2'.
81469         * modules/pipe2-tests: New file.
81470         * tests/test-pipe2.c: New file.
81472         New module 'pipe2'.
81473         * lib/unistd.in.h (pipe2): New declaration.
81474         * lib/pipe2.c: New file.
81475         * m4/pipe2.m4: New file.
81476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81477         HAVE_PIPE2.
81478         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81479         * modules/pipe2: New file.
81480         * doc/glibc-functions/pipe2.texi: Mention the new module.
81482 2009-08-22  Bruno Haible  <bruno@clisp.org>
81484         Reference some new glibc functions.
81485         * doc/glibc-functions/accept4.texi: New file.
81486         * doc/glibc-functions/dup3.texi: New file.
81487         * doc/glibc-functions/mkostemp.texi: New file.
81488         * doc/glibc-functions/pipe2.texi: New file.
81489         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81490         (Glibc sys/socket.h): Refer to accept4.
81491         (Glibc unistd.h): Refer to dup3, pipe2.
81492         Reported by Eric Blake.
81494 2009-08-22  Jim Meyering  <meyering@redhat.com>
81495             Bruno Haible  <bruno@clisp.org>
81497         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81498         This makes it so packages using automake-1.11's silent-rules option
81499         can print e.g., a single "GEN    configmake.h" line, rather than
81500         the 30+ statements that perform the job.  If you want to see the
81501         actual commands, you can still run "make V=1".
81502         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81503         so that make output is abbreviated when those variables are defined
81504         appropriately.
81505         * modules/argz: Likewise.
81506         * modules/arpa_inet: Likewise.
81507         * modules/byteswap: Likewise.
81508         * modules/configmake: Likewise.
81509         * modules/dirent: Likewise.
81510         * modules/errno: Likewise.
81511         * modules/fcntl: Likewise.
81512         * modules/float: Likewise.
81513         * modules/fnmatch: Likewise.
81514         * modules/getopt-posix: Likewise.
81515         * modules/glob: Likewise.
81516         * modules/iconv_open: Likewise.
81517         * modules/inttypes: Likewise.
81518         * modules/localcharset: Likewise.
81519         * modules/locale: Likewise.
81520         * modules/math: Likewise.
81521         * modules/netdb: Likewise.
81522         * modules/netinet_in: Likewise.
81523         * modules/poll: Likewise.
81524         * modules/posix_spawnp-tests: Likewise.
81525         * modules/sched: Likewise.
81526         * modules/search: Likewise.
81527         * modules/selinux-h: Likewise.
81528         * modules/signal: Likewise.
81529         * modules/spawn: Likewise.
81530         * modules/stdarg: Likewise.
81531         * modules/stdbool: Likewise.
81532         * modules/stddef: Likewise.
81533         * modules/stdint: Likewise.
81534         * modules/stdio: Likewise.
81535         * modules/stdlib: Likewise.
81536         * modules/string: Likewise.
81537         * modules/strings: Likewise.
81538         * modules/sys_file: Likewise.
81539         * modules/sys_ioctl: Likewise.
81540         * modules/sys_select: Likewise.
81541         * modules/sys_socket: Likewise.
81542         * modules/sys_stat: Likewise.
81543         * modules/sys_time: Likewise.
81544         * modules/sys_times: Likewise.
81545         * modules/sys_utsname: Likewise.
81546         * modules/sys_wait: Likewise.
81547         * modules/sysexits: Likewise.
81548         * modules/time: Likewise.
81549         * modules/unistd: Likewise.
81550         * modules/wchar: Likewise.
81551         * modules/wctype: Likewise.
81553 2009-08-22  Jim Meyering  <meyering@redhat.com>
81555         announce-gen: detect write failure
81556         * build-aux/announce-gen: Add Coda at end.
81557         Remove equivalent-but-more-verbose block at top.
81559 2009-08-19  Akim Demaille  <demaille@gostai.com>
81561         bootstrap: --help to stdout.
81562         * bootstrap (usage): Don't send --help to stderr.
81563         Use a here doc instead of a long string.
81565 2009-08-21  Eric Blake  <ebb9@byu.net>
81567         test-popen-safer: split from test-popen
81568         * tests/test-popen.c (main): Move...
81569         * tests/test-popen.h: ...into new file.
81570         * tests/test-popen-safer2.c: New file.
81571         * modules/popen-tests (Files): Add test-popen.h.
81572         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81573         Suggested by Bruno Haible.
81575         test-fcntl-safer: split from test-open
81576         * tests/test-open.c (main): Move...
81577         * tests/test-open.h: ...into new file.
81578         * tests/test-fcntl-safer.c: New file.
81579         * modules/open-tests (Files): Add test-open.h.
81580         * modules/fcntl-safer-tests: New file.
81581         Suggested by Bruno Haible.
81583         test-fopen-safer: split from test-fopen
81584         * tests/test-fopen.c (main): Move...
81585         * tests/test-fopen.h: ...into new file.
81586         * tests/test-fopen-safer.c: New file.
81587         * modules/fopen-tests (Files): Add test-fopen.h.
81588         * modules/fopen-safer-tests: New file.
81589         Suggested by Bruno Haible.
81591 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81593         popen-safer: test O_CLOEXEC at run-time.
81594         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81596 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81598         fcntl: move more flags to the header
81599         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81600         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81601         * lib/fcntl.in.h: Do both things here.
81603 2009-08-21  Jim Meyering  <meyering@redhat.com>
81605         consistently remove $@-t before redirecting to it
81606         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81607         * modules/alloca-opt: Likewise.
81608         * modules/byteswap: Likewise.
81609         * modules/fnmatch: Likewise.
81610         * modules/getopt-posix: Likewise.
81611         * modules/glob: Likewise.
81612         * modules/poll: Likewise.
81613         * modules/posix_spawnp-tests: Likewise.
81614         * modules/sys_socket: Likewise.
81615         * modules/sysexits: Likewise.
81617 2009-08-21  Eric Blake  <ebb9@byu.net>
81619         popen: simplify access to original popen
81620         * lib/popen.c (rpl_popen): No need to worry about popen being a
81621         macro.
81622         Reported by Bruno Haible.
81624 2009-08-20  Eric Blake  <ebb9@byu.net>
81626         build: avoid some compiler warnings
81627         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81628         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81629         type.
81630         (new_exclude_segment, excluded_file_pattern_p)
81631         (excluded_file_name_p): Reduce scope.
81632         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81633         old-style declaration.
81635 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81637         * tests/test-exclude1.sh: Handle Windows EOL.
81638         * tests/test-exclude2.sh: Likewise.
81639         * tests/test-exclude3.sh: Likewise.
81640         * tests/test-exclude4.sh: Likewise.
81641         * tests/test-exclude5.sh: Likewise.
81642         * tests/test-exclude6.sh: Likewise.
81643         * tests/test-exclude7.sh: Likewise.
81645 2009-08-19  Akim Demaille  <demaille@gostai.com>
81647         bootstrap: find sha1sum when named gsha1sum.
81648         * bootstrap (find_tool): New.
81649         ($SHA1SUM): New.
81650         Use it.
81652 2009-08-20  Jim Meyering  <meyering@redhat.com>
81654         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81655         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81656         expression that converts "." in a file name to "\." in the resulting
81657         regexp.  Start with a dummy statement, so that prior shell variable
81658         definitions are expanded portably.  Reported by Simon Josefsson.
81660 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81662         Fix polling for writeability of a screen buffer.
81663         * lib/poll.c: Distinguish input and screen buffers for the
81664         Win32 implementation.
81665         * lib/select.c: Likewise.
81667 2009-08-19  Eric Blake  <ebb9@byu.net>
81669         popen-safer: prevent popen from clobbering std descriptors
81670         * modules/popen-safer: New file.
81671         * lib/popen-safer.c: Likewise.
81672         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81673         * lib/stdio--.h (popen): Provide override.
81674         * lib/stdio-safer.h (popen_safer): Provide declaration.
81675         * tests/test-popen.c (includes): Partially test this.
81676         * modules/popen-safer-tests: New file, for more tests.
81677         * tests/test-popen-safer.c: Likewise.
81678         * MODULES.html.sh (file stream based Input/Output): Mention it.
81680         tests: test some of the *-safer modules
81681         * modules/fopen-safer (Depends-on): Add fopen.
81682         * modules/fcntl-safer (Depends-on): Add fcntl.
81683         * modules/stdlib-safer (Depends-on): Add stdlib.
81684         (configure.ac): Set indicator.
81685         * modules/unistd-safer (configure.ac): Likewise.
81686         * modules/tmpfile-safer (configure.ac): Likewise.
81687         (Depends-on): Add tmpfile.
81688         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81689         active.
81690         * tests/test-fopen.c (includes): Test safer versions when they are
81691         in use.
81692         * tests/test-open.c (includes): Likewise.
81694         popen: fix cygwin 1.5 bug when stdin closed
81695         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81696         * modules/popen: New file.
81697         * modules/popen-tests: Likewise.
81698         * tests/test-popen.c: Likewise.
81699         * m4/popen.m4: Likewise.
81700         * lib/popen.c: Likewise.
81701         * lib/stdio.in.h (popen): New declaration.
81702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81703         * modules/stdio (Makefile.am): Likewise.
81704         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81706 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81708         maint.mk: give full control over update-copyright exclusions
81709         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81710         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81711         (update-copyright): Don't force inclusion of top-level
81712         ChangeLog.  Don't force exclusion of all COPYING files, but make
81713         them the default exclusion instead.
81715 2009-08-16  Bruno Haible  <bruno@clisp.org>
81717         Fix test failures on Solaris 10.
81718         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81719         tests when Solaris iconv() is used.
81720         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81721         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81722         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81723         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81724         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81726 2009-08-16  Bruno Haible  <bruno@clisp.org>
81728         Fix test failures on Solaris 10.
81729         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81730         'tr' program and pass it as first argument.
81731         * tests/test-pipe-filter-gi1.sh: Likewise.
81732         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81733         program as first argument.
81734         * tests/test-pipe-filter-gi1.c (main): Likewise.
81736 2009-08-16  Eric Blake  <ebb9@byu.net>
81738         fpurge: fix previous commits
81739         * modules/fpurge (Makefile.am): Make replacement conditional,
81740         partially reverting 2007-04-29 change; missed in previous
81741         attempt.
81742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81743         is missing.
81745 2009-08-16  Bruno Haible  <bruno@clisp.org>
81747         Clarify fpurge's effect on the file position.
81748         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81749         * tests/test-fpurge.c (main): Make a second pass for checking the file
81750         position.
81752 2009-08-16  Bruno Haible  <bruno@clisp.org>
81754         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81755         declaration of fpurge is missing.
81756         * tests/test-fpurge.c (main): Check that the file has not more contents
81757         than expected. Close the file before removing it.
81759 2009-08-15  Eric Blake  <ebb9@byu.net>
81761         fpurge: don't wrap working cygwin implementation
81762         * lib/fpurge.c (fpurge): Fix comment typo.
81763         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81764         1.7 to avoid replacement.
81765         * tests/test-fpurge.c (main): Enhance test.
81767 2009-08-15  Eric Blake  <ebb9@byu.net>
81768         and Jim Meyering  <meyering@redhat.com>
81770         test-update-copyright: skip if perl is insufficient
81771         * tests/test-update-copyright.sh: Failure to run maintainer tool
81772         should not cause testsuite failure on cygwin 1.5.
81774 2009-08-14  Eric Blake  <ebb9@byu.net>
81776         doc: mention more functions added in cygwin 1.7.0
81777         * doc/posix-headers/limits.texi (limits.h): Update for recent
81778         cygwin additions.
81779         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81780         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81781         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81782         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81783         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81785 2009-08-14  Eric Blake  <ebb9@byu.net>
81787         maint.mk: simplify update-copyright rule
81788         * top/maint.mk (update-copyright-local): Delete, and document how
81789         to do it in cfg.mk instead.
81790         (update-copyright-exclude-regexp): Delete, and document how to do
81791         it in .x-update-copyright instead.
81792         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81793         exclude ChangeLog.
81795 2009-08-14  Bruno Haible  <bruno@clisp.org>
81797         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81799 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81801         maint.mk: support update-copyright-env
81802         * top/maint.mk (update-copyright-env): Define place-holder.
81803         (update-copyright): Expand $(update-copyright-env) before
81804         invoking update-copyright.
81806 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81808         update-copyright: implement forced reformatting
81809         * build-aux/update-copyright: Implement and document
81810         UPDATE_COPYRIGHT_FORCE.
81811         * tests/test-update-copyright.sh: Test it.
81813 2009-08-14  Eric Blake  <ebb9@byu.net>
81814         and Bruno Haible  <bruno@clisp.org>
81816         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81817         * tests/test-locale.c: Revert previous patch related to NULL.
81818         * tests/test-stdio.c: Likewise.
81819         * tests/test-stdlib.c: Likewise.
81820         * tests/test-string.c: Likewise.
81821         * tests/test-unistd.c: Likewise.
81822         * modules/time-tests (Depends-on): Add verify.
81823         * modules/wchar-tests (Depends-on): Likewise.
81824         * tests/test-time.c: Test for NULL compliance.
81825         * tests/test-wchar.c: Likewise.
81826         * modules/locale (Depends-on): Add stddef.
81827         * modules/stdio (Depends-on): Likewise.
81828         * modules/stdlib (Depends-on): Likewise.
81829         * modules/string (Depends-on): Likewise.
81830         * modules/time (Depends-on): Likewise.
81831         * modules/unistd (Depends-on): Likewise.
81832         * modules/wchar (Depends-on): Likewise.
81833         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81834         * lib/stdlib.in.h (includes): Likewise.
81835         * lib/string.in.h (includes): Likewise.
81836         * lib/time.in.h (includes): Likewise.
81837         * lib/unistd.in.h (includes): Likewise.
81838         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81839         replaced.
81840         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81841         * m4/stddef_h.m4: New file.
81842         * modules/stddef: Likewise.
81843         * lib/stddef.in.h: Likewise.
81844         * modules/stddef-tests: Likewise.
81845         * tests/test-stddef.c: Likewise.
81846         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81847         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81848         * doc/posix-headers/locale.texi (locale.h): Likewise.
81849         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81850         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81851         * doc/posix-headers/string.texi (string.h): Likewise.
81852         * doc/posix-headers/time.texi (time.h): Likewise.
81853         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81854         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81856 2009-08-14  Eric Blake  <ebb9@byu.net>
81858         doc: improve git diff of texinfo files
81859         * .gitattributes: Add rule for *.texi files, with hint on how to
81860         use it.
81861         Copied from m4, and based on a report by Bruno Haible.
81863 2009-08-14  Bruno Haible  <bruno@clisp.org>
81865         Disable multithread support by default on Cygwin 1.5.x for real.
81866         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81868 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81870         update-copyright: much ado about intervals
81871         * build-aux/update-copyright: Implement and document
81872         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81873         of copyright year intervals.
81874         Also, document UPDATE_COPYRIGHT_YEAR.
81875         * tests/test-update-copyright.sh: Test it.
81877         update-copyright: convert 2-digit to 4-digit years
81878         * build-aux/update-copyright: Implement and document.
81879         * tests/test-update-copyright.sh: Update.
81881 2009-08-14  Jim Meyering  <meyering@redhat.com>
81883         test-exclude: avoid coreutils "make check" failure
81884         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81885         just as in test-argmatch.c.
81887 2009-08-13  Eric Blake  <ebb9@byu.net>
81889         test-dup2: fix bad assumption
81890         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81891         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81893         test-version-etc: fix CRLF portability issue
81894         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81895         recognize \r.
81896         * tests/test-argp-version-etc-1.sh: Likewise.
81898         getopt: update client modules
81899         * modules/argp (Depends-on): Use getopt-gnu.
81900         * modules/git-merge-changelog (Depends-on): Likewise.
81901         * modules/long-options (Depends-on): Likewise.
81902         * modules/xstrtol (Depends-on): Likewise.
81904 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81906         * tests/test-version-etc.sh: Don't fail on different
81907         project/version.  Don't fail on CRLF differences.  Rewrite to use
81908         multiple -e instead of multiple sed forks, suggested by Eric Blake
81909         <ebb9@byu.net>.
81910         * tests/test-argp-version-etc-1.sh: Likewise.
81912 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81914         * tests/test-version-etc.sh: Don't fail on different
81915         project/version.
81917 2009-08-12  Bruno Haible  <bruno@clisp.org>
81919         Tests for modules 'getopt-posix', 'getopt-gnu'.
81920         * modules/getopt-posix-tests: New file.
81921         * tests/test-getopt.c: New file.
81922         * tests/test-getopt.h: New file.
81923         * tests/test-getopt_long.h: New file.
81925         New modules 'getopt-posix', 'getopt-gnu'.
81926         * modules/getopt-gnu: New file, renamed from modules/getopt.
81927         * modules/getopt-posix: New file.
81928         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81929         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81930         (gl_GETOPT): Remove macro.
81931         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81932         Disable the test against BSD systems that declare optreset. Test
81933         against mingw bug. Test against lack of support of optional arguments
81934         on many platforms.
81935         * doc/glibc-headers/getopt.texi: Update module name and list of
81936         relevant platforms.
81937         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81938         'getopt-gnu' and more portability problems.
81939         * NEWS: Mention the changes.
81941 2009-08-12  Bruno Haible  <bruno@clisp.org>
81943         Ensure that optarg etc. get declared by <unistd.h>.
81944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81945         AC_USE_SYSTEM_EXTENSIONS.
81946         * modules/getopt (Depends-on): Add 'extensions'.
81948 2009-08-12  Bruno Haible  <bruno@clisp.org>
81950         Avoid test link errors.
81951         * modules/pipe-filter-ii-tests (Makefile.am): Define
81952         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81953         * modules/pipe-filter-gi-tests (Makefile.am): Define
81954         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81957 2009-08-12  Bruno Haible  <bruno@clisp.org>
81959         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81960         gl_GETOPT_SUBSTITUTE before.
81961         (gl_GETOPT): Use it.
81962         * m4/argp.m4 (gl_ARGP): Update.
81963         Reported by Sergey Poznyakoff.
81965         * m4/getopt.m4: Reorder macros.
81966         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81967         (gl_GETOPT_SUBSTITUTE): Remove macro.
81969 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81971         Minor improvement in gitlog-to-changelog
81973         * build-aux/gitlog-to-changelog: New option `--format' makes
81974         output format string configurable.
81976 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81978         Optimize exclude: use hash tables for non-wildcard patterns.
81980         * lib/exclude.c: Include hash.h and mbuiter.h
81981         (struct exclude_pattern, exclude_segment): New data types.
81982         (struct exclude): Rewrite.
81983         (fnmatch_pattern_has_wildcards): New function.
81984         (new_exclude_segment, free_exclude_segment): New functions.
81985         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81986         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81987         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81988         * modules/exclude: Depend on hash and mbuiter.
81990         * modules/exclude-tests: New file.
81991         * tests/test-exclude.c: New file.
81992         * tests/test-exclude1.sh: New file.
81993         * tests/test-exclude2.sh: New file.
81994         * tests/test-exclude3.sh: New file.
81995         * tests/test-exclude4.sh: New file.
81996         * tests/test-exclude5.sh: New file.
81997         * tests/test-exclude6.sh: New file.
81998         * tests/test-exclude7.sh: New file.
82000 2009-08-12  Bruno Haible  <bruno@clisp.org>
82002         Ensure that getopt() gets declared by <unistd.h>.
82003         * lib/unistd.in.h: Conditionally include getopt.h.
82004         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82005         Set GNULIB_UNISTD_H_GETOPT.
82006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82007         GNULIB_UNISTD_H_GETOPT.
82008         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82010 2009-08-12  Bruno Haible  <bruno@clisp.org>
82012         Clarify logic.
82013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82014         gl_replace_getopt instead of GETOPT_H.
82016 2009-08-12  Bruno Haible  <bruno@clisp.org>
82018         * m4/getopt.m4: Add comments.
82020 2009-08-12  Bruno Haible  <bruno@clisp.org>
82022         Disable multithread support by default on Cygwin 1.5.x.
82023         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82024         set gl_use_threads=no if not specified otherwise.
82026 2009-08-11  Bruno Haible  <bruno@clisp.org>
82028         Avoid compilation error on NetBSD 5.0.
82029         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82030         * tests/test-stdio.c: Likewise.
82031         * tests/test-stdlib.c: Likewise.
82032         * tests/test-string.c: Likewise.
82033         * tests/test-unistd.c: Likewise.
82034         Reported by Greg Troxel <gdt@ir.bbn.com>
82035         at <https://savannah.gnu.org/support/?106973>.
82037 2009-08-11  Bruno Haible  <bruno@clisp.org>
82039         * modules/dup2-tests (Depends-on): Remove close.
82041         Undo 2009-07-19 commit.
82042         * modules/acl-tests (Depends-on): Remove close.
82043         * modules/binary-io-tests (Depends-on): Likewise.
82044         * modules/closein-tests (Depends-on): Likewise.
82045         * modules/flock-tests (Depends-on): Likewise.
82046         * modules/fsync-tests (Depends-on): Likewise.
82047         * modules/lseek-tests (Depends-on): Likewise.
82048         * modules/pipe-tests (Depends-on): Likewise.
82049         * modules/posix_spawn-tests (Depends-on): Likewise.
82050         * modules/posix_spawnp-tests (Depends-on): Likewise.
82051         * modules/stat-time-tests (Depends-on): Likewise.
82052         * modules/yesno-tests (Depends-on): Likewise.
82054 2009-08-10  Bruno Haible  <bruno@clisp.org>
82056         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82058 2009-08-10  Bruno Haible  <bruno@clisp.org>
82060         Fix a gcc warning.
82061         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82063 2009-08-10  Bruno Haible  <bruno@clisp.org>
82065         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82066         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82067         not only the first time.
82068         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82069         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82070         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82071         is 1, not only the first time.
82073 2009-08-10  Bruno Haible  <bruno@clisp.org>
82075         Make it possible to use module 'gethostname' without module 'close'.
82076         * lib/unistd.in.h (close): Evoke a link error only if
82077         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82079         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82080         * modules/unistd (Makefile.am): Substitute
82081         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82082         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82083         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82084         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82085         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82086         * modules/sys_ioctl (Makefile.am): Substitute
82087         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82088         * modules/socket (configure.ac): On native Windows, set
82089         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82090         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82091         Reported by Sam Steingold <sds@gnu.org>.
82093 2009-08-10  Bruno Haible  <bruno@clisp.org>
82095         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82096         * modules/ioctl (configure.ac): Likewise.
82098 2009-08-10  Bruno Haible  <bruno@clisp.org>
82100         Avoid collision between gnulib wrapper and libintl wrapper.
82101         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82102         already defined in intl/printf.c.
82103         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82104         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82106 2009-08-09  Bruno Haible  <bruno@clisp.org>
82108         Make <sys/select.h> really self-contained, also on Solaris 10.
82109         * lib/sys_select.in.h: Include <string.h>.
82110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82111         Solaris 10 problem.
82112         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82113         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82114         Reported by Jim Meyering.
82116 2009-08-09  Bruno Haible  <bruno@clisp.org>
82118         Avoid warnings from 'aclocal' that are due to a use of macro name
82119         AM_XGETTEXT_OPTION that is not defined in automake.
82120         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82121         automake.
82122         * modules/error (configure.ac): Likewise.
82123         * modules/propername (configure.ac): Likewise.
82124         * modules/vasprintf (configure.ac): Likewise.
82125         * modules/verror (configure.ac): Likewise.
82126         * modules/xprintf (configure.ac): Likewise.
82127         * modules/xvasprintf (configure.ac): Likewise.
82129 2009-08-08  Bruno Haible  <bruno@clisp.org>
82131         Avoid compilation error in C++ mode.
82132         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82133         Reported by Sam Steingold <sds@gnu.org>.
82135 2009-08-08  Bruno Haible  <bruno@clisp.org>
82137         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82138         for the various Unix platforms.
82139         * doc/posix-headers/limits.texi: Update platforms list regarding
82140         HOST_NAME_MAX.
82141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82143 2009-08-07  Jim Meyering  <meyering@redhat.com>
82145         selinux-at: fix typo in a comment
82146         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82147         Spotted by Paolo Bonzini.
82149         selinux-at: remove redundant m4 code, add documentation
82150         * modules/selinux-at (configure.ac): Remove redundant code.
82151         LIB_SELINUX is already set via the dependent module, selinux-h.
82152         (Include): Add quotes around selinux-at.h.
82153         * lib/selinux-at.h: Add documentation.
82154         Reported by Bruno Haible in
82155         http://marc.info/?l=gnulib-bug&m=124958988300749
82157 2009-08-07  Bruno Haible  <bruno@clisp.org>
82159         Avoid link error on MacOS X 10.3 and 10.4.
82160         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82161         on non-ELF systems.
82162         * lib/argp-pv.c (argp_program_version): Likewise.
82163         Reported by Simon Josefsson.
82165 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82167         * tests/test-version-etc.sh: Use $EXEEXT.
82169 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82171         update-copyright: update documentation to point to maint.mk
82172         * build-aux/update-copyright: Here.
82174 2009-08-06  Jim Meyering  <meyering@redhat.com>
82176         maint.mk: support update-copyright-local
82177         * top/maint.mk (update-copyright-local): Define place-holder.
82178         (update-copyright): Depend on $(update-copyright-local).
82180 2009-08-06  Jim Meyering  <meyering@redhat.com>
82182         selinux-at: new module
82183         Initially written for coreutils, this module will soon be
82184         used by findutils, too.
82185         * MODULES.html.sh [Misc]: Add selinux-at.
82186         * lib/selinux-at.h: New file, from coreutils.
82187         * lib/selinux-at.c: Likewise.
82188         * modules/selinux-at: Likewise.
82189         (License): Change from LGPL to GPL, since it depends
82190         on the GPL'd openat module.
82192         doc: update README
82193         * README: Remove references to cogito.
82194         Remove cvs-repo-updating instructions from 2007.
82195         Don't imply that CVS is better if you have limited disk space.
82197 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82199         update-copyright: support C-style comments
82200         * build-aux/update-copyright: Implement and document.
82201         * tests/test-update-copyright.sh: Test.
82203 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82205         update-copyright: support omitted "(C)"
82206         * build-aux/update-copyright: Implement and document.  Also,
82207         allow variable whitespace before "(C)".
82208         * tests/test-update-copyright.sh: Test.
82210 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82212         update-copyright: don't trip on non-FSF copyright statements
82213         * build-aux/update-copyright: Fix so that the first correctly
82214         formatted FSF copyright statement is recognized no matter what
82215         appears before it.  Update documentation.
82216         * tests/test-update-copyright.sh: Test that.
82218 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82220         update-copyright: clean up code a little
82221         * build-aux/update-copyright: Append "_re" to the name of any
82222         variable holding a regular expression.
82223         Replace "old" and "new" with "stmt" in variable names.
82224         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82225         handled correctly.
82226         Format code more consistently.
82228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82230         update-copyright-tests: improve portability
82231         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82232         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82234 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82236         update-copyright: support @copyright{} and &copy;
82237         * build-aux/update-copyright: Implement and document.
82238         * tests/test-update-copyright.sh: Test.
82240 2009-08-04  Jim Meyering  <meyering@redhat.com>
82242         update-copyright-tests: correctly test EOL=\r\n handling
82243         * tests/test-update-copyright.sh: Put \r at the end of some lines
82244         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82246         maint.mk: make update-copyright exclusion list more configurable
82247         * top/maint.mk (update-copyright): Default to excluding COPYING,
82248         but allow an override, in case someone does want to update that file.
82250         maint.mk: don't update copyright date in COPYING
82251         * top/maint.mk (update-copyright): Exclude COPYING.
82253         maint.mk: add a copyright-updating rule
82254         * top/maint.mk (update-copyright): New rule.
82255         Derived from coreutils/Makefile.am.
82257         update-copyright: rename some variables
82258         * build-aux/update-copyright: Rename a few variables for clarity.
82259         Tweak syntax.  List Joel E. Denny as coauthor.
82261 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82263         update-copyright: fix bug for 2-digit last year and add tests
82264         * build-aux/update-copyright: Fix bug.
82265         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82266         specified.
82267         * modules/update-copyright-tests: New
82268         * tests/test-update-copyright.sh: New.
82270 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82272         update-copyright: handle leading tabs in line prefix
82273         * build-aux/update-copyright: Count leading tabs as 8 spaces
82274         when computing margin.  This helps with the formatting of
82275         ChangeLogs, for example.
82276         Fix documentation a little.
82278 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82280         update-copyright: support EOL=\r\n
82281         * build-aux/update-copyright: Implement that.
82283 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82285         update-copyright: automatically format copyright statements
82286         * build-aux/update-copyright: Implement that.
82287         Also, be a little more predictable and safer by always failing
82288         when the full copyright format is not perfectly recognized as an
82289         unbroken whole.  Discussed at
82290         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82291         Rewrite documentation.
82293 2009-08-03  Bruno Haible  <bruno@clisp.org>
82295         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82297 2009-08-02  Bruno Haible  <bruno@clisp.org>
82299         Tests for module 'uname'.
82300         * modules/uname-tests: New file.
82301         * tests/test-uname.c: New file.
82303         New module 'uname'.
82304         * lib/uname.c: New file.
82305         * m4/uname.m4: New file.
82306         * modules/uname: New file.
82307         * doc/posix-functions/uname.texi: Mention the new module.
82309 2009-08-02  Bruno Haible  <bruno@clisp.org>
82311         Tests for module 'sys_utsname'.
82312         * modules/sys_utsname-tests: New file.
82313         * tests/test-sys_utsname.c: New file.
82315         New module 'sys_utsname'.
82316         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82317         * m4/sys_utsname_h.m4: New file.
82318         * modules/sys_utsname: New file.
82319         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82321 2009-08-02  Bruno Haible  <bruno@clisp.org>
82323         Implicitly initialize the sockets library.
82324         * lib/gethostname.c: Include sockets.h.
82325         (rpl_gethostname): Invoke gl_sockets_startup.
82326         * lib/socket.c: Include sockets.h.
82327         (rpl_socket): Invoke gl_sockets_startup.
82328         * modules/gethostname (Depends-on): Add sockets.
82329         * modules/socket (Depends-on): Likewise.
82330         * tests/test-poll.c: Don't include sockets.h.
82331         (main): Don't invoke gl_sockets_startup.
82332         * tests/test-select.c: Don't include sockets.h.
82333         (main): Don't invoke gl_sockets_startup.
82335 2009-08-02  Bruno Haible  <bruno@clisp.org>
82337         Allow multiple calls to gl_sockets_startup.
82338         * lib/sockets.c (initialized_sockets_version): New variable.
82339         (gl_sockets_startup): Do nothing if already called for this or a higher
82340         version.
82341         (gl_sockets_cleanup): Reset initialized_sockets_version.
82343 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82345         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82346         different project/version.
82348 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82349             Bruno Haible  <bruno@clisp.org>
82351         Tests for module 'pipe-filter-gi'.
82352         * modules/pipe-filter-gi-tests: New file.
82353         * tests/test-pipe-filter-gi1.sh: New file.
82354         * tests/test-pipe-filter-gi1.c: New file.
82355         * tests/test-pipe-filter-gi2.sh: New file.
82356         * tests/test-pipe-filter-gi2-main.c: New file.
82357         * tests/test-pipe-filter-gi2-child.c: New file.
82359         New module 'pipe-filter-gi'.
82360         * lib/pipe-filter-gi.c: New file.
82361         * modules/pipe-filter-gi: New file.
82363 2009-08-02  Bruno Haible  <bruno@clisp.org>
82364             Paolo Bonzini  <bonzini@gnu.org>
82366         Tests for module 'pipe-filter-ii'.
82367         * modules/pipe-filter-ii-tests: New file.
82368         * tests/test-pipe-filter-ii1.sh: New file.
82369         * tests/test-pipe-filter-ii1.c: New file.
82370         * tests/test-pipe-filter-ii2.sh: New file.
82371         * tests/test-pipe-filter-ii2-main.c: New file.
82372         * tests/test-pipe-filter-ii2-child.c: New file.
82374         New module 'pipe-filter-ii'.
82375         * lib/pipe-filter.h: New file.
82376         * lib/pipe-filter-ii.c: New file.
82377         * lib/pipe-filter-aux.h: New file.
82378         * modules/pipe-filter-ii: New file.
82380 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82382         * lib/gc-libgcrypt.c: Change copyright to FSF.
82383         * lib/gc-gnulib.c: Likewise.
82385 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82387         * lib/gethostname.c: Include limits.h.
82389 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82390             Bruno Haible  <bruno@clisp.org>
82392         Ensure HOST_NAME_MAX as part of the gethostname module.
82393         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82394         define also HOST_NAME_MAX.
82395         * tests/test-gethostname.c: Include <limits.h>.
82396         (main): Check also HOST_NAME_MAX.
82397         * doc/posix-headers/limits.texi: Document the mingw problem.
82399 2009-08-02  Bruno Haible  <bruno@clisp.org>
82401         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82402         Add comments.
82404 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82406         * lib/gethostname.c: Add Windows wrapper.
82407         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82408         * modules/gethostname: Depend on sys_socket & errno, for also
82409         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82410         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82412 2009-07-31  Jim Meyering  <meyering@redhat.com>
82414         getloadavg: fix symbol name in comment
82415         * lib/getloadavg.c: Correct a typo I introduced when adding
82416         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82417         Matt Kraai spotted the problem.
82419 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82421         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82422         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82423         code also if ! defined N_NAME_POINTER.
82424         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82425         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82426         but the n_name member is a 12-byte array.
82428 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82430         update-copyright: generalize comment handling
82431         * build-aux/update-copyright: Handle copyright statements
82432         within more comment styles.
82433         Document usage.
82434         Report any file with an external copyright holder or parse failure.
82436 2009-07-29  Jim Meyering  <meyering@redhat.com>
82438         mktime: correct setting of REPLACE_MKTIME
82439         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82441         update-copyright: new module
82442         * modules/update-copyright: New file.
82443         * build-aux/update-copyright: New file.
82444         * MODULES.html.sh (maint+release support): Add update-copyright.
82446 2009-07-27  Bruno Haible  <bruno@clisp.org>
82448         Fix compilation error when <ctime> is used and mktime is replaced.
82449         * lib/time.in.h (mktime): New declaration.
82450         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82451         REPLACE_MKTIME instead of defining mktime in config.h.
82452         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82453         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82454         Reported by Ross McFarland <rwmcfa1@neces.com>.
82456 2009-07-27  Bruno Haible  <bruno@clisp.org>
82458         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82459         Reported by Matt Kraai <mkraai@beckman.com>.
82461 2009-07-25  Jim Meyering  <meyering@redhat.com>
82463         maint.mk: avoid warnings about missing files
82464         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82465         diagnostic when .prev-version does not exist.
82466         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82467         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82468         nonexistent cfg.mk.
82469         Suggestions from Simon Josefsson.
82471 2009-07-25  Bruno Haible  <bruno@clisp.org>
82473         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82474         defined as macros. Needed on QNX 6.4.1.
82475         Reported by Matt Kraai <mkraai@beckman.com>.
82477 2009-07-23  Jim Meyering  <meyering@redhat.com>
82479         maint.mk: invoke "make dist" with a working value of XZ_OPT
82480         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82482 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82484         Make fseeko.c compile on QNX.
82485         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82487 2009-07-22  Peter Simons  <simons@cryp.to>
82489         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82490         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82491         * lib/md4.h: Likewise.
82492         * lib/md5.h: Likewise.
82493         * lib/sha1.h: Likewise.
82494         * lib/sha256.h: Likewise.
82495         * lib/sha512.h: Likewise.
82497         tests-sha1: don't assign literal string to 'char *' variable
82498         * tests/test-sha1.c (main): Declare locals with "const" to match
82499         attributes of the right hand side.
82501 2009-07-21  Eric Blake  <ebb9@byu.net>
82503         dup2: fix more mingw problems
82504         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82505         fd to itself.
82506         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82507         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82508         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82509         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82510         care of mingw bugs.
82512 2009-07-21  Jim Meyering  <meyering@redhat.com>
82514         vc-list-files: avoid failure when /bin/sh is dash
82515         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82516         On some Debian based systems, /bin/sh is a symlink to dash, and running
82517         this command would omit the "/" following each 'tests' prefix:
82518           dash -x build-aux/vc-list-files -C . tests
82519         That is because bash and dash work differently:
82520           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82521           bash ok
82522           dash odd
82524 2009-07-21  Eric Blake  <ebb9@byu.net>
82526         dup2-tests: test previous patch
82527         * modules/dup2-tests: New file.
82528         * tests/test-dup2.c: Likewise.
82529         * tests/test-open.c (main): Avoid unspecified behavior.
82530         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82531         test.
82533         dup2: work around mingw and cygwin 1.5 bug
82534         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82536         * modules/unistd (Makefile.am): Substitute it.
82537         * lib/unistd.in.h (dup2): Declare the replacement.
82538         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82539         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82540         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82541         * modules/execute (Depends-on): Add dup2.
82542         * modules/fseterr (Depends-on): Likewise.
82543         * modules/pipe (Depends-on): Likewise.
82544         * modules/posix_spawn-internal (Depends-on): Likewise.
82546 2009-07-21  Bruno Haible  <bruno@clisp.org>
82548         * modules/.gitattributes: New file.
82550 2009-07-20  Bruno Haible  <bruno@clisp.org>
82552         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82553         (main): Use it.
82555 2009-07-20  Eric Blake  <ebb9@byu.net>
82557         test-pipe: make a bit more robust.
82558         * tests/test-pipe.c (myerr): Allow error messages regardless of
82559         what we do to stderr.
82560         (test_pipe): Rearrange to avoid deadlock.
82561         (child_main): Try a larger read, to ensure we avoided deadlock.
82562         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82563         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82564         if misused.
82566 2009-07-19  Jim Meyering  <meyering@redhat.com>
82568         fts: avoid false-positive cycle-detection
82569         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82570         for each new command line argument.
82572 2009-07-19  Bruno Haible  <bruno@clisp.org>
82574         Fix build error on mingw with the modules sys_select and unistd.
82575         * modules/acl-tests (Depends-on): Add close.
82576         * modules/binary-io-tests (Depends-on): Likewise.
82577         * modules/closein-tests (Depends-on): Likewise.
82578         * modules/flock-tests (Depends-on): Likewise.
82579         * modules/fsync-tests (Depends-on): Likewise.
82580         * modules/lseek-tests (Depends-on): Likewise.
82581         * modules/pipe-tests (Depends-on): Likewise.
82582         * modules/posix_spawn-tests (Depends-on): Likewise.
82583         * modules/posix_spawnp-tests (Depends-on): Likewise.
82584         * modules/stat-time-tests (Depends-on): Likewise.
82585         * modules/yesno-tests (Depends-on): Likewise.
82587 2009-07-19  Bruno Haible  <bruno@clisp.org>
82589         Unify conditionals.
82590         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82591         macros, not at the compiler macros.
82592         * lib/pipe.c: Likewise.
82593         * lib/execute.c: Likewise.
82594         * lib/spawni.c: Likewise.
82596 2009-07-19  Bruno Haible  <bruno@clisp.org>
82598         Fix handling of closed stdin/stdout/stderr on mingw.
82599         * lib/w32spawn.h: Include unistd.h.
82600         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82601         file descriptor with O_NOINHERIT flag.
82602         (fd_safer_noinherit): New function, based on fd-safer.c.
82603         (dup_safer_noinherit): New function, based on dup-safer.c.
82604         (undup_safer_noinherit): New function.
82605         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82606         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82607         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82608         instead of fd_safer.
82609         * tests/test-pipe.c: Include <windows.h>.
82610         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82611         result.
82613         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82614         from main.
82615         (test_pipe): Pass an extra argument for disambiguation.
82616         (main): Invoke parent_main or child_main.
82618         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82619         consistently.
82621 2009-07-18  Eric Blake  <ebb9@byu.net>
82623         test-pipe: fix mingw build
82624         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82626 2009-07-18  Bruno Haible  <bruno@clisp.org>
82628         * modules/pipe-tests (Makefile.am): Fix typo.
82630 2009-07-18  Eric Blake  <ebb9@byu.net>
82632         error: fix mingw build
82633         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82634         Reported by Bruno Haible.
82636         error: avoid undefined use of stdout
82637         * lib/error.c (error, error_at_line): Check that fd 1 is open
82638         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82639         is handling faults and the close_stdout module wants to report the
82640         detection of closed stdout as an error.
82642 2009-07-17  Eric Blake  <ebb9@byu.net>
82644         pipe: be robust in face of closed fds
82645         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82646         should cause child to misbehave.
82647         * modules/pipe-tests: New module.
82648         * tests/test-pipe.c: New file.
82649         * tests/test-pipe.sh: New file.
82650         Reported by Akim Demaille.
82652 2009-07-14  Bruno Haible  <bruno@clisp.org>
82654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82655         Reported by anonymous kc.
82657 2009-07-07  Jim Meyering  <meyering@redhat.com>
82659         maint.mk: don't look for translatable strings in *.m4 or *.mk
82660         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82661         when searching for translatable strings.
82663 2009-07-05  Jim Meyering  <meyering@redhat.com>
82665         remove superfluous parentheses in STREQ definition
82666         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82667         * lib/getugroups.c (STREQ): Likewise.
82668         * lib/fnmatch.c (STREQ): Likewise.
82669         Spotted by Bruno Haible.
82671 2009-07-04  Jim Meyering  <meyering@redhat.com>
82673         argv-iter: new module
82674         * MODULES.html.sh: Add argv-iter.
82675         * lib/argv-iter.c, lib/argv-iter.h: New files.
82676         * modules/argv-iter: New file.
82677         * modules/argv-iter-tests: New file.
82678         * tests/test-argv-iter.c: Test it.
82680 2009-07-04  Bruno Haible  <bruno@clisp.org>
82682         Fix assertion.
82683         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82684         contains more exact copies of a given entry than file2, leave the extra
82685         copies unpaired rather than aborting.
82686         Reported by Eric Blake.
82688 2009-07-02  Bruno Haible  <bruno@clisp.org>
82690         Speedup git-merge-changelog for git cherry-pick.
82691         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82692         (entries_mapping_get): New function, extracted from compute_mapping.
82693         (entries_mapping_reverse_get): New function.
82694         (compute_mapping): Add a 'full' argument. Return the result in a
82695         'struct entries_mapping'.
82696         (main): Update. Access the mappings through entries_mapping_get.
82697         Reported by Eric Blake.
82699 2009-07-02  Bruno Haible  <bruno@clisp.org>
82701         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82702         best_i.
82704 2009-07-02  Bruno Haible  <bruno@clisp.org>
82706         Speed up approximate search for matching ChangeLog entries.
82707         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82708         argument. Call fstrcmp_bounded instead of fstrcmp.
82709         (compute_mapping, try_split_merged_entry, main): Update callers.
82711 2009-07-02  Bruno Haible  <bruno@clisp.org>
82713         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82715 2009-06-30  Bruno Haible  <bruno@clisp.org>
82717         Reduce the number of uc_is_cased calls.
82718         * lib/unicase.h (casing_suffix_context_t): Add
82719         'first_char_except_ignorable' field.
82720         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82721         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82722         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82723         Update initializer.
82724         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82725         case-ignorable characters.
82726         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82727         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82728         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82729         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82730         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82732 2009-06-30  Bruno Haible  <bruno@clisp.org>
82734         Tests for module 'unicase/ignorable'.
82735         * modules/unicase/ignorable-tests: New file.
82736         * tests/unicase/test-ignorable.c: New file, generated by
82737         gen-uni-tables.
82739         Tests for module 'unicase/cased'.
82740         * modules/unicase/cased-tests: New file.
82741         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82742         * tests/unicase/test-predicate-part1.h: New file, derived from
82743         tests/unictype/test-predicate-part1.h.
82744         * tests/unicase/test-predicate-part2.h: New file, same as
82745         tests/unictype/test-predicate-part2.h.
82747         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82748         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82749         (output_casing_properties): New function.
82750         (main): Call it.
82751         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82752         * lib/unicase/cased.c: Include unictype/bitmap.h.
82753         (uc_is_cased): Define through a bitmap lookup.
82754         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82755         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82756         (uc_is_case_ignorable): Define through a bitmap lookup.
82757         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82758         lib/unictype/bitmap.h.
82759         (Depends-on): Add inline. Clean up.
82760         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82761         lib/unictype/bitmap.h.
82762         (Depends-on): Add inline. Clean up.
82763         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82764         recognition.
82765         * tests/unicase/test-u16-tolower.c (main): Likewise.
82766         * tests/unicase/test-u32-tolower.c (main): Likewise.
82768 2009-06-30  Bruno Haible  <bruno@clisp.org>
82770         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82771         * lib/unicase/u16-casemap.c: Likewise.
82772         * lib/unicase/u32-casemap.c: Likewise.
82774 2009-06-29  Bruno Haible  <bruno@clisp.org>
82776         Define u32_casefold as a wrapper around u32_ct_casefold.
82777         * lib/unicase/u32-casefold.c: Update.
82778         * modules/unicase/u32-casefold (Depends-on): Add
82779         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82780         unicase/empty-suffix-context. Clean up.
82782         Define u16_casefold as a wrapper around u16_ct_casefold.
82783         * lib/unicase/u16-casefold.c: Update.
82784         * modules/unicase/u16-casefold (Depends-on): Add
82785         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82786         unicase/empty-suffix-context. Clean up.
82788         Define u8_casefold as a wrapper around u8_ct_casefold.
82789         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82790         * lib/unicase/u8-casefold.c: Update.
82791         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82792         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82794         Define u32_totitle as a wrapper around u32_ct_totitle.
82795         * lib/unicase/u32-totitle.c: Update.
82796         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82797         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82799         Define u16_totitle as a wrapper around u16_ct_totitle.
82800         * lib/unicase/u16-totitle.c: Update.
82801         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82802         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82804         Define u8_totitle as a wrapper around u8_ct_totitle.
82805         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82806         functions.
82807         (FUNC): Delegate to U_CT_TOTITLE.
82808         * lib/unicase/u8-totitle.c: Update.
82809         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82810         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82812         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82813         invocation.
82814         * modules/unicase/u32-tolower (Depends-on): Add
82815         unicase/empty-prefix-context, unicase/empty-suffix-context.
82817         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82818         invocation.
82819         * modules/unicase/u16-tolower (Depends-on): Add
82820         unicase/empty-prefix-context, unicase/empty-suffix-context.
82822         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82823         * modules/unicase/u8-tolower (Depends-on): Add
82824         unicase/empty-prefix-context, unicase/empty-suffix-context.
82826         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82827         invocation.
82828         * modules/unicase/u32-toupper (Depends-on): Add
82829         unicase/empty-prefix-context, unicase/empty-suffix-context.
82831         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82832         invocation.
82833         * modules/unicase/u16-toupper (Depends-on): Add
82834         unicase/empty-prefix-context, unicase/empty-suffix-context.
82836         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82837         * modules/unicase/u8-toupper (Depends-on): Add
82838         unicase/empty-prefix-context, unicase/empty-suffix-context.
82840         New module 'unicase/u32-ct-casefold'.
82841         * lib/unicase/u32-ct-casefold.c: New file.
82842         * modules/unicase/u32-ct-casefold: New file.
82844         New module 'unicase/u16-ct-casefold'.
82845         * lib/unicase/u16-ct-casefold.c: New file.
82846         * modules/unicase/u16-ct-casefold: New file.
82848         New module 'unicase/u8-ct-casefold'.
82849         * lib/unicase/u8-ct-casefold.c: New file.
82850         * lib/unicase/u-ct-casefold.h: New file, derived from
82851         lib/unicase/u-casefold.h.
82852         * modules/unicase/u8-ct-casefold: New file.
82854         New module 'unicase/u32-ct-totitle'.
82855         * lib/unicase/u32-ct-totitle.c: New file.
82856         * modules/unicase/u32-ct-totitle: New file.
82858         New module 'unicase/u16-ct-totitle'.
82859         * lib/unicase/u16-ct-totitle.c: New file.
82860         * modules/unicase/u16-ct-totitle: New file.
82862         New module 'unicase/u8-ct-totitle'.
82863         * lib/unicase/u8-ct-totitle.c: New file.
82864         * lib/unicase/u-ct-totitle.h: New file, derived from
82865         lib/unicase/u-totitle.h.
82866         * modules/unicase/u8-ct-totitle: New file.
82868         New module 'unicase/u32-ct-tolower'.
82869         * lib/unicase/u32-ct-tolower.c: New file.
82870         * modules/unicase/u32-ct-tolower: New file.
82872         New module 'unicase/u16-ct-tolower'.
82873         * lib/unicase/u16-ct-tolower.c: New file.
82874         * modules/unicase/u16-ct-tolower: New file.
82876         New module 'unicase/u8-ct-tolower'.
82877         * lib/unicase/u8-ct-tolower.c: New file.
82878         * modules/unicase/u8-ct-tolower: New file.
82880         New module 'unicase/u32-ct-toupper'.
82881         * lib/unicase/u32-ct-toupper.c: New file.
82882         * modules/unicase/u32-ct-toupper: New file.
82884         New module 'unicase/u16-ct-toupper'.
82885         * lib/unicase/u16-ct-toupper.c: New file.
82886         * modules/unicase/u16-ct-toupper: New file.
82888         New module 'unicase/u8-ct-toupper'.
82889         * lib/unicase/u8-ct-toupper.c: New file.
82890         * modules/unicase/u8-ct-toupper: New file.
82892         Add context arguments to u*_casemap functions.
82893         * lib/unicase/unicasemap.h: Include unicase.h.
82894         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82895         suffix_context arguments.
82896         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82897         functions.
82898         (FUNC): Add prefix_context and suffix_context arguments. Use
82899         uc_is_cased and uc_is_case_ignorable.
82900         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82901         * lib/unicase/u16-casemap.c: Likewise.
82902         * lib/unicase/u32-casemap.c: Likewise.
82903         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82904         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82905         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82906         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82907         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82908         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82910         New module 'unicase/u32-suffix-context'.
82911         * lib/unicase/u32-suffix-context.c: New file.
82912         * modules/unicase/u32-suffix-context: New file.
82914         New module 'unicase/u16-suffix-context'.
82915         * lib/unicase/u16-suffix-context.c: New file.
82916         * modules/unicase/u16-suffix-context: New file.
82918         New module 'unicase/u8-suffix-context'.
82919         * lib/unicase/u8-suffix-context.c: New file.
82920         * lib/unicase/u-suffix-context.h: New file.
82921         * modules/unicase/u8-suffix-context: New file.
82923         New module 'unicase/empty-suffix-context'.
82924         * lib/unicase/empty-suffix-context.c: New file.
82925         * modules/unicase/empty-suffix-context: New file.
82927         New module 'unicase/u32-prefix-context'.
82928         * lib/unicase/u32-prefix-context.c: New file.
82929         * modules/unicase/u32-prefix-context: New file.
82931         New module 'unicase/u16-prefix-context'.
82932         * lib/unicase/u16-prefix-context.c: New file.
82933         * modules/unicase/u16-prefix-context: New file.
82935         New module 'unicase/u8-prefix-context'.
82936         * lib/unicase/u8-prefix-context.c: New file.
82937         * lib/unicase/u-prefix-context.h: New file.
82938         * lib/unicase/context.h: New file.
82939         * modules/unicase/u8-prefix-context: New file.
82941         New module 'unicase/empty-prefix-context'.
82942         * lib/unicase/empty-prefix-context.c: New file.
82943         * modules/unicase/empty-prefix-context: New file.
82945         New module 'unicase/ignorable'.
82946         * lib/unicase/ignorable.c: New file.
82947         * modules/unicase/ignorable: New file.
82949         New module 'unicase/cased'.
82950         * lib/unicase/caseprop.h: New file.
82951         * lib/unicase/cased.c: New file.
82952         * modules/unicase/cased: New file.
82954         New functions for case mapping of substrings.
82955         * lib/unicase.h (casing_prefix_context_t): New type.
82956         (unicase_empty_prefix_context): New variable.
82957         (u8_casing_prefix_context, u16_casing_prefix_context,
82958         u32_casing_prefix_context, u8_casing_prefixes_context,
82959         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82960         declarations.
82961         (casing_suffix_context_t): New type.
82962         (unicase_empty_suffix_context): New variable.
82963         (u8_casing_suffix_context, u16_casing_suffix_context,
82964         u32_casing_suffix_context, u8_casing_suffixes_context,
82965         u16_casing_suffixes_context, u32_casing_suffixes_context,
82966         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82967         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82968         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82969         declarations.
82971 2009-06-28  Jim Meyering  <meyering@redhat.com>
82973         boostrap: indent only with spaces
82974         * build-aux/bootstrap: Indent only with spaces, never TABs.
82976         bootstrap: split long lines
82977         * build-aux/bootstrap: Keep line length < 80.
82979         bootstrap: sync from coreutils
82980         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82981         just as autoreconf does.  Verify a list of prerequisite
82982         package-name,version-number pairs if defined in bootstrap.conf.
82983         Refer to README-prereq, if prerequisites are not satisfied.
82985 2009-06-27  Eric Blake  <ebb9@byu.net>
82987         tests: add test for bogus NULL definition
82988         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82989         * tests/test-stdlib.c: Likewise.
82990         * tests/test-string.c: Likewise.
82991         * tests/test-locale.c: Likewise.
82992         * tests/test-unistd.c: Likewise.
82993         * modules/stdio-tests (Depends-on): Add verify.
82994         * modules/stdlib-tests (Depends-on): Likewise.
82995         * modules/string-tests (Depends-on): Likewise.
82996         * modules/locale-tests (Depends-on): Likewise.
82997         * modules/unistd-tests (Depends-on): Likewise.
82999 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83001         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83002         self-explaining comment.
83003         * m4/selinux-selinux-h: Update serial.
83004         (gl_LIBSELINUX): New macro, adding a warning for missing development
83005         packages to code extracted from...
83006         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83007         Add warning for missing development packages here, too.
83009 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83011         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83013 2009-06-25  Eric Blake  <ebb9@byu.net>
83015         version-etc: fix regression
83016         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83017         gcc.
83018         (version_etc): Use it, to catch bugs with trailing NULL.
83019         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83020         (version_etc_va): Fix logic bug.
83021         * modules/version-etc-tests: Add test.
83022         * tests/test-version-etc.c: New file.
83023         * tests/test-version-etc.sh: Likewise.
83025 2009-06-25  Sam Steingold  <sds@gnu.org>
83027         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83028         mbtowc declaration.
83030 2009-06-25  Eric Blake  <ebb9@byu.net>
83032         fpurge: migrate into <stdio.h>
83033         * lib/fpurge.h: Delete...
83034         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83035         * lib/fpurge.c (fpurge): Change declaring header.
83036         * modules/fpurge (Files): Drop deleted file.
83037         (Depends-on): Add stdio.
83038         (configure.ac): Set witness.
83039         * modules/stdio (Makefile.am): Support fpurge macros.
83040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83041         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83042         * lib/fflush.c: Update client.
83043         * tests/test-fpurge.c: Likewise.
83044         * NEWS: Mention the change.
83046 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83048         * lib/argp-version-etc.c (program_authors): Add const
83049         qualifier.
83050         * lib/version-etc.c: Fix typos in the comments.
83051         * modules/argp-version-etc: Depends on version-etc.
83053 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83055         argp-version-etc: new module.
83057         * lib/argp-version-etc.c: New file.
83058         * lib/argp-version-etc.h: New file.
83059         * modules/argp-version-etc: New file.
83060         * modules/argp-version-etc-tests: New file.
83061         * tests/test-argp-version-etc.c: New test.
83062         * tests/test-argp-version-etc-1.sh: New test.
83064 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83066         Provide additional interfaces and documentation for version-etc
83067         module.
83069         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83070         interfaces.
83071         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83072         prototypes.
83074 2009-06-24  Bruno Haible  <bruno@clisp.org>
83076         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83077         HAVE_LIB${NAME} macro.
83078         Reported by Sam Steingold <sds@gnu.org>.
83080 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83082         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83083         needed.
83085 2009-06-21  Bruno Haible  <bruno@clisp.org>
83087         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83088         work.
83089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83090         together with LIB${NAME}, LTLIB${NAME}.
83091         Reported by Sam Steingold <sds@gnu.org>.
83093 2009-06-20  Jim Meyering  <meyering@redhat.com>
83095         tests: make sc_require_test_exit_idiom more generic
83096         * top/maint.mk (Exit_witness_file): New overridable variable.
83097         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83098         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83100 2009-06-19  Jim Meyering  <meyering@redhat.com>
83102         hash: reverse order of src/dst parameters in an internal interface
83103         * lib/hash.c (transfer_entries): Reverse order of parameters to
83104         put DST before SRC.  Adjust callers.
83106         tests: test-hash: avoid wholesale duplication
83107         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83108         Instead, use a loop and add a single conditional.
83110         tests: test-hash: allow seed selection via a command line argument
83111         * tests/test-hash.c (get_seed): New function.
83112         (main): Use it.
83114 2009-06-19  Eric Blake  <ebb9@byu.net>
83116         hash: avoid memory leak on allocation failure
83117         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83118         failure.  Factor repeated algorithm...
83119         (transfer_entries): ...into new helper routine.
83120         (hash_delete): React to hash_rehash return value.
83122         hash: reduce memory pressure in hash_rehash no-op case
83123         * lib/hash.c (next_prime): Avoid overflow.
83124         (hash_initialize): Factor bucket size computation...
83125         (compute_bucket_size): ...into new helper function.
83126         (hash_rehash): Use new function and open coding to reduce memory
83127         pressure, and avoid a memory leak in USE_OBSTACK code.
83128         Reported by Jim Meyering.
83130 2009-06-18  Eric Blake  <ebb9@byu.net>
83132         hash: make rotation more obvious
83133         * modules/hash (Depends-on): Add bitrotate and stdint.
83134         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83135         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83136         (SIZE_MAX): Rely on headers for definition.
83137         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83138         (raw_hasher): Use rotr_sz.
83139         Suggested by Jim Meyering.
83141         hash: fix memory leak in last patch
83142         * lib/hash.c (hash_rehash): Avoid memory leak.
83144         hash: avoid no-op rehashing
83145         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83147         hash: provide default callback functions
83148         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83149         (hash_initialize): Use them as defaults.
83150         * tests/test-hash.c (main): Test this.
83152         hash: minor optimization
83153         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83154         when possible.
83155         (hash_initialize): Document this promise.
83156         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83157         * tests/test-hash.c (hash_compare_strings): Test this.
83159 2009-06-18  Bruno Haible  <bruno@clisp.org>
83161         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83162         going to be replaced anyway.
83164 2009-06-18  Bruno Haible  <bruno@clisp.org>
83166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83167         in one place.
83168         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83169         be replaced anyway.
83171 2009-06-18  Eric Blake  <ebb9@byu.net>
83173         hash: check for resize before insertion
83174         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83175         threshold before insertion, so that a pathological hash_rehash
83176         that fills every bucket can still trigger another rehash.
83178 2009-06-18  Jim Meyering  <meyering@redhat.com>
83180         hash-tests: add a loop around the small tests
83181         * tests/test-hash.c (main): Repeat small tests with selected
83182         small initial table sizes.
83184 2009-06-17  Eric Blake  <ebb9@byu.net>
83186         hash: minor cleanups
83187         * lib/hash.h (hash_entry): Make opaque, by moving...
83188         * lib/hash.c (hash_entry): ...here.
83189         (hash_insert): Clarify restrictions on what can be inserted.
83190         (hash_get_next): Clarify when it is safe to remove an element
83191         during traversal.
83192         (check_tuning): Skip verification when tuning is known safe.
83193         (hash_initialize): Clarify restrictions on tuning.
83195 2009-06-17  Jim Meyering  <jim@meyering.net>
83196         and Eric Blake  <ebb9@byu.net>
83198         hash-tests: new module
83199         * modules/hash-tests: New file.
83200         * tests/test-hash.c: New file.
83202 2009-06-17  Eric Blake  <ebb9@byu.net>
83204         strstr-simple: document new module
83205         * MODULES.html.sh: Document new module.
83207         strstr, strcasestr: replace on platforms with broken memchr
83208         * modules/strstr: Split into...
83209         * modules/strstr-simple: ...new module that does not care about
83210         performance, but does care about glibc bug.
83211         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83212         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83213         if platform memchr is broken, per Debian bug 521737.
83214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83215         memchr.
83216         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83217         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83218         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83219         * modules/mountlist (Depends-on): Add strstr-simple.
83220         * modules/gen-uni-tables (Depends-on): Likewise.
83221         * modules/argz (Depends-on): Add strstr.
83223 2009-06-17  Bruno Haible  <bruno@clisp.org>
83225         * modules/posix_spawn-internal (Depends-on): Add errno.
83227 2009-06-17  Bruno Haible  <bruno@clisp.org>
83229         Define missing ESTALE on Interix 3.5.
83230         * lib/errno.in.h (ESTALE): Assign a value if missing.
83231         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83232         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83233         missing.
83234         * doc/posix-headers/errno.texi: Mention the Interix bug.
83235         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83237 2009-06-15  Eric Blake  <ebb9@byu.net>
83239         memchr, memchr2: add valgrind exception
83240         * lib/memchr.valgrind: New file.
83241         * lib/memchr2.valgrind: New file.
83242         * modules/memchr (Files): Distribute valgrind file.
83243         * modules/memchr2 (Files): Likewise.
83245         docs: memchr is no longer obsolete
83246         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83247         * lib/string.in.h (memchr): Simplify logic.
83249 2009-06-14  Jim Meyering  <meyering@redhat.com>
83251         link-follow: fix the "checking..." message to not mention trailing slash
83252         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83253         never considered trailing slashes.
83255 2009-06-14  Bruno Haible  <bruno@clisp.org>
83257         * m4/memchr.m4: Mention also the bug on IA-64.
83258         * doc/posix-functions/memchr.texi: Likewise.
83260 2009-06-12  Eric Blake  <ebb9@byu.net>
83262         memchr: detect broken x86_64 and alpha implementations
83263         * modules/memchr-tests (Depends-on): Move mmap detection...
83264         * modules/memchr (Depends-on): ...here.
83265         (configure.ac): Set indicator.
83266         * lib/string.in.h (memchr): Declare replacement.
83267         * modules/string (Makefile.am): Trigger replacement.
83268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83269         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83270         bugs.
83271         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83272         * modules/getpagesize (License): Relax license.
83274 2009-06-11  Bruno Haible  <bruno@clisp.org>
83276         * lib/idpriv.h: Add more references.
83278 2009-06-08  Bruno Haible  <bruno@clisp.org>
83280         Tests for module 'idpriv-droptemp'.
83281         * modules/idpriv-droptemp-tests: New file.
83282         * tests/test-idpriv-droptemp.sh: New file.
83283         * tests/test-idpriv-droptemp.su.sh: New file.
83284         * tests/test-idpriv-droptemp.c: New file.
83286         New module 'idpriv-droptemp'.
83287         * lib/idpriv-droptemp.c: New file.
83288         * modules/idpriv-droptemp: New file.
83290 2009-06-08  Bruno Haible  <bruno@clisp.org>
83292         Tests for module 'idpriv-drop'.
83293         * modules/idpriv-drop-tests: New file.
83294         * tests/test-idpriv-drop.sh: New file.
83295         * tests/test-idpriv-drop.su.sh: New file.
83296         * tests/test-idpriv-drop.c: New file.
83298         New module 'idpriv-drop'.
83299         * lib/idpriv.h: New file.
83300         * lib-idpriv-drop.c: New file.
83301         * m4/idpriv.m4: New file.
83302         * modules/idpriv-drop: New file.
83304 2009-06-08  Bruno Haible  <bruno@clisp.org>
83306         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83314 2009-06-08  Eric Blake  <ebb9@byu.net>
83316         test-strstr: use memory fence, when possible
83317         * tests/test-strstr.c (main): Use memory fence, in order to be
83318         more likely to trigger Debian bug 521737.
83319         * modules/strstr-tests (Files): Pull in additional files.
83321         memchr: no longer obsolete, for wider field testing
83322         * modules/memchr (Status, Notice): Delete, this module is no
83323         longer obsolete.
83324         * modules/vasnprintf (Depends-on): Add memchr.
83326 2009-06-07  Jim Meyering  <meyering@redhat.com>
83328         hash: declare some functions with the warn_unused_result attribute
83329         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83331 2009-06-07  Bruno Haible  <bruno@clisp.org>
83333         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83334         Reported by Eric Blake.
83336 2009-06-06  Eric Blake  <ebb9@byu.net>
83338         test-alignof: fix typo with long double
83339         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83340         compiler error.
83342 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83344         Escape non-texinfo { and }s.
83345         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83346         markup error.
83348 2009-06-04  Jim Meyering  <meyering@redhat.com>
83350         gitlog-to-changelog: don't infloop on an empty commit log
83351         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83352         Reported by Boris Petersen <transacid@centerim.org>.
83354 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83356         version-etc: extend for packagers
83357         Add three new configure options, intended for packagers:
83358           --with-packager="packager name"
83359           --with-packager-version="packager-specific version"
83360           --with-packager-bug-reports="packager bug reporting"
83361         An example with coreutils:
83362           $ ./configure \
83363             --with-packager=Gentoo \
83364             --with-packager-bug-report=http://bugs.gentoo.org/ \
83365             --with-packager-version="patchset 1.6"
83366           $ ./src/ls --version | head -n2
83367           ls (GNU coreutils) 7.1-dirty
83368           Packaged by Gentoo (patchset 1.6)
83369         Note that the bug reporting info via --help doesn't show up because
83370         coreutils uses its own custom emit_bug_reporting_address() implementation
83371         in src/system.h.  If it didn't, it'd look like:
83372           $ ./src/ls --help | tail -n4
83373           Report bugs to <bug-coreutils@gnu.org>.
83374           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83375           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83376           General help using GNU software: <http://www.gnu.org/gethelp/>.
83377         * lib/version-etc.c: Print new information, if provided.
83378         * m4/version-etc.m4: New file.
83379         * modules/version-etc (Files): Add m4/version-etc.m4.
83380         (configure.ac): Add gl_VERSION_ETC.
83382 2009-05-31  Bruno Haible  <bruno@clisp.org>
83384         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83385         and 'int64_t'.
83386         * modules/alignof-tests (Dependencies): Add stdint.
83387         Reported by Eric Blake.
83389 2009-05-31  Bruno Haible  <bruno@clisp.org>
83391         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83392         restriction due to compiler bugs.
83393         Reported by Eric Blake.
83395 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83396             Bruno Haible  <bruno@clisp.org>
83398         Fix test-alignof failure.
83399         * lib/alignof.h (alignof_slot): New macro.
83400         (alignof_type): New macro, with the same semantics as the previous
83401         'alignof'.
83402         (alignof): Alias to alignof_slot.
83403         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83404         check that the results are usable as constant expressions.
83406 2009-05-31  Bruno Haible  <bruno@clisp.org>
83408         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83409         * tests/test-memchr.c (main): Check that memchr does not read past the
83410         first occurrence of the byte.
83411         * tests/test-strstr.c (main): Update comment.
83412         Suggested by Eric Blake.
83414 2009-05-30  Bruno Haible  <bruno@clisp.org>
83416         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83417         detail how to use dumpbin.
83418         Reported by David Byron <dbyron@dbyron.com>.
83420 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83422         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83424 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83426         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83428 2009-05-28  Bruno Haible  <bruno@clisp.org>
83430         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83431         build-aux/ files.
83433 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83435         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83437 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83439         * gnulib-tool (sed_transform_main_lib_file)
83440         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83441         regexps.
83443 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83445         * tests/test-strstr.c: Add another self-test.
83446         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83447         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83449 2009-05-23  Bruno Haible  <bruno@clisp.org>
83451         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83452         change.
83454 2009-05-21  Bruno Haible  <bruno@clisp.org>
83456         Simplify use of mode_t varargs.
83457         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83458         uses 'mode_t' or 'int'.
83459         * lib/openat.c (openat): Likewise.
83460         * lib/open-safer.c (open_safer): Likewise.
83461         * m4/mode_t.m4: New file.
83462         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83463         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83464         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83465         * modules/open (Files): Add m4/mode_t.m4.
83466         * modules/openat (Files): Likewise.
83467         * modules/fcntl-safer (Files): Likewise.
83468         Suggested by Eric Blake.
83470 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83472         * doc/glibc-functions/fallocate.texi: New file.
83473         * doc/gnulib.texi: Include it.
83475 2009-05-21  Eric Blake  <ebb9@byu.net>
83476             Bruno Haible  <bruno@clisp.org>
83478         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83479         invocations.
83480         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83482 2009-05-21  Eric Blake  <ebb9@byu.net>
83483             Bruno Haible  <bruno@clisp.org>
83485         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83486         include_next. Fix of 2008-11-20 commit.
83487         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83488         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83489         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83490         NEXT_MATH_H.
83491         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83492         instead of NEXT_MATH_H.
83494 2009-05-21  Bruno Haible  <bruno@clisp.org>
83496         Avoid redefinition warnings for SIZE_MAX.
83497         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83498         Reported by Simon Josefsson.
83500 2009-05-21  Bruno Haible  <bruno@clisp.org>
83502         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83503         AC_CACHE_VAL.
83505 2009-05-20  Bruno Haible  <bruno@clisp.org>
83507         Make zeroptr.h work on mingw.
83508         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83509         mprotect.
83510         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83511         * modules/memchr2-tests (configure.ac): Likewise.
83512         * modules/memcmp-tests (configure.ac): Likewise.
83513         * modules/memmem-tests (configure.ac): Likewise.
83514         * modules/memrchr-tests (configure.ac): Likewise.
83515         Reported by Simon Josefsson.
83517 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83519         * tests/test-glob.c: Include string.h for strcmp prototype.
83521 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83523         * modules/getdelim (Depends-on): Add explicit stdint, although it
83524         was implicitly already pulled in via realloc-posix.
83525         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83527 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83529         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83530         G. Christensen" <tgc@jupiterrise.com>.
83531         * m4/sys_socket_h.m4: Check for sa_family_t.
83532         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83533         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83534         * tests/test-sys_socket.c: Check that sa_family_t works.
83536 2009-05-18  Eric Blake  <ebb9@byu.net>
83538         maint.mk: allow gnulib_dir in VPATH build
83539         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83541 2009-05-15  Jim Meyering  <meyering@redhat.com>
83543         maint.mk: Give gnulib_dir a default definition.
83544         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83545         Thus, most packages no longer need to specify this variable in cfg.mk
83547 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83549         rename.m4: fix typos that would make non-mingw cross-configure fail
83550         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83552 2009-05-13  Eric Blake  <ebb9@byu.net>
83554         mmap-anon: avoid out-of-order autoconf expansion
83555         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83556         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83557         * modules/memchr-tests (Depends-on): Add extensions.
83558         * modules/memchr2-tests (Depends-on): Add extensions.
83559         * modules/memcmp-tests (Depends-on): Add extensions.
83560         * modules/memmem-tests (Depends-on): Add extensions.
83561         * modules/memrchr-tests (Depends-on): Add extensions.
83563 2009-05-13  Bruno Haible  <bruno@clisp.org>
83565         Make some tests ISO C 99 compliant.
83566         * tests/zerosize-ptr.h: New file.
83567         * tests/test-memchr.c: Include zerosize-ptr.h.
83568         (main): Use a zero-size object pointer instead of NULL.
83569         * tests/test-memchr2.c: Include zerosize-ptr.h.
83570         (main): Use a zero-size object pointer instead of NULL.
83571         * tests/test-memcmp.c: Include zerosize-ptr.h.
83572         (main): Use a zero-size object pointer instead of NULL.
83573         * tests/test-memmem.c: Include zerosize-ptr.h.
83574         (main): Use a zero-size object pointer instead of NULL.
83575         * tests/test-memrchr.c: Include zerosize-ptr.h.
83576         (main): Use a zero-size object pointer instead of NULL.
83577         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83578         m4/mmap-anon.m4.
83579         (Depends-on): Add getpagesize.
83580         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83581         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83582         m4/mmap-anon.m4.
83583         (Depends-on): Add getpagesize.
83584         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83585         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83586         m4/mmap-anon.m4.
83587         (Depends-on): Add getpagesize.
83588         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83589         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83590         m4/mmap-anon.m4.
83591         (Depends-on): Add getpagesize.
83592         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83593         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83594         m4/mmap-anon.m4.
83595         (Depends-on): Add getpagesize.
83596         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83598 2009-05-12  Bruno Haible  <bruno@clisp.org>
83600         Tests for module 'alignof'.
83601         * modules/alignof-tests: New file.
83602         * tests/test-alignof.c: New file.
83604 2009-05-12  Bruno Haible  <bruno@clisp.org>
83606         Fix alignof macro.
83607         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83608         vendor compilers that are always correct.
83610 2009-05-12  Bruno Haible  <bruno@clisp.org>
83612         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83613         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83614         not whether its fully works.
83616 2009-05-12  Bruno Haible  <bruno@clisp.org>
83618         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83620 2009-05-12  Jim Meyering  <meyering@redhat.com>
83622         * top/maint.mk: Adjust backslash alignment.
83624 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83626         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83628 2009-05-11  Eric Blake  <ebb9@byu.net>
83630         argp: avoid undefined behavior
83631         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83632         macros.
83634 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83636         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83637         user.name to prevent git commit from complaining.
83639 2009-05-10  Bruno Haible  <bruno@clisp.org>
83641         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83642         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83643         it rewrites every file name only once.
83644         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83646 2009-05-08  Bruno Haible  <bruno@clisp.org>
83648         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83649         instead of 'max'.
83651 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83653         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83654         sockaddr_storage test.
83656 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83658         * modules/sys_socket (Makefile.am): Substitute
83659         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83660         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83661         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83662         * tests/test-sys_socket.c: Check sockaddr_storage.
83664 2009-05-08  Bruno Haible  <bruno@clisp.org>
83666         New module 'alignof'.
83667         * lib/alignof.h: New file.
83668         * modules/alignof: New file.
83670 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83671             Bruno Haible  <bruno@clisp.org>
83673         Fix test-file-has-acl on FreeBSD.
83674         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83675         mask is implicitly added.
83676         * tests/test-file-has-acl.c: Include <signal.h>.
83677         (main): Terminate the test after 5 seconds.
83678         * modules/acl-tests (configure.ac): Check for alarm function.
83680 2009-05-04  Bruno Haible  <bruno@clisp.org>
83682         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83683         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83684         * modules/errno (configure.ac): Drop AC_REQUIRE.
83685         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83686         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83688 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83690         * modules/glob-tests: New module.
83691         * tests/test-glob.c: Add.
83693 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83695         * modules/fnmatch-tests: New module.
83696         * tests/test-fnmatch.c: Add.
83698 2009-05-04  Eric Blake  <ebb9@byu.net>
83700         maint: make the new no-submodule-changes rule VPATH-safe
83701         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83703 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83704             Bruno Haible  <bruno@clisp.org>
83706         acl: Fix infinite loop on FreeBSD.
83707         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83708         of return value from acl_get_entry.
83709         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83710         Likewise.
83712 2009-05-03  Bruno Haible  <bruno@clisp.org>
83714         * lib/acl-internal.h (acl_entries): Clarify return value.
83715         * lib/acl_entries.c (acl_entries): Likewise.
83717 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83719         Bug fix in acl module.
83720         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83722 2009-05-03  Bruno Haible  <bruno@clisp.org>
83724         Create gperf-generated file in the source dir, not in the build dir.
83725         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83726         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83727         * modules/unicase/locale-language (unicase/locale-languages.h):
83728         Likewise.
83729         * modules/unicase/special-casing (unicase/special-casing-table.h):
83730         Likewise.
83731         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83732         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83733         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83734         Reported by Ralf Wildenhues.
83736 2009-05-03  Bruno Haible  <bruno@clisp.org>
83738         * modules/fnmatch (Description, configure.ac): Taken from
83739         fnmatch-posix.
83740         * modules/fnmatch-posix: Turn into a symbolic reference to the
83741         'fnmatch' module, and deprecate.
83742         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83744 2009-05-03  Bruno Haible  <bruno@clisp.org>
83746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83747         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83748         Reported by Ralf Wildenhues.
83750 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83752         * m4/fnmatch.m4: Fix fnmatch re-define.
83754 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83756         priv-set: new module and tests; adapt write-any-file
83757         * lib/priv-set.c: New file.
83758         * lib/priv-set.h: New file.
83759         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83760         * lib/write-any-file.c: Simplify by using priv-set module.
83761         * m4/priv-set.m4: New file.
83762         * modules/priv-set: New file.
83763         * modules/unlinkdir: Add dependency on priv-set module.
83764         * modules/write-any-file: Likewise.
83766         Tests for module 'priv-set'.
83767         * modules/priv-set-tests: New file.
83768         * tests/test-priv-set.c: New file.
83770 2009-05-03  Jim Meyering  <meyering@redhat.com>
83771             Bruno Haible  <bruno@clisp.org>
83773         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83774         use the converted UTF-8 variant of the name instead.
83776 2009-05-03  Jim Meyering  <meyering@redhat.com>
83778         tests: tighten some getdate tests
83779         * tests/test-getdate.c (main): Tighten tests: require equality,
83780         not just greater than.  Set TZ envvar to UTC0.
83782 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83784         getdate: correctly interpret "next monday" when run on a Monday
83785         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83786         that e.g., "next tues" (when run on a tuesday) results in a date
83787         that is one week in the future, and not today's date.
83788         I.e., add a week when the wday is the same as the current one.
83789         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83790         and earlier by Martin Bernreuther and Jan Minář.
83791         * tests/test-getdate.c (main): Check that "next DAY" is always in
83792         the future and that "last DAY" is always in the past.
83794 2009-05-02  Jim Meyering  <meyering@redhat.com>
83796         build: ensure that a release build fails when a submodule is unclean
83797         * top/maint.mk (no-submodule-changes): New rule.
83798         (alpha beta major): Depend on it.
83800 2009-05-02  Bruno Haible  <bruno@clisp.org>
83802         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83803         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83804         shell variable gl_fnmatch_required to detect which variant is
83805         requested.
83806         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83807         gl_FUNC_FNMATCH_POSIX.
83808         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83809         exclude fnmatch-posix.
83811 2009-05-02  Bruno Haible  <bruno@clisp.org>
83813         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83814         * modules/mbsrtowcs (License): Change to LGPLv2+.
83815         * modules/strnlen1 (License): Likewise.
83816         Reported by Simon Josefsson.
83818 2009-05-02  Bruno Haible  <bruno@clisp.org>
83820         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83821         "cross".
83822         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83823         gnulib-tool was called with option --source-base=lib.
83825 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83827         Use automake *-local hooks without commands, for extensibility.
83828         * modules/localcharset (Makefile.am): Rename install-exec-local
83829         rule to install-exec-localcharset, and make it a prerequisite of
83830         install-exec-local.  Likewise, rename the uninstall-local rule to
83831         uninstall-localcharset, and make it a prerequisite of the former.
83833 2009-05-01  Bruno Haible  <bruno@clisp.org>
83835         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83836         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83837         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83839         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83840         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83841         m4/locale-zh.m4, m4/codeset.m4.
83843         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83844         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83845         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83846         m4/locale-zh.m4.
83848         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83849         REPLACE_WCRTOMB if mbstate_t must be replaced.
83850         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83851         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83853 2009-05-01  Bruno Haible  <bruno@clisp.org>
83855         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83856         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83857         dngettext, dcngettext, textdomain, bindtextdomain,
83858         bind_textdomain_codeset): Undefine before redefining.
83860 2009-04-30  Bruno Haible  <bruno@clisp.org>
83862         Fix bug introduced on 2009-04-25.
83863         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83864         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83865         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83866         is defined.
83867         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83868         is defined.
83869         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83870         is defined.
83871         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83873 2009-04-28  Bruno Haible  <bruno@clisp.org>
83875         Comment tweaks.
83876         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83877         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83878         * lib/unicase.h (u*_casexfrm): Likewise.
83879         Reported by Paolo Bonzini.
83881 2009-04-28  Bruno Haible  <bruno@clisp.org>
83883         Fix a compilation error.
83884         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83885         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83886         Reported by Jim Meyering.
83888 2009-04-27  Bruno Haible  <bruno@clisp.org>
83890         New module 'libunistring'.
83891         * modules/libunistring: New file.
83892         * m4/libunistring.m4: New file.
83893         * MODULES.html.sh (Unicode string functions): Add it.
83895 2009-04-27  Eric Blake  <ebb9@byu.net>
83897         maint.mk: allow package-specific header to provide <config.h>
83898         * top/maint.mk (sc_require_config_h): New variable.
83899         (sc_require_config_h, sc_require_config_h_first): Use it.
83901 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83903         * top/maint.mk (sc_avoid_if_before_free): Except
83904         useless-if-before-free script.
83906 2009-04-27  Eric Blake  <ebb9@byu.net>
83908         maintainer-makefile: depend on all required helper scripts
83909         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83910         useless-if-before-free.
83911         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83912         version, rather than assuming gnulib checkout is available.
83913         Reported by Simen Josefsson.
83915 2009-04-26  Bruno Haible  <bruno@clisp.org>
83917         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83919         "../" or "..".
83921 2009-04-26  Bruno Haible  <bruno@clisp.org>
83923         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83924         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83925         AC_LIB_HAVE_LINKFLAGS.
83927 2009-04-26  Bruno Haible  <bruno@clisp.org>
83929         Simplify calling convention of u*_conv_from_encoding.
83930         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83931         u32_conv_from_encoding): Expect a resultbuf argument and return the
83932         result directly as a pointer.
83933         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83934         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83935         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83936         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83937         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83938         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83939         Update.
83940         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83941         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83942         * lib/vasnprintf.c (VASNPRINTF): Update.
83943         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83944         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83945         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83946         * NEWS: Mention the change.
83948 2009-04-26  Bruno Haible  <bruno@clisp.org>
83950         Simplify calling convention of u*_conv_to_encoding.
83951         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83952         u32_conv_to_encoding): Expect a resultbuf argument and return the
83953         result directly as a pointer.
83954         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83955         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83956         freeing scaled_offsets if mem_iconveha failed.
83957         * lib/unicase/u-casexfrm.h (FUNC): Update.
83958         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83959         * lib/vasnprintf.c (VASNPRINTF): Update.
83960         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83961         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83962         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83963         * NEWS: Mention the change.
83965 2009-04-26  Bruno Haible  <bruno@clisp.org>
83967         Avoid test failures on AIX and OSF/1.
83968         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83969         malloc(0).
83970         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83971         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83972         Likewise.
83973         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83974         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83975         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83976         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83977         * doc/posix-functions/malloc.texi: Document the portability problem
83978         related to malloc(0).
83980 2009-04-26  Bruno Haible  <bruno@clisp.org>
83982         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83983         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83984         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83986 2009-04-25  Bruno Haible  <bruno@clisp.org>
83988         Avoid link error when creating a namespace clean library.
83989         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83990         as macro with arguments if already defined as an alias.
83991         * lib/signbitf.c (gl_signbitf): Don't undefine.
83992         * lib/signbitd.c (gl_signbitd): Don't undefine.
83993         * lib/signbitl.c (gl_signbitl): Don't undefine.
83995 2009-04-25  Jim Meyering  <meyering@redhat.com>
83997         vc-list-files: fix another quoting bug
83998         * build-aux/vc-list-files: Avoid sed backslash expansion
83999         of pathological directory names.
84001 2009-04-25  Eric Blake  <ebb9@byu.net>
84003         vc-list-files: fix shell quoting error
84004         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84005         timestamp.
84007 2009-04-25  Jim Meyering  <meyering@redhat.com>
84009         vc-list-files: restore lost functionality with subdir argument
84010         * build-aux/vc-list-files: When given a non-"." sub-directory
84011         argument, substitute the $dir/ prefix back onto each resulting name.
84012         Otherwise, coreutils' root_tests check would fail.
84014 2009-04-24  Eric Blake  <ebb9@byu.net>
84016         vc-list-files: ignore git symlinks
84017         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84018         than ls-files, to ignore git symlinks.
84020         maint.mk: import improvements from m4
84021         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84022         (move_if_change): Delete unused macro.
84023         (news-date-check, vc-diff-check): Support VPATH builds.
84024         (announcement): Likewise.  Split --bootstrap-tools list...
84025         (boostrap-tools): ...into separate list, which can be overridden
84026         in cfg.mk.
84027         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84028         requiring dependency on useless-if-before-free module.
84029         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84030         Support VPATH builds.
84032 2009-04-24  Jim Meyering  <meyering@redhat.com>
84034         maint.mk: remove coreutils-specific rules and variables
84035         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84036         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84037         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84039         maint.mk: remove obsolete rule
84040         * top/maint.mk (rel-check): Remove rule.
84041         (WGET, WGETFLAGS): Remove now-unused variables.
84043 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84045         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84046         consistency.
84048         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84049         '$(PATH_SEPARATOR)' instead of ':'.
84051 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84053         * lib/getopt1.c (main): Use 'const' for static array.
84055 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84057         * top/maint.mk: Sync with coreutils.
84058         * NEWS: Explain incompatibilities.
84060 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84061             Bruno Haible  <bruno@clisp.org>
84063         Fix cross-compilation results.
84064         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84065         statement, as third argument of AC_TRY_RUN.
84066         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84067         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84068         Likewise.
84069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84070         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84071         Likewise.
84072         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84074         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84076 2009-04-20  Bruno Haible  <bruno@clisp.org>
84078         Avoid test failure on mingw.
84079         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84081 2009-04-20  Bruno Haible  <bruno@clisp.org>
84083         Avoid compilation error on mingw.
84084         * modules/localename-tests (Depends-on): Add locale.
84086 2009-04-19  Bruno Haible  <bruno@clisp.org>
84088         Support for building a shared library on Windows platforms.
84089         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84090         (main): Test the presence of UNINORM_NFC here.
84091         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84092         (main): Test the presence of UNINORM_NFD here.
84093         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84094         (main): Test the presence of UNINORM_NFKC here.
84095         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84096         (main): Test the presence of UNINORM_NFKD here.
84098 2009-04-19  Bruno Haible  <bruno@clisp.org>
84100         Avoid a compiler warning.
84101         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84102         Change type of variable 'sequence'.
84104 2009-04-19  Bruno Haible  <bruno@clisp.org>
84106         * modules/configmake (Makefile.am): When the contents of configmake.h
84107         does not change, arrange to preserve its modification time.
84109 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84111         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84112         gettext domain.
84114 2009-04-16  Jim Meyering  <meyering@redhat.com>
84116         useless-if-before-free: improve conversion code
84117         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84118         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84120 2009-04-14  Bruno Haible  <bruno@clisp.org>
84122         * modules/fcntl (Depends-on): Add extensions.
84123         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84125 2009-04-12  Ben Pfaff  <blp@gnu.org>
84127         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84128         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84130 2009-03-20  Ben Pfaff  <blp@gnu.org>
84132         Make rename replace existing destinations on Windows.
84133         * m4/rename.m4: Add test for Mingw.
84134         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84135         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84136         * doc/posix-functions/rename.texi: Document.
84138 2009-04-10  Bruno Haible  <bruno@clisp.org>
84140         New include file "iconveh.h".
84141         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84142         * lib/striconveh.h: Include it.
84143         (enum iconv_ilseq_handler): Remove definition.
84144         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84145         striconveh.h.
84146         * lib/striconveha.c: Include striconveh.h.
84147         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84148         * modules/striconveh (Files): Add lib/iconveh.h.
84149         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84150         lib/striconveh.h.
84152 2009-04-10  Bruno Haible  <bruno@clisp.org>
84154         * lib/uniconv.h: Update comment.
84156 2009-04-10  Bruno Haible  <bruno@clisp.org>
84158         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84159         always.
84160         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84161         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84162         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84163         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84164         "unistring-notinline.h", so that the function gets defined always.
84165         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84166         * lib/unistr/u8-uctomb.c: Likewise.
84167         * lib/unistr/u16-mbtouc.c: Likewise.
84168         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84169         * lib/unistr/u16-uctomb.c: Likewise.
84170         * lib/unistr/u32-mbtouc.c: Likewise.
84171         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84172         * lib/unistr/u32-uctomb.c: Likewise.
84174 2009-04-10  Bruno Haible  <bruno@clisp.org>
84176         Mark 'utime' obsolete.
84177         * modules/utime (Status, Notice): New sections.
84178         Suggested by Jim Meyering.
84180         Fix cross-compile guess for utime test.
84181         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84182         autoconf.
84183         * doc/posix-functions/utime.texi: Give more precisions.
84184         Reported by Jan <ipif@ymail.com>.
84186 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84188         filevercmp: correct today's change
84189         * lib/filevercmp.c: Also handle coreutils' test inputs.
84190         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84192         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84193         for reporting it.
84194         * lib/filevercmp.c: Special handle for "", "." and "..".
84195         * tests/test-filevercmp.c: Enlarge the set suite.
84197 2009-04-07  Jim Meyering  <meyering@redhat.com>
84199         useless-if-before-free: show how to remove braced useless free, too
84200         * build-aux/useless-if-before-free: still only in a comment, though.
84202 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84204         maint.mk: import changes to syntax-check macros from coreutils
84205         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84206         Use them in the relevant macros.
84208 2009-04-06  Bruno Haible  <bruno@clisp.org>
84210         Fix unportable use of bit-fields.
84211         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84212         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84213         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84215 2009-04-06  Bruno Haible  <bruno@clisp.org>
84217         Avoid test failures on AIX and OSF/1.
84218         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84219         that malloc(0) = NULL.
84220         * tests/unicase/test-u8-tolower.c (check): Likewise.
84221         * tests/unicase/test-u8-totitle.c (check): Likewise.
84222         * tests/unicase/test-u8-toupper.c (check): Likewise.
84223         * tests/unicase/test-u16-casefold.c (check): Likewise.
84224         * tests/unicase/test-u16-tolower.c (check): Likewise.
84225         * tests/unicase/test-u16-totitle.c (check): Likewise.
84226         * tests/unicase/test-u16-toupper.c (check): Likewise.
84227         * tests/unicase/test-u32-casefold.c (check): Likewise.
84228         * tests/unicase/test-u32-tolower.c (check): Likewise.
84229         * tests/unicase/test-u32-totitle.c (check): Likewise.
84230         * tests/unicase/test-u32-toupper.c (check): Likewise.
84231         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84232         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84233         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84234         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84235         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84236         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84237         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84238         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84239         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84240         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84241         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84242         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84244 2009-04-05  Bruno Haible  <bruno@clisp.org>
84246         Work around an autoconf limitation.
84247         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84248         comment line if it would be longer than 3 KB.
84250 2009-04-05  Bruno Haible  <bruno@clisp.org>
84252         Avoid test failure with libiconv-1.13.
84253         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84254         of the expected test results.
84256 2009-04-05  Bruno Haible  <bruno@clisp.org>
84258         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84259         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84260         that it should be installed.
84262 2009-04-05  Bruno Haible  <bruno@clisp.org>
84264         * gnulib-tool: New option --copy-file.
84265         (func_usage): Document it.
84266         (func_dest_tmpfilename): Moved out of func_import.
84267         (func_add_file, func_update_file): New functions, extracted from
84268         func_import.
84269         (func_import): Update.
84271 2009-04-05  Karl Berry  <karl@gnu.org>
84273         * README: prominently mention gnulib-tool.
84274         Rearrange sections so getting the code is near the top.
84276 2009-04-05  Bruno Haible  <bruno@clisp.org>
84278         * lib/unicase.h: Mention u*_cmp2.
84279         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84280         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84281         * lib/unicase/ulc-casecmp.c: Likewise.
84282         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84283         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84284         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84285         unistr/u8-cmp.
84286         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84287         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84288         unistr/u16-cmp.
84289         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84290         unistr/u32-cmp.
84292         * lib/uninorm.h: Mention u*_cmp2.
84293         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84294         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84295         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84296         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84297         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84298         unistr/u8-cmp.
84299         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84300         unistr/u16-cmp.
84301         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84302         unistr/u32-cmp.
84304         New module 'unistr/u32-cmp2'.
84305         * lib/unistr/u32-cmp2.c: New file.
84306         * modules/unistr/u32-cmp2: New file.
84308         New module 'unistr/u16-cmp2'.
84309         * lib/unistr/u16-cmp2.c: New file.
84310         * modules/unistr/u16-cmp2: New file.
84312         New module 'unistr/u8-cmp2'.
84313         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84314         * lib/unistr/u8-cmp2.c: New file.
84315         * lib/unistr/u-cmp2.h: New file.
84316         * modules/unistr/u8-cmp2: New file.
84318 2009-04-05  Bruno Haible  <bruno@clisp.org>
84320         * lib/unictype.h (uc_property_is_valid): New macro.
84321         * tests/unictype/test-pr_byname.c (main): Use it.
84323         * lib/unistr.h: Doc fixes.
84324         * lib/uniconv.h: Doc fixes.
84325         * lib/unictype.h: Doc fixes.
84327 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84329         Port coreutils 7.2 to Solaris 8.
84331         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84332         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84333         for Solaris 8.  This is a bit of a hack, as it means it's the
84334         caller's responsibility to add -lnsl if needed, but most likely it
84335         won't be needed since only getaddrinfo uses this and getaddrinfo
84336         isn't needed on Solaris 8.
84338         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84339         problem to Solaris 8 encountered with coreutils 7.2, which
84340         resulted in a message "fnmatch.c:292: warning: passing argument 4
84341         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84342         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84344 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84346         * m4/ld-version-script.m4: Add FIXME comment.
84348 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84350         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84351         SOVERSION variable.
84353 2009-04-02  Bruno Haible  <bruno@clisp.org>
84355         * Makefile (info, html, dvi, pdf): Combine the rules.
84356         Suggested by Jim Meyering.
84358 2009-04-01  Bruno Haible  <bruno@clisp.org>
84360         * Makefile (info, html, dvi, pdf): New targets.
84361         Reported by Reuben Thomas <rrt@sc3d.org>.
84363 2009-04-01  Bruno Haible  <bruno@clisp.org>
84365         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84366         can be put into PATH.
84367         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84369 2009-04-01  Bruno Haible  <bruno@clisp.org>
84371         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84373 2009-04-01  Bruno Haible  <bruno@clisp.org>
84375         Rename module 'visibility'.
84376         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84377         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84378         * doc/gnulib.texi: Update.
84379         * MODULES.html.sh (Misc): Update.
84380         * NEWS: Mention the change.
84382 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84384         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84385         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84386         Eric Blake <ebb9@byu.net> for review.
84387         * MODULES.html.sh: Add lib-msvc-compat.
84388         * doc/gnulib.texi: Link to new section.
84389         * m4/ld-output-def.m4: New file.
84390         * doc/ld-output-def.texi: New file.
84392 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84394         Rename ld-version-script to lib-symbol-versions.  Suggested by
84395         Bruno Haible <bruno@clisp.org>.
84396         * modules/ld-version-script: Renamed to lib-symbol-versions.
84397         * doc/ld-version-script.texi: Fix module name.
84398         * MODULES.html.sh: Add lib-symbol-versions.
84400 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84402         * modules/u64-tests: New file.
84403         * tests/test-u64.c: New file.
84405 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84407         * MODULES.html.sh: Mention u64.
84408         * modules/u64: New module.
84409         * modules/crypto/sha512: Depend on u64 module instead of providing
84410         u64.h.
84412 2009-03-27  Eric Blake  <ebb9@byu.net>
84414         test-strerror: make debugging EAI_SYSTEM easier
84415         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84416         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84417         failure was EAI_SYSTEM.
84419 2009-03-25  Bruno Haible  <bruno@clisp.org>
84421         Fix a problem with --enable-relocatable on Solaris 7.
84422         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84423         since 2008-02-24.
84425 2009-03-25  Eric Blake  <ebb9@byu.net>
84427         test-sockets: avoid gcc warning
84428         * tests/test-sockets.c (main): Silence compiler warning.
84430 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84432         New modules nproc, pthread, contributed by Glen Lenker.
84434         * MODULES.html.sh: Add pthread, nproc.
84435         * lib/nproc.c: New file.
84436         * lib/nproc.h: New file.
84437         * lib/pthread.in.h: New file.
84438         * m4/pthread.m4: New file.
84439         * modules/nproc: New file.
84440         * modules/pthread: New file.
84442 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84444         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84445         New variable.
84447 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84449         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84450         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84451         * tests/test-filevercmp.c: Add tests for backup suffixes.
84453 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84455         * modules/stdlib (Depends-on): Add stdint, needed when defining
84456         struct random_data on, for example, HP-UX 10.20.  Reported by
84457         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84459 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84461         * lib/readline.c (readline): Call fflush on stdout after printing
84462         prompt.
84464 2009-03-20  Bruno Haible  <bruno@clisp.org>
84466         Remove dependency from 'close' module to -lws2_32 on native Windows.
84467         * lib/close-hook.h: New file.
84468         * lib/close-hook.c: New file.
84469         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84470         w32sock.h.
84471         (_gl_close_fd_maybe_socket): Remove function.
84472         (rpl_close): Invoke execute_all_close_hooks instead of
84473         _gl_close_fd_maybe_socket.
84474         * lib/sockets.c: Include close-hook.h, w32sock.h.
84475         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84476         (close_sockets_hook): New variable.
84477         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84478         (gl_sockets_cleanup): Unregister it.
84479         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84480         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84481         * modules/close-hook: New file.
84482         * modules/close (Files): Remove lib/w32sock.h.
84483         (Depends-on): Add close-hook.
84484         (Link): Remove section.
84485         * modules/sockets (Files): Add lib/w32sock.h.
84486         (Depends-on): Add close-hook.
84487         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84488         invocation.
84489         * NEWS: Mention that LIB_CLOSE is gone.
84491 2009-03-23  Eric Blake  <ebb9@byu.net>
84493         signal-tests: test previous patch
84494         * tests/test-signal.c: New file.
84495         * modules/signal-tests: Likewise.
84497         signal.h: always support 'volatile sig_atomic_t'
84498         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84499         (gl_SIGNAL_H_DEFAULTS): Add a default.
84500         * modules/signal (Makefile.am): Substitute if needed.
84501         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84502         users can blindly add volatile.
84503         * doc/posix-headers/signal.texi (signal.h): Document it.
84504         Reported by Matthew Woehlke.
84506 2009-03-23  Jim Meyering  <meyering@redhat.com>
84508         pathmax: PATH_MAX: use pathconf only when available
84509         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84510         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84511         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84512         This avoids a link failure in a PSP cross-compilation environment
84513         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84515         * lib/vasnprintf.c (divide): Fix typo in comment.
84517 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84519         * gnulib-tool (func_filter_filelist): Fix comment.
84521 2009-03-20  Bruno Haible  <bruno@clisp.org>
84523         Make sockets.h self-contained.
84524         * lib/sockets.c: Include sockets.h first.
84525         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84527 2009-03-19  Eric Blake  <ebb9@byu.net>
84529         doc: mention more functions added in cygwin 1.7.0
84530         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84531         addition.
84532         * doc/posix-functions/log2f.texi: Likewise.
84534 2009-03-19  Jim Meyering  <meyering@redhat.com>
84536         fsusage: avoid syntax error due to statement-before-declaration
84537         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84538         after all declarations.  Reported by Matthew Woehlke in
84539         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84541 2009-03-18  Eric Blake  <ebb9@byu.net>
84543         build-aux/compile: sync from automake
84544         * build-aux/compile: New file, from automake.
84545         * config/srclist.txt: Mention build-aux/compile.
84547 2009-03-17  Bruno Haible  <bruno@clisp.org>
84549         * lib/git-merge-changelog.c: Fix typo in comment.
84550         Reported by Reuben Thomas <rrt@sc3d.org>.
84552 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84554         * m4/regex.m4: update and improve help for
84555         --without-included-regex.
84557 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84559         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84560         failure on missing include files.
84562 2009-03-17  Eric Blake  <ebb9@byu.net>
84564         doc: mention more functions added in cygwin 1.7.0
84565         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84566         addition.
84567         * doc/posix-functions/fwscanf.texi: Likewise.
84568         * doc/posix-functions/swprintf.texi: Likewise.
84569         * doc/posix-functions/swscanf.texi: Likewise.
84570         * doc/posix-functions/vfwprintf.texi: Likewise.
84571         * doc/posix-functions/vfwscanf.texi: Likewise.
84572         * doc/posix-functions/vswprintf.texi: Likewise.
84573         * doc/posix-functions/vswscanf.texi: Likewise.
84574         * doc/posix-functions/vwprintf.texi: Likewise.
84575         * doc/posix-functions/vwscanf.texi: Likewise.
84576         * doc/posix-functions/wcscasecmp.texi: Likewise.
84577         * doc/posix-functions/wcsdup.texi: Likewise.
84578         * doc/posix-functions/wcsftime.texi: Likewise.
84579         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84580         * doc/posix-functions/wprintf.texi: Likewise.
84581         * doc/posix-functions/wscanf.texi: Likewise.
84582         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84584 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84586         maint.mk: really add $(AM_MAKEFLAGS)
84587         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84588         was inadvertently omitted in the last commit.
84589         Spotted by Bruno Haible.
84591         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84592         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84593         $(AM_MAKEFLAGS)' rather than plain `make'.
84595         gnulib-tool: execute $MAKE not make
84596         * gnulib-tool: Default $MAKE to 'make'.
84597         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84598         than make.  Initialize $MAKE in the do-autobuild script.
84600         gnulib-tool: use $MAKE not make in generated files
84601         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84602         make, in generated files.  Initialize $MAKE in the do-autobuild
84603         script.
84605         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84607         GNUmakefile: disable parallelism only for multiple, recursive targets
84608         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84609         additions in the Makefile.
84610         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84611         by Automake.
84612         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84613         are listed on the command line and at least one of them is
84614         listed in $(ALL_RECURSIVE_TARGETS).
84616 2009-03-14  Bruno Haible  <bruno@clisp.org>
84618         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84619         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84620         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84621         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84622         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84623         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84624         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84625         unistr/u8-uctomb.
84626         * modules/unistr/u8-strchr (Depends-on): Likewise.
84627         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84628         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84629         unistr/u16-uctomb.
84630         * modules/unistr/u16-strchr (Depends-on): Likewise.
84631         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84633 2009-03-12  Bruno Haible  <bruno@clisp.org>
84635         Work around select() bug on Interix 3.5.
84636         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84637         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84638         * m4/select.m4: New file.
84639         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84640         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84641         * modules/select (Files): Add m4/select.m4.
84642         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84643         * modules/nanosleep (Depends-on): Add select.
84644         * modules/poll (Depends-on): Likewise.
84645         * doc/posix-functions/select.texi: Mention the Interix bug.
84646         Reported by Markus Duft <mduft@gentoo.org>.
84648         * lib/select.c: Renamed from lib/winsock-select.c.
84649         * modules/select (Files): Add lib/select.c, remove
84650         lib/winsock-select.c.
84651         (configure.ac): Update.
84653 2009-03-12  Jim Meyering  <meyering@redhat.com>
84655         avoid gcc warnings about unused macro definitions
84656         * lib/readtokens.c (STREQ): Remove unused definition.
84657         * lib/xmalloc.c (SIZE_MAX): Likewise.
84658         * lib/openat-die.c (N_): Likewise.
84659         * lib/mountlist.c (SIZE_MAX): Remove definition.
84660         Instead, include <stdint.h>.
84661         * lib/readutmp.c: Likewise.
84662         * modules/readutmp (Depends-on): Add stdint.
84663         * modules/mountlist (Depends-on): Add stdint.
84664         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84666 2009-03-10  Bruno Haible  <bruno@clisp.org>
84668         Tests for module 'mbmemcasecoll'.
84669         * modules/mbmemcasecoll-tests: New file.
84670         * tests/test-mbmemcasecoll1.sh: New file.
84671         * tests/test-mbmemcasecoll2.sh: New file.
84672         * tests/test-mbmemcasecoll3.sh: New file.
84673         * tests/test-mbmemcasecoll.c: New file.
84675         New module 'mbmemcasecoll'.
84676         * lib/mbmemcasecoll.h: New file.
84677         * lib/mbmemcasecoll.c: New file.
84678         * modules/mbmemcasecoll: New file.
84680         * tests/test-mbmemcasecmp.h: New file, extracted from
84681         tests/test-mbmemcasecmp.c.
84682         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84683         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84684         (main): Update.
84685         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84687 2009-03-09  Bruno Haible  <bruno@clisp.org>
84689         Tests for module 'mbmemcasecmp'.
84690         * modules/mbmemcasecmp-tests: New file.
84691         * tests/test-mbmemcasecmp1.sh: New file.
84692         * tests/test-mbmemcasecmp2.sh: New file.
84693         * tests/test-mbmemcasecmp3.sh: New file.
84694         * tests/test-mbmemcasecmp.c: New file.
84696         New module 'mbmemcasecmp'.
84697         * lib/mbmemcasecmp.h: New file.
84698         * lib/mbmemcasecmp.c: New file.
84699         * modules/mbmemcasecmp: New file.
84701 2009-03-09  Bruno Haible  <bruno@clisp.org>
84703         Tests for module 'unicase/ulc-casecoll'.
84704         * modules/unicase/ulc-casecoll-tests: New file.
84705         * tests/unicase/test-ulc-casecoll1.sh: New file.
84706         * tests/unicase/test-ulc-casecoll2.sh: New file.
84707         * tests/unicase/test-ulc-casecoll.c: New file.
84709         New module 'unicase/ulc-casecoll'.
84710         * lib/unicase.h (ulc_casecoll): New declaration.
84711         * lib/unicase/ulc-casecoll.c: New file.
84712         * modules/unicase/ulc-casecoll: New file.
84714         New module 'unicase/ulc-casexfrm'.
84715         * lib/unicase.h (ulc_casexfrm): New declaration.
84716         * lib/unicase/ulc-casexfrm.c: New file.
84717         * modules/unicase/ulc-casexfrm: New file.
84719 2009-03-09  Bruno Haible  <bruno@clisp.org>
84721         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84722         invocations.
84724         * m4/mbscasecmp.m4: Remove file.
84725         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84726         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84728         * m4/mbscasestr.m4: Remove file.
84729         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84730         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84732         * m4/mbschr.m4: Remove file.
84733         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84734         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84736         * m4/mbscspn.m4: Remove file.
84737         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84738         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84740         * m4/mbslen.m4: Remove file.
84741         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84742         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84744         * m4/mbsncasecmp.m4: Remove file.
84745         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84746         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84748         * m4/mbsnlen.m4: Remove file.
84749         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84750         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84752         * m4/mbspbrk.m4: Remove file.
84753         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84754         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84756         * m4/mbspcasecmp.m4: Remove file.
84757         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84758         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84760         * m4/mbsrchr.m4: Remove file.
84761         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84762         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84764         * m4/mbssep.m4: Remove file.
84765         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84766         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84768         * m4/mbsspn.m4: Remove file.
84769         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84770         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84772         * m4/mbsstr.m4: Remove file.
84773         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84774         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84776         * m4/mbstok_r.m4: Remove file.
84777         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84778         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84780         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84782         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84783         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84785         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84787 2009-03-08  Bruno Haible  <bruno@clisp.org>
84789         Tests for module 'unicase/ulc-casecmp'.
84790         * modules/unicase/ulc-casecmp-tests: New file.
84791         * tests/unicase/test-ulc-casecmp1.sh: New file.
84792         * tests/unicase/test-ulc-casecmp2.sh: New file.
84793         * tests/unicase/test-ulc-casecmp.c: New file.
84795         New module 'unicase/ulc-casecmp'.
84796         * lib/unicase.h (ulc_casecmp): New declaration.
84797         * lib/unicase/ulc-casecmp.c: New file.
84798         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84799         'const SRC_UNIT *'.
84800         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84801         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84802         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84803         * modules/unicase/ulc-casecmp: New file.
84805         Tests for module 'unicase/u32-is-cased'.
84806         * modules/unicase/u32-is-cased-tests: New file.
84807         * tests/unicase/test-u32-is-cased.c: New file.
84809         Tests for module 'unicase/u16-is-cased'.
84810         * modules/unicase/u16-is-cased-tests: New file.
84811         * tests/unicase/test-u16-is-cased.c: New file.
84813         Tests for module 'unicase/u8-is-cased'.
84814         * modules/unicase/u8-is-cased-tests: New file.
84815         * tests/unicase/test-u8-is-cased.c: New file.
84816         * tests/unicase/test-is-cased.h: New file.
84818         New module 'unicase/u32-is-cased'.
84819         * lib/unicase/u32-is-cased.c: New file.
84820         * modules/unicase/u32-is-cased: New file.
84822         New module 'unicase/u16-is-cased'.
84823         * lib/unicase/u16-is-cased.c: New file.
84824         * modules/unicase/u16-is-cased: New file.
84826         New module 'unicase/u8-is-cased'.
84827         * lib/unicase/u8-is-cased.c: New file.
84828         * lib/unicase/u-is-cased.h: New file.
84829         * modules/unicase/u8-is-cased: New file.
84831         Tests for module 'unicase/u32-is-casefolded'.
84832         * modules/unicase/u32-is-casefolded-tests: New file.
84833         * tests/unicase/test-u32-is-casefolded.c: New file.
84835         Tests for module 'unicase/u16-is-casefolded'.
84836         * modules/unicase/u16-is-casefolded-tests: New file.
84837         * tests/unicase/test-u16-is-casefolded.c: New file.
84839         Tests for module 'unicase/u8-is-casefolded'.
84840         * modules/unicase/u8-is-casefolded-tests: New file.
84841         * tests/unicase/test-u8-is-casefolded.c: New file.
84842         * tests/unicase/test-is-casefolded.h: New file.
84844         New module 'unicase/u32-is-casefolded'.
84845         * lib/unicase/u32-is-casefolded.c: New file.
84846         * modules/unicase/u32-is-casefolded: New file.
84848         New module 'unicase/u16-is-casefolded'.
84849         * lib/unicase/u16-is-casefolded.c: New file.
84850         * modules/unicase/u16-is-casefolded: New file.
84852         New module 'unicase/u8-is-casefolded'.
84853         * lib/unicase/u8-is-casefolded.c: New file.
84854         * modules/unicase/u8-is-casefolded: New file.
84856         Tests for module 'unicase/u32-is-titlecase'.
84857         * modules/unicase/u32-is-titlecase-tests: New file.
84858         * tests/unicase/test-u32-is-titlecase.c: New file.
84860         Tests for module 'unicase/u16-is-titlecase'.
84861         * modules/unicase/u16-is-titlecase-tests: New file.
84862         * tests/unicase/test-u16-is-titlecase.c: New file.
84864         Tests for module 'unicase/u8-is-titlecase'.
84865         * modules/unicase/u8-is-titlecase-tests: New file.
84866         * tests/unicase/test-u8-is-titlecase.c: New file.
84867         * tests/unicase/test-is-titlecase.h: New file.
84869         New module 'unicase/u32-is-titlecase'.
84870         * lib/unicase/u32-is-titlecase.c: New file.
84871         * modules/unicase/u32-is-titlecase: New file.
84873         New module 'unicase/u16-is-titlecase'.
84874         * lib/unicase/u16-is-titlecase.c: New file.
84875         * modules/unicase/u16-is-titlecase: New file.
84877         New module 'unicase/u8-is-titlecase'.
84878         * lib/unicase/u8-is-titlecase.c: New file.
84879         * modules/unicase/u8-is-titlecase: New file.
84881         Tests for module 'unicase/u32-is-lowercase'.
84882         * modules/unicase/u32-is-lowercase-tests: New file.
84883         * tests/unicase/test-u32-is-lowercase.c: New file.
84885         Tests for module 'unicase/u16-is-lowercase'.
84886         * modules/unicase/u16-is-lowercase-tests: New file.
84887         * tests/unicase/test-u16-is-lowercase.c: New file.
84889         Tests for module 'unicase/u8-is-lowercase'.
84890         * modules/unicase/u8-is-lowercase-tests: New file.
84891         * tests/unicase/test-u8-is-lowercase.c: New file.
84892         * tests/unicase/test-is-lowercase.h: New file.
84894         New module 'unicase/u32-is-lowercase'.
84895         * lib/unicase/u32-is-lowercase.c: New file.
84896         * modules/unicase/u32-is-lowercase: New file.
84898         New module 'unicase/u16-is-lowercase'.
84899         * lib/unicase/u16-is-lowercase.c: New file.
84900         * modules/unicase/u16-is-lowercase: New file.
84902         New module 'unicase/u8-is-lowercase'.
84903         * lib/unicase/u8-is-lowercase.c: New file.
84904         * modules/unicase/u8-is-lowercase: New file.
84906         Tests for module 'unicase/u32-is-uppercase'.
84907         * modules/unicase/u32-is-uppercase-tests: New file.
84908         * tests/unicase/test-u32-is-uppercase.c: New file.
84910         Tests for module 'unicase/u16-is-uppercase'.
84911         * modules/unicase/u16-is-uppercase-tests: New file.
84912         * tests/unicase/test-u16-is-uppercase.c: New file.
84914         Tests for module 'unicase/u8-is-uppercase'.
84915         * modules/unicase/u8-is-uppercase-tests: New file.
84916         * tests/unicase/test-u8-is-uppercase.c: New file.
84917         * tests/unicase/test-is-uppercase.h: New file.
84919         New module 'unicase/u32-is-uppercase'.
84920         * lib/unicase/u32-is-uppercase.c: New file.
84921         * modules/unicase/u32-is-uppercase: New file.
84923         New module 'unicase/u16-is-uppercase'.
84924         * lib/unicase/u16-is-uppercase.c: New file.
84925         * modules/unicase/u16-is-uppercase: New file.
84927         New module 'unicase/u8-is-uppercase'.
84928         * lib/unicase/u8-is-uppercase.c: New file.
84929         * modules/unicase/u8-is-uppercase: New file.
84931         New module 'unicase/u32-is-invariant'.
84932         * lib/unicase/u32-is-invariant.c: New file.
84933         * modules/unicase/u32-is-invariant: New file.
84935         New module 'unicase/u16-is-invariant'.
84936         * lib/unicase/u16-is-invariant.c: New file.
84937         * modules/unicase/u16-is-invariant: New file.
84939         New module 'unicase/u8-is-invariant'.
84940         * lib/unicase/u8-is-invariant.c: New file.
84941         * lib/unicase/invariant.h: New file.
84942         * lib/unicase/u-is-invariant.h: New file.
84943         * modules/unicase/u8-is-invariant: New file.
84945         Tests for module 'unicase/u32-casecoll'.
84946         * modules/unicase/u32-casecoll-tests: New file.
84947         * tests/unicase/test-u32-casecoll.c: New file.
84949         Tests for module 'unicase/u16-casecoll'.
84950         * modules/unicase/u16-casecoll-tests: New file.
84951         * tests/unicase/test-u16-casecoll.c: New file.
84953         Tests for module 'unicase/u8-casecoll'.
84954         * modules/unicase/u8-casecoll-tests: New file.
84955         * tests/unicase/test-u8-casecoll.c: New file.
84957         New module 'unicase/u32-casecoll'.
84958         * lib/unicase/u32-casecoll.c: New file.
84959         * modules/unicase/u32-casecoll: New file.
84961         New module 'unicase/u16-casecoll'.
84962         * lib/unicase/u16-casecoll.c: New file.
84963         * modules/unicase/u16-casecoll: New file.
84965         New module 'unicase/u8-casecoll'.
84966         * lib/unicase/u8-casecoll.c: New file.
84967         * lib/unicase/u-casecoll.h: New file.
84968         * modules/unicase/u8-casecoll: New file.
84970         New module 'unicase/u32-casexfrm'.
84971         * lib/unicase/u32-casexfrm.c: New file.
84972         * modules/unicase/u32-casexfrm: New file.
84974         New module 'unicase/u16-casexfrm'.
84975         * lib/unicase/u16-casexfrm.c: New file.
84976         * modules/unicase/u16-casexfrm: New file.
84978         New module 'unicase/u8-casexfrm'.
84979         * lib/unicase/u8-casexfrm.c: New file.
84980         * lib/unicase/u-casexfrm.h: New file.
84981         * modules/unicase/u8-casexfrm: New file.
84983         Tests for module 'unicase/u32-casecmp'.
84984         * modules/unicase/u32-casecmp-tests: New file.
84985         * tests/unicase/test-u32-casecmp.c: New file.
84987         Tests for module 'unicase/u16-casecmp'.
84988         * modules/unicase/u16-casecmp-tests: New file.
84989         * tests/unicase/test-u16-casecmp.c: New file.
84991         Tests for module 'unicase/u8-casecmp'.
84992         * modules/unicase/u8-casecmp-tests: New file.
84993         * tests/unicase/test-u8-casecmp.c: New file.
84994         * tests/unicase/test-casecmp.h: New file.
84996         New module 'unicase/u32-casecmp'.
84997         * lib/unicase/u32-casecmp.c: New file.
84998         * modules/unicase/u32-casecmp: New file.
85000         New module 'unicase/u16-casecmp'.
85001         * lib/unicase/u16-casecmp.c: New file.
85002         * modules/unicase/u16-casecmp: New file.
85004         New module 'unicase/u8-casecmp'.
85005         * lib/unicase/u8-casecmp.c: New file.
85006         * lib/unicase/u-casecmp.h: New file.
85007         * modules/unicase/u8-casecmp: New file.
85009         Tests for module 'unicase/u32-casefold'.
85010         * modules/unicase/u32-casefold-tests: New file.
85011         * tests/unicase/test-u32-casefold.c: New file.
85013         Tests for module 'unicase/u16-casefold'.
85014         * modules/unicase/u16-casefold-tests: New file.
85015         * tests/unicase/test-u16-casefold.c: New file.
85017         Tests for module 'unicase/u8-casefold'.
85018         * modules/unicase/u8-casefold-tests: New file.
85019         * tests/unicase/test-u8-casefold.c: New file.
85021         New module 'unicase/u32-casefold'.
85022         * lib/unicase/u32-casefold.c: New file.
85023         * modules/unicase/u32-casefold: New file.
85025         New module 'unicase/u16-casefold'.
85026         * lib/unicase/u16-casefold.c: New file.
85027         * modules/unicase/u16-casefold: New file.
85029         New module 'unicase/u8-casefold'.
85030         * lib/unicase/u8-casefold.c: New file.
85031         * lib/unicase/u-casefold.h: New file.
85032         * modules/unicase/u8-casefold: New file.
85034         New module 'unicase/tocasefold'.
85035         * lib/unicase/casefold.h: New file.
85036         * lib/unicase/tocasefold.c: New file.
85037         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85038         * modules/unicase/tocasefold: New file.
85040         Tests for module 'unicase/u32-totitle'.
85041         * modules/unicase/u32-totitle-tests: New file.
85042         * tests/unicase/test-u32-totitle.c: New file.
85044         Tests for module 'unicase/u16-totitle'.
85045         * modules/unicase/u16-totitle-tests: New file.
85046         * tests/unicase/test-u16-totitle.c: New file.
85048         Tests for module 'unicase/u8-totitle'.
85049         * modules/unicase/u8-totitle-tests: New file.
85050         * tests/unicase/test-u8-totitle.c: New file.
85052         New module 'unicase/u32-totitle'.
85053         * lib/unicase/u32-totitle.c: New file.
85054         * modules/unicase/u32-totitle: New file.
85056         New module 'unicase/u16-totitle'.
85057         * lib/unicase/u16-totitle.c: New file.
85058         * modules/unicase/u16-totitle: New file.
85060         New module 'unicase/u8-totitle'.
85061         * lib/unicase/u8-totitle.c: New file.
85062         * lib/unicase/u-totitle.h: New file.
85063         * modules/unicase/u8-totitle: New file.
85065         Tests for module 'unicase/u32-tolower'.
85066         * modules/unicase/u32-tolower-tests: New file.
85067         * tests/unicase/test-u32-tolower.c: New file.
85069         Tests for module 'unicase/u16-tolower'.
85070         * modules/unicase/u16-tolower-tests: New file.
85071         * tests/unicase/test-u16-tolower.c: New file.
85073         Tests for module 'unicase/u8-tolower'.
85074         * modules/unicase/u8-tolower-tests: New file.
85075         * tests/unicase/test-u8-tolower.c: New file.
85077         New module 'unicase/u32-tolower'.
85078         * lib/unicase/u32-tolower.c: New file.
85079         * modules/unicase/u32-tolower: New file.
85081         New module 'unicase/u16-tolower'.
85082         * lib/unicase/u16-tolower.c: New file.
85083         * modules/unicase/u16-tolower: New file.
85085         New module 'unicase/u8-tolower'.
85086         * lib/unicase/u8-tolower.c: New file.
85087         * modules/unicase/u8-tolower: New file.
85089         Tests for module 'unicase/u32-toupper'.
85090         * modules/unicase/u32-toupper-tests: New file.
85091         * tests/unicase/test-u32-toupper.c: New file.
85093         Tests for module 'unicase/u16-toupper'.
85094         * modules/unicase/u16-toupper-tests: New file.
85095         * tests/unicase/test-u16-toupper.c: New file.
85097         Tests for module 'unicase/u8-toupper'.
85098         * modules/unicase/u8-toupper-tests: New file.
85099         * tests/unicase/test-u8-toupper.c: New file.
85101         New module 'unicase/u32-toupper'.
85102         * lib/unicase/u32-toupper.c: New file.
85103         * modules/unicase/u32-toupper: New file.
85105         New module 'unicase/u16-toupper'.
85106         * lib/unicase/u16-toupper.c: New file.
85107         * modules/unicase/u16-toupper: New file.
85109         New module 'unicase/u8-toupper'.
85110         * lib/unicase/u8-toupper.c: New file.
85111         * modules/unicase/u8-toupper: New file.
85113         New module 'unicase/u32-casemap'.
85114         * lib/unicase/u32-casemap.c: New file.
85115         * modules/unicase/u32-casemap: New file.
85117         New module 'unicase/u16-casemap'.
85118         * lib/unicase/u16-casemap.c: New file.
85119         * modules/unicase/u16-casemap: New file.
85121         New module 'unicase/u8-casemap'.
85122         * lib/unicase/unicasemap.h: New file.
85123         * lib/unicase/u8-casemap.c: New file.
85124         * lib/unicase/u-casemap.h: New file.
85125         * modules/unicase/u8-casemap: New file.
85127         New module 'unicase/special-casing'.
85128         * lib/unicase/special-casing.h: New file.
85129         * lib/unicase/special-casing.c: New file.
85130         * lib/unicase/special-casing-table.gperf: New file, generated by
85131         gen-uni-tables.c.
85132         * modules/unicase/special-casing: New file.
85134         Tests for module 'unicase/locale-language'.
85135         * modules/unicase/locale-language-tests: New file.
85136         * tests/unicase/test-locale-language.sh: New file.
85137         * tests/unicase/test-locale-language.c: New file.
85139         New module 'unicase/locale-language'.
85140         * lib/unicase/locale-language.c: New file.
85141         * lib/unicase/locale-languages.gperf: New file.
85142         * modules/unicase/locale-language: New file.
85144         Generate more tables for case conversion and case folding.
85145         * lib/gen-uni-tables.c (SCC_*): New enum items.
85146         (struct special_casing_rule): New type.
85147         (casing_rules, num_casing_rules, allocated_casing_rules): New
85148         variables.
85149         (add_casing_rule, fill_casing_rules): New functions.
85150         (struct casefold_rule): New type.
85151         (casefolding_rules, num_casefolding_rules,
85152         allocated_casefolding_rules): New variables.
85153         (fill_casefolding_rules): New function.
85154         (unicode_casefold): New variable.
85155         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85156         sort_casing_rules, output_casing_rules): New functions.
85157         (main): Accept to more arguments: SpecialCasing.txt and
85158         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85159         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85160         Output mapping for casefolding.
85162         * lib/unicase.h: Include stdbool.h, uninorm.h.
85163         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85164         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85165         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85166         arguments.
85167         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85168         resultp arguments.
85169         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85170         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85171         resultp arguments.
85172         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85173         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85174         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85175         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85176         declarations.
85177         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85179 2009-03-08  Bruno Haible  <bruno@clisp.org>
85181         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85182         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85183         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85184         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85186 2009-03-07  Bruno Haible  <bruno@clisp.org>
85188         Adjust u*_normcmp, u*_normcoll API.
85189         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85190         u16_normcoll, u32_normcoll): Change failure conventions.
85191         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85192         errno and return -1.
85193         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85195 2009-03-07  Bruno Haible  <bruno@clisp.org>
85197         Tests for module 'uninorm/u32-normcoll'.
85198         * modules/uninorm/u32-normcoll-tests: New file.
85199         * tests/uninorm/test-u32-normcoll.c: New file.
85201         Tests for module 'uninorm/u16-normcoll'.
85202         * modules/uninorm/u16-normcoll-tests: New file.
85203         * tests/uninorm/test-u16-normcoll.c: New file.
85205         Tests for module 'uninorm/u8-normcoll'.
85206         * modules/uninorm/u8-normcoll-tests: New file.
85207         * tests/uninorm/test-u8-normcoll.c: New file.
85209 2009-03-07  Bruno Haible  <bruno@clisp.org>
85211         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85212         tests/uninorm/test-u32-normcmp.c.
85213         * tests/uninorm/test-u32-normcmp.c: Include it.
85214         (test_nonascii): New function, extracted from main. Add some more
85215         tests.
85216         (main): Invoke test_ascii and test_nonascii.
85217         * modules/uninorm/u32-normcmp-tests (Files): Add
85218         tests/uninorm/test-u32-normcmp.h.
85219         (Depends-on): Remove uninorm/u32-normcmp.
85221         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85222         tests/uninorm/test-u16-normcmp.c.
85223         * tests/uninorm/test-u16-normcmp.c: Include it.
85224         (test_nonascii): New function, extracted from main. Add some more
85225         tests.
85226         (main): Invoke test_ascii and test_nonascii.
85227         * modules/uninorm/u16-normcmp-tests (Files): Add
85228         tests/uninorm/test-u16-normcmp.h.
85229         (Depends-on): Remove uninorm/u16-normcmp.
85231         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85232         tests/uninorm/test-u8-normcmp.c.
85233         * tests/uninorm/test-u8-normcmp.c: Include it.
85234         (test_nonascii): New function, extracted from main. Add some more
85235         tests.
85236         (main): Invoke test_ascii and test_nonascii.
85237         * modules/uninorm/u8-normcmp-tests (Files): Add
85238         tests/uninorm/test-u8-normcmp.h.
85239         (Depends-on): Remove uninorm/u8-normcmp.
85241 2009-03-07  Bruno Haible  <bruno@clisp.org>
85243         New module 'uninorm/u32-normcoll'.
85244         * lib/uninorm/u32-normcoll.c: New file.
85245         * modules/uninorm/u32-normcoll: New file.
85247         New module 'uninorm/u16-normcoll'.
85248         * lib/uninorm/u16-normcoll.c: New file.
85249         * modules/uninorm/u16-normcoll: New file.
85251         New module 'uninorm/u8-normcoll'.
85252         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85253         declarations.
85254         * lib/uninorm/u8-normcoll.c: New file.
85255         * lib/uninorm/u-normcoll.h: New file.
85256         * modules/uninorm/u8-normcoll: New file.
85258         New module 'uninorm/u32-normxfrm'.
85259         * lib/uninorm/u32-normxfrm.c: New file.
85260         * modules/uninorm/u32-normxfrm: New file.
85262         New module 'uninorm/u16-normxfrm'.
85263         * lib/uninorm/u16-normxfrm.c: New file.
85264         * modules/uninorm/u16-normxfrm: New file.
85266         New module 'uninorm/u8-normxfrm'.
85267         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85268         declarations.
85269         * lib/uninorm/u8-normxfrm.c: New file.
85270         * lib/uninorm/u-normxfrm.h: New file.
85271         * modules/uninorm/u8-normxfrm: New file.
85273 2009-03-07  Bruno Haible  <bruno@clisp.org>
85275         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85276         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85277         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85279 2009-03-07  Bruno Haible  <bruno@clisp.org>
85281         New module 'memxfrm'.
85282         * lib/memxfrm.h: New file.
85283         * lib/memxfrm.c: New file.
85284         * modules/memxfrm: New file.
85286 2009-03-07  Bruno Haible  <bruno@clisp.org>
85288         New module 'memcmp2'.
85289         * lib/memcmp2.h: New file.
85290         * lib/memcmp2.c: New file.
85291         * modules/memcmp2: New file.
85293 2009-03-07  Bruno Haible  <bruno@clisp.org>
85295         Tests for module 'uninorm/decomposing-form'.
85296         * modules/uninorm/decomposing-form-tests: New file.
85297         * tests/uninorm/test-decomposing-form.c: New file.
85299         New module 'uninorm/decomposing-form'.
85300         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85301         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85302         Add 'decomposing_variant' field.
85303         * lib/uninorm/decomposing-form.c: New file.
85304         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85305         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85306         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85307         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85308         * modules/uninorm/decomposing-form: New file.
85309         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85310         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85312 2009-03-07  Bruno Haible  <bruno@clisp.org>
85314         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85315         strings.
85317 2009-03-06  Bruno Haible  <bruno@clisp.org>
85319         Tests for module 'uninorm/u32-normcmp'.
85320         * tests/uninorm/test-u32-normcmp.c: New file.
85321         * modules/uninorm/u32-normcmp-tests: New file.
85323         Tests for module 'uninorm/u16-normcmp'.
85324         * tests/uninorm/test-u16-normcmp.c: New file.
85325         * modules/uninorm/u16-normcmp-tests: New file.
85327         Tests for module 'uninorm/u8-normcmp'.
85328         * tests/uninorm/test-u8-normcmp.c: New file.
85329         * modules/uninorm/u8-normcmp-tests: New file.
85331         New module 'uninorm/u32-normcmp'.
85332         * lib/uninorm/u32-normcmp.c: New file.
85333         * modules/uninorm/u32-normcmp: New file.
85335         New module 'uninorm/u16-normcmp'.
85336         * lib/uninorm/u16-normcmp.c: New file.
85337         * modules/uninorm/u16-normcmp: New file.
85339         New module 'uninorm/u8-normcmp'.
85340         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85341         declarations.
85342         * lib/uninorm/u8-normcmp.c: New file.
85343         * lib/uninorm/u-normcmp.h: New file.
85344         * modules/uninorm/u8-normcmp: New file.
85346 2009-03-06  Bruno Haible  <bruno@clisp.org>
85348         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85349         Reported by Eric Blake.
85351 2009-03-06  Eric Blake  <ebb9@byu.net>
85352             Bruno Haible  <bruno@clisp.org>
85354         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85355         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85356         condition.
85357         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85358         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85359         condition.
85360         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85362 2009-03-06  Eric Blake  <ebb9@byu.net>
85364         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85365         to avoid compiler warnings.
85366         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85368 2009-03-05  Bruno Haible  <bruno@clisp.org>
85370         * tests/test-ftell.c (main): Disable test beyond end of file on
85371         FreeMiNT.
85372         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85374 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85376         * lib/filevercmp.c: Move hidden files up in ordering.
85377         * tests/test-filevercmp.c: Add tests for hidden files.
85379 2009-03-04  Bruno Haible  <bruno@clisp.org>
85381         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85382         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85383         AM_CFLAGS.
85384         Reported by Simon Josefsson.
85386 2009-03-03  Bruno Haible  <bruno@clisp.org>
85388         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85389         Reported by Simon Josefsson.
85391         * doc/ld-version-script.texi: Update node reference.
85393 2009-03-03  Bruno Haible  <bruno@clisp.org>
85395         * modules/visibility (License): Change to 'unlimited'.
85396         Suggested by Simon Josefsson.
85398 2009-03-03  Jim Meyering  <meyering@redhat.com>
85400         unlinkdir: cannot_unlink_dir may modify process state
85401         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85402         it's neither thread-safe nor appropriate for use in a library.
85404 2009-03-03  Eric Blake  <ebb9@byu.net>
85406         test-closein: silence test under Darwin
85407         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85408         care if it dies from EPIPE or EBADF.
85410 2009-03-03  Bruno Haible  <bruno@clisp.org>
85412         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85413         earlier.
85414         * doc/visibility.texi: Fix @node and @section.
85416 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85418         * doc/gnulib.texi: Link to sections for ld version script and
85419         visibility.
85420         * doc/visibility.texi: Add @node and @section.
85421         * modules/ld-version-script: New module.
85422         * m4/ld-version-script.m4: New file.
85423         * doc/ld-version-script.texi: New file.
85425 2009-03-02  David Lutterkort  <lutter@redhat.com>
85427         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85430 2009-03-02  Bruno Haible  <bruno@clisp.org>
85432         * doc/visibility.texi: Mention libtool's -export-symbols option.
85434 2009-03-02  Jim Meyering  <meyering@redhat.com>
85436         announce-gen: new option: --no-print-checksums
85437         * build-aux/announce-gen (usage): Describe it.
85438         (print_checksums): Print a newline here, not in the [*] footnote.
85439         (main): Honor it.
85441 2009-03-01  Bruno Haible  <bruno@clisp.org>
85443         Use socklen_t in the native Windows replacements prototypes.
85444         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85445         instead of 'int'.
85446         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85447         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85448         * modules/getsockopt (Depends-on): Add socklen.
85449         * modules/setsockopt (Depends-on): Add socklen.
85451 2009-03-01  Bruno Haible  <bruno@clisp.org>
85453         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85454         least 4.2.
85456 2009-03-01  Eric Blake  <ebb9@byu.net>
85457             Bruno Haible  <bruno@clisp.org>
85459         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85460         error messages.
85461         * lib/wait-process.c (wait_subprocess): Omit error message about
85462         deadly signal sent to the child of termsigp != NULL.
85464 2009-03-01  Eric Blake  <ebb9@byu.net>
85466         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85468 2009-03-01  Bruno Haible  <bruno@clisp.org>
85470         Avoid a gcc warning.
85471         * tests/test-sched.c (b): Make global.
85472         Reported by Eric Blake.
85474 2009-01-19  Martin Lambers  <marlam@marlam.de>
85476         Provide POSIX semantics for socket timeout options on W32.
85477         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85478         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85479         * modules/setsockopt: Depend on sys_time module for struct timeval.
85480         * modules/getsockopt: Depend on sys_time module for struct timeval.
85482 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85484         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85485         __USE_GNU, for consistency with netdb.in.h.
85486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85488 2009-03-01  Bruno Haible  <bruno@clisp.org>
85490         More support for FreeMiNT.
85491         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85492         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85494 2009-03-01  Bruno Haible  <bruno@clisp.org>
85496         More support for FreeMiNT.
85497         * lib/fpurge.c (fpurge): Correct last commit.
85498         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85500 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85502         Fix unportable awk script in vc-list-files.
85503         * build-aux/vc-list-files: In the replacement awk script, use
85504         substr with a second argument of 1, not zero.
85505         Report by Simon Josefsson.
85507 2009-02-28  Bruno Haible  <bruno@clisp.org>
85509         More support for FreeMiNT.
85510         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85511         to FreeMiNT today.
85512         * lib/fwriting.c (fwriting): Likewise.
85513         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85515 2009-02-28  Bruno Haible  <bruno@clisp.org>
85517         * tests/test-freadseek.c (main): Disable test beyond end of file on
85518         FreeMiNT.
85519         * tests/test-ftello.c (main): Likewise.
85520         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85522 2009-02-28  Bruno Haible  <bruno@clisp.org>
85524         Add tentative support for FreeMiNT.
85525         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85526         * lib/fpurge.c (fpurge): Likewise.
85527         * lib/freadable.c (freadable): Likewise.
85528         * lib/freading.c (freading): Likewise.
85529         * lib/freadptr.c (freadptr): Likewise.
85530         * lib/freadseek.c (freadptrinc): Likewise.
85531         * lib/fseeko.c (rpl_fseeko): Likewise.
85532         * lib/fseterr.c (fseterr): Likewise.
85533         * lib/fwritable.c (fwritable): Likewise.
85534         * lib/fwriting.c (fwriting): Likewise.
85535         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85536         Hourihane.
85537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85539 2009-02-28  Bruno Haible  <bruno@clisp.org>
85541         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85542         SIGCHLD.
85543         Reported by Jim Meyering.
85545 2009-02-28  Bruno Haible  <bruno@clisp.org>
85547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85548         Mention the results of these tests on various platforms.
85549         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85550         order.
85551         * doc/posix-functions/printf.texi: Likewise.
85552         * doc/posix-functions/snprintf.texi: Likewise.
85553         * doc/posix-functions/sprintf.texi: Likewise.
85554         * doc/posix-functions/vfprintf.texi: Likewise.
85555         * doc/posix-functions/vprintf.texi: Likewise.
85556         * doc/posix-functions/vsnprintf.texi: Likewise.
85557         * doc/posix-functions/vsprintf.texi: Likewise.
85558         * doc/glibc-functions/obstack_printf.texi: Likewise.
85559         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85561 2009-02-28  Bruno Haible  <bruno@clisp.org>
85563         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85564         Reported by Loïc Minier <lool@dooz.org>.
85566 2009-02-27  Bruno Haible  <bruno@clisp.org>
85568         * gnulib-tool (func_import): Make the sed expression used to create the
85569         sed script for updating the .gitignore file POSIX compliant.
85570         Reported by Eric Blake.
85572 2009-02-27  Bruno Haible  <bruno@clisp.org>
85574         * gnulib-tool (sed): Don't alias as "sed --posix".
85575         Reported by Eric Blake.
85577 2009-02-27  Bruno Haible  <bruno@clisp.org>
85579         Avoid test link errors.
85580         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85581         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85582         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85583         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85586 2009-02-27  Bruno Haible  <bruno@clisp.org>
85588         Avoid spurious "(cached)" in configure output.
85589         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85590         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85591         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85592         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85593         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85594         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85595         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85596         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85597         Reported by Eric Blake.
85599 2009-02-27  Eric Blake  <ebb9@byu.net>
85601         printf: fix regression in previous patch
85602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85604 2009-02-27  Bruno Haible  <bruno@clisp.org>
85606         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85607         value.
85608         * lib/stdint.in.h: Likewise.
85609         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85611 2009-02-27  Eric Blake  <ebb9@byu.net>
85613         doc: mention more functions added in cygwin 1.7.0
85614         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85615         addition.
85616         * doc/posix-functions/open_wmemstream.texi: Likewise.
85617         * doc/posix-functions/wcsnlen.texi: Likewise.
85618         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85619         * doc/posix-functions/wcstod.texi: Likewise.
85620         * doc/posix-functions/wcstof.texi: Likewise.
85621         * doc/posix-functions/wcstoimax.texi: Likewise.
85622         * doc/posix-functions/wcstok.texi: Likewise.
85623         * doc/posix-functions/wcstoumax.texi: Likewise.
85625         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85627         * doc/posix-functions/fprintf.texi: Update.
85628         * doc/posix-functions/printf.texi: Update.
85629         * doc/posix-functions/snprintf.texi: Update.
85630         * doc/posix-functions/sprintf.texi: Update.
85631         * doc/posix-functions/vfprintf.texi: Update.
85632         * doc/posix-functions/vprintf.texi: Update.
85633         * doc/posix-functions/vsnprintf.texi: Update.
85634         * doc/posix-functions/vsprintf.texi: Update.
85635         * doc/glibc-functions/obstack_printf.texi: Update.
85636         * doc/glibc-functions/obstack_vprintf.texi: Update.
85638 2009-02-26  Eric Blake  <ebb9@byu.net>
85640         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85641         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85642         compilation bug by using runtime conversion.
85643         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85644         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85645         * modules/ceill-tests (Files): Use nan.h.
85646         * modules/floorl-tests (Files): Likewise.
85647         * modules/frexpl-tests (Files): Likewise.
85648         * modules/isnanl-tests (Files): Likewise.
85649         * modules/ldexpl-tests (Files): Likewise.
85650         * modules/roundl-tests (Files): Likewise.
85651         * modules/truncl-tests (Files): Likewise.
85652         * tests/test-ceill.c (main): Use a working NaN.
85653         * tests/test-floorl.c (main): Likewise.
85654         * tests/test-frexpl.c (main): Likewise.
85655         * tests/test-isnan.c (test_long_double): Likewise.
85656         * tests/test-isnanl.h (main): Likewise.
85657         * tests/test-ldexpl.h (main): Likewise.
85658         * tests/test-roundl.h (main): Likewise.
85659         * tests/test-truncl.h (main): Likewise.
85660         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85662 2009-02-26  Eric Blake  <ebb9@byu.net>
85663             Bruno Haible  <bruno@clisp.org>
85665         Work around a *printf bug with %ls on Solaris.
85666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85667         precision is specified, sprintf stops converting the wide string
85668         argument when the number of bytes that have been produced by this
85669         conversion equals or exceeds the precision.
85670         * doc/posix-functions/fprintf.texi: Update.
85671         * doc/posix-functions/printf.texi: Update.
85672         * doc/posix-functions/snprintf.texi: Update.
85673         * doc/posix-functions/sprintf.texi: Update.
85674         * doc/posix-functions/vfprintf.texi: Update.
85675         * doc/posix-functions/vprintf.texi: Update.
85676         * doc/posix-functions/vsnprintf.texi: Update.
85677         * doc/posix-functions/vsprintf.texi: Update.
85678         * doc/glibc-functions/obstack_printf.texi: Update.
85679         * doc/glibc-functions/obstack_vprintf.texi: Update.
85681 2009-02-26  Eric Blake  <ebb9@byu.net>
85683         stdlib: favor compiler check of random.h
85684         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85685         to avoid an ObjC random.h installed by Swarm.
85687 2009-02-26  Bruno Haible  <bruno@clisp.org>
85689         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85690         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85691         Reported by Gary V. Vaughan <gary@gnu.org>.
85693 2009-02-26  Bruno Haible  <bruno@clisp.org>
85695         Fix *printf behaviour regarding the %ls directive.
85696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85697         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85698         NEED_PRINTF_DIRECTIVE_LS.
85699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85700         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85702         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85703         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85704         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85705         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85710         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85713         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85714         * doc/posix-functions/fprintf.texi: Update.
85715         * doc/posix-functions/printf.texi: Update.
85716         * doc/posix-functions/snprintf.texi: Update.
85717         * doc/posix-functions/sprintf.texi: Update.
85718         * doc/posix-functions/vfprintf.texi: Update.
85719         * doc/posix-functions/vprintf.texi: Update.
85720         * doc/posix-functions/vsnprintf.texi: Update.
85721         * doc/posix-functions/vsprintf.texi: Update.
85722         * doc/glibc-functions/obstack_printf.texi: Update.
85723         * doc/glibc-functions/obstack_vprintf.texi: Update.
85724         Reported by Eric Blake.
85726 2009-02-25  Bruno Haible  <bruno@clisp.org>
85728         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85729         with known value.
85730         Reported by Gary V. Vaughan <gary@gnu.org>.
85732 2009-02-25  Bruno Haible  <bruno@clisp.org>
85734         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85735         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85736         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85737         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85738         Reported by Gary V. Vaughan <gary@gnu.org>.
85740 2009-02-25  Bruno Haible  <bruno@clisp.org>
85742         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85743         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85744         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85745         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85746         Reported by Gary V. Vaughan <gary@gnu.org>.
85748 2009-02-25  Eric Blake  <ebb9@byu.net>
85750         tests: skip fseek/ftell tests if ungetc is broken
85751         * m4/ungetc.m4: New file.
85752         * modules/fseek-tests: Split test, so ungetc dependency is
85753         separate from rest of test.
85754         * modules/fseeko-tests: Likewise.
85755         * modules/ftell-tests: Likewise.
85756         * modules/ftello-tests: Likewise.
85757         * tests/test-fseek.c (main): Isolate ungetc dependency.
85758         * tests/test-fseeko.c (main): Likewise.
85759         * tests/test-ftell.c (main): Likewise.
85760         * tests/test-ftello.c (main): Likewise.
85761         * tests/test-fseek2.sh: New file.
85762         * tests/test-fseeko2.sh: Likewise.
85763         * tests/test-ftell2.sh: Likewise.
85764         * tests/test-ftello2.sh: Likewise.
85766 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85768         test-getaddrinfo: fix usage of skip return code 77
85769         * tests/test-gettaddrinfo.c: Return skip code 77 only
85770         for first occurrence of skip (4x77 is not 77)
85772 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85774         strtod: avoid C99 decl-after-statement
85775         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85777 2009-02-24  Eric Blake  <ebb9@byu.net>
85779         strtod: detect HP-UX 11.31 bug
85780         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85781         Reported by Gary V. Vaughan.
85783 2009-02-23  Bruno Haible  <bruno@clisp.org>
85785         Fix invalid read past end of memory block.
85786         * lib/vasnprintf.c (DCHAR_SET): Define.
85787         (local_wcslen): Define only when needed.
85788         (local_strnlen, local_wcsnlen): New functions.
85789         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85790         directives that involve a conversion ourselves.
85791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85792         wcsnlen, mbrtowc, wcrtomb.
85793         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85794         * tests/test-vasprintf-posix.c (test_function): Likewise.
85795         * tests/test-snprintf-posix.h (test_function): Likewise.
85796         * tests/test-sprintf-posix.h (test_function): Likewise.
85797         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85799 2009-02-22  Bruno Haible  <bruno@clisp.org>
85801         Implement new clarified decomposition of Hangul syllables.
85802         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85803         of type LTV, return only a pairwise decomposition.
85804         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85805         Likewise.
85806         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85807         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85808         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85810 2009-02-22  Bruno Haible  <bruno@clisp.org>
85812         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85813         zero-length results and shrink excess allocated memory.
85814         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85815         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85816         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85817         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85818         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85819         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85820         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85821         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85822         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85823         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85824         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85825         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85827 2009-02-21  Bruno Haible  <bruno@clisp.org>
85829         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85830         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85831         spaces after a period. Put a space between a macro name and its
85832         argument list. Trivial rewordings.
85833         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85834         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85835         (main): Return 0 explicitly.
85837 2009-02-21  Bruno Haible  <bruno@clisp.org>
85839         Tests for module 'uninorm/filter'.
85840         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85841         * modules/uninorm/filter-tests: New file.
85843         New module 'uninorm/filter'.
85844         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85845         uninorm_filter_flush, uninorm_filter_free): New declarations.
85846         * lib/uninorm/uninorm-filter.c: New file.
85847         * modules/uninorm/filter: New file.
85849 2009-02-21  Bruno Haible  <bruno@clisp.org>
85851         Tests for module 'uninorm/nfkc'.
85852         * tests/uninorm/test-nfkc.c: New file.
85853         * tests/uninorm/test-u8-nfkc.c: New file.
85854         * tests/uninorm/test-u16-nfkc.c: New file.
85855         * tests/uninorm/test-u32-nfkc.c: New file.
85856         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85857         * tests/uninorm/test-u32-nfkc-big.c: New file.
85858         * modules/uninorm/nfkc-tests: New file.
85860         New module 'uninorm/nfkc'.
85861         * lib/uninorm/nfkc.c: New file.
85862         * modules/uninorm/nfkc: New file.
85864         Tests for module 'uninorm/nfkd'.
85865         * tests/uninorm/test-nfkd.c: New file.
85866         * tests/uninorm/test-u8-nfkd.c: New file.
85867         * tests/uninorm/test-u16-nfkd.c: New file.
85868         * tests/uninorm/test-u32-nfkd.c: New file.
85869         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85870         * tests/uninorm/test-u32-nfkd-big.c: New file.
85871         * modules/uninorm/nfkd-tests: New file.
85873         New module 'uninorm/nfkd'.
85874         * lib/uninorm/nfkd.c: New file.
85875         * modules/uninorm/nfkd: New file.
85877         Tests for module 'uninorm/nfc'.
85878         * tests/uninorm/test-nfc.c: New file.
85879         * tests/uninorm/test-u8-nfc.c: New file.
85880         * tests/uninorm/test-u16-nfc.c: New file.
85881         * tests/uninorm/test-u32-nfc.c: New file.
85882         * tests/uninorm/test-u32-nfc-big.sh: New file.
85883         * tests/uninorm/test-u32-nfc-big.c: New file.
85884         * modules/uninorm/nfc-tests: New file.
85886         New module 'uninorm/nfc'.
85887         * lib/uninorm/nfc.c: New file.
85888         * modules/uninorm/nfc: New file.
85890         Tests for module 'uninorm/nfd'.
85891         * tests/uninorm/test-nfd.c: New file.
85892         * tests/uninorm/test-u8-nfd.c: New file.
85893         * tests/uninorm/test-u16-nfd.c: New file.
85894         * tests/uninorm/test-u32-nfd.c: New file.
85895         * tests/uninorm/test-u32-nfd-big.sh: New file.
85896         * tests/uninorm/test-u32-nfd-big.c: New file.
85897         * tests/uninorm/test-u32-normalize-big.h: New file.
85898         * tests/uninorm/test-u32-normalize-big.c: New file.
85899         * tests/uninorm/NormalizationTest.txt: New file, created from
85900         Unicode 5.1.0 NormalizationTest.txt.
85901         * modules/uninorm/nfd-tests: New file.
85903         New module 'uninorm/nfd'.
85904         * lib/uninorm/nfd.c: New file.
85905         * modules/uninorm/nfd: New file.
85907         New module 'uninorm/u32-normalize'.
85908         * lib/uninorm/u32-normalize.c: New file.
85909         * modules/uninorm/u32-normalize: New file.
85911         New module 'uninorm/u16-normalize'.
85912         * lib/uninorm/u16-normalize.c: New file.
85913         * modules/uninorm/u16-normalize: New file.
85915         New module 'uninorm/u8-normalize'.
85916         * lib/uninorm/u8-normalize.c: New file.
85917         * lib/uninorm/normalize-internal.h: New file.
85918         * lib/uninorm/u-normalize-internal.h: New file.
85919         * modules/uninorm/u8-normalize: New file.
85921         New module 'uninorm/decompose-internal'.
85922         * lib/uninorm/decompose-internal.c: New file.
85923         * modules/uninorm/decompose-internal: New file.
85925         Tests for module 'uninorm/composition'.
85926         * tests/uninorm/test-composition.c: New file.
85927         * modules/uninorm/composition-tests: New file.
85929         New module 'uninorm/composition'.
85930         * lib/uninorm/composition.c: New file.
85931         * lib/uninorm/composition-table.gperf: New file, generated by
85932         gen-uni-tables.
85933         * modules/uninorm/composition: New file.
85935         Tests for module 'uninorm/compat-decomposition'.
85936         * tests/uninorm/test-compat-decomposition.c: New file.
85937         * modules/uninorm/compat-decomposition-tests: New file.
85939         New module 'uninorm/compat-decomposition'.
85940         * lib/uninorm/decompose-internal.h: New file.
85941         * lib/uninorm/compat-decomposition.c: New file.
85942         * modules/uninorm/compat-decomposition: New file.
85944         Tests for module 'uninorm/canonical-decomposition'.
85945         * tests/uninorm/test-canonical-decomposition.c: New file.
85946         * modules/uninorm/canonical-decomposition-tests: New file.
85948         New module 'uninorm/canonical-decomposition'.
85949         * lib/uninorm/canonical-decomposition.c: New file.
85950         * modules/uninorm/canonical-decomposition: New file.
85952         Tests for module 'uninorm/decomposition'.
85953         * tests/uninorm/test-decomposition.c: New file.
85954         * modules/uninorm/decomposition-tests: New file.
85956         New module 'uninorm/decomposition'.
85957         * lib/uninorm/decomposition.c: New file.
85958         * modules/uninorm/decomposition: New file.
85960         New module 'uninorm/decomposition-table'.
85961         * lib/uninorm/decomposition-table.h: New file.
85962         * lib/uninorm/decomposition-table.c: New file.
85963         * lib/uninorm/decomposition-table1.h: New file, generated by
85964         gen-uni-tables.
85965         * lib/uninorm/decomposition-table2.h: New file, generated by
85966         gen-uni-tables.
85967         * modules/uninorm/decomposition-table: New file.
85969         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85970         (UC_DECOMP_*): New enumeration items.
85971         (get_decomposition): New function.
85972         (struct decomp_table): New type.
85973         (output_decomposition, output_decomposition_tables): New functions.
85974         (unicode_composition_exclusions): New variable.
85975         (fill_composition_exclusions, debug_output_composition_tables): New
85976         functions.
85977         (main): Accept one more argument. Invoke fill_composition_exclusions.
85978         Output decomposition and composition tables.
85980         New module 'uninorm/base'.
85981         * lib/uninorm.h: New file.
85982         * lib/unictype.h: Update comment.
85983         * modules/uninorm/base: New file.
85985 2009-02-21  David Lutterkort  <lutter@redhat.com>
85987         Tests for module 'safe-alloc'.
85988         * tests/test-safe-alloc.c: New file.
85989         * modules/safe-alloc-tests: New file.
85991         New module 'safe-alloc'.
85992         * lib/safe-alloc.h: New file.
85993         * lib/safe-alloc.c: New file.
85994         * m4/safe-alloc.m4: New file.
85995         * modules/safe-alloc: New file.
85996         * doc/safe-alloc.texi: New file.
85997         * doc/gnulib.texi: Include it.
85998         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85999         safe-alloc.
86001 2009-02-18  Bruno Haible  <bruno@clisp.org>
86003         Fix link error on non-glibc systems.
86004         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86005         variable.
86006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86008 2009-02-18  Jim Meyering  <meyering@redhat.com>
86010         fts: avoid used-uninitialized error due to recent change
86011         * lib/fts.c (fts_read): Guard uses of the new member,
86012         parent->fts_n_dirs_remaining, since it's not relevant for
86013         the parent of a directory specified on the command-line.
86015 2009-02-17  James Youngman  <jay@gnu.org>
86016             Bruno Haible  <bruno@clisp.org>
86018         * m4/include_next.m4: Reformulate comment.
86020 2009-02-16  Jim Meyering  <meyering@redhat.com>
86022         fts: add #if guards so that the fts_lgpl module still builds
86023         * lib/fts.c: Guard just-added hash-table-using parts with
86024         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86025         Reported by Simon Josefsson.
86027 2009-02-15  Bruno Haible  <bruno@clisp.org>
86029         * modules/array-mergesort-tests: New file.
86030         * tests/test-array-mergesort.c: New file.
86032         New module 'array-mergesort'.
86033         * modules/array-mergesort: New file.
86034         * lib/array-mergesort.h: New file.
86036 2009-02-15  Bruno Haible  <bruno@clisp.org>
86038         Fix 2009-02-07 commit.
86039         * lib/gen-uni-tables.c (output_predicate, output_category,
86040         output_combclass, output_bidi_category, output_decimal_digit,
86041         output_digit, output_numeric, output_mirror, output_scripts,
86042         output_ident_category, output_simple_mapping): Fix format directives.
86043         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86045 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86047         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86048         fixes are available from IBM.
86050 2009-02-13  Jim Meyering  <meyering@redhat.com>
86052         fts: arrange not to stat non-directories in more cases
86053         This makes GNU find (when it doesn't need to stat each file)
86054         *much* more efficient at traversing reiserfs file systems.
86055         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86056         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86057         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86058         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86059         (leaf_optimization_applies): New function.
86060         (LCO_hash, LCO_compare): New helper functions.
86061         (link_count_optimize_ok): New function.
86062         (fts_stat): Initialize new member (if dir).
86063         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86064         we've just stat'ed a directory.  Skip the stat call when possible.
86065         ---
86066         Note this AFS-related exchange:
86067         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86068         and note find's pioctl call in find/fstype.c.
86069         But that is necessary only if you want to enable the
86070         optimization for AFS, and for now, I don't.
86072         fts: move a function definition "up" (no semantic change)
86073         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86074         "up" to precede upcoming use of a related function.
86076 2009-02-11  Jim Meyering  <meyering@redhat.com>
86078         fts: correct internal computation of nlinks (optimization-related)
86079         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86080         whether the current entry is a directory, so don't test it.
86082 2009-02-10  Bruno Haible  <bruno@clisp.org>
86084         Tests for module 'uniwbrk/ulc-wordbreaks'.
86085         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86086         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86087         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86089         Tests for module 'uniwbrk/u32-wordbreaks'.
86090         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86091         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86093         Tests for module 'uniwbrk/u16-wordbreaks'.
86094         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86095         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86097         Tests for module 'uniwbrk/u8-wordbreaks'.
86098         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86099         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86101 2009-02-10  Bruno Haible  <bruno@clisp.org>
86103         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86104         property.
86105         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86106         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86107         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86109 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86111         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86112         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86114 2009-02-10  Bruno Haible  <bruno@clisp.org>
86116         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86117         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86118         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86119         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86120         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86121         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86123 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86125         * lib/sockets.h (gl_fd_to_handle): New function.
86127         * tests/test-sockets.c: Call gl_fd_to_handle.
86129 2009-02-09  Bruno Haible  <bruno@clisp.org>
86131         * doc/havelib.texi: Document the conventions on bi-arch systems.
86133 2009-02-08  Bruno Haible  <bruno@clisp.org>
86135         Document the AC_LIB_LINKFLAGS macro.
86136         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86137         * doc/gnulib.texi: Include it.
86139 2009-02-08  Bruno Haible  <bruno@clisp.org>
86141         Fix wrong order of sections, compared to TOC.
86142         * doc/gnulib.texi: Include relocatable-maint.texi after the
86143         "Regular expressions" node, not before.
86145 2009-02-08  Bruno Haible  <bruno@clisp.org>
86147         Tests for module 'unicase/totitle'.
86148         * modules/unicase/totitle-tests: New file.
86150         Tests for module 'unicase/tolower'.
86151         * modules/unicase/tolower-tests: New file.
86153         Tests for module 'unicase/toupper'.
86154         * modules/unicase/toupper-tests: New file.
86155         * tests/unicase/test-mapping-part1.h: New file.
86156         * tests/unicase/test-mapping-part2.h: New file.
86158         New module 'unicase/totitle'.
86159         * modules/unicase/totitle: New file.
86160         * lib/unicase/totitle.c: New file.
86162         New module 'unicase/tolower'.
86163         * modules/unicase/tolower: New file.
86164         * lib/unicase/tolower.c: New file.
86166         New module 'unicase/toupper'.
86167         * modules/unicase/toupper: New file.
86168         * lib/unicase/toupper.c: New file.
86169         * lib/unicase/simple-mapping.h: New file.
86171         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86172         (mapping_table): New structure.
86173         (output_simple_mapping): New function.
86174         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86175         * modules/gen-uni-tables (Description): Update.
86176         * lib/unicase/toupper.h: New file, automatically generated by
86177         gen-uni-tables.
86178         * lib/unicase/tolower.h: New file, automatically generated by
86179         gen-uni-tables.
86180         * lib/unicase/totitle.h: New file, automatically generated by
86181         gen-uni-tables.
86182         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86183         gen-uni-tables.
86184         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86185         gen-uni-tables.
86186         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86187         gen-uni-tables.
86189         New module 'unicase/base'.
86190         * modules/unicase/base: New file.
86191         * lib/unicase.h: New file.
86193 2009-02-08  Bruno Haible  <bruno@clisp.org>
86195         New module 'uniwbrk/ulc-wordbreaks'.
86196         * modules/uniwbrk/ulc-wordbreaks: New file.
86197         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86199         New module 'uniwbrk/u32-wordbreaks'.
86200         * modules/uniwbrk/u32-wordbreaks: New file.
86201         * lib/uniwbrk/u32-wordbreaks.c: New file.
86203         New module 'uniwbrk/u16-wordbreaks'.
86204         * modules/uniwbrk/u16-wordbreaks: New file.
86205         * lib/uniwbrk/u16-wordbreaks.c: New file.
86207         New module 'uniwbrk/u8-wordbreaks'.
86208         * modules/uniwbrk/u8-wordbreaks: New file.
86209         * lib/uniwbrk/u8-wordbreaks.c: New file.
86210         * lib/uniwbrk/u-wordbreaks.h: New file.
86212         New module 'uniwbrk/table'.
86213         * modules/uniwbrk/table: New file.
86214         * lib/uniwbrk/wbrktable.h: New file.
86215         * lib/uniwbrk/wbrktable.c: New file.
86217         New module 'uniwbrk/wordbreak-property'.
86218         * modules/uniwbrk/wordbreak-property: New file.
86219         * lib/uniwbrk/wordbreak-property.c: New file.
86221         * lib/gen-uni-tables.c (WBP_*): New enum items.
86222         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86223         (unicode_org_wbp): New variable.
86224         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86225         New functions.
86226         (wbp_table): New structure.
86227         (output_wbp, output_wbrk_tables): New functions.
86228         (main): Accept additional argument. Invoke fill_org_wbp,
86229         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86230         output_wbrk_tables.
86231         * modules/gen-uni-tables (Description): Update.
86232         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86233         gen-uni-tables.
86235         New module 'uniwbrk/base'.
86236         * modules/uniwbrk/base: New file.
86237         * lib/uniwbrk.h: New file.
86239 2009-02-08  Bruno Haible  <bruno@clisp.org>
86241         Update to Unicode 5.1.0.
86242         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86243         U+2185..U+2188.
86244         (is_property_default_ignorable_code_point): Don't include characters
86245         of category Cc or Cs and not-a-characters.
86246         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86247         U+0D79, U+109E, U+109F, U+A60C.
86248         * lib/unictype/bidi_of.h: Regenerated.
86249         * lib/unictype/blocks.h: Regenerated.
86250         * lib/unictype/categ_C.h: Regenerated.
86251         * lib/unictype/categ_Cf.h: Regenerated.
86252         * lib/unictype/categ_Cn.h: Regenerated.
86253         * lib/unictype/categ_L.h: Regenerated.
86254         * lib/unictype/categ_Ll.h: Regenerated.
86255         * lib/unictype/categ_Lm.h: Regenerated.
86256         * lib/unictype/categ_Lo.h: Regenerated.
86257         * lib/unictype/categ_Lu.h: Regenerated.
86258         * lib/unictype/categ_M.h: Regenerated.
86259         * lib/unictype/categ_Mc.h: Regenerated.
86260         * lib/unictype/categ_Me.h: Regenerated.
86261         * lib/unictype/categ_Mn.h: Regenerated.
86262         * lib/unictype/categ_N.h: Regenerated.
86263         * lib/unictype/categ_Nd.h: Regenerated.
86264         * lib/unictype/categ_Nl.h: Regenerated.
86265         * lib/unictype/categ_No.h: Regenerated.
86266         * lib/unictype/categ_P.h: Regenerated.
86267         * lib/unictype/categ_Pd.h: Regenerated.
86268         * lib/unictype/categ_Pe.h: Regenerated.
86269         * lib/unictype/categ_Pf.h: Regenerated.
86270         * lib/unictype/categ_Pi.h: Regenerated.
86271         * lib/unictype/categ_Po.h: Regenerated.
86272         * lib/unictype/categ_Ps.h: Regenerated.
86273         * lib/unictype/categ_S.h: Regenerated.
86274         * lib/unictype/categ_Sk.h: Regenerated.
86275         * lib/unictype/categ_Sm.h: Regenerated.
86276         * lib/unictype/categ_So.h: Regenerated.
86277         * lib/unictype/categ_of.h: Regenerated.
86278         * lib/unictype/combining.h: Regenerated.
86279         * lib/unictype/ctype_alnum.h: Regenerated.
86280         * lib/unictype/ctype_alpha.h: Regenerated.
86281         * lib/unictype/ctype_graph.h: Regenerated.
86282         * lib/unictype/ctype_lower.h: Regenerated.
86283         * lib/unictype/ctype_print.h: Regenerated.
86284         * lib/unictype/ctype_punct.h: Regenerated.
86285         * lib/unictype/ctype_upper.h: Regenerated.
86286         * lib/unictype/decdigit.h: Regenerated.
86287         * lib/unictype/digit.h: Regenerated.
86288         * lib/unictype/mirror.h: Regenerated.
86289         * lib/unictype/numeric.h: Regenerated.
86290         * lib/unictype/pr_alphabetic.h: Regenerated.
86291         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86292         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86293         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86294         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86295         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86296         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86297         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86298         * lib/unictype/pr_combining.h: Regenerated.
86299         * lib/unictype/pr_dash.h: Regenerated.
86300         * lib/unictype/pr_decimal_digit.h: Regenerated.
86301         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86302         * lib/unictype/pr_deprecated.h: Regenerated.
86303         * lib/unictype/pr_diacritic.h: Regenerated.
86304         * lib/unictype/pr_extender.h: Regenerated.
86305         * lib/unictype/pr_format_control.h: Regenerated.
86306         * lib/unictype/pr_grapheme_base.h: Regenerated.
86307         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86308         * lib/unictype/pr_grapheme_link.h: Regenerated.
86309         * lib/unictype/pr_id_continue.h: Regenerated.
86310         * lib/unictype/pr_id_start.h: Regenerated.
86311         * lib/unictype/pr_ideographic.h: Regenerated.
86312         * lib/unictype/pr_ignorable_control.h: Regenerated.
86313         * lib/unictype/pr_lowercase.h: Regenerated.
86314         * lib/unictype/pr_math.h: Regenerated.
86315         * lib/unictype/pr_numeric.h: Regenerated.
86316         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86317         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86318         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86319         * lib/unictype/pr_other_id_continue.h: Regenerated.
86320         * lib/unictype/pr_other_lowercase.h: Regenerated.
86321         * lib/unictype/pr_other_math.h: Regenerated.
86322         * lib/unictype/pr_punctuation.h: Regenerated.
86323         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86324         * lib/unictype/pr_soft_dotted.h: Regenerated.
86325         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86326         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86327         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86328         * lib/unictype/pr_uppercase.h: Regenerated.
86329         * lib/unictype/pr_xid_continue.h: Regenerated.
86330         * lib/unictype/pr_xid_start.h: Regenerated.
86331         * lib/unictype/pr_zero_width.h: Regenerated.
86332         * lib/unictype/scripts.h: Regenerated.
86333         * lib/unictype/scripts_byname.gperf: Regenerated.
86334         * lib/unictype/sy_java_ident.h: Regenerated.
86335         * lib/unilbrk/lbrkprop1.h: Regenerated.
86336         * lib/unilbrk/lbrkprop2.h: Regenerated.
86337         * tests/unictype/test-categ_C.c: Regenerated.
86338         * tests/unictype/test-categ_Cf.c: Regenerated.
86339         * tests/unictype/test-categ_Cn.c: Regenerated.
86340         * tests/unictype/test-categ_L.c: Regenerated.
86341         * tests/unictype/test-categ_Ll.c: Regenerated.
86342         * tests/unictype/test-categ_Lm.c: Regenerated.
86343         * tests/unictype/test-categ_Lo.c: Regenerated.
86344         * tests/unictype/test-categ_Lu.c: Regenerated.
86345         * tests/unictype/test-categ_M.c: Regenerated.
86346         * tests/unictype/test-categ_Mc.c: Regenerated.
86347         * tests/unictype/test-categ_Me.c: Regenerated.
86348         * tests/unictype/test-categ_Mn.c: Regenerated.
86349         * tests/unictype/test-categ_N.c: Regenerated.
86350         * tests/unictype/test-categ_Nd.c: Regenerated.
86351         * tests/unictype/test-categ_Nl.c: Regenerated.
86352         * tests/unictype/test-categ_No.c: Regenerated.
86353         * tests/unictype/test-categ_P.c: Regenerated.
86354         * tests/unictype/test-categ_Pd.c: Regenerated.
86355         * tests/unictype/test-categ_Pe.c: Regenerated.
86356         * tests/unictype/test-categ_Pf.c: Regenerated.
86357         * tests/unictype/test-categ_Pi.c: Regenerated.
86358         * tests/unictype/test-categ_Po.c: Regenerated.
86359         * tests/unictype/test-categ_Ps.c: Regenerated.
86360         * tests/unictype/test-categ_S.c: Regenerated.
86361         * tests/unictype/test-categ_Sk.c: Regenerated.
86362         * tests/unictype/test-categ_Sm.c: Regenerated.
86363         * tests/unictype/test-categ_So.c: Regenerated.
86364         * tests/unictype/test-ctype_alnum.c: Regenerated.
86365         * tests/unictype/test-ctype_alpha.c: Regenerated.
86366         * tests/unictype/test-ctype_graph.c: Regenerated.
86367         * tests/unictype/test-ctype_lower.c: Regenerated.
86368         * tests/unictype/test-ctype_print.c: Regenerated.
86369         * tests/unictype/test-ctype_punct.c: Regenerated.
86370         * tests/unictype/test-ctype_upper.c: Regenerated.
86371         * tests/unictype/test-decdigit.h: Regenerated.
86372         * tests/unictype/test-digit.h: Regenerated.
86373         * tests/unictype/test-numeric.h: Regenerated.
86374         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86375         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86376         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86377         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86378         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86379         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86380         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86381         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86382         * tests/unictype/test-pr_combining.c: Regenerated.
86383         * tests/unictype/test-pr_dash.c: Regenerated.
86384         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86385         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86386         * tests/unictype/test-pr_deprecated.c: Regenerated.
86387         * tests/unictype/test-pr_diacritic.c: Regenerated.
86388         * tests/unictype/test-pr_extender.c: Regenerated.
86389         * tests/unictype/test-pr_format_control.c: Regenerated.
86390         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86391         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86392         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86393         * tests/unictype/test-pr_id_continue.c: Regenerated.
86394         * tests/unictype/test-pr_id_start.c: Regenerated.
86395         * tests/unictype/test-pr_ideographic.c: Regenerated.
86396         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86397         * tests/unictype/test-pr_lowercase.c: Regenerated.
86398         * tests/unictype/test-pr_math.c: Regenerated.
86399         * tests/unictype/test-pr_numeric.c: Regenerated.
86400         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86401         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86402         Regenerated.
86403         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86404         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86405         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86406         * tests/unictype/test-pr_other_math.c: Regenerated.
86407         * tests/unictype/test-pr_punctuation.c: Regenerated.
86408         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86409         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86410         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86411         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86412         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86413         * tests/unictype/test-pr_uppercase.c: Regenerated.
86414         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86415         * tests/unictype/test-pr_xid_start.c: Regenerated.
86416         * tests/unictype/test-pr_zero_width.c: Regenerated.
86418         Update to Unicode 5.1.0.
86419         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86420         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86421         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86422         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86423         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86424         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86425         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86426         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86427         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86428         (nonspacing_table_ind): Update.
86429         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86431         Update to Unicode 5.1.0.
86432         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86433         code transform.
86434         * lib/uniname/uniname.c (unicode_character_name,
86435         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86436         * lib/uniname/uninames.h: Regenerated.
86437         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86439 2009-02-07  Bruno Haible  <bruno@clisp.org>
86441         Merge gen-ctype and gen-lbrk into a single program.
86442         * lib/gen-uni-tables.c: New file, incorporating
86443         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86444         Add directory prefixes to the names of the generated files.
86445         * lib/unictype/gen-ctype.c: Remove file.
86446         * lib/unilbrk/gen-lbrk.c: Remove file.
86447         * modules/gen-uni-tables: New file.
86448         * modules/unictype/gen-ctype: Remove file.
86449         * modules/unilbrk/gen-lbrk: Remove file.
86451 2009-02-07  Bruno Haible  <bruno@clisp.org>
86453         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86455         New module 'unistr/u32-strcoll'.
86456         * modules/unistr/u32-strcoll: New file.
86457         * lib/unistr/u32-strcoll.c: New file.
86459         New module 'unistr/u16-strcoll'.
86460         * modules/unistr/u16-strcoll: New file.
86461         * lib/unistr/u16-strcoll.c: New file.
86463         New module 'unistr/u8-strcoll'.
86464         * modules/unistr/u8-strcoll: New file.
86465         * lib/unistr/u8-strcoll.c: New file.
86466         * lib/unistr/u-strcoll.h: New file.
86468 2009-02-07  Bruno Haible  <bruno@clisp.org>
86470         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86471         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86472         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86473         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86474         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86475         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86477 2009-02-07  Bruno Haible  <bruno@clisp.org>
86479         Make 64-bit clean.
86480         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86481         output_combclass, output_bidi_category, output_decimal_digit,
86482         output_digit, output_numeric, output_mirror, output_scripts,
86483         output_ident_category): Use proper width specifier in format strings.
86485 2009-02-07  Bruno Haible  <bruno@clisp.org>
86487         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86488         failure behaviour.
86490 2009-02-07  Jim Meyering  <meyering@redhat.com>
86492         regex: avoid compilation failure with upcoming gcc-4.4
86493         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86494         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86495         "... error: integer overflow in preprocessor expression".
86497 2009-02-05  Ben Pfaff  <blp@gnu.org>
86499         Fix link errors on Windows when close module is used.
86500         * modules/close: Add $(LIB_CLOSE) to Link section.
86501         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86502         $(LIB_CLOSE) on Windows.
86504 2009-02-05  Jim Meyering  <meyering@redhat.com>
86506         still avoid unused-parameter warnings, but do it cleanly
86507         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86508         (get_fs_usage): Cast to void instead.
86509         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86510         (dev_from_mount_options, read_file_system_list): Cast to void.
86511         Prompted by Bruno Haible.
86513 2009-02-04  Jim Meyering  <meyering@redhat.com>
86515         fsusage.c: correct copyright year
86516         * lib/fsusage.c: Reflect year in which the change is pushed into
86518         avoid misc. warnings
86519         * lib/fsusage.c (UNUSED_PARAM): Define.
86520         (get_fs_usage): Mark parameter "disk" as unused.
86521         * lib/getugroups.c (getgrent): Use "void" in prototype.
86522         * lib/mountlist.c: Mark unused parameters.
86523         (read_file_system_list): Declare a local with "const".
86524         * lib/nanosleep.c (getnow): Declare static.
86525         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86527         dirfd: set errno upon failure
86528         * lib/dirfd.c: Include <errno.h>.
86529         Set errno to ENOTSUP when returning -1.
86530         * modules/dirfd (Depends-on): Add errno.
86531         Suggested by John Kodis <kodis@comcast.net>.
86533 2009-02-01  Bruno Haible  <bruno@clisp.org>
86535         Don't assume sizeof (long) >= sizeof (void *).
86536         * lib/memcmp.c: Include stdint.h.
86537         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86538         srcp2 to 'const byte *'.
86539         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86540         types to uintptr_t.
86541         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86542         * modules/memcmp (Depends-on): Add stdint.
86543         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86545 2009-01-30  Eric Blake  <ebb9@byu.net>
86547         fix more require-before-expand issues
86548         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86549         expand, AC_PROG_AWK.
86550         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86552 2009-01-28  Eric Blake  <ebb9@byu.net>
86554         version-etc: use consistent URL formatting
86555         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86556         Improve formatting.  Use fputs for string without %.
86558 2009-01-28  Jim Meyering  <meyering@redhat.com>
86560         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86561         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86562         "underquoted definition of NAME" from autoconf-2.59.
86564 2009-01-28  Bruno Haible  <bruno@clisp.org>
86566         * doc/gnulib.texi: Add "Obsolete modules" to index.
86568 2009-01-28  Jim Meyering  <meyering@redhat.com>
86570         useless-if-before-free: recognize more variants
86571         * build-aux/useless-if-before-free: Also recognize e.g.,
86572         if (NULL != p) free (p);
86574 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86576         test-getaddrinfo: skip (don't fail) this test when there's no network
86577         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86578         on the presumption that it means you lack network access.
86580 2009-01-26  Jim Meyering  <meyering@redhat.com>
86582         fflush: avoid warnings on modern systems
86583         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86584         pos and result, into scopes where they're used.
86586 2009-01-26  Eric Blake  <ebb9@byu.net>
86588         Silence warning reintroduced by recent extensions patch.
86589         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86590         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86591         autoconf.
86593         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86594         * m4/00gnulib.m4: New file.
86595         * gnulib-tool (func_get_filelist): Always use it.
86596         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86597         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86599 2009-01-25  Bruno Haible  <bruno@clisp.org>
86601         Make test-quotearg work on MacOS X and AIX.
86602         * tests/test-quotearg.sh: New file.
86603         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86604         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86605         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86606         include <libintl.h>.
86607         (fake_locale): Remove variable.
86608         (gettext, dgettext, dcgettext): Remove functions.
86609         (main): Instead of setting a fake locale, set a real locale. Call
86610         textdomain and bindtextdomain.
86611         * modules/quotearg-tests (Files): Add the new files.
86612         (Depends-on): Add gettext, setenv, unsetenv.
86613         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86614         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86615         Augment TESTS_ENVIRONMENT.
86617 2009-01-25  Bruno Haible  <bruno@clisp.org>
86619         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86620         fr_FR.ISO8859-1 locale on MacOS X.
86621         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86622         ja_JP.eucJP locale on MacOS X.
86623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86624         zh_CN.GB18030 locale on MacOS X.
86626 2009-01-25  Bruno Haible  <bruno@clisp.org>
86628         Avoid link errors on MacOS X 10.3.
86629         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86630         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86632 2009-01-25  Bruno Haible  <bruno@clisp.org>
86634         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86635         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86636         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86637         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86638         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86639         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86640         posix_spawnattr_init, posix_spawnattr_setsigmask,
86641         posix_spawnattr_setflags, posix_spawnattr_destroy.
86643         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86644         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86645         * modules/execute (Files): Remove m4/posix_spawn.m4.
86646         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86647         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86648         posix_spawnattr_init, posix_spawnattr_setsigmask,
86649         posix_spawnattr_setflags, posix_spawnattr_destroy.
86651 2009-01-25  Bruno Haible  <bruno@clisp.org>
86653         * lib/glthread/threadlib.c: Include <stdlib.h>.
86655 2009-01-25  Bruno Haible  <bruno@clisp.org>
86657         * lib/glthread/threadlib.c (dummy): New declaration.
86659 2009-01-25  Bruno Haible  <bruno@clisp.org>
86661         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86662         multibyte characters also for the GB18030 encoding. Don't crash when
86663         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86665 2009-01-25  Bruno Haible  <bruno@clisp.org>
86667         Avoid redefining 'struct random_data' on OSF/1 5.1.
86668         * lib/stdlib.in.h: Include <random.h> if it exists.
86669         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86670         HAVE_RANDOM_H. Include <random.h> when testing whether
86671         'struct random_data' exists.
86672         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86674 2009-01-25  Bruno Haible  <bruno@clisp.org>
86676         Don't install charset.alias on MacOS X >= 10.3.
86677         * lib/localcharset.c (DARWIN7): New macro.
86678         (get_charset_aliases): Hardcode the result for Darwin7.
86679         * modules/localcharset (install-exec-local): Don't install
86680         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86682 2009-01-25  Bruno Haible  <bruno@clisp.org>
86684         Don't install charset.alias on mingw and Cygwin.
86685         * modules/localcharset (install-exec-local): Don't install
86686         charset.alias on mingw and Cygwin, if the file does not yet exist.
86687         The result for these platforms is hardcoded in localcharset.c.
86689 2009-01-25  Bruno Haible  <bruno@clisp.org>
86691         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86693         before requiring AC_USE_SYSTEM_EXTENSIONS.
86695 2009-01-25  Jim Meyering  <meyering@redhat.com>
86697         c-strtod: avoid warnings
86698         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86699         "assignment discards qualifiers from pointer target type" warnings.
86701 2009-01-24  Bruno Haible  <bruno@clisp.org>
86703         Add support for non-UTF-8 locales on MacOS X.
86704         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86705         canonical encodings. For Darwin 7 and newer, don't map traditional
86706         encodings to UTF-8.
86707         Reported by Vincent Lefevre <vincent@vinc17.org>
86708         at <http://savannah.gnu.org/bugs/?25235>.
86710 2009-01-24  Bruno Haible  <bruno@clisp.org>
86712         * doc/gnulib.texi (Obsolete modules): New section.
86713         Reported by Mike Frysinger <vapier@gentoo.org>.
86715 2009-01-24  Bruno Haible  <bruno@clisp.org>
86717         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86718         (%.dvi): New rule.
86720 2009-01-24  Bruno Haible  <bruno@clisp.org>
86722         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86723         Reported by Eric Blake.
86725 2009-01-24  Bruno Haible  <bruno@clisp.org>
86727         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86728         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86729         Reported by Gary V. Vaughan <gary@gnu.org>.
86731 2009-01-24  Bruno Haible  <bruno@clisp.org>
86733         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86735 2009-01-23  Bruno Haible  <bruno@clisp.org>
86737         Make c-strtod, c-strtold usable in libraries.
86738         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86739         (C_STRTOD): Call strdup instead of xstrdup.
86740         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86741         * modules/c-strtold (Depends-on): Likewise.
86742         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86743         * NEWS: Mention the change.
86744         Reported by Michael Gold <mgold@ncf.ca>.
86746 2009-01-23  Jim Meyering  <meyering@redhat.com>
86748         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86749         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86750         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86752 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86754         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86755         GNU CoreUtils.
86756         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86757         * modules/version-etc (Description): Update.
86759 2009-01-22  Bruno Haible  <bruno@clisp.org>
86761         Cache the C locale object.
86762         * lib/c-strtod.c (c_locale_cache): New variable.
86763         (c_locale): New function.
86764         (C_STRTOD): Use it, and don't call freelocale.
86765         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86766         Suggested by Paolo Bonzini.
86768 2009-01-21  Bruno Haible  <bruno@clisp.org>
86770         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86771         conditions other than overflow.
86773 2009-01-21  Bruno Haible  <bruno@clisp.org>
86775         * lib/c-strtod.c: Include errno.h.
86776         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86777         value from STRTOD_L and STRTOD.
86779 2009-01-21  Bruno Haible  <bruno@clisp.org>
86780         and Jim Meyering  <meyering@redhat.com>
86782         nanosleep: skip configure test (fail it) for apple universal builds
86783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86784         universal builds, assume that nanosleep does not work.
86785         * modules/nanosleep (Depends-on): Add multiarch.
86787         mktime: skip configure test (fail it) for apple universal builds
86788         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86789         universal builds, assume that mktime does not work.
86790         * modules/mktime (Depends-on): Add multiarch.
86792 2009-01-21  Eric Blake  <ebb9@byu.net>
86794         multiarch: avoid expand-before-require warning
86795         * modules/multiarch (configure.ac): Require, rather than expand,
86796         gl_MULTIARCH.
86797         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86798         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86799         enforce that all clients require it.  Partial reversion of
86800         2008-12-29 patch.
86802         error: avoid expand-before-require warning
86803         * modules/errno (configure.ac): Require, rather than expand,
86804         gl_HEADER_ERRNO_H.
86805         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86806         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86807         enforce that all clients require it.
86809         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86810         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86811         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86812         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86814 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86816         Revert:
86817         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86819         regex: do not depend on obsolete modules.
86820         * modules/regex: Remove memcmp and memmove.
86822 2009-01-20  Bruno Haible  <bruno@clisp.org>
86824         Make the 'link' module link on Windows NT 4.
86825         * lib/link.c (_WIN32_WINNT): Don't define.
86826         (CreateHardLinkFuncType): New type.
86827         (CreateHardLinkFunc, initialized): New variables.
86828         (initialize): New function.
86829         (link): Invoke CreateHardLink indirectly through the function pointer.
86831 2009-01-20  Bruno Haible  <bruno@clisp.org>
86833         Fix compilation failure on mingw.
86834         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86836 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86838         * doc/c-strtod.texi: Mention a couple of restrictions.
86840 2009-01-20  Jim Meyering  <meyering@redhat.com>
86842         gettimeofday: move more declarations out of functions
86843         * lib/gettimeofday.c: Move extern declarations of tzset and
86844         gmtime out of containing functions.  Prompted by Bruno Haible.
86846 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86848         regex: do not depend on obsolete modules.
86849         * modules/regex: Remove memcmp and memmove.
86851 2009-01-19  Bruno Haible  <bruno@clisp.org>
86853         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86854         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86855         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86856         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86857         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86859 2009-01-19  Bruno Haible  <bruno@clisp.org>
86861         * tests/test-link.c: Include <errno.h>.
86862         (main): Exit with code 77 when a hard link cannot be created due to
86863         the file system.
86864         * tests/test-link.sh: Skip test when a hard link cannot be created due
86865         to the file system.
86866         Suggested by Eric Blake.
86868 2009-01-19  Martin Lambers  <marlam@marlam.de>
86870         * modules/link-tests: New file.
86871         * tests/test-link.sh: New file.
86872         * tests/test-link.c: New file.
86874 2009-01-19  Eric Blake  <ebb9@byu.net>
86876         doc: mention another function added in cygwin 1.7.0
86877         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86878         Another new function in cygwin 1.7.
86880 2009-01-19  Bruno Haible  <bruno@clisp.org>
86882         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86883         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86884         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86885         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86887         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86888         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86889         * m4/md4.m4 (gl_MD4): Likewise.
86890         * m4/md5.m4 (gl_MD5): Likewise.
86891         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86892         * m4/sha1.m4 (gl_SHA1): Likewise.
86893         * m4/sha256.m4 (gl_SHA256): Likewise.
86894         * m4/sha512.m4 (gl_SHA512): Likewise.
86896 2009-01-19  Bruno Haible  <bruno@clisp.org>
86898         * modules/uniname/uniname-tests (Depends-on): Add progname.
86899         * tests/uniname/test-uninames.c: Include progname.h.
86900         (main): Call set_program_name.
86902         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86903         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86904         (main): Call set_program_name.
86906         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86907         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86908         (main): Call set_program_name.
86910         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86911         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86912         (main): Call set_program_name.
86914         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86915         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86916         (main): Call set_program_name.
86918         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86919         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86920         (main): Call set_program_name.
86922         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86923         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86924         (main): Call set_program_name.
86926         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86927         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86928         (main): Call set_program_name.
86930         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86931         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86932         (main): Call set_program_name.
86934 2009-01-19  Eric Blake  <ebb9@byu.net>
86936         test-unistd: test previous patch
86937         * tests/test-unistd.c: Test *_FILENO macros.
86939         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86940         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86941         Guarantee a definition.
86942         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86943         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86944         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86945         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86946         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86947         Likewise.
86948         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86949         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86950         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86951         Likewise.
86952         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86953         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86954         (STDERR_FILENO): Likewise.
86955         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86956         (STDERR_FILENO): Likewise.
86957         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86958         (STDERR_FILENO): Likewise.
86959         Reported by Elbert Pol.
86961 2009-01-19  Eric Blake  <ebb9@byu.net>
86963         doc: mention more functions added in cygwin 1.7.0
86964         * doc/posix-functions/abort.texi (abort): Update wording related
86965         to cygwin.
86966         * doc/posix-functions/daylight.texi (daylight): Likewise.
86967         * doc/posix-functions/optarg.texi (optarg): Likewise.
86968         * doc/posix-functions/optarg.texi (opterr): Likewise.
86969         * doc/posix-functions/optarg.texi (optind): Likewise.
86970         * doc/posix-functions/optarg.texi (optopt): Likewise.
86971         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86972         worked in 1.5.x, and was withdrawn in 1.7.
86973         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86974         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86975         cygwin versions.
86976         * doc/posix-functions/perror.texi (perror): Likewise.
86977         * doc/posix-functions/printf.texi (printf): Likewise.
86978         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86979         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86980         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86981         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86982         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86983         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86984         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86985         Likewise.
86986         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86987         Likewise.
86988         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86989         this function.
86990         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86991         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86992         Likewise.
86993         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86994         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86995         * doc/posix-functions/confstr.texi (confstr): Likewise.
86996         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86997         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86998         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86999         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87000         * doc/posix-functions/fputws.texi (fputws): Likewise.
87001         * doc/posix-functions/fwide.texi (fwide): Likewise.
87002         * doc/posix-functions/getwc.texi (getwc): Likewise.
87003         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87004         * doc/posix-functions/putwc.texi (putwc): Likewise.
87005         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87006         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87007         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87008         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87009         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87010         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87011         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87012         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87013         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87014         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87015         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87017 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87019         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87020         * lib/ioctl.c: Include <sys/ioctl.h>.
87022 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87024         * modules/getdate-tests (Depends-on): Add progname.
87025         * tests/test-getdate.c: Use progname module, to avoid link errors
87026         on non-glibc systems.
87028 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87030         * modules/filenamecat-tests (Depends-on): Add progname.
87031         * modules/fstrcmp-tests (Depends-on): Likewise.
87033         * tests/test-filenamecat.c: Use progname module, to avoid link
87034         errors on non-glibc systems.
87035         * tests/test-fstrcmp.c: Likewise.
87037 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87039         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87040         * lib/gettimeofday.c: Move extern declaration out of function.
87042 2009-01-18  Bruno Haible  <bruno@clisp.org>
87044         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87045         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87046         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87048 2009-01-18  Bruno Haible  <bruno@clisp.org>
87050         * lib/strftime.c (MEMPCPY): Remove unused macro.
87051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87053 2009-01-18  Martin Lambers  <marlam@marlam.de>
87055         New module 'link'.
87056         * lib/unistd.in.h (link): New declaration.
87057         * lib/link.c: New file.
87058         * m4/link.m4: New file.
87059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87060         HAVE_LINK.
87061         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87062         * modules/link: New file.
87063         * doc/posix-functions/link.texi: Mention the new module.
87065 2009-01-18  Bruno Haible  <bruno@clisp.org>
87067         * tests/test-avltree_list.c (main): Call set_program_name.
87068         * tests/test-avltree_oset.c (main): Likewise.
87069         * tests/test-obstack-printf.c: Include progname.h.
87070         (main): Call set_program_name.
87071         * tests/test-quotearg.c: Include progname.h.
87072         (main): Call set_program_name.
87073         * tests/test-xmemdup0.c: Include progname.h.
87074         (main): Call set_program_name.
87076 2009-01-18  Bruno Haible  <bruno@clisp.org>
87078         New module 'alphasort'.
87079         * lib/dirent.in.h (alphasort): New declaration.
87080         * lib/alphasort.c: New file, from glibc with modifications.
87081         * m4/alphasort.m4: New file.
87082         * modules/alphasort: New file.
87083         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87084         HAVE_ALPHASORT.
87085         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87086         HAVE_ALPHASORT.
87087         * doc/posix-functions/alphasort.texi: Mention the new module and the
87088         portability problems.
87090 2009-01-18  Bruno Haible  <bruno@clisp.org>
87092         New module 'scandir'.
87093         * lib/dirent.in.h (scandir): New declaration.
87094         * lib/scandir.c: New file, from glibc with modifications.
87095         * m4/scandir.m4: New file.
87096         * modules/scandir: New file.
87097         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87098         HAVE_SCANDIR.
87099         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87100         HAVE_SCANDIR.
87101         * doc/posix-functions/scandir.texi: Mention the new module and the
87102         portability problems.
87104 2009-01-17  Bruno Haible  <bruno@clisp.org>
87106         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87107         Update documentation.
87108         (func_remove_suffix): Escape all dots in the suffix. Update
87109         documentation.
87110         (func_filter_filelist): Update documentation.
87111         Reported by Ralf Wildenhues.
87113 2009-01-17  Bruno Haible  <bruno@clisp.org>
87115         * modules/dprintf-posix-tests: New file.
87116         * tests/test-dprintf-posix.sh: New file.
87117         * tests/test-dprintf-posix.c: New file.
87119         New modules 'dprintf', 'dprintf-posix'.
87120         * lib/stdio.in.h (dprintf): New declaration.
87121         * lib/dprintf.c: New file.
87122         * m4/dprintf.m4: New file.
87123         * m4/dprintf-posix.m4: New file.
87124         * modules/dprintf: New file.
87125         * modules/dprintf-posix: New file.
87126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87127         HAVE_DPRINTF, REPLACE_DPRINTF.
87128         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87129         HAVE_DPRINTF, REPLACE_DPRINTF.
87130         * doc/posix-functions/dprintf.texi: Mention the new modules.
87132 2009-01-17  Bruno Haible  <bruno@clisp.org>
87134         * modules/vdprintf-posix-tests: New file.
87135         * tests/test-vdprintf-posix.sh: New file.
87136         * tests/test-vdprintf-posix.c: New file.
87138         New modules 'vdprintf', 'vdprintf-posix'.
87139         * lib/stdio.in.h (vdprintf): New declaration.
87140         * lib/vdprintf.c: New file.
87141         * m4/vdprintf.m4: New file.
87142         * m4/vdprintf-posix.m4: New file.
87143         * modules/vdprintf: New file.
87144         * modules/vdprintf-posix: New file.
87145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87146         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87147         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87148         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87149         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87151 2009-01-17  Bruno Haible  <bruno@clisp.org>
87153         Fix replacement of fopen on mingw.
87154         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87155         mingw.
87157 2009-01-17  Bruno Haible  <bruno@clisp.org>
87159         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87160         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87162 2009-01-17  Bruno Haible  <bruno@clisp.org>
87164         Avoid test-fflush2.sh failure on mingw.
87165         * tests/test-fflush2.c: Include binary-io.h.
87166         (main): Put standard input into binary mode.
87167         * modules/fflush-tests (Depends-on): Add binary-io.
87169 2009-01-17  Bruno Haible  <bruno@clisp.org>
87171         * lib/wchar.in.h: In another particular situation, include only the
87172         system's <wchar.h> file.
87173         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87174         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87175         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87177 2009-01-17  Bruno Haible  <bruno@clisp.org>
87179         Support for stripping executables in --enable-relocatable.
87180         * build-aux/install-reloc: Expect one more argument, or an environment
87181         variable RELOC_STRIP_PROG. If set, strip the destination program and
87182         its wrapper.
87183         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87184         RELOC_STRIP_PROG.
87185         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87186         to set RELOCATABLE_STRIP.
87187         * NEWS: Mention the new Makefile requirement.
87189 2009-01-17  Bruno Haible  <bruno@clisp.org>
87191         * build-aux/install-reloc: Remove debugging information left over by
87192         C compiler on MacOS X.
87194 2009-01-17  Bruno Haible  <bruno@clisp.org>
87196         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87197         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87198         _NSGetExecutablePath.
87200 2009-01-16  Jim Meyering  <meyering@redhat.com>
87202         strerror: avoid warnings about discarding "const"
87203         * lib/strerror.c (rpl_strerror): Instead of returning a const
87204         string from each and every "case", use a variable, and add a single
87205         cast after the switch.
87207 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87209         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87211 2009-01-16  Bruno Haible  <bruno@clisp.org>
87213         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87214         array initializer syntax that also works in C++ mode.
87215         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87217 2009-01-16  Jim Meyering  <meyering@redhat.com>
87219         poll: suppress a warning
87220         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87221         to ignore "...unsigned expression < 0 is always false" warnings.
87223 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87225         poll: remove declarations of unused variables
87226         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87227         sockbuf and optlen.
87229 2009-01-15  Bruno Haible  <bruno@clisp.org>
87231         Make fflush-after-ungetc POSIX compliant on BSD systems.
87232         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87233         (clear_ungetc_buffer): Implement also for other systems.
87234         (rpl_fflush): On glibc systems, invoke
87235         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87236         clear_ungetc_buffer after fetching the stream's position, not before.
87238 2009-01-15  Bruno Haible  <bruno@clisp.org>
87240         Make fflush-after-ungetc POSIX compliant on glibc systems.
87241         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87242         after ungetc.
87243         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87244         (rpl_fflush): On glibc systems, simply call the system's fflush
87245         function after clearing the ungetc buffer.
87246         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87247         Instead, lseek only to the end of file, then use the system's fseeko
87248         for the rest. On glibc systems, reset the EOF indicator bit.
87250 2009-01-15  Jim Meyering  <meyering@redhat.com>
87252         openmp.m4: revert quote-adding change, for portability to older autoconf
87253         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87254         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87255         Simon Josefsson noticed the problem when using autoconf-2.61.
87257 2009-01-15  Bruno Haible  <bruno@clisp.org>
87259         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87260         * tests/test-fflush2.c (ASSERT): Always fail.
87261         (main): Add two tests for fflush() after ungetc(), taking into account
87262         the Austin Group's clarification.
87263         Suggested by Eric Blake.
87265 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87267         mktime.m4: remove K&R-style function prototypes
87268         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87269         for the Sun C++ compiler.
87271 2009-01-14  Bruno Haible  <bruno@clisp.org>
87273         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87274         while including <wchar.h>.
87275         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87276         the system's <wchar.h> file.
87277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87279 2009-01-14  Bruno Haible  <bruno@clisp.org>
87281         * m4/csharp.m4: Don't mention gettext on the serial number line.
87282         * m4/csharpexec.m4: Likewise.
87283         * m4/eaccess.m4: Likewise.
87284         * m4/javaexec.m4: Likewise.
87285         * m4/sig_atomic_t.m4: Likewise.
87286         * m4/tmpdir.m4: Likewise.
87287         * m4/intldir.m4: Bump gettext version.
87288         * m4/lib-ld.m4: Likewise.
87290 2009-01-14  Bruno Haible  <bruno@clisp.org>
87292         * lib/progname.c (set_program_name): Add more comments.
87293         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87295 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87297         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87298         were sys/stat.h does not define it.
87300 2009-01-14  Jim Meyering  <meyering@redhat.com>
87302         many *.m4 files: improve m4 quoting
87303         99% of this change was performed by running the following commands:
87304         git ls-files | grep '\.m4$' | xargs perl -pi \
87305           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87306           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87307           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87308           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87309         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87310         The remainder were to add Copyright dates, increment serial numbers,
87311         undo some changes in comments, exclude m4/intl.m4, and add quotes
87312         around the "1" in ",1" where the unusual spacing prohibited the
87313         above regexps from doing the job.  For more details, see
87314         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87315         * m4/acl.m4: Modified.
87316         * m4/afs.m4: Likewise.
87317         * m4/alloca.m4: Likewise.
87318         * m4/argp.m4: Likewise.
87319         * m4/argz.m4: Likewise.
87320         * m4/atexit.m4: Likewise.
87321         * m4/bison-i18n.m4: Likewise.
87322         * m4/bison.m4: Likewise.
87323         * m4/byteswap.m4: Likewise.
87324         * m4/c-stack.m4: Likewise.
87325         * m4/c-strtod.m4: Likewise.
87326         * m4/calloc.m4: Likewise.
87327         * m4/canonicalize-lgpl.m4: Likewise.
87328         * m4/chown.m4: Likewise.
87329         * m4/clock_time.m4: Likewise.
87330         * m4/codeset.m4: Likewise.
87331         * m4/copy-file.m4: Likewise.
87332         * m4/csharp.m4: Likewise.
87333         * m4/csharpcomp.m4: Likewise.
87334         * m4/csharpexec.m4: Likewise.
87335         * m4/d-ino.m4: Likewise.
87336         * m4/d-type.m4: Likewise.
87337         * m4/dirfd.m4: Likewise.
87338         * m4/double-slash-root.m4: Likewise.
87339         * m4/eaccess.m4: Likewise.
87340         * m4/eealloc.m4: Likewise.
87341         * m4/environ.m4: Likewise.
87342         * m4/errno_h.m4: Likewise.
87343         * m4/euidaccess.m4: Likewise.
87344         * m4/execute.m4: Likewise.
87345         * m4/fatal-signal.m4: Likewise.
87346         * m4/fchdir.m4: Likewise.
87347         * m4/fcntl_h.m4: Likewise.
87348         * m4/fileblocks.m4: Likewise.
87349         * m4/filenamecat.m4: Likewise.
87350         * m4/findprog.m4: Likewise.
87351         * m4/flexmember.m4: Likewise.
87352         * m4/fnmatch.m4: Likewise.
87353         * m4/fopen.m4: Likewise.
87354         * m4/fpending.m4: Likewise.
87355         * m4/fprintf-posix.m4: Likewise.
87356         * m4/free.m4: Likewise.
87357         * m4/frexp.m4: Likewise.
87358         * m4/frexpl.m4: Likewise.
87359         * m4/fsusage.m4: Likewise.
87360         * m4/ftruncate.m4: Likewise.
87361         * m4/gc-camellia.m4: Likewise.
87362         * m4/gc-random.m4: Likewise.
87363         * m4/gc.m4: Likewise.
87364         * m4/getaddrinfo.m4: Likewise.
87365         * m4/getcwd-abort-bug.m4: Likewise.
87366         * m4/getcwd-path-max.m4: Likewise.
87367         * m4/getdate.m4: Likewise.
87368         * m4/getdomainname.m4: Likewise.
87369         * m4/getgroups.m4: Likewise.
87370         * m4/gethostname.m4: Likewise.
87371         * m4/gethrxtime.m4: Likewise.
87372         * m4/getline.m4: Likewise.
87373         * m4/getloadavg.m4: Likewise.
87374         * m4/getndelim2.m4: Likewise.
87375         * m4/getpass.m4: Likewise.
87376         * m4/gettext.m4: Likewise.
87377         * m4/gettime.m4: Likewise.
87378         * m4/gettimeofday.m4: Likewise.
87379         * m4/gnulib-common.m4: Likewise.
87380         * m4/group-member.m4: Likewise.
87381         * m4/host-os.m4: Likewise.
87382         * m4/iconv.m4: Likewise.
87383         * m4/iconv_open.m4: Likewise.
87384         * m4/inet_ntop.m4: Likewise.
87385         * m4/inet_pton.m4: Likewise.
87386         * m4/inline.m4: Likewise.
87387         * m4/intldir.m4: Likewise.
87388         * m4/intlmacosx.m4: Likewise.
87389         * m4/intmax.m4: Likewise.
87390         * m4/intmax_t.m4: Likewise.
87391         * m4/inttypes.m4: Likewise.
87392         * m4/inttypes_h.m4: Likewise.
87393         * m4/inttypes-pri.m4: Likewise.
87394         * m4/isapipe.m4: Likewise.
87395         * m4/isnand.m4: Likewise.
87396         * m4/isnanf.m4: Likewise.
87397         * m4/isnanl.m4: Likewise.
87398         * m4/javacomp.m4: Likewise.
87399         * m4/javaexec.m4: Likewise.
87400         * m4/jm-winsz1.m4: Likewise.
87401         * m4/jm-winsz2.m4: Likewise.
87402         * m4/lchown.m4: Likewise.
87403         * m4/lcmessage.m4: Likewise.
87404         * m4/ldexpl.m4: Likewise.
87405         * m4/lib-ld.m4: Likewise.
87406         * m4/lib-link.m4: Likewise.
87407         * m4/libsigsegv.m4: Likewise.
87408         * m4/link-follow.m4: Likewise.
87409         * m4/localcharset.m4: Likewise.
87410         * m4/locale-fr.m4: Likewise.
87411         * m4/locale-ja.m4: Likewise.
87412         * m4/locale-tr.m4: Likewise.
87413         * m4/locale-zh.m4: Likewise.
87414         * m4/lock.m4: Likewise.
87415         * m4/longlong.m4: Likewise.
87416         * m4/ls-mntd-fs.m4: Likewise.
87417         * m4/lstat.m4: Likewise.
87418         * m4/malloc.m4: Likewise.
87419         * m4/mathl.m4: Likewise.
87420         * m4/mbrtowc.m4: Likewise.
87421         * m4/mbstate_t.m4: Likewise.
87422         * m4/mbswidth.m4: Likewise.
87423         * m4/memchr.m4: Likewise.
87424         * m4/memcmp.m4: Likewise.
87425         * m4/memcpy.m4: Likewise.
87426         * m4/memmem.m4: Likewise.
87427         * m4/memmove.m4: Likewise.
87428         * m4/mempcpy.m4: Likewise.
87429         * m4/memrchr.m4: Likewise.
87430         * m4/memset.m4: Likewise.
87431         * m4/minmax.m4: Likewise.
87432         * m4/mkdir-slash.m4: Likewise.
87433         * m4/mkdtemp.m4: Likewise.
87434         * m4/mktime.m4: Likewise.
87435         * m4/mmap-anon.m4: Likewise.
87436         * m4/mountlist.m4: Likewise.
87437         * m4/nanosleep.m4: Likewise.
87438         * m4/nls.m4: Likewise.
87439         * m4/nocrash.m4: Likewise.
87440         * m4/open.m4: Likewise.
87441         * m4/openat.m4: Likewise.
87442         * m4/openmp.m4: Likewise.
87443         * m4/pathmax.m4: Likewise.
87444         * m4/perl.m4: Likewise.
87445         * m4/physmem.m4: Likewise.
87446         * m4/pipe.m4: Likewise.
87447         * m4/po.m4: Likewise.
87448         * m4/poll.m4: Likewise.
87449         * m4/posixtm.m4: Likewise.
87450         * m4/posixver.m4: Likewise.
87451         * m4/printf-frexp.m4: Likewise.
87452         * m4/printf-frexpl.m4: Likewise.
87453         * m4/printf-posix.m4: Likewise.
87454         * m4/printf-posix-rpl.m4: Likewise.
87455         * m4/printf.m4: Likewise.
87456         * m4/progtest.m4: Likewise.
87457         * m4/putenv.m4: Likewise.
87458         * m4/readline.m4: Likewise.
87459         * m4/readlink.m4: Likewise.
87460         * m4/readutmp.m4: Likewise.
87461         * m4/realloc.m4: Likewise.
87462         * m4/regex.m4: Likewise.
87463         * m4/relocatable.m4: Likewise.
87464         * m4/relocatable-lib.m4: Likewise.
87465         * m4/rename-dest-slash.m4: Likewise.
87466         * m4/rename.m4: Likewise.
87467         * m4/rmdir-errno.m4: Likewise.
87468         * m4/rmdir.m4: Likewise.
87469         * m4/roundf.m4: Likewise.
87470         * m4/roundl.m4: Likewise.
87471         * m4/rpmatch.m4: Likewise.
87472         * m4/save-cwd.m4: Likewise.
87473         * m4/selinux-selinux-h.m4: Likewise.
87474         * m4/setenv.m4: Likewise.
87475         * m4/settime.m4: Likewise.
87476         * m4/sig2str.m4: Likewise.
87477         * m4/sig_atomic_t.m4: Likewise.
87478         * m4/signalblocking.m4: Likewise.
87479         * m4/signbit.m4: Likewise.
87480         * m4/sigpipe.m4: Likewise.
87481         * m4/sockets.m4: Likewise.
87482         * m4/sockpfaf.m4: Likewise.
87483         * m4/st_dm_mode.m4: Likewise.
87484         * m4/stat-time.m4: Likewise.
87485         * m4/stdbool.m4: Likewise.
87486         * m4/stdint.m4: Likewise.
87487         * m4/stdint_h.m4: Likewise.
87488         * m4/stpcpy.m4: Likewise.
87489         * m4/stpncpy.m4: Likewise.
87490         * m4/strcase.m4: Likewise.
87491         * m4/strchrnul.m4: Likewise.
87492         * m4/strcspn.m4: Likewise.
87493         * m4/strdup.m4: Likewise.
87494         * m4/strftime.m4: Likewise.
87495         * m4/strndup.m4: Likewise.
87496         * m4/strnlen.m4: Likewise.
87497         * m4/strpbrk.m4: Likewise.
87498         * m4/strptime.m4: Likewise.
87499         * m4/strsep.m4: Likewise.
87500         * m4/strtod.m4: Likewise.
87501         * m4/strtoimax.m4: Likewise.
87502         * m4/strtok_r.m4: Likewise.
87503         * m4/strtol.m4: Likewise.
87504         * m4/strtoll.m4: Likewise.
87505         * m4/strtoul.m4: Likewise.
87506         * m4/strtoull.m4: Likewise.
87507         * m4/strtoumax.m4: Likewise.
87508         * m4/strverscmp.m4: Likewise.
87509         * m4/threadlib.m4: Likewise.
87510         * m4/timegm.m4: Likewise.
87511         * m4/tm_gmtoff.m4: Likewise.
87512         * m4/tmpdir.m4: Likewise.
87513         * m4/tmpfile.m4: Likewise.
87514         * m4/tzset.m4: Likewise.
87515         * m4/uintmax_t.m4: Likewise.
87516         * m4/unlinkdir.m4: Likewise.
87517         * m4/unlocked-io.m4: Likewise.
87518         * m4/uptime.m4: Likewise.
87519         * m4/userspec.m4: Likewise.
87520         * m4/utimbuf.m4: Likewise.
87521         * m4/utime.m4: Likewise.
87522         * m4/utimes-null.m4: Likewise.
87523         * m4/utimes.m4: Likewise.
87524         * m4/vararrays.m4: Likewise.
87525         * m4/vasnprintf.m4: Likewise.
87526         * m4/vfprintf-posix.m4: Likewise.
87527         * m4/vprintf-posix.m4: Likewise.
87528         * m4/wait-process.m4: Likewise.
87529         * m4/wchar_t.m4: Likewise.
87530         * m4/wint_t.m4: Likewise.
87531         * m4/write-any-file.m4: Likewise.
87532         * m4/yield.m4: Likewise.
87534 2009-01-13  Bruno Haible  <bruno@clisp.org>
87536         Avoid test-copy-file.sh failures when ACL support insufficient.
87537         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87538         TESTS_ENVIRONMENT.
87539         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87540         Reported by Jim Meyering.
87542 2009-01-13  Bruno Haible  <bruno@clisp.org>
87544         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87545         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87546         * modules/unistdio/u8-printf-parse (Files): Likewise.
87547         * modules/unistdio/u32-printf-parse (Files): Likewise.
87548         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87550 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87552         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87553         and m4/inttypes_h.m4 too.
87555 2009-01-12  Eric Blake  <ebb9@byu.net>
87557         tests: IRIX 6.2 cc can't compile -0.0 into .data
87558         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87559         rather than at compile-time.
87560         * tests/test-floorl.c (minus_zero): Likewise.
87561         * tests/test-frexpl.c (minus_zero): Likewise.
87562         * tests/test-isnan.c (minus_zerol): Likewise.
87563         * tests/test-isnanl.h (minus_zero): Likewise.
87564         * tests/test-ldexpl.c (minus_zero): Likewise.
87565         * tests/test-roundl.c (minus_zero): Likewise.
87566         * tests/test-signbit.c (minus_zerol): Likewise.
87567         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87568         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87569         * tests/test-truncl.c (minus_zero): Likewise.
87570         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87571         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87572         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87574 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87576         regex: fix glibc bug 9697
87577         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87578         handling.
87580 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87582         regex: fix glibc bug 697
87583         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87584         being NULL also if there are no backreferences.
87586 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87588         regex: merge glibc changes
87589         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87590         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87591         re_string_skip_chars, re_string_reconstruct): Likewise.
87592         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87594 2009-01-07  Jim Meyering  <meyering@redhat.com>
87596         poll: filter through cppi
87597         * lib/poll.c: Indent cpp directives to reflect nesting.
87599 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87601         poll: don't return uninitialized
87602         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87604 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87606         avoid compile failure on AIX 6.1
87607         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87608         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87610 2009-01-04  Jim Meyering  <meyering@redhat.com>
87612         remove duplicate inclusion of <stdio.h>
87613         * tests/test-fprintf-posix.c: Likewise.
87614         * tests/test-printf-posix.c: Likewise.
87615         * tests/test-snprintf-posix.c: Likewise.
87616         * tests/test-sprintf-posix.c: Likewise.
87617         * tests/test-vasprintf-posix.c: Likewise.
87618         * tests/test-vfprintf-posix.c: Likewise.
87619         * tests/test-vprintf-posix.c: Likewise.
87620         * tests/test-vsnprintf-posix.c: Likewise.
87621         * tests/test-vsprintf-posix.c: Likewise.
87623 2009-01-03  Jim Meyering  <meyering@redhat.com>
87625         gnulib-tool: fix sed-based filtering
87626         * gnulib-tool (func_filter_filelist): Remove extra backslash
87627         in sed_fff_filter definition.
87629 2009-01-02  Jim Meyering  <meyering@redhat.com>
87631         strftime: avoid compilation failure on Solaris 2.6
87632         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87633         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87634         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87635         be available.  Reported by Tom G. Christensen.  Details in
87636         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87638 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87639             Bruno Haible  <bruno@clisp.org>
87641         Speed up gnulib-tool by doing more string processing through shell
87642         built-ins.
87643         * gnulib-tool (fast_func_append): New variable.
87644         (func_remove_prefix, func_remove_suffix): New functions.
87645         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87646         (func_filter_filelist): New function.
87647         (func_get_dependencies): Use func_remove_suffix instead of sed.
87648         (func_get_automake_snippet): Use func_filter_filelist instead of a
87649         subshell and sed invocation.
87651 2009-01-01  Bruno Haible  <bruno@clisp.org>
87653         Fix a security bug.
87654         * gnulib-tool (func_import, import, update): Don't allow the characters
87655         '"', '$', '`', '\' in macro arguments that become part of commands that
87656         are evaluated.
87658 2009-01-01  Bruno Haible  <bruno@clisp.org>
87660         * gnulib-tool (func_reset_sigpipe): Add more comments.
87662 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87664         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87665         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87666         already know the answer.
87668 2009-01-01  Jim Meyering  <meyering@redhat.com>
87670         * lib/version-etc.c (version_etc_va): Update copyright year.
87672 2008-12-30  Bruno Haible  <bruno@clisp.org>
87674         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87675         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87676         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87678 2008-12-29  Eric Blake  <ebb9@byu.net>
87680         multiarch: avoid autoconf AC_REQUIRE bug
87681         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87682         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87683         2.63 and older.
87684         Reported by Bruno Haible, and analyzed in
87685         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87687 2008-12-29  Bruno Haible  <bruno@clisp.org>
87689         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87690         files in subdirectories correctly.
87691         Reported by Ralf Wildenhues.
87693 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87695         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87696         rather than 'join FILE -', for Solaris join.
87698 2008-12-29  Bruno Haible  <bruno@clisp.org>
87700         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87701         quoting.
87702         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87703         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87704         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87705         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87706         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87707         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87708         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87709         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87710         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87711         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87712         * m4/nls.m4 (AM_NLS): Likewise.
87713         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87714         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87715         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87716         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87717         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87718         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87719         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87720         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87721         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87722         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87723         * m4/xsize.m4 (gl_XSIZE): Likewise.
87724         Suggested by Jim Meyering.
87726 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87728         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87729         * lib/parse-duration.c: use a switch instead of cascading if's.
87731 2008-12-29  Eric Blake  <ebb9@byu.net>
87733         wchar.h: supply WEOF on Irix 5.3
87734         * lib/wchar.in.h (wint_t): Also supply WEOF.
87735         * lib/wctype.in.h (wint_t): Likewise.
87736         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87737         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87738         Reported by Tom G. Christensen.
87740 2008-12-26  Bruno Haible  <bruno@clisp.org>
87742         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87743         i486, i586, i686.
87745 2008-12-26  Bruno Haible  <bruno@clisp.org>
87747         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87749 2008-12-26  Bruno Haible  <bruno@clisp.org>
87751         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87752         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87753         not __STDC_CONSTANT_MACROS.
87754         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87756 2008-12-25  Bruno Haible  <bruno@clisp.org>
87758         Add support for universal builds to vasnprintf.
87759         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87760         universal builds, guess no.
87761         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87762         * modules/vasprintf-posix (Depends-on): Likewise.
87763         * modules/fprintf-posix (Depends-on): Likewise.
87764         * modules/vfprintf-posix (Depends-on): Likewise.
87765         * modules/snprintf-posix (Depends-on): Likewise.
87766         * modules/vsnprintf-posix (Depends-on): Likewise.
87767         * modules/sprintf-posix (Depends-on): Likewise.
87768         * modules/vsprintf-posix (Depends-on): Likewise.
87769         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87770         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87771         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87772         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87773         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87774         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87775         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87777         Add support for universal builds to <inttypes.h>.
87778         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87779         _SCNu64_PREFIX): In Apple
87780         universal builds, define directly, using _LP64.
87781         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87782         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87783         * modules/inttypes (Depends-on): Add multiarch.
87784         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87786         Add support for universal builds to <stdint.h>.
87787         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87788         universal builds, define directly, using _LP64.
87789         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87790         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87791         and size_t.
87792         * modules/stdint (Depends-on): Add multiarch.
87793         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87795         New module 'multiarch'.
87796         * modules/multiarch: New file.
87797         * m4/multiarch.m4: New file.
87799 2008-12-25  Bruno Haible  <bruno@clisp.org>
87801         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87803 2008-12-25  Bruno Haible  <bruno@clisp.org>
87805         * modules/btowc (License): Relicense under LGPLv2+.
87806         * modules/mbsinit (License): Likewise.
87807         * modules/mbrtowc (License): Likewise.
87808         * modules/wcrtomb (License): Likewise.
87809         * modules/streq (License): Likewise.
87810         Reported by David Lutterkort <lutter@redhat.com>.
87812 2008-12-23  Bruno Haible  <bruno@clisp.org>
87814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87816 2008-12-23  Bruno Haible  <bruno@clisp.org>
87818         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87819         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87820         GETADDRINFO_LIB, not in LIBS.
87821         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87822         * modules/canon-host (Link): Likewise.
87823         * NEWS: Mention the change.
87824         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87825         GETADDRINFO_LIB.
87827 2008-12-22  Bruno Haible  <bruno@clisp.org>
87829         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87830         * doc/posix-functions/iswalpha_l.texi: Likewise.
87831         * doc/posix-functions/iswblank_l.texi: Likewise.
87832         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87833         * doc/posix-functions/iswctype_l.texi: Likewise.
87834         * doc/posix-functions/iswdigit_l.texi: Likewise.
87835         * doc/posix-functions/iswgraph_l.texi: Likewise.
87836         * doc/posix-functions/iswlower_l.texi: Likewise.
87837         * doc/posix-functions/iswprint_l.texi: Likewise.
87838         * doc/posix-functions/iswpunct_l.texi: Likewise.
87839         * doc/posix-functions/iswspace_l.texi: Likewise.
87840         * doc/posix-functions/iswupper_l.texi: Likewise.
87841         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87842         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87843         * doc/posix-functions/open_wmemstream.texi: Likewise.
87844         * doc/posix-functions/swscanf.texi: Likewise.
87845         * doc/posix-functions/towctrans_l.texi: Likewise.
87846         * doc/posix-functions/towlower.texi: Likewise.
87847         * doc/posix-functions/towlower_l.texi: Likewise.
87848         * doc/posix-functions/towupper.texi: Likewise.
87849         * doc/posix-functions/towupper_l.texi: Likewise.
87850         * doc/posix-functions/vfwprintf.texi: Likewise.
87851         * doc/posix-functions/vfwscanf.texi: Likewise.
87852         * doc/posix-functions/vswscanf.texi: Likewise.
87853         * doc/posix-functions/vwprintf.texi: Likewise.
87854         * doc/posix-functions/vwscanf.texi: Likewise.
87855         * doc/posix-functions/wcpcpy.texi: Likewise.
87856         * doc/posix-functions/wcpncpy.texi: Likewise.
87857         * doc/posix-functions/wcscasecmp.texi: Likewise.
87858         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87859         * doc/posix-functions/wcscoll_l.texi: Likewise.
87860         * doc/posix-functions/wcsdup.texi: Likewise.
87861         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87862         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87863         * doc/posix-functions/wcsnlen.texi: Likewise.
87864         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87865         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87866         * doc/posix-functions/wctrans_l.texi: Likewise.
87867         * doc/posix-functions/wctype_l.texi: Likewise.
87868         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87869         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87870         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87871         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87872         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87873         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87874         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87875         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87876         * doc/glibc-functions/wcschrnul.texi: Likewise.
87877         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87878         * doc/glibc-functions/wcstod_l.texi: Likewise.
87879         * doc/glibc-functions/wcstof_l.texi: Likewise.
87880         * doc/glibc-functions/wcstol_l.texi: Likewise.
87881         * doc/glibc-functions/wcstold_l.texi: Likewise.
87882         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87883         * doc/glibc-functions/wcstoq.texi: Likewise.
87884         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87885         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87886         * doc/glibc-functions/wcstouq.texi: Likewise.
87887         * doc/glibc-functions/wmempcpy.texi: Likewise.
87889 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87890             Eric Blake  <ebb9@byu.net>
87891             Paolo Bonzini  <bonzini@gnu.org>
87892             Bruno Haible  <bruno@clisp.org>
87894         Make c-stack work on Haiku.
87895         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87896         (c_stack_action): Use SA_ONSTACK flag.
87898 2008-12-22  Bruno Haible  <bruno@clisp.org>
87900         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87902 2008-12-22  Bruno Haible  <bruno@clisp.org>
87904         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87905         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87906         being overridden.
87907         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87908         New macros.
87909         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87911         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87912         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87914 2008-12-22  Bruno Haible  <bruno@clisp.org>
87916         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87917         from test code.
87919 2008-12-22  Eric Blake  <ebb9@byu.net>
87921         Avoid gcc warnings on cygwin.
87922         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87923         Avoid unused variable.
87924         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87925         Likewise.
87927 2008-12-22  Bruno Haible  <bruno@clisp.org>
87929         Remove HAVE_MBRTOWC conditionals.
87930         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87931         (mbscasecmp): Assume mbrtowc function.
87932         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87933         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87934         * lib/mbschr.c: Include mbuiter.h unconditionally.
87935         (mbschr): Assume mbrtowc function.
87936         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87937         (mbscspn): Assume mbrtowc function.
87938         * lib/mbslen.c: Include mbuiter.h unconditionally.
87939         (mbslen): Assume mbrtowc function.
87940         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87941         (mbsncasecmp): Assume mbrtowc function.
87942         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87943         (mbsnlen): Assume mbrtowc function.
87944         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87945         (mbspbrk): Assume mbrtowc function.
87946         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87947         (mbspcasecmp): Assume mbrtowc function.
87948         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87949         (mbsrchr): Assume mbrtowc function.
87950         * lib/mbssep.c: Include mbuiter.h unconditionally.
87951         (mbssep): Assume mbrtowc function.
87952         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87953         (mbsspn): Assume mbrtowc function.
87954         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87955         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87956         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87957         (mbstok_r): Assume mbrtowc function.
87958         * lib/propername.c: Include mbuiter.h unconditionally.
87959         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87960         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87961         (trim2): Assume mbrtowc function.
87962         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87963         (mbsnwidth): Assume mbrtowc function.
87964         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87965         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87966         fallback definitions.
87967         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87969 2008-12-22  Bruno Haible  <bruno@clisp.org>
87971         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87973 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87975         * modules/regex: Request emulations for the mb*/wc* functions we need.
87976         * m4/regex.m4: Don't look for those functions here.
87977         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87979 2008-12-22  Bruno Haible  <bruno@clisp.org>
87981         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87983 2008-12-21  Bruno Haible  <bruno@clisp.org>
87985         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87986         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87987         (Include): Remove conditionalization.
87988         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87989         (Include): Remove conditionalization.
87990         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87991         (Include): Remove conditionalization.
87992         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87993         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87994         * NEWS: Mention the change.
87995         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87996         via Sergey Poznyakoff <gray@gnu.org.ua>.
87998 2008-12-21  Bruno Haible  <bruno@clisp.org>
88000         * MODULES.html.sh (Extended multibyte and wide character utilities
88001         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88002         wcrtomb, wcsrtombs.
88003         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88004         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88005         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88006         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88008 2008-12-21  Bruno Haible  <bruno@clisp.org>
88010         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88012 2008-12-21  Bruno Haible  <bruno@clisp.org>
88014         * modules/wcsnrtombs-tests: New file.
88015         * tests/test-wcsnrtombs1.sh: New file.
88016         * tests/test-wcsnrtombs2.sh: New file.
88017         * tests/test-wcsnrtombs3.sh: New file.
88018         * tests/test-wcsnrtombs4.sh: New file.
88019         * tests/test-wcsnrtombs.c: New file.
88021         New module 'wcsnrtombs'.
88022         * lib/wchar.in.h (wcsnrtombs): New declaration.
88023         * lib/wcsnrtombs.c: New file.
88024         * lib/wcsrtombs-state.c: New file.
88025         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88026         (internal_state): Remove variable.
88027         * m4/wcsnrtombs.m4: New file.
88028         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88029         compilation units.
88030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88031         HAVE_WCSNRTOMBS.
88032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88033         HAVE_WCSNRTOMBS.
88034         * modules/wcsnrtombs: New file.
88035         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88036         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88038 2008-12-21  Bruno Haible  <bruno@clisp.org>
88040         * modules/wcsrtombs-tests: New file.
88041         * tests/test-wcsrtombs1.sh: New file.
88042         * tests/test-wcsrtombs2.sh: New file.
88043         * tests/test-wcsrtombs3.sh: New file.
88044         * tests/test-wcsrtombs4.sh: New file.
88045         * tests/test-wcsrtombs.c: New file.
88047         New module 'wcsrtombs'.
88048         * lib/wchar.in.h (wcsrtombs): New declaration.
88049         * lib/wcsrtombs.c: New file.
88050         * m4/wcsrtombs.m4: New file.
88051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88052         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88054         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88055         * modules/wcsrtombs: New file.
88056         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88057         bugs.
88059 2008-12-21  Bruno Haible  <bruno@clisp.org>
88061         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88062         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88063         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88064         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88065         if not correct.
88066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88067         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88068         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88069         m4/locale-zh.m4, m4/codeset.m4.
88070         * doc/posix-functions/wcrtomb.texi: Document the bug.
88072 2008-12-21  Bruno Haible  <bruno@clisp.org>
88074         Work around a btowc() bug on IRIX 6.5.
88075         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88076         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88077         REPLACE_WTOBC if not.
88078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88079         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88080         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88082 2008-12-21  Bruno Haible  <bruno@clisp.org>
88084         * modules/wcrtomb-tests: New file.
88085         * tests/test-wcrtomb.sh: New file.
88086         * tests/test-wcrtomb.c: New file.
88088         New module 'wcrtomb'.
88089         * lib/wchar.in.h (wcrtomb): New declaration.
88090         * lib/wcrtomb.c: New file.
88091         * m4/wcrtomb.m4: New file.
88092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88093         HAVE_WCRTOMB.
88094         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88095         HAVE_WCRTOMB.
88096         * modules/wcrtomb: New file.
88097         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88099 2008-12-21  Bruno Haible  <bruno@clisp.org>
88101         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88102         * modules/mbsrtowcs (Files): Likewise.
88103         * modules/wctob (Files): Likewise.
88104         * modules/c-strcase-tests (Files): Likewise.
88105         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88106         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88107         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88108         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88109         * modules/vasnprintf-posix-tests (Files): Likewise.
88111 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88113         gitlog-to-changelog: pass all command-line arguments to git-log
88114         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88115         it is sometimes convenient to filter the commits in various ways.
88116         gitlog-to-changelog only allows --since to specify a start date,
88117         but git-log itself supports many other filtering mechanisms.
88118         At the moment, I want to filter by branch name.  Rather than
88119         adding a --branch option to gitlog-to-changelog, it seems more
88120         flexible to simply pass all options directly to git-log and let
88121         git do the work.  Notice that this effectively makes --since a
88122         redundant option for gitlog-to-changelog, but removing it would
88123         require current usage to change since calls would then require
88124         an additional '--'.
88126 2008-12-21  Bruno Haible  <bruno@clisp.org>
88128         * modules/mbsnrtowcs-tests: New file.
88129         * tests/test-mbsnrtowcs1.sh: New file.
88130         * tests/test-mbsnrtowcs2.sh: New file.
88131         * tests/test-mbsnrtowcs3.sh: New file.
88132         * tests/test-mbsnrtowcs4.sh: New file.
88133         * tests/test-mbsnrtowcs.c: New file.
88135         New module 'mbsnrtowcs'.
88136         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88137         * lib/mbsnrtowcs.c: New file.
88138         * lib/mbsrtowcs-state.c: New file.
88139         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88140         (internal_state): Remove variable.
88141         * m4/mbsnrtowcs.m4: New file.
88142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88143         compilation units.
88144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88145         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88146         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88147         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88148         * modules/mbsnrtowcs: New file.
88149         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88150         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88151         portability problem.
88153 2008-12-21  Bruno Haible  <bruno@clisp.org>
88155         Work around mbsrtowcs bug.
88156         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88157         (gl_FUNC_MBSRTOWCS): Invoke it.
88158         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88159         m4/locale-zh.m4.
88160         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88162 2008-12-21  Bruno Haible  <bruno@clisp.org>
88164         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88166 2008-12-21  Bruno Haible  <bruno@clisp.org>
88168         Update doc for AIX.
88169         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88170         16-bit wchar_t type.
88171         * doc/posix-functions/btowc.texi: Likewise.
88172         * doc/posix-functions/fgetwc.texi: Likewise.
88173         * doc/posix-functions/fgetws.texi: Likewise.
88174         * doc/posix-functions/fputwc.texi: Likewise.
88175         * doc/posix-functions/fputws.texi: Likewise.
88176         * doc/posix-functions/fwide.texi: Likewise.
88177         * doc/posix-functions/fwprintf.texi: Likewise.
88178         * doc/posix-functions/fwscanf.texi: Likewise.
88179         * doc/posix-functions/getwchar.texi: Likewise.
88180         * doc/posix-functions/getwc.texi: Likewise.
88181         * doc/posix-functions/iswalnum.texi: Likewise.
88182         * doc/posix-functions/iswalpha.texi: Likewise.
88183         * doc/posix-functions/iswblank.texi: Likewise.
88184         * doc/posix-functions/iswcntrl.texi: Likewise.
88185         * doc/posix-functions/iswctype.texi: Likewise.
88186         * doc/posix-functions/iswdigit.texi: Likewise.
88187         * doc/posix-functions/iswgraph.texi: Likewise.
88188         * doc/posix-functions/iswlower.texi: Likewise.
88189         * doc/posix-functions/iswprint.texi: Likewise.
88190         * doc/posix-functions/iswpunct.texi: Likewise.
88191         * doc/posix-functions/iswspace.texi: Likewise.
88192         * doc/posix-functions/iswupper.texi: Likewise.
88193         * doc/posix-functions/iswxdigit.texi: Likewise.
88194         * doc/posix-functions/mbrtowc.texi: Likewise.
88195         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88196         * doc/posix-functions/mbstowcs.texi: Likewise.
88197         * doc/posix-functions/mbtowc.texi: Likewise.
88198         * doc/posix-functions/putwchar.texi: Likewise.
88199         * doc/posix-functions/putwc.texi: Likewise.
88200         * doc/posix-functions/swprintf.texi: Likewise.
88201         * doc/posix-functions/tolower.texi: Likewise.
88202         * doc/posix-functions/toupper.texi: Likewise.
88203         * doc/posix-functions/towctrans.texi: Likewise.
88204         * doc/posix-functions/ungetwc.texi: Likewise.
88205         * doc/posix-functions/vswprintf.texi: Likewise.
88206         * doc/posix-functions/wcrtomb.texi: Likewise.
88207         * doc/posix-functions/wcscat.texi: Likewise.
88208         * doc/posix-functions/wcschr.texi: Likewise.
88209         * doc/posix-functions/wcscmp.texi: Likewise.
88210         * doc/posix-functions/wcscoll.texi: Likewise.
88211         * doc/posix-functions/wcscpy.texi: Likewise.
88212         * doc/posix-functions/wcscspn.texi: Likewise.
88213         * doc/posix-functions/wcsftime.texi: Likewise.
88214         * doc/posix-functions/wcslen.texi: Likewise.
88215         * doc/posix-functions/wcsncat.texi: Likewise.
88216         * doc/posix-functions/wcsncmp.texi: Likewise.
88217         * doc/posix-functions/wcsncpy.texi: Likewise.
88218         * doc/posix-functions/wcspbrk.texi: Likewise.
88219         * doc/posix-functions/wcsrchr.texi: Likewise.
88220         * doc/posix-functions/wcsrtombs.texi: Likewise.
88221         * doc/posix-functions/wcsspn.texi: Likewise.
88222         * doc/posix-functions/wcsstr.texi: Likewise.
88223         * doc/posix-functions/wcstod.texi: Likewise.
88224         * doc/posix-functions/wcstof.texi: Likewise.
88225         * doc/posix-functions/wcstoimax.texi: Likewise.
88226         * doc/posix-functions/wcstok.texi: Likewise.
88227         * doc/posix-functions/wcstold.texi: Likewise.
88228         * doc/posix-functions/wcstoll.texi: Likewise.
88229         * doc/posix-functions/wcstol.texi: Likewise.
88230         * doc/posix-functions/wcstombs.texi: Likewise.
88231         * doc/posix-functions/wcstoull.texi: Likewise.
88232         * doc/posix-functions/wcstoul.texi: Likewise.
88233         * doc/posix-functions/wcstoumax.texi: Likewise.
88234         * doc/posix-functions/wcswidth.texi: Likewise.
88235         * doc/posix-functions/wcsxfrm.texi: Likewise.
88236         * doc/posix-functions/wctob.texi: Likewise.
88237         * doc/posix-functions/wctomb.texi: Likewise.
88238         * doc/posix-functions/wctrans.texi: Likewise.
88239         * doc/posix-functions/wctype.texi: Likewise.
88240         * doc/posix-functions/wcwidth.texi: Likewise.
88241         * doc/posix-functions/wmemchr.texi: Likewise.
88242         * doc/posix-functions/wmemcmp.texi: Likewise.
88243         * doc/posix-functions/wmemcpy.texi: Likewise.
88244         * doc/posix-functions/wmemmove.texi: Likewise.
88245         * doc/posix-functions/wmemset.texi: Likewise.
88246         * doc/posix-functions/wprintf.texi: Likewise.
88247         * doc/posix-functions/wscanf.texi: Likewise.
88249 2008-12-21  Bruno Haible  <bruno@clisp.org>
88251         Update doc for HP-UX 11.11.
88252         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88253         in HP-UX version 11.00, not in all versions of HP-UX 11.
88254         * doc/posix-functions/fwide.texi: Likewise.
88255         * doc/posix-functions/fwprintf.texi: Likewise.
88256         * doc/posix-functions/fwscanf.texi: Likewise.
88257         * doc/posix-functions/inet_ntop.texi: Likewise.
88258         * doc/posix-functions/inet_pton.texi: Likewise.
88259         * doc/posix-functions/mbrlen.texi: Likewise.
88260         * doc/posix-functions/mbrtowc.texi: Likewise.
88261         * doc/posix-functions/mbsinit.texi: Likewise.
88262         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88263         * doc/posix-functions/swprintf.texi: Likewise.
88264         * doc/posix-functions/swscanf.texi: Likewise.
88265         * doc/posix-functions/towctrans.texi: Likewise.
88266         * doc/posix-functions/vfwprintf.texi: Likewise.
88267         * doc/posix-functions/vswprintf.texi: Likewise.
88268         * doc/posix-functions/vwprintf.texi: Likewise.
88269         * doc/posix-functions/wcrtomb.texi: Likewise.
88270         * doc/posix-functions/wcsrtombs.texi: Likewise.
88271         * doc/posix-functions/wcsstr.texi: Likewise.
88272         * doc/posix-functions/wctob.texi: Likewise.
88273         * doc/posix-functions/wctrans.texi: Likewise.
88274         * doc/posix-functions/wmemchr.texi: Likewise.
88275         * doc/posix-functions/wmemcmp.texi: Likewise.
88276         * doc/posix-functions/wmemcpy.texi: Likewise.
88277         * doc/posix-functions/wmemmove.texi: Likewise.
88278         * doc/posix-functions/wmemset.texi: Likewise.
88279         * doc/posix-functions/wprintf.texi: Likewise.
88280         * doc/posix-functions/wscanf.texi: Likewise.
88282 2008-12-21  Bruno Haible  <bruno@clisp.org>
88284         Work around a portability problem.
88285         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88286         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88288 2008-12-20  Bruno Haible  <bruno@clisp.org>
88290         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88291         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88292         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88294         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88296         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88297         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88298         set.
88299         (GNULIB_defined_mbstate_t): New macro.
88300         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88301         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88302         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88303         reuses the system's mbrtowc function but works around the bugs.
88304         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88305         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88306         macros.
88307         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88308         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88309         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88310         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88311         REPLACE_MBSINIT if mbsinit needs to be overridden.
88312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88313         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88314         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88315         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88316         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88317         m4/locale-zh.m4.
88318         (Depends): Add mbsinit.
88319         * modules/mbsinit (Depends): Add mbrtowc.
88320         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88322 2008-12-20  Bruno Haible  <bruno@clisp.org>
88324         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88325         so that there are no conversion errors on AIX.
88326         * tests/test-mbsrtowcs.c (main): LIkewise.
88328 2008-12-20  Bruno Haible  <bruno@clisp.org>
88330         Work around wctob bug on Solaris <= 9.
88331         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88332         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88334         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88335         * modules/wctob (Files): Add m4/locale-fr.m4.
88336         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88338 2008-12-20  Bruno Haible  <bruno@clisp.org>
88340         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88341         /dev/null.
88342         * tests/test-select-in.sh: Likewise.
88343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88345 2008-12-20  Bruno Haible  <bruno@clisp.org>
88347         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88348         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88349         Cygwin 1.5.x.
88351 2008-12-20  Bruno Haible  <bruno@clisp.org>
88353         Ensure mbstate_t is defined on HP-UX 11.11.
88354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88355         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88356         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88357         AC_USE_SYSTEM_EXTENSIONS.
88358         * modules/fnmatch (Depends-on): Add extensions.
88359         * modules/mbrlen (Depends-on): Likewise.
88360         * modules/mbrtowc (Depends-on): Likewise.
88361         * modules/mbsinit (Depends-on): Likewise.
88362         * modules/mbsrtowcs (Depends-on): Likewise.
88363         * modules/mbswidth (Depends-on): Likewise.
88364         * modules/quotearg (Depends-on): Likewise.
88365         * modules/strftime (Depends-on): Likewise.
88367 2008-12-20  Bruno Haible  <bruno@clisp.org>
88369         Ensure wctob is declared on IRIX 6.5.
88370         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88371         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88372         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88374         of HAVE_WCTOB.
88375         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88376         HAVE_WCTOB.
88377         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88379 2008-12-19  Bruno Haible  <bruno@clisp.org>
88381         * modules/mbsrtowcs-tests: New file.
88382         * tests/test-mbsrtowcs1.sh: New file.
88383         * tests/test-mbsrtowcs2.sh: New file.
88384         * tests/test-mbsrtowcs3.sh: New file.
88385         * tests/test-mbsrtowcs4.sh: New file.
88386         * tests/test-mbsrtowcs.c: New file.
88388         New module 'mbsrtowcs'.
88389         * lib/wchar.in.h (mbsrtowcs): New declaration.
88390         * lib/mbsrtowcs.c: New file.
88391         * m4/mbsrtowcs.m4: New file.
88392         * modules/mbsrtowcs: New file.
88393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88394         HAVE_MBSRTOWCS.
88395         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88396         HAVE_MBSRTOWCS.
88397         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88399 2008-12-19  Bruno Haible  <bruno@clisp.org>
88401         New module 'mbrlen'.
88402         * lib/wchar.in.h (mbrlen): New declaration.
88403         * lib/mbrlen.c: New file.
88404         * m4/mbrlen.m4: New file.
88405         * modules/mbrlen: New file.
88406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88407         HAVE_MBRLEN.
88408         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88409         HAVE_MBRLEN.
88410         * doc/posix-functions/mbrlen.texi: Document the new module.
88412 2008-12-19  Bruno Haible  <bruno@clisp.org>
88414         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88415         * modules/mbrtowc (Depends-on): Add verify.
88416         Suggested by Paul Eggert.
88418 2008-12-18  Bruno Haible  <bruno@clisp.org>
88420         * modules/mbsinit-tests: New file.
88421         * tests/test-mbsinit.sh: New file.
88422         * tests/test-mbsinit.c: New file.
88424 2008-12-18  Bruno Haible  <bruno@clisp.org>
88426         * modules/mbrtowc-tests: New file.
88427         * tests/test-mbrtowc1.sh: New file.
88428         * tests/test-mbrtowc2.sh: New file.
88429         * tests/test-mbrtowc3.sh: New file.
88430         * tests/test-mbrtowc4.sh: New file.
88431         * tests/test-mbrtowc.c: New file.
88433         New module 'mbrtowc'.
88434         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88435         mbsinit and mbrtowc.
88436         (mbrtowc): New declaration.
88437         * lib/mbrtowc.c: New file.
88438         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88439         * modules/mbrtowc: New file.
88440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88441         HAVE_MBRTOWC.
88442         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88443         HAVE_MBRTOWC.
88444         * doc/posix-functions/mbrtowc.texi: Document the new module.
88446 2008-12-18  Bruno Haible  <bruno@clisp.org>
88448         New module 'wctob'.
88449         * lib/wchar.in.h (wctob): New declaration.
88450         * lib/wctob.c: New file.
88451         * m4/wctob.m4: New file.
88452         * modules/wctob: New file.
88453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88454         HAVE_WCTOB.
88455         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88456         * doc/posix-functions/wctob.texi: Document the new module.
88458 2008-12-18  Bruno Haible  <bruno@clisp.org>
88460         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88461         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88463 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88465         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88466         G. Christensen" <tgc@jupiterrise.com>.
88468         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88469         G. Christensen" <tgc@jupiterrise.com>.
88471         * lib/flock.c: Need to include string.h.  Reported by "Tom
88472         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88473         <ebb9@byu.net>.
88475 2008-12-18  Bruno Haible  <bruno@clisp.org>
88477         * m4/locale-ja.m4: New file, from GNU gettext.
88479 2008-12-17  Bruno Haible  <bruno@clisp.org>
88481         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88482         Suggested by Eric Blake.
88484 2008-12-17  Bruno Haible  <bruno@clisp.org>
88486         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88488 2008-12-17  Bruno Haible  <bruno@clisp.org>
88490         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88491         * modules/mbsinit (Depends-on): Add verify.
88492         Suggested by Paul Eggert.
88494 2008-12-17  Bruno Haible  <bruno@clisp.org>
88496         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88497         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88498         gl_FUNC_MBRTOWC.
88499         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88500         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88501         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88502         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88503         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88504         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88505         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88506         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88507         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88508         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88509         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88510         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88511         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88512         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88513         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88514         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88515         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88516         * modules/trim (configure.ac): Likewise.
88518 2008-12-17  Bruno Haible  <bruno@clisp.org>
88520         * modules/btowc-tests: New file.
88521         * tests/test-btowc1.sh: New file.
88522         * tests/test-btowc2.sh: New file.
88523         * tests/test-btowc.c: New file.
88525         New module 'btowc'.
88526         * lib/wchar.in.h (btowc): New declaration.
88527         * lib/btowc.c: New file.
88528         * m4/btowc.m4: New file.
88529         * modules/btowc: New file.
88530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88531         HAVE_BTOWC.
88532         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88533         * doc/posix-functions/btowc.texi: Document the new module.
88535 2008-12-17  Bruno Haible  <bruno@clisp.org>
88537         New module 'mbsinit'.
88538         * lib/wchar.in.h (mbsinit): New declaration.
88539         * lib/mbsinit.c: New file.
88540         * m4/mbsinit.m4: New file.
88541         * modules/mbsinit: New file.
88542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88543         HAVE_MBSINIT.
88544         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88545         HAVE_MBSINIT.
88546         * doc/posix-functions/mbsinit.texi: Document the new module.
88548 2008-12-16  Bruno Haible  <bruno@clisp.org>
88550         * lib/unistd.in.h: Add comment.
88551         * tests/test-environ.c: Don't include <stdlib.h>.
88553 2008-12-16  Bruno Haible  <bruno@clisp.org>
88555         * lib/parse-duration.h (parse_duration): Document return value
88556         convention.
88557         * lib/parse-duration.c: Include specification header first. Add
88558         comments.
88559         (_): Remove macro.
88560         (parse_year_month_day, parse_hour_minute_second): Move side effects
88561         outside of strchr call.
88562         (parse_non_iso8601): Move side effects outside of isspace call.
88563         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88564         call.
88566 2008-12-16  Bruno Haible  <bruno@clisp.org>
88568         * tests/test-parse-duration.sh: Produce no output when the test
88569         succeeds.
88571 2008-12-16  Bruno Haible  <bruno@clisp.org>
88573         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88574         expressions.
88576 2008-12-15  Bruno Haible  <bruno@clisp.org>
88578         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88579         * doc/glibc-functions/flistxattr.texi: Likewise.
88580         * doc/glibc-functions/fopencookie.texi: Likewise.
88581         * doc/glibc-functions/fremovexattr.texi: Likewise.
88582         * doc/glibc-functions/fsetxattr.texi: Likewise.
88583         * doc/glibc-functions/getxattr.texi: Likewise.
88584         * doc/glibc-functions/lgetxattr.texi: Likewise.
88585         * doc/glibc-functions/listxattr.texi: Likewise.
88586         * doc/glibc-functions/llistxattr.texi: Likewise.
88587         * doc/glibc-functions/lremovexattr.texi: Likewise.
88588         * doc/glibc-functions/lsetxattr.texi: Likewise.
88589         * doc/glibc-functions/removexattr.texi: Likewise.
88590         * doc/glibc-functions/setxattr.texi: Likewise.
88591         * doc/posix-functions/open_memstream.texi: Likewise.
88593 2008-12-15  Eric Blake  <ebb9@byu.net>
88595         Update doc for cygwin 1.7.
88596         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88597         functions.
88598         * doc/posix-functions/fchmodat.texi: Likewise.
88599         * doc/posix-functions/fchownat.texi: Likewise.
88600         * doc/posix-functions/fdopendir.texi: Likewise.
88601         * doc/posix-functions/fmemopen.texi: Likewise.
88602         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88603         * doc/posix-functions/fstatat.texi: Likewise.
88604         * doc/posix-functions/futimens.texi: Likewise.
88605         * doc/posix-functions/gai_strerror.texi: Likewise.
88606         * doc/posix-functions/getaddrinfo.texi: Likewise.
88607         * doc/posix-functions/getnameinfo.texi: Likewise.
88608         * doc/posix-functions/if_freenameindex.texi: Likewise.
88609         * doc/posix-functions/if_indextoname.texi: Likewise.
88610         * doc/posix-functions/if_nameindex.texi: Likewise.
88611         * doc/posix-functions/if_nametoindex.texi: Likewise.
88612         * doc/posix-functions/insque.texi: Likewise.
88613         * doc/posix-functions/linkat.texi: Likewise.
88614         * doc/posix-functions/llrint.texi: Likewise.
88615         * doc/posix-functions/llrintf.texi: Likewise.
88616         * doc/posix-functions/llrintl.texi: Likewise.
88617         * doc/posix-functions/lockf.texi: Likewise.
88618         * doc/posix-functions/lrintl.texi: Likewise.
88619         * doc/posix-functions/mkdirat.texi: Likewise.
88620         * doc/posix-functions/mkfifoat.texi: Likewise.
88621         * doc/posix-functions/mknodat.texi: Likewise.
88622         * doc/posix-functions/mq_close.texi: Likewise.
88623         * doc/posix-functions/mq_getattr.texi: Likewise.
88624         * doc/posix-functions/mq_notify.texi: Likewise.
88625         * doc/posix-functions/mq_open.texi: Likewise.
88626         * doc/posix-functions/mq_receive.texi: Likewise.
88627         * doc/posix-functions/mq_send.texi: Likewise.
88628         * doc/posix-functions/mq_setattr.texi: Likewise.
88629         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88630         * doc/posix-functions/mq_timedsend.texi: Likewise.
88631         * doc/posix-functions/mq_unlink.texi: Likewise.
88632         * doc/posix-functions/open_memstream.texi: Likewise.
88633         * doc/posix-functions/openat.texi: Likewise.
88634         * doc/posix-functions/posix_fadvise.texi: Likewise.
88635         * doc/posix-functions/posix_fallocate.texi: Likewise.
88636         * doc/posix-functions/posix_madvise.texi: Likewise.
88637         * doc/posix-functions/posix_memalign.texi: Likewise.
88638         * doc/posix-functions/posix_openpt.texi: Likewise.
88639         * doc/posix-functions/readlinkat.texi: Likewise.
88640         * doc/posix-functions/remque.texi: Likewise.
88641         * doc/posix-functions/renameat.texi: Likewise.
88642         * doc/posix-functions/rintl.texi: Likewise.
88643         * doc/posix-functions/sem_unlink.texi: Likewise.
88644         * doc/posix-functions/shm_open.texi: Likewise.
88645         * doc/posix-functions/shm_unlink.texi: Likewise.
88646         * doc/posix-functions/signgam.texi: Likewise.
88647         * doc/posix-functions/sigset.texi: Likewise.
88648         * doc/posix-functions/stpcpy.texi: Likewise.
88649         * doc/posix-functions/stpncpy.texi: Likewise.
88650         * doc/posix-functions/strerror.texi: Likewise.
88651         * doc/posix-functions/strtod.texi: Likewise.
88652         * doc/posix-functions/symlinkat.texi: Likewise.
88653         * doc/posix-functions/unlinkat.texi: Likewise.
88654         * doc/posix-functions/utimensat.texi: Likewise.
88655         * doc/glibc-functions/bindresvport.texi: Likewise.
88656         * doc/glibc-functions/dn_expand.texi: Likewise.
88657         * doc/glibc-functions/exp10.texi: Likewise.
88658         * doc/glibc-functions/exp10f.texi: Likewise.
88659         * doc/glibc-functions/fgetxattr.texi: Likewise.
88660         * doc/glibc-functions/flistxattr.texi: Likewise.
88661         * doc/glibc-functions/fopencookie.texi: Likewise.
88662         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88663         * doc/glibc-functions/fremovexattr.texi: Likewise.
88664         * doc/glibc-functions/fsetxattr.texi: Likewise.
88665         * doc/glibc-functions/getifaddrs.texi: Likewise.
88666         * doc/glibc-functions/getxattr.texi: Likewise.
88667         * doc/glibc-functions/lgetxattr.texi: Likewise.
88668         * doc/glibc-functions/listxattr.texi: Likewise.
88669         * doc/glibc-functions/llistxattr.texi: Likewise.
88670         * doc/glibc-functions/lremovexattr.texi: Likewise.
88671         * doc/glibc-functions/lsetxattr.texi: Likewise.
88672         * doc/glibc-functions/pow10.texi: Likewise.
88673         * doc/glibc-functions/pow10f.texi: Likewise.
88674         * doc/glibc-functions/rcmd_af.texi: Likewise.
88675         * doc/glibc-functions/removexattr.texi: Likewise.
88676         * doc/glibc-functions/res_init.texi: Likewise.
88677         * doc/glibc-functions/res_mkquery.texi: Likewise.
88678         * doc/glibc-functions/res_query.texi: Likewise.
88679         * doc/glibc-functions/res_querydomain.texi: Likewise.
88680         * doc/glibc-functions/res_send.texi: Likewise.
88681         * doc/glibc-functions/rresvport_af.texi: Likewise.
88682         * doc/glibc-functions/setxattr.texi: Likewise.
88683         * doc/glibc-functions/strcasestr.texi: Likewise.
88685 2008-12-15  Bruno Haible  <bruno@clisp.org>
88687         Fix compilation error on OSF/1 4.0.
88688         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88689         <sys/time.h>, simply delegate to the system header.
88690         Reported by Daniel Richard G. <oss@teragram.com>.
88692 2008-12-15  Bruno Haible  <bruno@clisp.org>
88694         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88695         * doc/posix-functions/fchmodat.texi: Likewise.
88696         * doc/posix-functions/fchownat.texi: Likewise.
88697         * doc/posix-functions/fdopendir.texi: Likewise.
88698         * doc/posix-functions/fstatat.texi: Likewise.
88699         * doc/posix-functions/mkdirat.texi: Likewise.
88700         * doc/posix-functions/unlinkat.texi: Likewise.
88702 2008-12-14  Bruno Haible  <bruno@clisp.org>
88704         Update doc for POSIX:2008.
88705         * doc/posix-functions/faccessat.texi: New file.
88706         * doc/posix-functions/fchmodat.texi: New file.
88707         * doc/posix-functions/fchownat.texi: New file.
88708         * doc/posix-functions/fdopendir.texi: New file.
88709         * doc/posix-functions/fstatat.texi: New file.
88710         * doc/posix-functions/futimens.texi: New file.
88711         * doc/posix-functions/linkat.texi: New file.
88712         * doc/posix-functions/mkdirat.texi: New file.
88713         * doc/posix-functions/mkfifoat.texi: New file.
88714         * doc/posix-functions/mknodat.texi: New file.
88715         * doc/posix-functions/open_wmemstream.texi: New file.
88716         * doc/posix-functions/openat.texi: New file.
88717         * doc/posix-functions/psiginfo.texi: New file.
88718         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88719         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88720         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88721         * doc/posix-functions/readlinkat.texi: New file.
88722         * doc/posix-functions/renameat.texi: New file.
88723         * doc/posix-functions/strerror_l.texi: New file.
88724         * doc/posix-functions/symlinkat.texi: New file.
88725         * doc/posix-functions/unlinkat.texi: New file.
88726         * doc/posix-functions/utimensat.texi: New file.
88727         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88729 2008-12-14  Bruno Haible  <bruno@clisp.org>
88731         Update doc for POSIX:2008.
88732         * doc/posix-functions/alphasort.texi: Renamed from
88733         doc/glibc-functions/alphasort.texi.
88734         * doc/posix-functions/dirfd.texi: Renamed from
88735         doc/glibc-functions/dirfd.texi.
88736         * doc/posix-functions/dprintf.texi: Renamed from
88737         doc/glibc-functions/dprintf.texi.
88738         * doc/posix-functions/duplocale.texi: Renamed from
88739         doc/glibc-functions/duplocale.texi.
88740         * doc/posix-functions/fexecve.texi: Renamed from
88741         doc/glibc-functions/fexecve.texi.
88742         * doc/posix-functions/fmemopen.texi: Renamed from
88743         doc/glibc-functions/fmemopen.texi.
88744         * doc/posix-functions/freelocale.texi: Renamed from
88745         doc/glibc-functions/freelocale.texi.
88746         * doc/posix-functions/getdate_err.texi: Renamed from
88747         doc/glibc-functions/getdate_err.texi.
88748         * doc/posix-functions/isalnum_l.texi: Renamed from
88749         doc/glibc-functions/isalnum_l.texi.
88750         * doc/posix-functions/isalpha_l.texi: Renamed from
88751         doc/glibc-functions/isalpha_l.texi.
88752         * doc/posix-functions/isblank_l.texi: Renamed from
88753         doc/glibc-functions/isblank_l.texi.
88754         * doc/posix-functions/iscntrl_l.texi: Renamed from
88755         doc/glibc-functions/iscntrl_l.texi.
88756         * doc/posix-functions/isdigit_l.texi: Renamed from
88757         doc/glibc-functions/isdigit_l.texi.
88758         * doc/posix-functions/isgraph_l.texi: Renamed from
88759         doc/glibc-functions/isgraph_l.texi.
88760         * doc/posix-functions/islower_l.texi: Renamed from
88761         doc/glibc-functions/islower_l.texi.
88762         * doc/posix-functions/isprint_l.texi: Renamed from
88763         doc/glibc-functions/isprint_l.texi.
88764         * doc/posix-functions/ispunct_l.texi: Renamed from
88765         doc/glibc-functions/ispunct_l.texi.
88766         * doc/posix-functions/isspace_l.texi: Renamed from
88767         doc/glibc-functions/isspace_l.texi.
88768         * doc/posix-functions/isupper_l.texi: Renamed from
88769         doc/glibc-functions/isupper_l.texi.
88770         * doc/posix-functions/iswalnum_l.texi: Renamed from
88771         doc/glibc-functions/iswalnum_l.texi.
88772         * doc/posix-functions/iswalpha_l.texi: Renamed from
88773         doc/glibc-functions/iswalpha_l.texi.
88774         * doc/posix-functions/iswblank_l.texi: Renamed from
88775         doc/glibc-functions/iswblank_l.texi.
88776         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88777         doc/glibc-functions/iswcntrl_l.texi.
88778         * doc/posix-functions/iswctype_l.texi: Renamed from
88779         doc/glibc-functions/iswctype_l.texi.
88780         * doc/posix-functions/iswdigit_l.texi: Renamed from
88781         doc/glibc-functions/iswdigit_l.texi.
88782         * doc/posix-functions/iswgraph_l.texi: Renamed from
88783         doc/glibc-functions/iswgraph_l.texi.
88784         * doc/posix-functions/iswlower_l.texi: Renamed from
88785         doc/glibc-functions/iswlower_l.texi.
88786         * doc/posix-functions/iswprint_l.texi: Renamed from
88787         doc/glibc-functions/iswprint_l.texi.
88788         * doc/posix-functions/iswpunct_l.texi: Renamed from
88789         doc/glibc-functions/iswpunct_l.texi.
88790         * doc/posix-functions/iswspace_l.texi: Renamed from
88791         doc/glibc-functions/iswspace_l.texi.
88792         * doc/posix-functions/iswupper_l.texi: Renamed from
88793         doc/glibc-functions/iswupper_l.texi.
88794         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88795         doc/glibc-functions/iswxdigit_l.texi.
88796         * doc/posix-functions/isxdigit_l.texi: Renamed from
88797         doc/glibc-functions/isxdigit_l.texi.
88798         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88799         doc/glibc-functions/mbsnrtowcs.texi.
88800         * doc/posix-functions/mkdtemp.texi: Renamed from
88801         doc/glibc-functions/mkdtemp.texi.
88802         * doc/posix-functions/newlocale.texi: Renamed from
88803         doc/glibc-functions/newlocale.texi.
88804         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88805         doc/glibc-functions/nl_langinfo_l.texi.
88806         * doc/posix-functions/open_memstream.texi: Renamed from
88807         doc/glibc-functions/open_memstream.texi.
88808         * doc/posix-functions/opterr.texi: Renamed from
88809         doc/glibc-functions/opterr.texi.
88810         * doc/posix-functions/optind.texi: Renamed from
88811         doc/glibc-functions/optind.texi.
88812         * doc/posix-functions/optopt.texi: Renamed from
88813         doc/glibc-functions/optopt.texi.
88814         * doc/posix-functions/psignal.texi: Renamed from
88815         doc/glibc-functions/psignal.texi.
88816         * doc/posix-functions/scandir.texi: Renamed from
88817         doc/glibc-functions/scandir.texi.
88818         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88819         doc/glibc-functions/sched_get_priority_min.texi.
88820         * doc/posix-functions/signgam.texi: Renamed from
88821         doc/glibc-functions/signgam.texi.
88822         * doc/posix-functions/stpcpy.texi: Renamed from
88823         doc/glibc-functions/stpcpy.texi.
88824         * doc/posix-functions/stpncpy.texi: Renamed from
88825         doc/glibc-functions/stpncpy.texi.
88826         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88827         doc/glibc-functions/strcasecmp_l.texi.
88828         * doc/posix-functions/strcoll_l.texi: Renamed from
88829         doc/glibc-functions/strcoll_l.texi.
88830         * doc/posix-functions/strfmon_l.texi: Renamed from
88831         doc/glibc-functions/strfmon_l.texi.
88832         * doc/posix-functions/strftime_l.texi: Renamed from
88833         doc/glibc-functions/strftime_l.texi.
88834         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88835         doc/glibc-functions/strncasecmp_l.texi.
88836         * doc/posix-functions/strndup.texi: Renamed from
88837         doc/glibc-functions/strndup.texi.
88838         * doc/posix-functions/strnlen.texi: Renamed from
88839         doc/glibc-functions/strnlen.texi.
88840         * doc/posix-functions/strsignal.texi: Renamed from
88841         doc/glibc-functions/strsignal.texi.
88842         * doc/posix-functions/strxfrm_l.texi: Renamed from
88843         doc/glibc-functions/strxfrm_l.texi.
88844         * doc/posix-functions/timer_gettime.texi: Renamed from
88845         doc/glibc-functions/timer_gettime.texi.
88846         * doc/posix-functions/tolower_l.texi: Renamed from
88847         doc/glibc-functions/tolower_l.texi.
88848         * doc/posix-functions/toupper_l.texi: Renamed from
88849         doc/glibc-functions/toupper_l.texi.
88850         * doc/posix-functions/towctrans_l.texi: Renamed from
88851         doc/glibc-functions/towctrans_l.texi.
88852         * doc/posix-functions/towlower_l.texi: Renamed from
88853         doc/glibc-functions/towlower_l.texi.
88854         * doc/posix-functions/towupper_l.texi: Renamed from
88855         doc/glibc-functions/towupper_l.texi.
88856         * doc/posix-functions/uselocale.texi: Renamed from
88857         doc/glibc-functions/uselocale.texi.
88858         * doc/posix-functions/vdprintf.texi: Renamed from
88859         doc/glibc-functions/vdprintf.texi.
88860         * doc/posix-functions/wcpcpy.texi:
88861         Renamed from doc/glibc-functions/wcpcpy.texi.
88862         * doc/posix-functions/wcpncpy.texi: Renamed from
88863         doc/glibc-functions/wcpncpy.texi.
88864         * doc/posix-functions/wcscasecmp.texi: Renamed from
88865         doc/glibc-functions/wcscasecmp.texi.
88866         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88867         doc/glibc-functions/wcscasecmp_l.texi.
88868         * doc/posix-functions/wcscoll_l.texi: Renamed from
88869         doc/glibc-functions/wcscoll_l.texi.
88870         * doc/posix-functions/wcsdup.texi: Renamed from
88871         doc/glibc-functions/wcsdup.texi.
88872         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88873         doc/glibc-functions/wcsncasecmp.texi.
88874         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88875         doc/glibc-functions/wcsncasecmp_l.texi.
88876         * doc/posix-functions/wcsnlen.texi: Renamed from
88877         doc/glibc-functions/wcsnlen.texi.
88878         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88879         doc/glibc-functions/wcsnrtombs.texi.
88880         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88881         doc/glibc-functions/wcsxfrm_l.texi.
88882         * doc/posix-functions/wctrans_l.texi: Renamed from
88883         doc/glibc-functions/wctrans_l.texi.
88884         * doc/posix-functions/wctype_l.texi: Renamed from
88885         doc/glibc-functions/wctype_l.texi.
88886         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88887         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88888         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88889         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88890         these subsections.
88891         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88892         Remove sections.
88894 2008-12-14  Bruno Haible  <bruno@clisp.org>
88896         Update doc for POSIX:2008.
88897         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88899 2008-12-14  Bruno Haible  <bruno@clisp.org>
88901         Update doc for POSIX:2008.
88902         * doc/pastposix-functions/bcmp.texi: Renamed from
88903         doc/posix-functions/bcmp.texi.
88904         * doc/pastposix-functions/bcopy.texi: Renamed from
88905         doc/posix-functions/bcopy.texi.
88906         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88907         doc/posix-functions/bsd_signal.texi.
88908         * doc/pastposix-functions/bzero.texi: Renamed from
88909         doc/posix-functions/bzero.texi.
88910         * doc/pastposix-functions/ecvt.texi: Renamed from
88911         doc/posix-functions/ecvt.texi.
88912         * doc/pastposix-functions/fcvt.texi: Renamed from
88913         doc/posix-functions/fcvt.texi.
88914         * doc/pastposix-functions/ftime.texi: Renamed from
88915         doc/posix-functions/ftime.texi.
88916         * doc/pastposix-functions/gcvt.texi: Renamed from
88917         doc/posix-functions/gcvt.texi.
88918         * doc/pastposix-functions/getcontext.texi: Renamed from
88919         doc/posix-functions/getcontext.texi.
88920         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88921         doc/posix-functions/gethostbyaddr.texi.
88922         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88923         doc/posix-functions/gethostbyname.texi.
88924         * doc/pastposix-functions/getwd.texi: Renamed from
88925         doc/posix-functions/getwd.texi.
88926         * doc/pastposix-functions/h_errno.texi: Renamed from
88927         doc/posix-functions/h_errno.texi.
88928         * doc/pastposix-functions/index.texi: Renamed from
88929         doc/posix-functions/index.texi.
88930         * doc/pastposix-functions/makecontext.texi: Renamed from
88931         doc/posix-functions/makecontext.texi.
88932         * doc/pastposix-functions/mktemp.texi: Renamed from
88933         doc/posix-functions/mktemp.texi.
88934         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88935         doc/posix-functions/pthread_attr_getstackaddr.texi.
88936         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88937         doc/posix-functions/pthread_attr_setstackaddr.texi.
88938         * doc/pastposix-functions/rindex.texi: Renamed from
88939         doc/posix-functions/rindex.texi.
88940         * doc/pastposix-functions/scalb.texi: Renamed from
88941         doc/posix-functions/scalb.texi.
88942         * doc/pastposix-functions/setcontext.texi: Renamed from
88943         doc/posix-functions/setcontext.texi.
88944         * doc/pastposix-functions/swapcontext.texi: Renamed from
88945         doc/posix-functions/swapcontext.texi.
88946         * doc/pastposix-functions/ualarm.texi: Renamed from
88947         doc/posix-functions/ualarm.texi.
88948         * doc/pastposix-functions/usleep.texi: Renamed from
88949         doc/posix-functions/usleep.texi.
88950         * doc/pastposix-functions/vfork.texi: Renamed from
88951         doc/posix-functions/vfork.texi.
88952         * doc/pastposix-functions/wcswcs.texi: Renamed from
88953         doc/posix-functions/wcswcs.texi.
88954         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88955         (Function Substitutes): Update.
88957 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88959         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88960         m4/strerror.m4.
88962 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88963             Bruno Haible  <bruno@clisp.org>
88965         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88967 2008-12-13  Bruno Haible  <bruno@clisp.org>
88969         * modules/strtoull (Depends-on): Remove unistd.
88971 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88973         * modules/strtoull (Depends-on): Add stdlib.
88975 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88977         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88979 2008-12-10  Jim Meyering  <meyering@redhat.com>
88981         gl_ASSERT: don't say assertions are disabled when they're not
88982         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88983         "checking whether to enable assertions... no", when they are in
88984         fact enabled.  This is solely a bug in the output of configure.
88985         In spite of saying "no", NDEBUG was not defined in that case.
88986         Also, as noted by Eric Blake, leave assertions enabled upon
88987         --enable-assert=INVALID.
88989 2008-12-10  Bruno Haible  <bruno@clisp.org>
88991         Change MODULES.html to refer to POSIX:2008 where possible.
88992         * MODULES.html.sh (POSIX2008_URL): New variable.
88993         (posix_headers): Remove sys/timeb, ucontext.
88994         (posix2001_headers): New variable.
88995         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88996         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88997         index, makecontext, mktemp, pthread_attr_getstackaddr,
88998         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88999         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89000         (posix2001_functions): New variable.
89001         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89002         otherwise.
89004 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89006         add missing include to parse-duration.c
89007         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89008         * modules/parse-duration (Depends-on): Add xalloc.
89010         fix sed script reading maint.mk
89011         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89012         (syntax-check-rules): Use it.
89014 2008-12-09  Bruno Haible  <bruno@clisp.org>
89016         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89017         MacOS X 10.4/PowerPC.
89018         Reported by Simon Josefsson.
89020 2008-12-08  Jim Meyering  <meyering@redhat.com>
89022         work around mingw's lack of some S_IF definitions
89023         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89024         Reported by Simon Josefsson.
89026 2008-12-08  Bruno Haible  <bruno@clisp.org>
89028         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89029         applied to variables. Needed on MacOS X 10.4/PowerPC.
89030         Reported by Simon Josefsson.
89032 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89033         and Eric Blake  <ebb9@byu.net>
89035         assert: honor --enable-assert
89036         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89037         order to honor --enable-assert, rather than treating it as a
89038         synonym for --disable-assert.
89040 2008-12-08  Jim Meyering  <meyering@redhat.com>
89042         * lib/posixtm.c: Remove now-useless declaration of mktime.
89044         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89046 2008-12-07  Bruno Haible  <bruno@clisp.org>
89048         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89049         test_once): Mark functions as static.
89050         * tests/test-tls.c (test_tls): Likewise.
89052 2008-12-07  Bruno Haible  <bruno@clisp.org>
89054         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89055         iconv_register_autodetect.
89057 2008-12-07  Jim Meyering  <meyering@redhat.com>
89059         posixtm.c: avoid a warning
89060         * lib/posixtm.c (posixtime): Don't initialize tm0.
89061         It's no longer needed to placate gcc4's -Wuninitialized,
89062         and the attempt to placate would elicit a new warning.
89064         unicodeio.c: mark unused parameters
89065         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89066         (fallback_failure_callback): Likewise.
89068 2008-12-07  Bruno Haible  <bruno@clisp.org>
89070         * gnulib-tool (func_create_testdir): When building the tests
89071         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89072         Reported by Simon Josefsson.
89074 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89076         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89078 2008-12-06  Bruno Haible  <bruno@clisp.org>
89080         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89081         Suggested by Eric Blake.
89083 2008-12-06  Bruno Haible  <bruno@clisp.org>
89085         Fix a c-stack test failure on MacOS X.
89086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89087         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89088         handler for SIGBUS as well.
89089         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89090         install a signal handler for SIGBUS as well.
89091         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89093 2008-12-06  Bruno Haible  <bruno@clisp.org>
89095         Advocacy documentation.
89096         * doc/gnulib-intro.texi (Benefits): New section.
89097         * doc/gnulib.texi: Update.
89099 2008-12-06  Bruno Haible  <bruno@clisp.org>
89101         Document the 'manywarnings' module.
89102         * doc/manywarnings.texi: New file.
89103         * doc/gnulib.texi: Include it.
89105 2008-12-05  Eric Blake  <ebb9@byu.net>
89107         tests: silence some gcc warnings
89108         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89109         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89110         type mismatches.
89112 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89113             Bruno Haible  <bruno@clisp.org>
89115         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89117 2008-11-29  Jim Meyering  <meyering@redhat.com>
89119         unicodeio.c: mark unused parameters
89120         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89121         (fallback_failure_callback): Likewise.
89123         fts: fix a thinko
89124         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89125         (set_stat_type): Return S_IF*-valued "type" directly.
89126         Prompted by James Youngman's spotting a related bug.
89127         Confirmed by further testing through find.
89129         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89130         * lib/fts.c (D_TYPE): Define.
89131         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89132         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89133         (s_ifmt_shift_bits): New function.
89134         (set_stat_type): New function.
89135         (fts_build): When not calling fts_stat, call set_stat_type
89136         to propagate dirent.d_type info to fts_read caller.
89137         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89138         fts_statp->st_mode type information may be valid.
89140 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89142         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89143         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89144         <sds@gnu.org>.
89146 2008-11-20  Bruno Haible  <bruno@clisp.org>
89148         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89149         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89150         INCLUDE_NEXT.
89151         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89152         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89153         * modules/math (Makefile.am): Substitute
89154         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89155         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89157 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89158             Bruno Haible  <bruno@clisp.org>
89160         * lib/stdint.in.h: Define all type macros so that their expansion is
89161         a single typedef'ed token. Fixes a compilation failure in Boost which
89162         does "using ::int8_t;".
89164 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89166         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89167         gl_MANYWARN_ALL_GCC.
89168         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89169         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89170         * modules/manywarnings: New file.
89171         * MODULES.html.sh: Mention manywarnings module.
89173 2008-11-18  Bruno Haible  <bruno@clisp.org>
89175         * doc/gnulib-tool.texi (Unit tests): New section.
89177 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89179         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89180         paths like 'lib/po/foo.po'.
89182 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89184         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89185         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89187 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89189         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89190         parameter works.
89192 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89194         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89196 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89198         * modules/parse-duration-tests: New file.
89199         * tests/test-parse-duration.sh: New file.
89200         * tests/test-parse-duration.c: New file.
89202         New module 'parse-duration'.
89203         * lib/parse-duration.h: New file.
89204         * lib/parse-duration.c: New file.
89205         * modules/parse-duration: New file.
89207 2008-11-17  Bruno Haible  <bruno@clisp.org>
89209         * tests/test-select-out.sh: Comment out the first pipe test.
89210         Reported by Simon Josefsson.
89212 2008-11-17  Bruno Haible  <bruno@clisp.org>
89214         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89215         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89216         gl_HOSTENT.
89218 2008-11-17  Bruno Haible  <bruno@clisp.org>
89220         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89221         -lnetwork and -lnet. Needed for Haiku and BeOS.
89223 2008-11-16  Bruno Haible  <bruno@clisp.org>
89225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89227 2008-11-16  Bruno Haible  <bruno@clisp.org>
89229         Avoid test failure on Haiku.
89230         * tests/test-fsync.c: Include <errno.h>.
89231         (main): Don't require that fsync (0) fails.
89233 2008-11-15  Bruno Haible  <bruno@clisp.org>
89235         New module 'hostent'.
89236         * modules/hostent: New file.
89237         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89239 2008-11-15  Bruno Haible  <bruno@clisp.org>
89241         New module 'servent'.
89242         * modules/servent: New file.
89243         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89245 2008-11-15  Bruno Haible  <bruno@clisp.org>
89247         Avoid generating same test program with two different rules.
89248         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89249         test-frexp to test-frexp-nolibm.
89250         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89251         test-frexpl to test-frexpl-nolibm.
89253 2008-11-15  Bruno Haible  <bruno@clisp.org>
89255         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89256         $(FREXPL_LIBM).
89258 2008-11-15  Bruno Haible  <bruno@clisp.org>
89260         * lib/netdb.in.h: Activate the definitions also when the system's
89261         <netdb.h> has 'struct addrinfo'.
89262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89263         EAI_OVERFLOW or AI_NUMERICSERV.
89264         * doc/posix-headers/netdb.texi: Document the problem.
89266 2008-11-15  Bruno Haible  <bruno@clisp.org>
89268         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89270         Make the 'sched' module work on platforms where <sched.h> exists but
89271         is incomplete (such as Haiku).
89272         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89273         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89274         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89275         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89276         HAVE_STRUCT_SCHED_PARAM.
89277         * modules/sched (Depends-on): Add include_next.
89278         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89279         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89280         * doc/posix-headers/sched.texi: Document the issue.
89282 2008-11-13  Jim Meyering  <meyering@redhat.com>
89284         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89285         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89286         test would fail due to the difference in the Report bugs to ...
89287         line.  The expected address is empty, "<>", while the actual
89288         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89290 2008-11-12  Bruno Haible  <bruno@clisp.org>
89292         lstat: don't compile lstat.c on systems lacking lstat
89293         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89294         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89295         Reported by Daniel P. Berrange via Jim Meyering.
89297 2008-11-12  Jim Meyering  <meyering@redhat.com>
89299         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89301 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89303         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89304         instead.
89306 2008-11-12  Bruno Haible  <bruno@clisp.org>
89308         * lib/unicodeio.c: Include unistr.h.
89309         (utf8_wctomb): Remove function.
89310         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89312 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89314         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89315         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89316         <bruno@clisp.org>.
89317         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89319 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89321         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89322         * doc/gnulib.texi: Add section for warnings.
89324 2008-11-11  Bruno Haible  <bruno@clisp.org>
89326         * lib/sockets.h: Add a comment.
89328 2008-11-11  Karl Berry  <karl@gnu.org>
89330         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89332 2008-11-11  Eric Blake  <ebb9@byu.net>
89334         fdl.texi: avoid git symlinks
89335         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89337 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89339         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89341 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89343         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89344         (gl_WARN_ADD): Substitute $2 if literal.
89346 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89348         * m4/warning.m4: Remove.
89350 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89352         * m4/warnings.m4: Almost complete rewrite. :-)
89354 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89356         * modules/warnings: New module.
89357         * m4/warnings.m4: New file.
89358         * MODULES.html.sh: Mention warnings module.
89359         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89360         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89362 2008-11-10  Eric Blake  <ebb9@byu.net>
89364         fdl.texi: make a symlink to the latest version
89365         * doc/standards.texi: Revert today's earlier change.
89366         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89367         * doc/fdl.texi: ...and replace this with a symlink to the newer
89368         fdl-1.3.texi.
89370 2008-11-10  Bruno Haible  <bruno@clisp.org>
89372         * tests/test-select-fd.c (main): Accept the result file name as fourth
89373         argument.
89374         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89375         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89377 2008-11-10  Bruno Haible  <bruno@clisp.org>
89379         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89380         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89381         as autoconf-substituted macros.
89382         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89384         gl_NETDB_H_DEFAULTS. Set these variables.
89385         * modules/netdb (Makefile.am): Substitute these variables.
89387 2008-11-10  Eric Blake  <ebb9@byu.net>
89389         standards.texi: include correct file for FDL 1.3
89390         * doc/standards.texi (GNU Free Documentation License): Change
89391         include file to pull in FDL 1.3, not 1.2.
89393         fdl.texi: revert accidental change to license
89394         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89396 2008-11-10  Bruno Haible  <bruno@clisp.org>
89398         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89399         cross-compiling guesses also when the native compile gives no result.
89401 2008-11-10  Bruno Haible  <bruno@clisp.org>
89403         * lib/spawni.c (__spawni): Force variable into the stack.
89405 2008-11-10  Bruno Haible  <bruno@clisp.org>
89407         Add support for Haiku.
89408         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89409         glibc and BeOS, but also on Haiku.
89410         * lib/fpurge.c (fpurge): Likewise.
89411         * lib/freadable.c (freadable): Likewise.
89412         * lib/freadahead.c (freadahead): Likewise.
89413         * lib/freading.c (freading): Likewise.
89414         * lib/freadptr.c (freadptr): Likewise.
89415         * lib/freadseek.c (freadptrinc): Likewise.
89416         * lib/fseeko.c (rpl_fseeko): Likewise.
89417         * lib/fseterr.c (fseterr): Likewise.
89418         * lib/fwritable.c (fwritable): Likewise.
89419         * lib/fwriting.c (fwriting): Likewise.
89420         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89422 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89424         * lib/config.charset: Treat Haiku like BeOS.
89426 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89428         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89429         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89431 2008-11-08  Bruno Haible  <bruno@clisp.org>
89433         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89434         AC_CACHE_CHECK.
89436 2008-11-08  Bruno Haible  <bruno@clisp.org>
89438         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89440 2008-11-08  Bruno Haible  <bruno@clisp.org>
89442         * tests/test-select-fd.c: New file.
89443         * tests/test-select-in.sh: New file.
89444         * tests/test-select-out.sh: New file.
89445         * tests/test-select-stdin.c: New file.
89446         * modules/select-tests (Files): Add the new files.
89447         (Depends-on): Add gettimeofday.
89448         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89449         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89450         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89452 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89453             Bruno Haible  <bruno@clisp.org>
89455         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89457 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89459         * build-aux/pmccabe2html: Added support for C++ source files.
89461 2008-11-05  Ben Pfaff  <blp@gnu.org>
89463         Fix lib/close.c build on Windows.
89464         * modules/close (Files): Add lib/w32sock.h.
89466 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89468         Accept Bison's NEWS format.
89469         * build-aux/announce-gen (print_news_deltas): Tweak
89470         $re_prefix.
89472 2008-11-04  Bruno Haible  <bruno@clisp.org>
89474         * modules/random_r (Maintainer): Add glibc.
89476 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89478         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89479         by karl@freefriends.org (Karl Berry).
89480         * doc/alloca.texi: Likewise.
89481         * doc/c-ctype.texi: Likewise.
89482         * doc/c-strcase.texi: Likewise.
89483         * doc/c-strcaseeq.texi: Likewise.
89484         * doc/c-strcasestr.texi: Likewise.
89485         * doc/c-strstr.texi: Likewise.
89486         * doc/c-strtod.texi: Likewise.
89487         * doc/c-strtold.texi: Likewise.
89488         * doc/ctime.texi: Likewise.
89489         * doc/error.texi: Likewise.
89490         * doc/fdl.texi: Likewise.
89491         * doc/gcd.texi: Likewise.
89492         * doc/getdate.texi: Likewise.
89493         * doc/gnulib-intro.texi: Likewise.
89494         * doc/gnulib-tool.texi: Likewise.
89495         * doc/gnulib.texi: Likewise.
89496         * doc/inet_ntoa.texi: Likewise.
89497         * doc/maintain.texi: Likewise.
89498         * doc/make-stds.texi: Likewise.
89499         * doc/quote.texi: Likewise.
89500         * doc/regexprops-generic.texi: Likewise.
89501         * doc/standards.texi: Likewise.
89502         * doc/verify.texi: Likewise.
89503         * doc/visibility.texi: Likewise.
89504         * doc/gnulib.texi (GNU Free Documentation License): Include
89505         fdl-1.3.texi instead of fdl.texi.
89507 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89509         * doc/fdl-1.3.texi: New file, from
89510         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89511         * modules/fdl-1.3: Add.
89512         * MODULES.html.sh: Add fdl-1.3.
89514 2008-11-03  Bruno Haible  <bruno@clisp.org>
89516         Make determination of absolute name of header file work with AIX xlc.
89517         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89518         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89519         preprocessing.
89520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89521         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89523 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89525         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89526         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89527         <ludo@gnu.org>.
89529 2008-11-02  Bruno Haible  <bruno@clisp.org>
89531         Mark 'strpbrk' obsolete.
89532         * modules/strpbrk (Status, Notice): New sections.
89533         * modules/strtok_r (Depends-on): Add strpbrk.
89535 2008-11-02  Bruno Haible  <bruno@clisp.org>
89537         Mark 'strdup' obsolete.
89538         * modules/strdup (Status, Notice): New sections.
89539         * modules/findprog (Depends-on): Add strdup.
89540         * modules/getaddrinfo (Depends-on): Likewise.
89541         * modules/localename (Depends-on): Likewise.
89542         * modules/relocatable-lib (Depends-on): Likewise.
89543         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89544         * modules/relocatable-prog (Depends-on): Likewise.
89545         * modules/trim (Depends-on): Likewise.
89546         * modules/unictype/gen-ctype (Depends-on): Likewise.
89547         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89549 2008-11-02  Bruno Haible  <bruno@clisp.org>
89551         Mark 'strcspn' obsolete.
89552         * modules/strcspn (Status, Notice): New sections.
89554 2008-11-02  Bruno Haible  <bruno@clisp.org>
89556         Mark 'rmdir' obsolete.
89557         * modules/rmdir (Status, Notice): New sections.
89558         * modules/clean-temp (Depends-on): Add rmdir.
89559         * modules/openat (Depends-on): Likewise.
89561 2008-11-02  Bruno Haible  <bruno@clisp.org>
89563         Mark 'raise' obsolete.
89564         * modules/raise (Status, Notice): New sections.
89565         (Include): Specify <signal.h>.
89566         * modules/stdio (Depends-on): Add raise.
89567         * modules/write (Depends-on): Likewise.
89569 2008-11-02  Bruno Haible  <bruno@clisp.org>
89571         Mark 'memset' obsolete.
89572         * modules/memset (Status, Notice): New sections.
89574 2008-11-02  Bruno Haible  <bruno@clisp.org>
89576         Mark 'memmove' obsolete.
89577         * modules/memmove (Status, Notice): New sections.
89578         * modules/argp (Depends-on): Add memmove.
89579         * modules/argz (Depends-on): Likewise.
89580         * modules/canonicalize (Depends-on): Likewise.
89581         * modules/canonicalize-lgpl (Depends-on): Likewise.
89582         * modules/fts (Depends-on): Likewise.
89583         * modules/getcwd (Depends-on): Likewise.
89584         * modules/human (Depends-on): Likewise.
89585         * modules/regex (Depends-on): Likewise.
89586         * modules/striconveh (Depends-on): Likewise.
89587         * modules/trim (Depends-on): Likewise.
89588         * modules/unistr/u8-move (Depends-on): Likewise.
89589         * modules/unistr/u16-move (Depends-on): Likewise.
89590         * modules/unistr/u32-move (Depends-on): Likewise.
89592 2008-11-02  Bruno Haible  <bruno@clisp.org>
89594         Mark 'memcpy' obsolete.
89595         * modules/memcpy (Status, Notice): New sections.
89597 2008-11-02  Bruno Haible  <bruno@clisp.org>
89599         Mark 'memcmp' obsolete.
89600         * modules/memcmp (Status, Notice): New sections.
89601         * modules/argmatch (Depends-on): Add memchr.
89602         * modules/backupfile (Depends-on): Likewise.
89603         * modules/c-strcasestr (Depends-on): Likewise.
89604         * modules/crypto/des (Depends-on): Likewise.
89605         * modules/csharpcomp (Depends-on): Likewise.
89606         * modules/fnmatch (Depends-on): Likewise.
89607         * modules/git-merge-changelog (Depends-on): Likewise.
89608         * modules/isnand (Depends-on): Likewise.
89609         * modules/isnand-nolibm (Depends-on): Likewise.
89610         * modules/isnanf (Depends-on): Likewise.
89611         * modules/isnanf-nolibm (Depends-on): Likewise.
89612         * modules/isnanl (Depends-on): Likewise.
89613         * modules/isnanl-nolibm (Depends-on): Likewise.
89614         * modules/mbchar (Depends-on): Likewise.
89615         * modules/memcoll (Depends-on): Likewise.
89616         * modules/quotearg (Depends-on): Likewise.
89617         * modules/regex (Depends-on): Likewise.
89618         * modules/relocatable-prog (Depends-on): Likewise.
89619         * modules/same (Depends-on): Likewise.
89620         * modules/signbit (Depends-on): Likewise.
89621         * modules/strcasestr-simple (Depends-on): Likewise.
89622         * modules/unictype/gen-ctype (Depends-on): Likewise.
89623         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89624         * modules/uniname/uniname (Depends-on): Likewise.
89625         * modules/unistr/u8-cmp (Depends-on): Likewise.
89627 2008-11-02  Bruno Haible  <bruno@clisp.org>
89629         Mark 'memchr' obsolete.
89630         * modules/memchr (Status, Notice): New sections.
89631         * modules/argp (Depends-on): Add memchr.
89632         * modules/base64 (Depends-on): Likewise.
89633         * modules/c-strcasestr (Depends-on): Likewise.
89634         * modules/chdir-long (Depends-on): Likewise.
89635         * modules/fnmatch (Depends-on): Likewise.
89636         * modules/getsubopt (Depends-on): Likewise.
89637         * modules/git-merge-changelog (Depends-on): Likewise.
89638         * modules/glob (Depends-on): Likewise.
89639         * modules/strcasestr-simple (Depends-on): Likewise.
89640         * modules/strnlen (Depends-on): Likewise.
89642 2008-11-02  Bruno Haible  <bruno@clisp.org>
89644         Mark 'atexit' obsolete.
89645         * modules/atexit (Status, Notice): New sections.
89646         * modules/chdir-long (Depends-on): Add atexit.
89647         * modules/wait-process (Depends-on): Likewise.
89649 2008-11-02  Bruno Haible  <bruno@clisp.org>
89651         * gnulib-tool: New option --with-obsolete.
89652         (func_usage): Document it.
89653         (func_modules_transitive_closure): Drop obsolete dependencies if
89654         incobsolete is not true.
89655         (func_import): Read and save the incobsolete variable to the cache.
89657 2008-11-02  Bruno Haible  <bruno@clisp.org>
89659         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89660         * gnulib-tool: New option --extract-status.
89661         (func_usage): Document it.
89662         (sed_extract_prog): Recognize it.
89663         (func_get_status): New function.
89665 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89667         * modules/sockets (License): Change from LGPL to LGPLv2+.
89669 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89671         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89673 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89675         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89676         Mention times and sys_times.
89677         * modules/sys_times, modules/sys_times-tests: New modules.
89678         * modules/times, modules/times-tests: Likewise
89679         * m4/sys_times_h.m4: New file.
89680         * lib/sys_times.in.h: Likewise
89681         * lib/times.c: Likewise.
89682         * tests/test-sys_times.c: Likewise.
89683         * tests/test-times.c: Likewise.
89684         * doc/posix-headers/sys_times.texi: Update.
89685         * doc/posix-functions/times.texi: Update.
89687 2008-10-28  Jim Meyering  <meyering@redhat.com>
89689         * modules/tempname (Depends-on): Add lstat.
89691         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89693 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89695         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89696         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89697         using idiom used elsewhere in gnulib.
89699 2008-10-27  Jim Meyering  <meyering@redhat.com>
89701         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89703 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89705         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89706         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89707         programs.
89708         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89710 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89712         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89714 2008-10-27  Bruno Haible  <bruno@clisp.org>
89716         * tests/test-lstat.c: Include <stdio.h>.
89718 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89720         * modules/lstat-tests: New module.
89721         * tests/test-lstat.c: New file.
89723 2008-10-26  Jim Meyering  <meyering@redhat.com>
89725         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89727 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89728             Bruno Haible  <bruno@clisp.org>
89730         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89731         * modules/configmake (Include): Add a note that the include must come
89732         after all system headers.
89733         * lib/javaversion.c: Include configmake.h after all other includes.
89735 2008-10-26  Bruno Haible  <bruno@clisp.org>
89737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89738         HAVE_STRUCT_RANDOM_DATA to 1.
89739         (gl_STDLIB_H): Simplify.
89741 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89743         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89744         substitute HAVE_STRUCT_RANDOM_DATA.
89745         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89746         random_data.
89747         * modules/stdlib (Makefile.am): Substitute
89748         HAVE_STRUCT_RANDOM_DATA.
89750 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89752         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89753         * doc/gnulib-intro.texi (Copyright): Likewise.
89755 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89757         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89758         findings.
89760 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89761             Bruno Haible  <bruno@clisp.org>
89763         * lib/unistd.in.h: Include <winsock2.h>.
89764         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89765         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89766         Provide dummy declarations.
89767         (gethostname): Override.
89768         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89769         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89770         gl_PREREQ_SYS_H_WINSOCK2.
89771         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89772         * doc/posix-functions/gethostname.texi: More details.
89774 2008-10-25  Bruno Haible  <bruno@clisp.org>
89776         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89777         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89778         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89780         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89781         here ...
89782         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89783         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89784         gl_UNISTD_H_DEFAULTS.
89786 2008-10-25  Eric Blake  <ebb9@byu.net>
89788         signbit: avoid spurious compiler failure
89789         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89790         declarations inside function.
89792 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89793             Bruno Haible  <bruno@clisp.org>
89795         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89796         * modules/random_r (Depends-on): Add stdint.
89798 2008-10-24  Bruno Haible  <bruno@clisp.org>
89800         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89801         Eggert.
89802         * modules/strerror (License): Likewise.
89804 2008-10-24  Jim Meyering  <meyering@redhat.com>
89806         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89807         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89809 2008-10-24  Eric Blake  <ebb9@byu.net>
89811         getgroups: fix compilation when getgroups is available
89812         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89813         but with <config.h> override of getgroups disabled.
89815 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89817         * doc/gnulib.texi (Header files): Add note about C++ problems.
89818         Explained by Bruno Haible <bruno@clisp.org>.
89820 2008-10-23  Bruno Haible  <bruno@clisp.org>
89822         Define a dummy SA_NODEFER macro on Interix.
89823         * lib/signal.in.h (SA_NODEFER): Define fallback.
89824         Reported by Aleksey Cheusov <cheusov@tut.by> via
89825         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89827 2008-10-23  Bruno Haible  <bruno@clisp.org>
89829         * modules/freadahead (License): Change to LGPLv2+.
89830         Suggested by Simon Josefsson.
89832 2008-10-23  Jim Meyering  <meyering@redhat.com>
89834         random_r: new module
89835         * modules/random_r: New file.
89836         * m4/random_r.m4: New file.
89837         * lib/random_r.c: New file, from glibc.
89838         * modules/random_r-tests: New file.
89839         * tests/test-random_r.c: New file.
89840         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89841          Declare.
89842         (RAND_MAX): Define.
89843         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89844         * modules/stdlib: Substitute them, too.
89845         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89846         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89847         * doc/glibc-functions/random_r.texi: Likewise.
89848         * doc/glibc-functions/setstate_r.texi: Likewise.
89849         * doc/glibc-functions/srandom_r.texi: Likewise.
89850         * config/srclist.txt: Mention it.
89852 2008-10-23  David Lutterkort  <lutter@redhat.com>
89854         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89855         link requirement
89857 2008-10-23  Jim Meyering  <meyering@redhat.com>
89859         selinux-h: mark parameters of stub functions as intentionally unused
89860         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89861         * lib/se-context.in.h: Likewise.
89863 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89865         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89867 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89869         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89871 2008-10-22  Eric Blake  <ebb9@byu.net>
89873         glthread/thread: avoid compiler warning
89874         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89875         Add unreachable abort to silence compiler.
89877 2008-10-22  Eric Blake  <ebb9@byu.net>
89879         netdb: also supply struct addrinfo for cygwin 1.5.x
89880         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89881         older cygwin.
89882         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89883         cygwin.
89884         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89886 2008-10-22  Bruno Haible  <bruno@clisp.org>
89888         * users.txt: Update entry about pspp.
89890 2008-10-21  Bruno Haible  <bruno@clisp.org>
89892         Simplification.
89893         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89894         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89896         Simplification.
89897         * lib/ioctl.c (ioctl): Don't undefine.
89898         * lib/socket.c (socket): Don't undefine.
89900         Remove unused module indicator macros.
89901         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89902         GNULIB_$1 as a C macro.
89904         * doc/posix-functions/close.texi: Undo last change.
89905         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89906         Windows platforms.
89908 2008-10-21  Bruno Haible  <bruno@clisp.org>
89910         Add gethostname() declaration to <unistd.h>.
89911         * lib/unistd.in.h (gethostname): New declaration.
89912         * lib/gethostname.c: Include <unistd.h>.
89913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89914         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89916         and HAVE_GETHOSTNAME.
89917         * modules/gethostname (Depends-on): Add unistd.
89918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89919         (Include): Specify <unistd.h>.
89920         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89921         HAVE_GETHOSTNAME.
89922         * tests/test-gethostname.c: Include <unistd.h> first.
89924 2008-10-21  Bruno Haible  <bruno@clisp.org>
89926         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89927         * modules/select-tests (Depends-on): Likewise.
89928         Reported by Simon Josefsson.
89930 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89932         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89933         * lib/accept.c: New file, based on winsock.c.
89934         * lib/bind.c: New file, based on winsock.c.
89935         * lib/connect.c: New file, based on winsock.c.
89936         * lib/getpeername.c: New file, based on winsock.c.
89937         * lib/getsockname.c: New file, based on winsock.c.
89938         * lib/getsockopt.c: New file, based on winsock.c.
89939         * lib/ioctl.c: New file, based on winsock.c.
89940         * lib/listen.c: New file, based on winsock.c.
89941         * lib/recv.c: New file, based on winsock.c.
89942         * lib/recvfrom.c: New file, based on winsock.c.
89943         * lib/send.c: New file, based on winsock.c.
89944         * lib/sendto.c: New file, based on winsock.c.
89945         * lib/setsockopt.c: New file, based on winsock.c.
89946         * lib/shutdown.c: New file, based on winsock.c.
89947         * lib/socket.c: New file, based on winsock.c.
89948         * lib/w32sock.h: New file, based on winsock.c.
89949         * lib/winsock.c: Remove file.
89950         * modules/accept: Likewise.
89951         * modules/bind: Likewise.
89952         * modules/connect: Likewise.
89953         * modules/getpeername: Likewise.
89954         * modules/getsockname: Likewise.
89955         * modules/getsockopt: Likewise.
89956         * modules/ioctl: Likewise.
89957         * modules/listen: Likewise.
89958         * modules/recv: Likewise.
89959         * modules/recvfrom: Likewise.
89960         * modules/send: Likewise.
89961         * modules/sendto: Likewise.
89962         * modules/setsockopt: Likewise.
89963         * modules/shutdown: Likewise.
89964         * modules/socket: Use socket.c instead of winsock.c.
89965         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89966         * doc/posix-functions/accept.texi: Doc fix.
89967         * doc/posix-functions/bind.texi: Doc fix.
89968         * doc/posix-functions/close.texi: Doc fix.
89969         * doc/posix-functions/connect.texi: Doc fix.
89970         * doc/posix-functions/getpeername.texi: Doc fix.
89971         * doc/posix-functions/getsockname.texi: Doc fix.
89972         * doc/posix-functions/getsockopt.texi: Doc fix.
89973         * doc/posix-functions/ioctl.texi: Doc fix.
89974         * doc/posix-functions/listen.texi: Doc fix.
89975         * doc/posix-functions/recv.texi: Doc fix.
89976         * doc/posix-functions/recvfrom.texi: Doc fix.
89977         * doc/posix-functions/send.texi: Doc fix.
89978         * doc/posix-functions/sendto.texi: Doc fix.
89979         * doc/posix-functions/setsockopt.texi: Doc fix.
89980         * doc/posix-functions/shutdown.texi: Doc fix.
89981         * doc/posix-functions/socket.texi: Doc fix.
89983 2008-10-20  Bruno Haible  <bruno@clisp.org>
89985         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89986         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89987         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89988         as an alias for SIGABRT.
89989         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89990         (sigaction): Map it to SIGABRT.
89991         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89993 2008-10-20  Bruno Haible  <bruno@clisp.org>
89995         * lib/fts.c: Don't include lstat.h.
89996         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89998         Move the lstat() declaration to <sys/stat.h>.
89999         * lib/lstat.h: Remove file.
90000         * lib/sys_stat.in.h: Add special invocation convention.
90001         (lstat): New declaration.
90002         * lib/lstat.c (orig_lstat): New function.
90003         (rpl_lstat): Use orig_lstat instead of lstat.
90004         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90005         AC_C_INLINE. Set REPLACE_LSTAT.
90006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90007         and REPLACE_LSTAT.
90008         * modules/lstat (Files): Remove lib/lstat.h.
90009         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90010         (Include): Specify <sys/stat.h> instead of lstat.h.
90011         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90012         REPLACE_LSTAT.
90013         * NEWS: Mention the change.
90015 2008-10-20  Bruno Haible  <bruno@clisp.org>
90017         * modules/posix_spawn-tests: New file.
90018         * tests/test-posix_spawn3.c: New file.
90020 2008-10-20  Bruno Haible  <bruno@clisp.org>
90022         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90023         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90024         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90025         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90026         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90028 2008-10-20  Bruno Haible  <bruno@clisp.org>
90030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90031         of posix_spawn on AIX 5.3.
90033 2008-10-20  Bruno Haible  <bruno@clisp.org>
90035         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90037 2008-10-20  Bruno Haible  <bruno@clisp.org>
90039         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90040         of AC_LANG_PROGRAM.
90042 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90044         * lib/netdb.in.h: Don't define GNU specific constants until they
90045         are supported or needed.  Reported by Bruno Haible
90046         <bruno@clisp.org>.
90048 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90050         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90052 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90054         * lib/getaddrinfo.h: Remove file.
90055         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90056         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90057         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90058         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90059         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90060         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90061         * tests/test-getaddrinfo.c: Likewise.
90062         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90063         * NEWS: Mention change.
90065 2008-10-19  Bruno Haible  <bruno@clisp.org>
90067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90069 2008-10-19  Bruno Haible  <bruno@clisp.org>
90071         * lib/wait-process.c: Include simply <sys/wait.h>.
90072         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90073         WIFSTOPPED): Remove fallback definitions.
90074         * modules/wait-process (Depends-on): Add sys_wait.
90076         New module 'sys_wait'.
90077         * modules/sys_wait: New file.
90078         * lib/sys_wait.in.h: New file, partially copied from
90079         lib/wait-process.c.
90080         * m4/sys_wait_h.m4: New file.
90081         * doc/posix-headers/sys_wait.texi: Mention the new module.
90083 2008-10-19  Bruno Haible  <bruno@clisp.org>
90085         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90087 2008-10-19  Bruno Haible  <bruno@clisp.org>
90089         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90090         * lib/wait-process.c (WAIT_T): Remove type.
90091         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90092         (wait_subprocess): Update.
90094 2008-10-19  Bruno Haible  <bruno@clisp.org>
90096         New module 'atoll'.
90097         * modules/atoll: New file.
90098         * lib/stdlib.in.h (atoll): New declaration.
90099         * lib/atoll.c: New file, from glibc with modifications.
90100         * m4/atoll.m4: New file.
90101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90102         HAVE_ATOLL.
90103         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90104         * doc/posix-functions/atoll.texi: Mention the new module.
90106 2008-10-19  Bruno Haible  <bruno@clisp.org>
90108         Add strtoull() declaration to <stdlib.h>.
90109         * lib/stdlib.in.h (strtoull): New declaration.
90110         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90111         Set HAVE_STRTOULL.
90112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90113         HAVE_STRTOULL.
90114         * modules/strtoull (Depends-on): Add stdlib.
90115         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90116         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90117         HAVE_STRTOULL.
90119 2008-10-19  Bruno Haible  <bruno@clisp.org>
90121         Add strtoll() declaration to <stdlib.h>.
90122         * lib/stdlib.in.h (strtoll): New declaration.
90123         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90124         Set HAVE_STRTOLL.
90125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90126         HAVE_STRTOLL.
90127         * modules/strtoll (Depends-on): Add stdlib.
90128         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90129         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90131 2008-10-19  Bruno Haible  <bruno@clisp.org>
90133         * modules/bcopy (Depends-on): Add strings.
90134         (Include): Specify <strings.h>.
90136 2008-10-19  Bruno Haible  <bruno@clisp.org>
90138         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90140 2008-10-19  Bruno Haible  <bruno@clisp.org>
90142         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90143         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90144         mingw.
90146 2008-10-19  Bruno Haible  <bruno@clisp.org>
90148         * lib/atanl.c: Don't include isnanl.h.
90149         * lib/cosl.c: Likewise.
90150         * lib/ldexpl.c: Likewise.
90151         * lib/logl.c: Likewise.
90152         * lib/sinl.c: Likewise.
90153         * lib/sqrtl.c: Likewise.
90154         * lib/tanl.c: Likewise.
90156         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90157         * lib/isnanf.h: Remove file.
90158         * lib/isnand.h: Remove file.
90159         * lib/isnanl.h: Remove file.
90160         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90161         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90162         macros.
90163         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90164         HAVE_ISNANF, don't define it as a C macro.
90165         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90166         HAVE_ISNAND, don't define it as a C macro.
90167         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90168         HAVE_ISNANL, don't define it as a C macro.
90169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90170         HAVE_ISNAN[FDL].
90171         * modules/isnanf (Files): Remove lib/isnanf.h.
90172         (Depends-on): Add math.
90173         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90174         (Include): Specify <math.h> instead of isnanf.h.
90175         * modules/isnand (Files): Remove lib/isnand.h.
90176         (Depends-on): Add math.
90177         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90178         (Include): Specify <math.h> instead of isnand.h.
90179         * modules/isnanl (Files): Remove lib/isnanl.h.
90180         (Depends-on): Add math.
90181         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90182         (Include): Specify <math.h> instead of isnanl.h.
90183         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90184         HAVE_ISNAN[FDL].
90185         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90186         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90187         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90188         * NEWS: Mention the change.
90190 2008-10-18  Bruno Haible  <bruno@clisp.org>
90192         Add getusershell(), setusershell(), endusershell() declarations to
90193         <unistd.h>.
90194         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90195         declarations.
90196         * lib/getusershell.c: Include unistd.h.
90197         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90198         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90199         HAVE_GETUSERSHELL.
90200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90201         and HAVE_GETUSERSHELL.
90202         * modules/getusershell (Depends-on): Add unistd, extensions.
90203         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90204         (Include): Specify <unistd.h>.
90205         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90206         HAVE_GETUSERSHELL.
90208 2008-10-18  Bruno Haible  <bruno@clisp.org>
90210         Add a getloadavg() declaration to <stdlib.h>.
90211         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90212         getloadavg declaration.
90213         (getloadavg): New declaration.
90214         * lib/getloadavg.c: Include <stdlib.h> first.
90215         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90216         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90217         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90219         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90220         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90221         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90222         (Include): Specify <stdlib.h>.
90223         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90224         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90226 2008-10-18  Bruno Haible  <bruno@clisp.org>
90228         * lib/dirchownmod.c: Don't include lchmod.h.
90230         Move the lchmod() declaration to <sys/stat.h>.
90231         * lib/lchmod.h: Remove file.
90232         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90233         (lchmod): New declaration, moved here from lib/lchown.h.
90234         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90235         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90237         and HAVE_LCHMOD.
90238         * modules/lchmod (Files): Remove lib/lchmod.h.
90239         (Depends-on): Add sys_stat, extensions.
90240         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90241         (Include): Specify <sys/stat.h> instead of lchmod.h.
90242         * modules/sys_stat (Depends-on): Add link-warning.
90243         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90244         definition of GL_LINK_WARNING.
90245         * NEWS: Mention the change.
90247 2008-10-18  Bruno Haible  <bruno@clisp.org>
90249         * lib/fchdir.c: Don't include dirfd.h.
90250         * lib/fts.c: Likewise.
90251         * lib/getcwd.c: Likewise.
90252         * lib/glob.c: Likewise.
90254         Move the dirfd() declaration to <dirent.h>.
90255         * lib/dirfd.h: Remove file.
90256         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90257         (dirfd): New declaration.
90258         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90260         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90261         HAVE_DECL_DIRFD.
90262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90263         HAVE_DECL_DIRFD.
90264         * modules/dirfd (Files): Remove lib/dirfd.h.
90265         (Depends-on): Add dirent, extensions.
90266         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90267         (Include): Specify <dirent.h> instead of dirfd.h.
90268         * modules/dirent (Depends-on): Add link-warning.
90269         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90270         definition of GL_LINK_WARNING.
90271         * NEWS: Mention the change.
90273 2008-10-18  Bruno Haible  <bruno@clisp.org>
90275         Move the euidaccess() declaration to <unistd.h>.
90276         * lib/euidaccess.h: Remove file.
90277         * lib/unistd.in.h (euidaccess): New declaration.
90278         * lib/euidaccess.c: Don't include euidaccess.h.
90279         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90280         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90282         and HAVE_EUIDACCESS.
90283         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90284         (Depends-on): Add unistd.
90285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90286         (Include): Specify <unistd.h> instead of euidaccess.h.
90287         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90288         HAVE_EUIDACCESS.
90289         * NEWS: Mention the change.
90291 2008-10-18  Bruno Haible  <bruno@clisp.org>
90293         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90295         Move the getdomainname() declaration to <unistd.h>.
90296         * lib/getdomainname.h: Remove file.
90297         * lib/unistd.in.h (getdomainname): New declaration.
90298         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90299         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90300         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90301         HAVE_GETDOMAINNAME.
90302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90303         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90304         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90305         (Depends-on): Add unistd, extensions.
90306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90307         (Includes): Specify <unistd.h> instead of getdomainname.h.
90308         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90309         HAVE_GETDOMAINNAME.
90310         * NEWS: Mention the change.
90312 2008-10-18  Bruno Haible  <bruno@clisp.org>
90314         * modules/dirent: New file.
90315         * m4/dirent_h.m4: New file.
90316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90317         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90318         * modules/fchdir (Files): Remove lib/dirent.in.h.
90319         (Depends-on): Add dirent.
90320         (Makefile.am): Move rules to modules/dirent.
90321         * doc/posix-headers/dirent.texi: Mention the new module.
90323 2008-10-18  Bruno Haible  <bruno@clisp.org>
90325         Avoid -Wunused-parameter warnings in public gnulib header files.
90326         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90327         macro.
90328         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90330 2008-10-18  Bruno Haible  <bruno@clisp.org>
90332         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90333         * doc/glibc-functions/error.texi: Mention the module 'error'.
90334         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90335         * doc/glibc-functions/getdomainname.texi: Mention the module
90336         'getdomainname'.
90337         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90338         * doc/glibc-functions/getpagesize.texi: Mention the module
90339         'getpagesize'.
90340         * doc/glibc-functions/getusershell.texi: Mention the module
90341         'getusershell'.
90342         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90343         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90344         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90345         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90346         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90347         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90348         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90349         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90350         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90351         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90352         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90353         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90354         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90355         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90357 2008-10-17  Bruno Haible  <bruno@clisp.org>
90359         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90360         HP-UX and IRIX, use -0.0L.
90361         * tests/test-ceill.c (minus_zero): Likewise.
90362         * tests/test-floorl.c (minus_zero): Likewise.
90363         * tests/test-frexpl.c (minus_zero): Likewise.
90364         * tests/test-isnan.c (minus_zerol): Likewise.
90365         * tests/test-isnanl.h (minus_zero): Likewise.
90366         * tests/test-ldexpl.c (minus_zero): Likewise.
90367         * tests/test-roundl.c (minus_zero): Likewise.
90368         * tests/test-signbit.c (minus_zerol): Likewise.
90369         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90370         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90371         * tests/test-truncl.c (minus_zero): Likewise.
90372         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90373         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90374         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90375         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90377 2008-10-17  Bruno Haible  <bruno@clisp.org>
90379         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90380         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90381         that it gets activated only for gcc >= 3.0.
90382         * lib/dirent.in.h: Likewise.
90383         * lib/errno.in.h: Likewise.
90384         * lib/fcntl.in.h: Likewise.
90385         * lib/float.in.h: Likewise.
90386         * lib/iconv.in.h: Likewise.
90387         * lib/inttypes.in.h: Likewise.
90388         * lib/locale.in.h: Likewise.
90389         * lib/math.in.h: Likewise.
90390         * lib/netdb.in.h: Likewise.
90391         * lib/netinet_in.in.h: Likewise.
90392         * lib/search.in.h: Likewise.
90393         * lib/signal.in.h: Likewise.
90394         * lib/spawn.in.h: Likewise.
90395         * lib/stdarg.in.h: Likewise.
90396         * lib/stdint.in.h: Likewise.
90397         * lib/stdio.in.h: Likewise.
90398         * lib/stdlib.in.h: Likewise.
90399         * lib/string.in.h: Likewise.
90400         * lib/strings.in.h: Likewise.
90401         * lib/sys_file.in.h: Likewise.
90402         * lib/sys_ioctl.in.h: Likewise.
90403         * lib/sys_select.in.h: Likewise.
90404         * lib/sys_socket.in.h: Likewise.
90405         * lib/sys_stat.in.h: Likewise.
90406         * lib/sys_time.in.h: Likewise.
90407         * lib/sysexits.in.h: Likewise.
90408         * lib/time.in.h: Likewise.
90409         * lib/unistd.in.h: Likewise.
90410         * lib/wchar.in.h: Likewise.
90411         * lib/wctype.in.h: Likewise.
90412         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90414 2008-10-17  Jim Meyering  <meyering@redhat.com>
90416         ignore-value: don't depend on inline module
90417         * modules/ignore-value (Depends-on): Remove 'inline'.
90418         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90419         Suggestion from Bruno Haible.
90421 2008-10-17  Bruno Haible  <bruno@clisp.org>
90423         New implementation of condition variables for Win32.
90424         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90425         (gl_linked_waitqueue_t): New type.
90426         (gl_cond_t): Use it.
90427         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90428         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90429         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90430         (glthread_cond_init_func, glthread_cond_wait_func,
90431         glthread_cond_timedwait_func, glthread_cond_signal_func,
90432         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90433         Reimplemented on the basis of gl_linked_waitqueue_t.
90434         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90435         gl_waitqueue_t.
90436         (gl_rwlock_t): Update.
90437         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90439 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90441         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90442         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90444 2008-10-17  Jim Meyering  <meyering@redhat.com>
90446         ignore-value: new module
90447         * modules/ignore-value: New file.
90448         * lib/ignore-value.h: New file.
90449         * MODULES.html.sh (Compiler warning management): New section,
90450         just for this module.  More to come.
90452 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90454         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90455         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90456         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90458 2008-10-16  Jim Meyering  <meyering@redhat.com>
90460         openat-die.c: avoid 'no previous prototype' warning
90461         * lib/openat-die.c: Include "openat.h".
90462         Reported by Reuben Thomas <rrt@sc3d.org>.
90464 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90466         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90467         * lib/netdb.in.h: Fix typo.
90468         Reported by Bruno Haible  <bruno@clisp.org>
90470         * lib/netdb.in.h: Include sys/socket.h for platforms without
90471         netdb.h, to get structures like hostent on MinGW.
90472         * modules/netdb (Depends-on): Add sys_socket.
90474 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90476         * modules/netdb, modules/netdb-tests: New file.
90477         * m4/netdb_h.m4: New file.
90478         * lib/netdb.in.h: Add, currently just an empty file pending
90479         definitions.
90480         * tests/test-netdb.c: New file.
90481         * doc/posix-headers/netdb.texi: Mention that we replace it if
90482         needed.
90483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90484         netdb.
90486 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90488         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90489         with code.
90491 2008-10-13  Bruno Haible  <bruno@clisp.org>
90493         * lib/glthread/cond.c (glthread_cond_wait_func,
90494         glthread_cond_timedwait_func): Add a comment.
90496 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90498         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90499         * tests/test-select.c: Likewise,
90501 2008-10-13  Bruno Haible  <bruno@clisp.org>
90503         * lib/glthread/cond.c (glthread_cond_wait_func,
90504         glthread_cond_timedwait_func): Fix variable name.
90505         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90507 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90509         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90511         struct sockaddr.sa_len.
90512         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90514 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90516         * build-aux/pmccabe2html: Add css and css_url parameters.
90518 2008-10-12  Bruno Haible  <bruno@clisp.org>
90520         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90521         calling aclx_get.
90522         Reported by Rainer Tammer <tammer@tammer.net>.
90524 2008-10-12  Bruno Haible  <bruno@clisp.org>
90526         Use msvcrt aware primitives for creation/termination of Win32 threads.
90527         * lib/glthread/thread.c: Include <process.h>.
90528         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90529         (wrapper_func): Update signature.
90530         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90532 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90533             Bruno Haible  <bruno@clisp.org>
90535         Provide a Win32 implementation of the 'cond' module.
90536         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90537         * lib/glthread/cond.c (glthread_cond_init_func,
90538         glthread_cond_wait_func, glthread_cond_timedwait_func,
90539         glthread_cond_signal_func, glthread_cond_broadcast_func,
90540         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90541         * modules/cond (Dependencies): Add gettimeofday.
90543 2008-10-11  Bruno Haible  <bruno@clisp.org>
90545         Make sleep work on older versions of mingw.
90546         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90547         only whether it exists.
90548         * doc/posix-functions/sleep.texi: Mention the problem with older
90549         versions of mingw.
90551 2008-10-11  Bruno Haible  <bruno@clisp.org>
90553         New module 'shutdown'.
90554         * modules/shutdown: New file.
90555         * lib/sys_socket.in.h (shutdown): New declaration.
90556         * lib/winsock.c (shutdown): New function.
90557         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90558         GNULIB_SHUTDOWN.
90559         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90560         * doc/posix-functions/shutdown.texi: Document the new module.
90562 2008-10-11  Jim Meyering  <meyering@redhat.com>
90564         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90566 2008-10-11  Bruno Haible  <bruno@clisp.org>
90568         New module 'fclose'.
90569         * modules/fclose: New file.
90570         * lib/stdio.in.h (fclose): New declaration.
90571         * lib/fclose.c: New file.
90572         * m4/fclose.m4: New file.
90573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90574         REPLACE_FCLOSE.
90575         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90576         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90577         REPLACE_FCLOSE.
90578         * modules/close (Depends-on): fclose.
90579         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90581 2008-10-11  Bruno Haible  <bruno@clisp.org>
90583         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90584         set errno and don't call _close.
90586 2008-10-10  Bruno Haible  <bruno@clisp.org>
90588         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90589         ACL, not afterwards. Fixes test failure on Cygwin.
90591 2008-10-09  Ben Pfaff  <blp@gnu.org>
90593         * build-aux/announce-gen: Fix gnulib version related part of usage
90594         message.  Die with a useful error message if no tarballs are
90595         found.
90597 2008-10-10  Jim Meyering  <meyering@redhat.com>
90599         bootstrap: use git's --depth=N option only if it's supported
90600         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90601         recognize the --depth option.  Reported by Pádraig Brady.
90603 2008-10-09  Bruno Haible  <bruno@clisp.org>
90605         New module 'ioctl'.
90606         * modules/ioctl: New file.
90607         * lib/sys_socket.in.h (ioctl): Remove declaration.
90608         * lib/winsock.c: Include <sys/ioctl.h>.
90609         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90610         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90611         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90612         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90613         * doc/posix-functions/ioctl.texi: Mention the new module.
90615 2008-10-09  Bruno Haible  <bruno@clisp.org>
90617         New module 'sys_ioctl'.
90618         * lib/sys_ioctl.in.h: New file.
90619         * m4/sys_ioctl_h.m4: New file.
90620         * modules/sys_ioctl: New file.
90621         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90623 2008-10-09  Bruno Haible  <bruno@clisp.org>
90625         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90626         * lib/winsock.c: Include <stdarg.h>.
90627         (rpl_ioctl): Change to second argument 'int' and then varargs.
90629 2008-10-09  Bruno Haible  <bruno@clisp.org>
90631         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90632         when the sys_socket module is present and the system has <winsock2.h>.
90634 2008-10-09  Bruno Haible  <bruno@clisp.org>
90636         * doc/posix-functions/close.texi: Mention module 'close' instead of
90637         module 'sys_socket'.
90639 2008-10-09  Bruno Haible  <bruno@clisp.org>
90641         * doc/glibc-headers/sys_ioctl.texi: New file.
90642         * doc/gnulib.texi: Include it.
90644 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90645             Bruno Haible  <bruno@clisp.org>
90647         Combine the two replacements of 'close'.
90648         * lib/sys_socket.in.h (close): Define to a reminder to include
90649         <unistd.h>.
90650         (_gl_close_fd_maybe_socket): New declaration.
90651         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90652         * lib/winsock.c (close): Remove undefinition.
90653         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90654         needed for the gnulib module 'close'.
90655         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90656         define to an error symbol or to a warning, if suitable.
90657         * lib/close.c: Include <sys/socket.h>.
90658         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90659         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90660         UNISTD_H_HAVE_WINSOCK2_H.
90661         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90663         UNISTD_H_HAVE_WINSOCK2_H.
90664         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90665         (configure.ac): Set a module indicator.
90666         (Makefile.am): Substitute GNULIB_CLOSE.
90667         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90668         * modules/poll-tests (Depends-on): Add close.
90669         * modules/select-tests (Depends-on): Likewise.
90671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90672             Bruno Haible  <bruno@clisp.org>
90674         New module 'close'.
90675         * modules/close: New file.
90676         * lib/unistd.in.h (close): Move declaration out of the
90677         FCHDIR_REPLACEMENT scope.
90678         (_gl_unregister_fd): New declaration.
90679         * lib/close.c: New file.
90680         * lib/fchdir.c (rpl_close): Remove function.
90681         * m4/close.m4: New file.
90682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90683         close.
90684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90685         REPLACE_CLOSE.
90686         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90687         REPLACE_CLOSE.
90688         * modules/fchdir (Depends-on): Add close.
90690 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90691             Bruno Haible  <bruno@clisp.org>
90693         * lib/fcntl.in.h (open): Simplify conditionals.
90694         (_gl_register_fd): New declaration.
90695         * lib/fchdir.c (rpl_open): Remove function.
90696         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90697         also.
90698         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90699         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90700         open.
90702 2008-10-09  Jim Meyering  <meyering@redhat.com>
90704         GNUmakefile: use the more name-space-friendly "_version"
90705         * top/GNUmakefile (_dummy): Update.
90706         (_version): Rename from "version".
90708 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90709             Bruno Haible  <bruno@clisp.org>
90711         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90712         rpl_close.
90713         (_gl_register_fd): New function, extracted from rpl_open.
90714         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90715         (rpl_open, rpl_opendir): Use _gl_register_fd.
90717 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90719         Fix organization of 'open' replacement.
90720         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90721         (gl_FUNC_OPEN): Use it.
90722         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90724 2008-10-08  Bruno Haible  <bruno@clisp.org>
90726         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90728 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90730         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90731         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90732         listen).
90734 2008-10-08  Eric Blake  <ebb9@byu.net>
90736         GNUmakefile: add 'make version' target
90737         * top/GNUmakefile (_curr-ver): Split version update rules...
90738         (version): ...into a target.
90740 2008-10-07  Bruno Haible  <bruno@clisp.org>
90742         Use a more portable replacement expression for -0.0L.
90743         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90744         instead of -0.0L. Fix m4 quotation.
90746         * tests/test-signbit.c: Include <float.h>.
90747         (minus_zero): New variable.
90748         (test_signbitl): Use minus_zero instead of -zero.
90749         * modules/signbit-tests (Depends-on): Add float.
90751         * tests/test-ceill.c: Include <float.h>.
90752         (zero): Remove variable.
90753         (minus_zero): New variable.
90754         (main): Use minus_zero instead of -zero.
90755         * modules/ceill-tests (Depends-on): Add float.
90757         * tests/test-floorl.c: Include <float.h>.
90758         (zero): Remove variable.
90759         (minus_zero): New variable.
90760         (main): Use minus_zero instead of -zero.
90761         * modules/floorl-tests (Depends-on): Add float.
90763         * tests/test-roundl.c: Include <float.h>.
90764         (zero): Remove variable.
90765         (minus_zero): New variable.
90766         (main): Use minus_zero instead of -zero.
90767         * modules/roundl-tests (Depends-on): Add float.
90769         * tests/test-truncl.c: Include <float.h>.
90770         (zero): Remove variable.
90771         (minus_zero): New variable.
90772         (main): Use minus_zero instead of -zero.
90773         * modules/truncl-tests (Depends-on): Add float.
90775         * tests/test-frexpl.c (zero): Remove variable.
90776         (minus_zero): New variable.
90777         (main): Use minus_zero instead of -zero.
90778         * modules/frexpl-tests (Depends-on): Add float.
90780         * tests/test-isnan.c (zerol): Remove variable.
90781         (minus_zerol): New variable.
90782         (test_long_double): Use minus_zerol instead of -zerol.
90783         * modules/isnan-tests (Depends-on): Add float.
90785         * tests/test-isnanl.h (zero): Remove variable.
90786         (minus_zero): New variable.
90787         (main): Use minus_zero instead of -zero.
90788         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90789         * modules/isnanl-tests (Depends-on): Add float.
90791         * tests/test-ldexpl.c (zero): Remove variable.
90792         (minus_zero): New variable.
90793         (main): Use minus_zero instead of -zero.
90794         * modules/ldexpl-tests (Depends-on): Add float.
90796         * tests/test-snprintf-posix.h (zerol): Remove variable.
90797         (minus_zerol): New variable.
90798         (test_function): Use minus_zerol instead of -zerol.
90799         * modules/snprintf-posix-tests (Depends-on): Add float.
90800         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90802         * tests/test-sprintf-posix.h (zerol): Remove variable.
90803         (minus_zerol): New variable.
90804         (test_function): Use minus_zerol instead of -zerol.
90805         * modules/sprintf-posix-tests (Depends-on): Add float.
90806         * modules/vsprintf-posix-tests (Depends-on): Add float.
90808         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90809         (minus_zerol): New variable.
90810         (test_function): Use minus_zerol instead of -zerol.
90811         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90813         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90814         (minus_zerol): New variable.
90815         (test_function): Use minus_zerol instead of -zerol.
90816         * modules/vasprintf-posix-tests (Depends-on): Add float.
90818 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90820         * MODULES.html.sh (Support for building documentation): Mention
90821         pmccabe2html.  Sort entries.
90823         Add pmccabe2html module, from gnupdf.
90824         * build-aux/pmccabe.css: New file.
90825         * build-aux/pmccabe2html: New file.
90826         * m4/pmccabe2html.m4: New file.
90827         * modules/pmccabe2html: New file.
90829 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90831         flock: new module
90832         * MODULES.html.sh: Add to list of modules.
90833         * lib/flock.c: flock implementation for Windows and Unix systems
90834         which have fcntl.
90835         * doc/glibc-functions/flock.texi: Update documentation.
90836         * lib/sys_file.in.h: <sys/file.h> header file.
90837         * m4/flock.m4: M4 macros.
90838         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90839         * modules/flock: flock module.
90840         * modules/flock-tests: flock tests module.
90841         * modules/sys_file: sys/file.h module.
90842         * tests/test-flock.c: test suite for flock.
90844 2008-10-06  Jim Meyering  <meyering@redhat.com>
90846         bootstrap: check for LT_INIT more portably still ;-)
90847         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90848         Spotted by Bruno Haible.
90850 2008-10-06  Eric Blake  <ebb9@byu.net>
90852         test-signbit: avoid tripping Irix cc bug on -0.0L
90853         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90854         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90855         entire testsuite consistent and avoids an Irix 6.2 bug.
90857 2008-10-05  Bruno Haible  <bruno@clisp.org>
90858             Jim Meyering  <jim@meyering.net>
90860         Add an option for ignoring EPIPE during close_stdout.
90861         * lib/closeout.h: Include <stdbool.h>.
90862         (close_stdout_set_ignore_EPIPE): New declaration.
90863         * lib/closeout.c: Include <stdbool.h>.
90864         (ignore_EPIPE): New variable.
90865         (close_stdout_set_ignore_EPIPE): New function.
90866         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90867         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90868         failure.
90869         * modules/closeout (Depends-on): Add stdbool.
90871 2008-10-05  Bruno Haible  <bruno@clisp.org>
90873         * modules/accept: New file.
90874         * modules/bind: New file.
90875         * modules/connect: New file.
90876         * modules/getpeername: New file.
90877         * modules/getsockname: New file.
90878         * modules/getsockopt: New file.
90879         * modules/listen: New file.
90880         * modules/recv: New file.
90881         * modules/recvfrom: New file.
90882         * modules/send: New file.
90883         * modules/sendto: New file.
90884         * modules/setsockopt: New file.
90885         * modules/socket: New file.
90886         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90887         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90888         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90889         the particular module is requested. Add a link warning when the
90890         particular module is not requested.
90891         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90892         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90893         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90894         the particular module is requested.
90895         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90896         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90897         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90898         * modules/sys_socket (Depends-on): Add link-warning.
90899         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90900         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90901         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90902         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90903         GL_LINK_WARNING.
90904         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90905         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90906         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90907         * doc/posix-functions/getpeername.texi: Mention the new module
90908         'getpeername'.
90909         * doc/posix-functions/getsockname.texi: Mention the new module
90910         'getsockname'.
90911         * doc/posix-functions/getsockopt.texi: Mention the new module
90912         'getsockopt'.
90913         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90914         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90915         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90916         * doc/posix-functions/send.texi: Mention the new module 'send'.
90917         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90918         * doc/posix-functions/setsockopt.texi: Mention the new module
90919         'setsockopt'.
90920         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90921         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90922         listen, connect, accept.
90923         * modules/select-tests (Depends-on): Likewise.
90925 2008-10-05  Bruno Haible  <bruno@clisp.org>
90927         * lib/winsock.c (strerror): Remove unused #undef.
90928         (rpl_close): Remove unused local variable.
90930         * modules/sys_socket (Depends-on); Add errno.
90932 2008-10-05  Bruno Haible  <bruno@clisp.org>
90934         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90935         (select): Add a link warning when the 'select' module is not used.
90936         * modules/sys_select (Depends-on): Add link-warning.
90937         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90938         Suggested by Paolo Bonzini.
90940 2008-10-05  Jim Meyering  <meyering@redhat.com>
90942         bootstrap: check for LT_INIT more portably
90943         * build-aux/bootstrap: Avoid using grep -E, since it's not
90944         portable enough.  Suggestion from Bruno Haible.
90946 2008-10-05  Bruno Haible  <bruno@clisp.org>
90948         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90949         as being fixed by gnulib.
90951 2008-10-05  Bruno Haible  <bruno@clisp.org>
90953         * modules/select-tests: New file, mostly copied from
90954         modules/sys_select-tests.
90955         * tests/test-select.c: New file, mostly copied from
90956         tests/test-sys_select.c.
90957         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90958         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90959         (Makefile.am): Remove test_sys_select_LDADD.
90961         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90962         to an undefined symbol, for an error message.
90963         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90964         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90965         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90966         winsock-select.c here.
90967         * modules/sys_select (Files): Remove lib/winsock-select.c.
90968         (Depends-on): Remove alloca.
90969         (Makefile.am): Substitute GNULIB_SELECT.
90970         * modules/select: New file.
90971         * doc/posix-functions/select.texi: Update.
90973 2008-10-05  Bruno Haible  <bruno@clisp.org>
90975         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90976         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90977         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90978         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90979         getdtablesize.
90980         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90981         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90983 2008-10-05  Bruno Haible  <bruno@clisp.org>
90985         * modules/getdtablesize-tests: New file.
90986         * tests/test-getdtablesize.c: New file.
90988         New module 'getdtablesize'.
90989         * lib/unistd.in.h (getdtablesize): New declaration.
90990         * lib/getdtablesize.c: New file.
90991         * m4/getdtablesize.m4: New file.
90992         * modules/getdtablesize: New file.
90993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90994         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90995         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90996         HAVE_GETDTABLESIZE.
90997         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90999 2008-10-05  Bruno Haible  <bruno@clisp.org>
91001         * modules/sched (Makefile.am): Fix typo.
91002         Reported by Simon Josefsson.
91004 2008-10-05  Jim Meyering  <meyering@redhat.com>
91006         bootstrap: check for LT_INIT, too
91007         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91008         are deprecated.  Suggestion from Ralf Wildenhues.
91010 2008-10-05  Bruno Haible  <bruno@clisp.org>
91012         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91013         overriding them by ours.
91014         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91016 2008-10-05  Jim Meyering  <meyering@redhat.com>
91018         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91019         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91020         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91022 2008-10-04  Bruno Haible  <bruno@clisp.org>
91024         * modules/dup2 (License): Change to LGPLv2+.
91025         * modules/sleep (License): Likewise.
91026         * modules/perror (License): Likewise.
91027         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91028         Blake.
91029         * modules/signal (License): Likewise.
91030         * modules/sigprocmask (License): Likewise.
91031         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91032         Meyering.
91034 2008-10-04  Bruno Haible  <bruno@clisp.org>
91036         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91037         Reported by Rainer Tammer <tammer@tammer.net>.
91039 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91040             Bruno Haible  <bruno@clisp.org>
91042         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91043         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91044         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91046 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91048         filevercmp: new module
91049         * lib/filevercmp.h: New function filevercmp comparing version strings.
91050         * lib/filevercmp.c: Implementation of filevercmp function.
91051         * modules/filevercmp: Module metadata.
91052         * tests/test-filevercmp.c: Unit test for new module.
91053         * modules/filevercmp-tests: Unit test metadata.
91054         * MODULES.html.sh: Add filevercmp module.
91056 2008-10-03  Bruno Haible  <bruno@clisp.org>
91058         * lib/c-ctype.h: Add comment.
91059         Reported by Jim Meyering.
91061 2008-10-02  Bruno Haible  <bruno@clisp.org>
91063         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91065 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91067         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91068         name of bootstrap.conf accordingly.
91070 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91072         * build-aux/bootstrap: Install git-merge-changelog configuration
91073         items into .gitconfig if needed.
91075 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91077         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91078         git repository, and initialize/update it accordingly.
91080 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91082         * modules/fsync-tests: New file.
91083         * tests/test-fsync.c: New file.
91085         New module 'fsync'.
91086         * lib/fsync.c: New file.
91087         * m4/fsync.m4: New file.
91088         * modules/fsync: New file.
91089         * lib/unistd.in.h (fsync): New declaration.
91090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91091         GNULIB_FSYNC and HAVE_FSYNC.
91092         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91093         * MODULES.html.sh (posix_functions): Add fsync.
91094         * doc/posix-functions/fsync.texi: Mention the new module.
91096 2008-10-02  Jim Meyering  <meyering@redhat.com>
91098         fts.c: sync with similar code from coreutils' remove.c
91099         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91100         Guard also with "#if defined __linux__", since for now at least,
91101         this code is Linux-kernel-specific.
91103 2008-10-02  Jim Meyering  <meyering@redhat.com>
91105         fts: bug fixes
91106         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91107         Include <sys/vfs.h>, not <sys/statfs.h>.
91109         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91110         Include <sys/vfs.h>, not <sys/statfs.h>.
91112 2008-10-01  Bruno Haible  <bruno@clisp.org>
91114         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91115         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91116         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91117         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91118         * doc/posix-functions/posix_spawnp.texi: Likewise.
91119         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91120         whether posix_spawn actually works.
91121         * m4/pipe.m4 (gl_PIPE): Likewise.
91122         * modules/execute (Files): Add m4/posix_spawn.m4.
91123         * modules/pipe (Files): Add m4/posix_spawn.m4.
91124         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91126 2008-10-01  Jim Meyering  <meyering@redhat.com>
91128         remove trailing spaces
91129         * NEWS: Likewise.
91130         * lib/poll.c (poll): Likewise.
91131         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91132         * lib/winsock.c (rpl_close): Likewise.
91133         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91134         * modules/yield: Likewise.
91135         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91136         * tests/test-sys_select.c (connect_to_socket): Likewise.
91138         fts.c: adjust a new interface to be more generally useful
91139         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91140         (fts_build): Adjust caller.
91142 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91144         * modules/cond-tests: New file.
91145         * tests/test-cond.c: New file.
91147 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91148             Bruno Haible  <bruno@clisp.org>
91150         * modules/cond (Dependencies): Add errno, time.
91151         * lib/glthread/cond.h: Include <time.h>.
91152         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91153         across platforms.
91155 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91156             Bruno Haible  <bruno@clisp.org>
91158         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91160 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91161             Bruno Haible  <bruno@clisp.org>
91163         * modules/tls-tests (Depends-on): Add thread, yield.
91164         (configure.ac): Remove all checks.
91165         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91166         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91167         gl_thread_self): Remove definitions. Include glthread/thread.h and
91168         glthread/yield.h instead.
91169         (test_tls): Pass an additional NULL argument to gl_thread_join.
91171 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91172             Bruno Haible  <bruno@clisp.org>
91174         * modules/lock-tests (Depends-on): Add thread, yield.
91175         (configure.ac): Remove all checks.
91176         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91177         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91178         gl_thread_self): Remove definitions. Include glthread/thread.h and
91179         glthread/yield.h instead.
91180         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91181         additional NULL argument to gl_thread_join.
91183 2008-09-30  Bruno Haible  <bruno@clisp.org>
91185         Fix the Win32 implementation of the 'thread' module.
91186         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91187         pointer type.
91188         (gl_thread_self): Invoke gl_thread_self_func.
91189         (gl_thread_self_func): New declaration.
91190         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91191         (do_init_self_key, init_self_key): New functions.
91192         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91193         Remove some fields.
91194         (running_threads, running_lock): Remove variables.
91195         (get_current_thread_handle): New function.
91196         (gl_thread_self_func, wrapper_func, glthread_create_func,
91197         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91198         simplified.
91200 2008-09-30  Bruno Haible  <bruno@clisp.org>
91202         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91203         files.
91205 2008-09-30  Jim Meyering  <meyering@redhat.com>
91207         fts.m4: correct the test for statfs.f_type
91208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91209         when checking for statfs.f_type.
91211 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91213         tests: avoid some compiler warnings
91214         * tests/test-memchr.c (main): Pass NULL indirectly.
91215         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91217 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91219         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91220         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91221         exactly specified dayshifts.
91222         (dayshift): New rule.
91223         (rel): Add dayshift.
91224         (relative_time_table) [tomorrow, yesterday, today, now]:
91225         Use tDAY_SHIFT in place of tDAY_UNIT.
91226         * tests/test-getdate.c: Add tests for now-disallowed countable
91227         dayshifts, e.g., "4 yesterday ago".
91229 2008-09-29  Bruno Haible  <bruno@clisp.org>
91231         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91232         * tests/test-posix_spawn1.in.sh: Renamed from
91233         tests/test-posix_spawn.in.sh.
91234         * tests/test-posix_spawn2.c: New file.
91235         * tests/test-posix_spawn2.in.sh: New file.
91236         * modules/posix_spawnp-tests (Files): Update.
91237         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91239 2008-09-29  Bruno Haible  <bruno@clisp.org>
91241         Propagate effects of putenv/setenv/unsetenv to child processes.
91242         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91243         * lib/pipe.c (create_pipe): Likewise.
91245 2008-09-29  Bruno Haible  <bruno@clisp.org>
91247         Enable use of shell scripts as executables in mingw.
91248         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91249         run the program as a shell script.
91250         * lib/pipe.c (create_pipe): Likewise.
91251         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91252         resulting array.
91254 2008-09-29  Eric Blake  <ebb9@byu.net>
91256         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91258 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91260         * doc/posix-functions/accept.texi: Update mingw problems.
91261         * doc/posix-functions/bind.texi: Update mingw problems.
91262         * doc/posix-functions/close.texi: Update mingw problems.
91263         * doc/posix-functions/connect.texi: Update mingw problems.
91264         * doc/posix-functions/getpeername.texi: Update mingw problems.
91265         * doc/posix-functions/getsockname.texi: Update mingw problems.
91266         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91267         * doc/posix-functions/ioctl.texi: Update mingw problems.
91268         * doc/posix-functions/listen.texi: Update mingw problems.
91269         * doc/posix-functions/recv.texi: Update mingw problems.
91270         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91271         * doc/posix-functions/select.texi: Update mingw problems.
91272         * doc/posix-functions/send.texi: Update mingw problems.
91273         * doc/posix-functions/sendto.texi: Update mingw problems.
91274         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91275         * doc/posix-functions/socket.texi: Update mingw problems.
91277 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91278             Bruno Haible  <bruno@clisp.org>
91280         * lib/sys_select.in.h: Include sys/time.h.
91281         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91282         * modules/sys_select: Depend on sys_time.
91283         * tests/test-sys_select.c: Test that sys/select.h defines struct
91284         timeval fully.
91286 2008-09-29  Bruno Haible  <bruno@clisp.org>
91288         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91289         * lib/sys_select.in.h: Likewise.
91291 2008-09-29  Bruno Haible  <bruno@clisp.org>
91293         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91295 2008-09-29  Bruno Haible  <bruno@clisp.org>
91297         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91298         Set LIBSOCKET instead of augmenting LIBS.
91299         * modules/sockets (Link): New section.
91300         * modules/sockets-tests (test_sockets_LDADD): New variable.
91301         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91302         * modules/poll-tests (test_poll_LDADD): New variable.
91303         * NEWS: Document the change.
91305 2008-09-29  Bruno Haible  <bruno@clisp.org>
91307         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91308         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91309         ARPA_INET_H directly.
91310         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91312 2008-09-28  Bruno Haible  <bruno@clisp.org>
91314         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91315         from gl_HEADER_SYS_SOCKET.
91316         (gl_HEADER_SYS_SOCKET): Invoke it.
91317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91319 2008-09-28  Bruno Haible  <bruno@clisp.org>
91321         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91322         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91323         Needed on OSF/1 4.0.
91325 2008-09-28  Bruno Haible  <bruno@clisp.org>
91327         Override open more carefully.
91328         * lib/open.c (orig_open): New function.
91329         (rpl_open): Use orig_open instead of open.
91330         * lib/fcntl.in.h: Add special invocation convention.
91331         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91332         (gl_FUNC_OPEN): Invoke it.
91334         Override freopen more carefully.
91335         * lib/freopen.c (orig_freopen): New function.
91336         (rpl_freopen): Use orig_freopen instead of freopen.
91337         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91338         (gl_FUNC_FREOPEN): Invoke it.
91340         Override fopen more carefully.
91341         * lib/fopen.c (orig_fopen): New function.
91342         (rpl_fopen): Use orig_fopen instead of fopen.
91343         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91344         (gl_FUNC_FOPEN): Invoke it.
91345         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91347 2008-09-28  Bruno Haible  <bruno@clisp.org>
91349         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91350         SIGPIPE.
91352 2008-09-28  Bruno Haible  <bruno@clisp.org>
91354         * tests/test-sigaction.c (handler, main): Disable the check whether
91355         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91356         glibc systems with LinuxThreads.
91358 2008-09-28  Bruno Haible  <bruno@clisp.org>
91360         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91362         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91363         with AIX xlc.
91364         * lib/fcntl.in.h (open): Likewise.
91365         Reported by Rainer Tammer <tammer@tammer.net>.
91367 2008-09-28  Bruno Haible  <bruno@clisp.org>
91369         * modules/posix_spawnp-tests: New file.
91370         * tests/test-posix_spawn.c: New file.
91371         * tests/test-posix_spawn.in.sh: New file.
91373         New module 'posix_spawnp'.
91374         * modules/posix_spawnp: New file.
91375         * lib/spawnp.c: New file, from GNU libc with modifications.
91376         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91378         New module 'posix_spawn'.
91379         * modules/posix_spawn: New file.
91380         * lib/spawn.c: New file, from GNU libc with modifications.
91381         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91383         New module 'posix_spawnattr_destroy'.
91384         * modules/posix_spawnattr_destroy: New file.
91385         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91386         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91387         module.
91389         New module 'posix_spawnattr_setsigmask'.
91390         * modules/posix_spawnattr_setsigmask: New file.
91391         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91392         modifications.
91393         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91394         new module.
91396         New module 'posix_spawnattr_getsigmask'.
91397         * modules/posix_spawnattr_getsigmask: New file.
91398         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91399         modifications.
91400         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91401         new module.
91403         New module 'posix_spawnattr_setsigdefault'.
91404         * modules/posix_spawnattr_setsigdefault: New file.
91405         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91406         modifications.
91407         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91408         new module.
91410         New module 'posix_spawnattr_getsigdefault'.
91411         * modules/posix_spawnattr_getsigdefault: New file.
91412         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91413         modifications.
91414         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91415         new module.
91417         New module 'posix_spawnattr_setschedpolicy'.
91418         * modules/posix_spawnattr_setschedpolicy: New file.
91419         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91420         modifications.
91421         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91422         new module.
91424         New module 'posix_spawnattr_getschedpolicy'.
91425         * modules/posix_spawnattr_getschedpolicy: New file.
91426         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91427         modifications.
91428         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91429         new module.
91431         New module 'posix_spawnattr_setschedparam'.
91432         * modules/posix_spawnattr_setschedparam: New file.
91433         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91434         modifications.
91435         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91436         new module.
91438         New module 'posix_spawnattr_getschedparam'.
91439         * modules/posix_spawnattr_getschedparam: New file.
91440         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91441         modifications.
91442         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91443         new module.
91445         New module 'posix_spawnattr_setpgroup'.
91446         * modules/posix_spawnattr_setpgroup: New file.
91447         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91448         modifications.
91449         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91450         module.
91452         New module 'posix_spawnattr_getpgroup'.
91453         * modules/posix_spawnattr_getpgroup: New file.
91454         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91455         modifications.
91456         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91457         module.
91459         New module 'posix_spawnattr_setflags'.
91460         * modules/posix_spawnattr_setflags: New file.
91461         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91462         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91463         module.
91465         New module 'posix_spawnattr_getflags'.
91466         * modules/posix_spawnattr_getflags: New file.
91467         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91468         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91469         module.
91471         New module 'posix_spawnattr_init'.
91472         * modules/posix_spawnattr_init: New file.
91473         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91474         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91475         module.
91477         New module 'posix_spawn_file_actions_destroy'.
91478         * modules/posix_spawn_file_actions_destroy: New file.
91479         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91480         modifications.
91481         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91482         the new module.
91484         New module 'posix_spawn_file_actions_addopen'.
91485         * modules/posix_spawn_file_actions_addopen: New file.
91486         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91487         modifications.
91488         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91489         the new module.
91491         New module 'posix_spawn_file_actions_adddup2'.
91492         * modules/posix_spawn_file_actions_adddup2: New file.
91493         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91494         modifications.
91495         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91496         the new module.
91498         New module 'posix_spawn_file_actions_addclose'.
91499         * modules/posix_spawn_file_actions_addclose: New file.
91500         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91501         modifications.
91502         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91503         the new module.
91505         New module 'posix_spawn_file_actions_init'.
91506         * modules/posix_spawn_file_actions_init: New file.
91507         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91508         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91509         new module.
91511         New module 'posix_spawn-internal'.
91512         * modules/posix_spawn-internal: New file.
91513         * lib/spawn_int.h: New file, from GNU libc with modifications.
91514         * lib/spawni.c: New file, from GNU libc with modifications.
91515         * m4/posix_spawn.m4: New file.
91517         New module 'spawn'.
91518         * modules/spawn: New file.
91519         * lib/spawn.in.h: New file, from GNU libc with modifications.
91520         * m4/spawn_h.m4: New file.
91521         * doc/posix-headers/spawn.texi: Mention the new module.
91523 2008-09-28  Bruno Haible  <bruno@clisp.org>
91525         * modules/sched-tests: New file.
91526         * tests/test-sched.c: New file.
91528         New module 'sched'.
91529         * modules/sched: New file.
91530         * lib/sched.in.h: New file.
91531         * m4/sched_h.m4: New file.
91532         * doc/posix-headers/sched.texi: Mention the new module.
91534 2008-09-27  Eric Blake  <ebb9@byu.net>
91536         Fix previous patch, and tweak references to $0.
91537         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91538         (func_version, func_gnulib_dir): Don't call this program
91539         gnulib-tool.
91540         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91541         with using $0 in function.
91542         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91543         (func_fatal_error): Reuse the name the user invoked us with.
91545 2008-09-27  Bruno Haible  <bruno@clisp.org>
91547         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91548         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91549         (gl_ICONV_H): Not here.
91550         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91551         instead of assigning ICONV_H directly.
91553         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91555         WCHAR_H directly.
91557 2008-09-27  Bruno Haible  <bruno@clisp.org>
91559         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91560         * modules/arpa_inet (Depends-on): Add link-warning.
91561         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91562         * modules/unistd (Makefile.am): Likewise.
91564 2008-09-26  Bruno Haible  <bruno@clisp.org>
91566         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91567         variables.
91568         (func_version): Essentially copied from gnulib-tool.
91569         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91570         func_readlink): Copied from gnulib-tool.
91572 2008-09-26  Bruno Haible  <bruno@clisp.org>
91574         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91575         invoking git-version-gen.
91577 2008-09-26  Bruno Haible  <bruno@clisp.org>
91579         * posix-modules: Update to directory names changed on 2008-01-19.
91580         Remove commas in output before splitting into words. No more need to
91581         avoid 'ftruncate' since 2007-02-19.
91583 2008-09-26  Bruno Haible  <bruno@clisp.org>
91585         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91587 2008-09-26  Bruno Haible  <bruno@clisp.org>
91589         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91590         * modules/fwriteerror (Depends-on): Add errno.
91592 2008-09-26  Bruno Haible  <bruno@clisp.org>
91594         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91595         * tests/test-vc-list-files-cvs.sh: Likewise.
91597 2008-09-26  Bruno Haible  <bruno@clisp.org>
91599         * doc/posix-headers/sys_resource.texi: Reorder items.
91601 2008-09-26  Jim Meyering  <meyering@redhat.com>
91603         fts: tweak inode comparison function
91604         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91605         inode numbers, as documented.
91607         fts: sort dirent entries on inode number before traversing
91608         This avoids a quadratic, seek-related performance penalty when
91609         operating on a directory containing many entries (measurable at 10k;
91610         3.5 hours at 2 million entries with a cold cache) on certain types
91611         of file systems, including ext3 and ext4, but not tmpfs.
91612         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91613         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91614         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91615         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91616         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91617         (fts_build): Set the stat.st_ino member from D_INO.
91618         If it is likely to be useful, sort dirent entries on inode number.
91620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91621         and the struct statfs.f_type member.
91622         * modules/fts (Depends-on): Add d-ino.
91624 2008-09-26  Bruno Haible  <bruno@clisp.org>
91626         * modules/sigpipe-die (Depends-on): Add sigpipe.
91628         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91629         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91630         and GNULIB_STDIO_H_SIGPIPE are set.
91631         * lib/stdio-write.c: New file.
91632         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91633         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91634         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91635         REPLACE_STDIO_WRITE_FUNCS.
91636         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91637         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91638         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91639         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91640         * modules/stdio (Files): Add lib/stdio-write.c.
91641         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91642         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91643         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91644         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91645         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91646         REPLACE_FPRINTF_POSIX.
91647         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91648         REPLACE_PRINTF_POSIX.
91649         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91650         REPLACE_VFPRINTF_POSIX.
91651         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91652         REPLACE_VPRINTF_POSIX.
91653         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91654         SIGPIPE issue.
91655         * doc/posix-functions/fputc.texi: Likewise.
91656         * doc/posix-functions/fputs.texi: Likewise.
91657         * doc/posix-functions/fwrite.texi: Likewise.
91658         * doc/posix-functions/printf.texi: Likewise.
91659         * doc/posix-functions/putc.texi: Likewise.
91660         * doc/posix-functions/putchar.texi: Likewise.
91661         * doc/posix-functions/puts.texi: Likewise.
91662         * doc/posix-functions/vfprintf.texi: Likewise.
91663         * doc/posix-functions/vprintf.texi: Likewise.
91665         * modules/safe-write (Depends-on): Add write.
91667         * modules/sigpipe-tests: New file.
91668         * tests/test-sigpipe.c: New file.
91669         * tests/test-sigpipe.sh: New file.
91671         * modules/write: New file.
91672         * lib/unistd.in.h: Include <sys/types.h>.
91673         (write): New declaration.
91674         * lib/write.c: New file.
91675         * m4/write.m4: New file.
91676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91677         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91678         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91679         GNULIB_WRITE, REPLACE_WRITE.
91680         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91681         and the SIGPIPE issue.
91683         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91684         (raise): New declaration.
91685         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91686         (ext_signal): New function.
91687         (rpl_raise): New function.
91688         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91689         GNULIB_SIGNAL_H_SIGPIPE.
91690         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91691         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91693         * modules/sigpipe: New file.
91694         * m4/sigpipe.m4: New file.
91696 2008-09-25  Derek Price  <derek@ximbiot.com>
91697             Bruno Haible  <bruno@clisp.org>
91699         * gnulib-tool (func_import): Report all license incompatibilities, not
91700         just the first one.
91702 2008-09-25  Bruno Haible  <bruno@clisp.org>
91704         * gnulib-tool (func_import): When computing the edits, consider not
91705         only the Makefile.ams that exist but also those that will be generated.
91707 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91709         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91710         fixes gnulib-tool --test warning about duplicate dependency.
91712 2008-09-25  Bruno Haible  <bruno@clisp.org>
91714         * gnulib-tool: Don't ask the user to perform edits in the generated
91715         Makefile.ams.
91716         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91717         apply to the Makefile.am being generated.
91718         (func_emit_tests_Makefile_am): Execute edits that apply to the
91719         Makefile.am being generated.
91720         (func_import): Setup list of Makefile.am edits before emitting the
91721         Makefile.ams, not at the end.
91722         (func_create_testdir): Update.
91723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91725 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91727         * gnulib-tool (func_import): Store the --tests-base option in the
91728         comment in gnulib-cache.m4.
91730 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91732         * NEWS: Document increased portability that sys_select now provides.
91734         * lib/sys_select.in.h: Install select wrapper.
91735         * lib/sys_socket.in.h: Use more descriptive name when there is no
91736         select wrapper.
91737         * lib/winsock-select.c: New.
91738         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91739         Require gl_HEADER_SYS_SOCKET.
91740         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91741         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91742         * tests/test-sys_select.c: Add functional tests.
91744 2008-09-24  Eric Blake  <ebb9@byu.net>
91746         open, fopen: close fd leak in last patch
91747         * lib/open.c (rpl_open): Close fd before returning error.
91748         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91749         * doc/posix-functions/open.texi (open): Document that Irix also
91750         has the bug.
91751         * doc/posix-functions/fopen.texi (fopen): Likewise.
91752         Reported by Paolo Bonzini.
91754 2008-09-24  Bruno Haible  <bruno@clisp.org>
91756         Ensure that a filename ending in a slash cannot be used to access a
91757         non-directory.
91758         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91759         to check whether it's really a directory.
91760         * lib/fopen.c: Include fcntl.h, unistd.h.
91761         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91762         and fdopen().
91763         * modules/fopen (Depends-on): Add unistd.
91764         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91765         * tests/test-fopen.c (main): Likewise.
91766         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91767         * doc/posix-functions/fopen.texi: Likewise.
91768         Reported by Eric Blake.
91770 2008-09-23  Eric Blake  <ebb9@byu.net>
91772         c-stack: avoid compiler optimizations when provoking overflow
91773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91774         recursion harder to optimize, to ensure a stack overflow occurs.
91775         * tests/test-c-stack.c (recurse): Likewise.
91776         Borrowed from libsigsegv.
91778         c-stack: work around Irix sigaltstack bug
91779         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91780         whether sigaltstack uses wrong end of stack_t (copied in part from
91781         libsigsegv).
91782         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91783         Irix bug, without requiring an over-allocation.
91784         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91785         bug.
91787         fopen: document mingw bug on directories
91788         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91789         not allowing a stream visiting a directory, even though reading
91790         from such a stream is not portable.
91792 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91794         * lib/poll.c: Rewrite.
91795         * modules/poll: Depend on alloca.
91797 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91799         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91800         instead define prototypes for a full set of wrappers.  Ensure
91801         that Cygwin does not use the compatibility code, which is only
91802         for MinGW.
91803         * lib/winsock.c: New.
91804         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91805         * modules/sys_socket: Add lib/winsock.c.
91807         * modules/poll-tests: Add errno and perror.
91808         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91810 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91812         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91814 2008-09-23  Bruno Haible  <bruno@clisp.org>
91816         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91817         * doc/glibc-functions/*: Likewise.
91819 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91821         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91822         success.
91824 2008-09-22  Eric Blake  <ebb9@byu.net>
91825             Bruno Haible  <bruno@clisp.org>
91827         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91828         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91829         supply %A but mishandle pseudo-NaN.
91830         Reported by Simon Josefsson.
91832 2008-09-21  Bruno Haible  <bruno@clisp.org>
91834         * tests/test-lock.c (main): Tweak skip message.
91835         * tests/test-tls.c (main): Likewise.
91837 2008-09-21  Bruno Haible  <bruno@clisp.org>
91839         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91840         whether 'struct sigaction' has sa_sigaction here...
91841         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91842         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91844 2008-09-21  Bruno Haible  <bruno@clisp.org>
91846         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91847         section.
91848         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91849         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91850         the new section.
91851         (Support for obsolete systems lacking POSIX:2001): New section.
91852         (String handling <string.h>): Move strdup to the new section.
91853         Suggested by Simon Josefsson and Paolo Bonzini.
91855 2008-09-21  Bruno Haible  <bruno@clisp.org>
91857         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91858         exponents in %e and %g results on 'long double'. Needed for mingw's
91859         improved *printf functions.
91860         * tests/test-vasprintf-posix.c (test_function): Likewise.
91861         * tests/test-snprintf-posix.h (test_function): Likewise.
91862         * tests/test-sprintf-posix.h (test_function): Likewise.
91863         Reported by Eric Blake.
91865 2008-09-21  Bruno Haible  <bruno@clisp.org>
91867         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91868         * tests/test-sprintf-posix.h (test_function): Likewise.
91870 2008-09-21  Bruno Haible  <bruno@clisp.org>
91872         * modules/getpass (Depends-on): Add strdup-posix.
91874         New module 'strdup-posix'.
91875         * modules/strdup-posix: New file.
91876         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91877         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91879         REPLACE_STRDUP.
91880         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91881         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91883         strdup-posix.
91885         * modules/strdup (Depends-on): Remove malloc-posix.
91887 2008-09-20  Bruno Haible  <bruno@clisp.org>
91889         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91890         Wildenhues.
91892 2008-09-20  Bruno Haible  <bruno@clisp.org>
91894         Ensure that wint_t gets defined on IRIX 5.3.
91895         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91896         * lib/wctype.in.h (wint_t): Likewise.
91897         (__wctype_wint_t): Remove type.
91898         (isw*): Use wint_t instead of __wctype_wint_t.
91899         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91900         * modules/wchar (Files): Add m4/wint_t.m4.
91901         (Makefile.am): Substitute HAVE_WINT_T.
91902         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91903         * tests/test-wctype.c: Check that wint_t is defined.
91904         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91905         * doc/posix-headers/wctype.texi: Likewise.
91906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91908 2008-09-18  Bruno Haible  <bruno@clisp.org>
91910         * gnulib-tool (func_exit): Update comment.
91912 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91914         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91915         assumes strdup exists and does not depend on strdup to return
91916         ENOMEM on out of memory conditions.
91918 2008-09-18  Bruno Haible  <bruno@clisp.org>
91920         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91921         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91922         digits for the exponent.
91924 2008-09-18  Jim Meyering  <meyering@redhat.com>
91925             Bruno Haible  <bruno@clisp.org>
91927         * lib/vasnprintf.c (decimal_point_char): Define also if
91928         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91930 2008-09-16  Bruno Haible  <bruno@clisp.org>
91931         and Eric Blake  <ebb9@byu.net>
91933         vasnprintf: support Irix 5.3
91934         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91935         that mishandle long double infinity.
91936         Reported by Tom G. Christensen.
91938 2008-09-16  Bruno Haible  <bruno@clisp.org>
91940         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91941         Solaris 9.
91942         * doc/glibc-functions/alphasort.texi: Likewise.
91943         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91945 2008-09-16  Jim Meyering  <meyering@redhat.com>
91947         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91948         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91949         a umask modification leak out of a subshell.  Otherwise, the
91950         opensolaris /bin/sh would be accepted and thus cause unwarranted
91951         failures in the coreutils test suite.
91953 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91955         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91956         to succeed.
91958 2008-09-16  Jim Meyering  <meyering@redhat.com>
91960         avoid spurious test failure when library is built without ACL support
91961         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91962         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91963         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91964         * tests/test-copy-acl.sh: Likewise.
91966 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91968         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91969         based on character occurrence counts.
91971 2008-09-15  Eric Blake  <ebb9@byu.net>
91973         tests: avoid some compiler warnings
91974         * tests/test-memchr.c (main): Pass NULL indirectly.
91975         * tests/test-closein.c (main): Avoid unused variable.
91977 2008-09-15  Bruno Haible  <bruno@clisp.org>
91979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91980         are missing on OpenBSD 4.0 individually.
91981         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91983 2008-09-15  Bruno Haible  <bruno@clisp.org>
91985         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91986         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91987         * doc/posix-functions/perror.texi: Likewise.
91988         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91989         is missing.
91990         Reported by Eric Blake.
91992         * lib/errno.in.h: Use replacement values >= 2000.
91993         Reported by Eric Blake.
91995 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91997         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91998         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91999         limit.
92000         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92001         compareseq was aborted.
92003 2008-09-14  Bruno Haible  <bruno@clisp.org>
92005         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92006         yvec_edit_count.
92007         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92008         (fstrcmp_bounded): Simplify result computation accordingly.
92010 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92012         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92013         (fstrcmp): Define in terms of fstrcmp_bounded.
92014         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92015         lower_bound argument.
92016         Return quickly if the result is certainly < lower_bound.
92017         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92019 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92021         * lib/diffseq.h (EARLY_ABORT): New macro.
92022         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92023         evaluates to true.
92025 2008-09-14  Bruno Haible  <bruno@clisp.org>
92027         * modules/perror-tests: New file.
92028         * tests/test-perror.sh: New file.
92029         * tests/test-perror.c: New file.
92031         New module 'perror'.
92032         * lib/stdio.in.h (perror): New declaration.
92033         * lib/perror.c: New file.
92034         * m4/perror.m4: New file.
92035         * modules/perror: New file.
92036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92037         * doc/posix-functions/perror.texi: Mention the perror module.
92038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92039         REPLACE_PERROR.
92040         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92041         REPLACE_PERROR.
92043 2008-09-14  Bruno Haible  <bruno@clisp.org>
92045         * modules/stdio (Makefile.am): Reorder to match the order in
92046         lib/stdio.in.h.
92047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92049 2008-09-13  Bruno Haible  <bruno@clisp.org>
92051         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92053 2008-09-13  Bruno Haible  <bruno@clisp.org>
92055         Extend strerror to cover the added errno values.
92056         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92057         (rpl_strerror): Provide error messages for the added errno values and
92058         for the WSA* values.
92059         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92060         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92061         strerror.
92062         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92063         * modules/strerror (Depends-on): Add errno.
92064         * doc/posix-functions/strerror.texi: Document the change.
92065         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92066         and EOVERFLOW.
92068 2008-09-13  Bruno Haible  <bruno@clisp.org>
92070         * modules/EOVERFLOW: Remove file.
92071         * m4/eoverflow.m4: Remove file.
92072         * modules/EOVERFLOW-tests: Remove file.
92073         * tests/test-EOVERFLOW.c: Remove file.
92074         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92075         * modules/ftell (Depends-on): Likewise.
92076         * modules/getdelim (Depends-on): Likewise.
92077         * modules/getugroups (Depends-on): Likewise.
92078         * modules/poll (Depends-on): Likewise.
92079         * modules/snprintf (Depends-on): Likewise.
92080         * modules/sprintf-posix (Depends-on): Likewise.
92081         * modules/vasnprintf (Depends-on): Likewise.
92082         * modules/vasprintf (Depends-on): Likewise.
92083         * modules/vfprintf-posix (Depends-on): Likewise.
92084         * modules/vsnprintf (Depends-on): Likewise.
92085         * modules/vsprintf-posix (Depends-on): Likewise.
92086         * modules/xvasprintf (Depends-on): Likewise.
92087         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92088         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92089         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92090         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92091         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92092         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92093         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92094         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92095         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92096         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92097         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92098         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92099         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92100         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92101         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92102         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92103         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92104         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92105         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92106         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92107         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92108         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92109         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92110         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92111         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92112         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92113         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92114         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92115         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92116         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92117         * MODULES.html.sh: Remove EOVERFLOW.
92118         * NEWS: Mention the change.
92120 2008-09-13  Bruno Haible  <bruno@clisp.org>
92122         * modules/errno-tests: New file.
92123         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92125         * lib/errno.in.h: New file.
92126         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92127         * modules/errno: New file.
92128         * doc/posix-headers/errno.texi: Update documentation.
92129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92131 2008-09-13  Bruno Haible  <bruno@clisp.org>
92133         * tests/test-poll.c: Use #if for native Windows, rather than testing
92134         __MSVCRT__.
92136 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92137             Bruno Haible  <bruno@clisp.org>
92139         * lib/glob.c: Don't include <pwd.h> on native Windows.
92140         (WINDOWS32): New macro.
92141         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92143 2008-09-13  Bruno Haible  <bruno@clisp.org>
92145         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92146         (ETIMEDOUT): Remove macro.
92147         (glthread_cond_timedwait_multithreaded): New declaration.
92148         (glthread_cond_timedwait): Use it.
92149         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92150         (glthread_cond_timedwait_multithreaded): New function.
92152 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92154         * modules/poll-tests: Do not check for io.h.
92155         * tests/test-poll.c: Check for __MSVCRT__ instead.
92157 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92159         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92160         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92161         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92163 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92165         * modules/poll-tests: New.
92166         * tests/test-poll.c: New.
92168 2008-09-12  Eric Blake  <ebb9@byu.net>
92170         frexp: test for NetBSD failure on -0.0
92171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92172         not all, bugs from NetBSD 3.0 have been fixed.
92173         * doc/posix-functions/frexp.texi (frexp): Document bug.
92174         Reported by Thomas Klausner.
92176         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92177         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92178         literal -0.0.
92179         Reported by Jonathan C. Patschke <jp@centtech.com>.
92181 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92183         * lib/glthread/cond.h: Use dummy implementation also if
92184         USE_WIN32_THREADS.
92186 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92188         * modules/fnmatch-posix (License): Change to LGPLv2+.
92189         * modules/fnmatch-gnu (License): Likewise.
92191 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92193         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92195 2008-09-11  Jim Meyering  <meyering@redhat.com>
92197         * users.txt: Add gtk-vnc.
92199 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92201         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92202         rotate amounts.
92204         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92205         required for 16-bit and 8-bit rotates.
92206         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92207         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92208         UINT8_MAX instead of hard-coded constants.
92209         Suggested by Paul Eggert.
92211 2008-09-07  Bruno Haible  <bruno@clisp.org>
92213         * tests/test-striconveh.c (main): Check behaviour when converting from
92214         UTF-7.
92216         Make striconveh work better with stateful encodings.
92217         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92218         that iconv does not increment the inptr when returning -1/EINVAL.
92220 2008-09-07  Bruno Haible  <bruno@clisp.org>
92222         * build-aux/config.rpath: Update according to libtool-2.2.6.
92223         * build-aux/config.libpath: Likewise.
92225 2008-09-06  Bruno Haible  <bruno@clisp.org>
92227         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92228         * lib/freadptr.c (freadptr): Likewise.
92229         * lib/freadseek.c (freadptrinc): Likewise.
92230         Reported by Simon Josefsson.
92232 2008-09-06  Bruno Haible  <bruno@clisp.org>
92234         * modules/freadptr (License): Change to LGPLv2+.
92235         * modules/freadseek (License): Likewise.
92236         Suggested by Eric Blake.
92238         * modules/memchr2 (License): Change to LGPLv2+.
92239         Approved by Eric Blake.
92241 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92242             Bruno Haible  <bruno@clisp.org>
92244         Make gnulib-tool work with native 'sed' on AIX.
92245         * gnulib-tool (sed_noop): New variable.
92246         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92247         func_add_or_update, func_create_testdir): Use it to initialize sed
92248         script variables.
92249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92251 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92252             Bruno Haible  <bruno@clisp.org>
92254         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92255         also works after #include directives.
92257 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92259         getdate.y: reject an out-of-range timezone value
92260         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92261         the range [-24...+24].  When specified with only one or two digits,
92262         * tests/test-getdate.c: Tests for the fix.
92263         * doc/getdate.texi: Document this change.
92265 2008-09-03  Bruno Haible  <bruno@clisp.org>
92267         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92269 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92271         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92272         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92273         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92274         Blake <ebb9@byu.net>.
92276         * tests/test-bitrotate.c: Add more test vectors.
92278 2008-09-02  Eric Blake  <ebb9@byu.net>
92280         vasnprintf-posix: handle large precision via %.*d
92281         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92282         when handling it ourselves.
92283         * tests/test-vasnprintf-posix.c (test_function): Add test.
92284         * tests/test-snprintf-posix.h (test_function): Likewise.
92285         * tests/test-sprintf-posix.h (test_function): Likewise.
92286         * tests/test-vasprintf-posix.c (test_function): Likewise.
92287         Reported by Alain Guibert.
92289 2008-09-01  Eric Blake  <ebb9@byu.net>
92291         c-stack: make configure-time check more robust
92292         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92293         successful sigaction call.
92294         Reported by Tom G. Christensen.
92296 2008-09-01  Bruno Haible  <bruno@clisp.org>
92298         New module 'findprog-lgpl'.
92299         * modules/findprog-lgpl: New file.
92300         * lib/findprog-lgpl.c: New file.
92301         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92302         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92303         to decide whether to use strdup or xstrdup, concatenated_filename or
92304         xconcatenated_filename.
92306 2008-09-01  Bruno Haible  <bruno@clisp.org>
92308         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92309         'xconcat-filename' (GPL).
92310         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92311         (License): Change to LGPLv2+.
92312         * modules/xconcat-filename: New file.
92313         * lib/concat-filename.h (concatenated_filename): Change specification.
92314         (xconcatenated_filename): New declaration.
92315         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92316         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92317         memory situations.
92318         * lib/xconcat-filename.c: New file.
92319         * NEWS: Mention the change.
92320         * lib/findprog.c: Include concat-filename.h, not filename.h.
92321         (find_in_path): Use xconcatenated_filename instead of
92322         concatenated_filename.
92323         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92324         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92325         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92326         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92327         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92328         instead of concatenated_filename.
92329         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92330         (execute_java_class): Use xconcatenated_filename instead of
92331         concatenated_filename.
92332         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92333         * modules/javacomp (Depends-on): Likewise.
92334         * modules/javaexec (Depends-on): Likewise.
92336 2008-09-01  Bruno Haible  <bruno@clisp.org>
92338         Split module 'filename' into 'filename' and 'concat-filename'.
92339         * modules/filename: Keep only lib/filename.h.
92340         (License): Change to LGPLv2+.
92341         * modules/concat-filename: New file, extracted from modules/filename.
92342         * lib/filename.h (concatenated_filename): Remove declaration.
92343         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92344         * lib/concat-filename.c: Include concat-filename.h.
92345         * NEWS: Mention the change.
92347 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92349         * lib/bitrotate.h (rotl8, rotr8): Add.
92351         * modules/bitrotate (configure.ac): Need
92352         AC_REQUIRE([AC_C_INLINE]).
92353         (Description): Mention stdint.h.  Reported by Bruno Haible
92354         <bruno@clisp.org>.
92356         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92357         Paolo Bonzini <bonzini@gnu.org>.
92359 2008-08-31  Bruno Haible  <bruno@clisp.org>
92361         Assume Solaris specific bi-arch conventions on Solaris systems.
92362         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92363         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92364         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92365         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92366         like acl_libdirstem.
92367         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92368         acl_libdirstem.
92369         * NEWS: Mention the change.
92370         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92372 2008-08-31  Jim Meyering  <meyering@redhat.com>
92374         * lib/strftime.h: Add comments describing the two added arguments.
92376         remove duplicate #include directives
92377         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92378         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92380 2008-08-31  Bruno Haible  <bruno@clisp.org>
92382         New module 'sigpipe-die'.
92383         * modules/sigpipe-die: New file.
92384         * lib/sigpipe-die.h: New file.
92385         * lib/sigpipe-die.c: New file.
92386         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92388 2008-08-31  Bruno Haible  <bruno@clisp.org>
92390         Don't override previously installed signal handlers.
92391         * lib/fatal-signal.c (saved_sigactions): New variable.
92392         (uninstall_handlers): Reset the signal to the saved handler, not
92393         to SIG_DFL (except when ignored).
92394         (install_handlers): Save the previous handlers.
92396 2008-08-30  Bruno Haible  <bruno@clisp.org>
92398         * gnulib-tool (func_reset_sigpipe): New function.
92399         (func_get_automake_snippet, func_modules_transitive_closure,
92400         func_import): Invoke it before a join command that reads from stdin,
92401         to avoid "echo: write error: Broken pipe" error messages on stderr.
92402         Reported by Sam Steingold <sds@gnu.org>.
92404 2008-08-30  Bruno Haible  <bruno@clisp.org>
92406         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92407         Code copied from m4/open.m4.
92408         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92409         access and the filename ends in a slash. Code copied from lib/open.c.
92410         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92411         * tests/test-fopen.c (main): Check against bug with trailing slash.
92413 2008-08-29  Bruno Haible  <bruno@clisp.org>
92415         Avoid some "gcc -pedantic" warnings.
92416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92417         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92418         * lib/dirent.in.h: Likewise.
92419         * lib/fcntl.in.h: Likewise.
92420         * lib/float.in.h: Likewise.
92421         * lib/iconv.in.h: Likewise.
92422         * lib/inttypes.in.h: Likewise.
92423         * lib/locale.in.h: Likewise.
92424         * lib/math.in.h: Likewise.
92425         * lib/netinet_in.in.h: Likewise.
92426         * lib/search.in.h: Likewise.
92427         * lib/signal.in.h: Likewise.
92428         * lib/stdarg.in.h: Likewise.
92429         * lib/stdint.in.h: Likewise.
92430         * lib/stdio.in.h: Likewise.
92431         * lib/stdlib.in.h: Likewise.
92432         * lib/string.in.h: Likewise.
92433         * lib/strings.in.h: Likewise.
92434         * lib/sys_select.in.h: Likewise.
92435         * lib/sys_socket.in.h: Likewise.
92436         * lib/sys_stat.in.h: Likewise.
92437         * lib/sys_time.in.h: Likewise.
92438         * lib/sysexits.in.h: Likewise.
92439         * lib/time.in.h: Likewise.
92440         * lib/unistd.in.h: Likewise.
92441         * lib/wchar.in.h: Likewise.
92442         * lib/wctype.in.h: Likewise.
92443         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92444         * modules/fchdir (Makefile.am): Likewise.
92445         * modules/fcntl (Makefile.am): Likewise.
92446         * modules/float (Makefile.am): Likewise.
92447         * modules/iconv_open (Makefile.am): Likewise.
92448         * modules/inttypes (Makefile.am): Likewise.
92449         * modules/locale (Makefile.am): Likewise.
92450         * modules/math (Makefile.am): Likewise.
92451         * modules/netinet_in (Makefile.am): Likewise.
92452         * modules/search (Makefile.am): Likewise.
92453         * modules/signal (Makefile.am): Likewise.
92454         * modules/stdarg (Makefile.am): Likewise.
92455         * modules/stdint (Makefile.am): Likewise.
92456         * modules/stdio (Makefile.am): Likewise.
92457         * modules/stdlib (Makefile.am): Likewise.
92458         * modules/string (Makefile.am): Likewise.
92459         * modules/strings (Makefile.am): Likewise.
92460         * modules/sys_select (Makefile.am): Likewise.
92461         * modules/sys_socket (Makefile.am): Likewise.
92462         * modules/sys_stat (Makefile.am): Likewise.
92463         * modules/sys_time (Makefile.am): Likewise.
92464         * modules/sysexits (Makefile.am): Likewise.
92465         * modules/time (Makefile.am): Likewise.
92466         * modules/unistd (Makefile.am): Likewise.
92467         * modules/wchar (Makefile.am): Likewise.
92468         * modules/wctype (Makefile.am): Likewise.
92469         Reported by Reuben Thomas <rrt@sc3d.org>.
92471 2008-08-29  Bruno Haible  <bruno@clisp.org>
92473         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92474         any more.
92476 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92478         * MODULES.html.sh (Misc): Add bitrotate.
92480         * modules/bitrotate: New file.
92482         * lib/bitrotate.h: New file.
92484         * modules/bitrotate-tests: New file.
92486         * tests/test-bitrotate.c: New file.
92488         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92489         on the bitrotate module.
92491         * lib/arctwo.c: Use new bitrotate module.
92493 2008-08-29  Jim Meyering  <meyering@redhat.com>
92495         bootstrap: merge changes from coreutils
92496         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92497         of copied files.  Remove a kludge, now that this is fixed.
92498         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92499         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92500         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92502 2008-08-29  Bruno Haible  <bruno@clisp.org>
92504         * MODULES.html.sh: Remove --cvs-urls option.
92506 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92508         maint.mk: adjust to file name change
92509         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92511 2008-08-28  Jim Meyering  <meyering@redhat.com>
92513         * modules/getndelim2 (License): Relicense to LGPLv2+.
92514         Approved by Richard Stallman for the version of 1995, and by
92515         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92517 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92519         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92520         dummy if one is not available.  Do not touch them if
92521         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92522         (getc_maybe_unlocked): New.
92523         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92525 2008-08-26  Eric Blake  <ebb9@byu.net>
92527         doc/INSTALL: resync from autoconf
92528         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92529         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92530         moving...
92531         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92532         * INSTALL: Regenerate.
92533         * INSTALL.ISO: New file.
92534         * INSTALL.UTF-8: Likewise.
92536 2008-08-26  Jim Meyering  <meyering@redhat.com>
92538         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92539         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92540         these definitions conditional, so that they may be overridden, too.
92542 2008-08-26  Bruno Haible  <bruno@clisp.org>
92544         Generate INSTALL file variants with prettier quotes.
92545         * doc/Makefile (INSTALL_PRELUDE): New macro.
92546         (INSTALL): Use it.
92547         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92549 2008-08-26  Bruno Haible  <bruno@clisp.org>
92551         Run makeinfo in an English locale.
92552         * doc/Makefile (MAKEINFO): New variable.
92554 2008-08-26  Bruno Haible  <bruno@clisp.org>
92556         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92557         Suggested by Eric Blake.
92559 2008-08-25  Bruno Haible  <bruno@clisp.org>
92561         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92563 2008-08-25  Eric Blake  <ebb9@byu.net>
92565         c-stack: test that stack overflow can be caught
92566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92567         that platform allows handling stack overflow; at least OS/2 EMX
92568         has sigaltstack, but crashes before transferring control to
92569         handler on stack overflow.
92570         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92571         check for HAVE_STACK_OVERFLOW_HANDLING.
92572         Reported by Elbert Pol.
92574 2008-08-25  Bruno Haible  <bruno@clisp.org>
92576         * doc/posix-functions/strftime.texi: Fix description of strftime
92577         module.
92579 2008-08-24  Bruno Haible  <bruno@clisp.org>
92581         * tests/uniwidth/test-uc_width2.c: New file.
92582         * tests/uniwidth/test-uc_width2.sh: New file.
92583         * modules/uniwidth/width-tests (Files): Add the new files.
92584         (TESTS): Add uniwidth/test-uc_width2.sh.
92585         (TESTS_ENVIRONMENT): New variable.
92586         (check_PROGRAMS): Add test-uc_width2.
92587         (test_uc_width2_SOURCES): New variable.
92589         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92590         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92591         not 0x00AB.
92592         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92594 2008-08-22  Eric Blake  <ebb9@byu.net>
92596         test-lock, test-tls: mention why a test is skipped
92597         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92598         skipped.
92599         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92601         count-one-bits: relax license
92602         * modules/count-one-bits (License): Relicense to LGPLv2+.
92603         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92605 2008-08-22  Andreas Schwab  <schwab@suse.de>
92607         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92608         Remove spurious space in assignment.
92610 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92612         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92613         Paul Eggert <eggert@CS.UCLA.EDU>.
92615 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92617         * modules/gettext: Add m4/threadlib.m4.
92619 2008-08-19  Eric Blake  <ebb9@byu.net>
92621         test-c-stack: fix compilation failure on FreeBSD 5.0
92622         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92623         headers before <sys/resource.h>.
92624         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92625         the bug.
92626         Reported by Nelson H. F. Beebe.
92628         strverscmp: migrate from "strverscmp.h" to <string.h>
92629         * modules/string (Makefile.am): Add new hooks.
92630         * modules/strverscmp (Files): Remove strverscmp.h.
92631         (Depends-on): Add string.
92632         (configure.ac): Add indicator.
92633         (Include): Mention new header.
92634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92635         defaults.
92636         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92637         results.
92638         * lib/strverscmp.h: Delete.
92639         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92640         * tests/test-strverscmp.c (includes): Adjust client.
92641         * lib/check-version.c (includes): Likewise.
92642         * NEWS: Document the change.
92644         strverscmp: add unit test
92645         * modules/strverscmp-tests: New file.
92646         * tests/test-strverscmp.c: Likewise.
92648 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92650         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92651         regarding Windows crypto stuff, from Mono.
92653 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92655         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92656         if present, for intel RND.  Return error on failures.
92658 2008-08-18  Ben Pfaff  <blp@gnu.org>
92660         gitlog-to-changelog: give better diagnostic for failed pipe-open
92661         * build-aux/gitlog-to-changelog: Improve error message: suggest
92662         that the version of Git may be too old.
92664 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92666         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92667         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92669 2008-08-18  Bruno Haible  <bruno@clisp.org>
92671         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92672         pthread_in_use().
92674 2008-08-18  Bruno Haible  <bruno@clisp.org>
92676         * lib/glthread/threadlib.c: Include <pthread.h>.
92678 2008-08-18  Bruno Haible  <bruno@clisp.org>
92680         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92681         glthread_recursive_lock_* macros.
92682         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92683         Fix syntax error.
92685 2008-08-18  Bruno Haible  <bruno@clisp.org>
92687         * lib/glthread/thread.c: Avoid forcing a context switch right after
92688         thread creation.
92690 2008-08-17  Bruno Haible  <bruno@clisp.org>
92692         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92693         * lib/glthread/thread.h: Provide Win32 specific implementation.
92694         * modules/thread (Files): Add lib/glthread/thread.c.
92695         (Depends-on): Add lock.
92696         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92698 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92700         New module 'yield'.
92701         * modules/yield: New file.
92702         * lib/glthread/yield.h: New file.
92703         * m4/yield.m4: New file.
92704         * MODULES.html.sh (Multithreading): Add yield.
92706 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92708         New module 'thread'.
92709         * modules/thread: New file.
92710         * lib/glthread/thread.h: New file.
92711         * m4/thread.m4: New file.
92712         * MODULES.html.sh (Multithreading): Add thread.
92714 2008-08-17  Bruno Haible  <bruno@clisp.org>
92716         * lib/glthread/lock.h: Include <stdlib.h> always.
92717         * lib/glthread/tls.h: Likewise.
92718         * lib/glthread/cond.h: Likewise.
92720 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92722         New module 'cond'.
92723         * modules/cond: New file.
92724         * lib/glthread/cond.h: New file.
92725         * lib/glthread/cond.c: New file.
92726         * m4/cond.m4: New file.
92727         * MODULES.html.sh (Multithreading): Add cond.
92729 2008-08-16  Eric Blake  <ebb9@byu.net>
92731         c-stack: fix regression on Irix 5.3 from 2008-06-21
92732         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92733         sa_sigaction...
92734         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92735         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92736         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92737         * modules/signal (Makefile.am): Use the value.
92738         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92739         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92740         * doc/posix-headers/signal.texi (signal.h): Document this
92741         portability issue.
92742         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92743         Reported by Tom G. Christensen.
92745 2008-08-17  Bruno Haible  <bruno@clisp.org>
92747         New module 'threadlib'.
92748         * modules/threadlib: New file.
92749         * lib/glthread/threadlib.c: New file, extracted from
92750         lib/glthread/lock.c.
92751         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92752         functions.
92753         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92754         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92755         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92756         macros.
92757         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92758         (gl_DISABLE_THREADS): Remove macro.
92759         * modules/lock (Files): Remove build-aux/config.rpath.
92760         (Depends-on): Remove havelib. Add threadlib.
92761         (configure.ac-early): Remove section.
92762         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92763         * modules/tls (Depends-on): Remove lock. Add threadlib.
92764         (Link): New section, copied from threadlib.
92765         * MODULES.html.sh (Multithreading): Add threadlib.
92767 2008-08-14  Bruno Haible  <bruno@clisp.org>
92769         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92770         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92771         glthread_rwlock_unlock, glthread_rwlock_destroy,
92772         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92773         glthread_recursive_lock_destroy): Define as macros always.
92774         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92775         glthread_lock_lock.
92776         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92777         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92778         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92779         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92780         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92781         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92782         (glthread_recursive_lock_lock_func): Renamed from
92783         glthread_recursive_lock_lock.
92784         (glthread_recursive_lock_unlock_func): Renamed from
92785         glthread_recursive_lock_unlock.
92786         (glthread_recursive_lock_destroy_func): Renamed from
92787         glthread_recursive_lock_destroy.
92789 2008-08-14  Bruno Haible  <bruno@clisp.org>
92791         * lib/glthread/lock.h: Renamed from lib/lock.h.
92792         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92793         * lib/glthread/tls.h: Renamed from lib/tls.h.
92794         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92795         * lib/fstrcmp.c: Update includes.
92796         * lib/strsignal.c: Update includes.
92797         * modules/lock (Files, Makefile.am): Update.
92798         (Include): Change to "glthread/lock.h".
92799         * modules/tls (Files, Makefile.am): Update.
92800         (Include): Change to "glthread/tls.h".
92801         * tests/test-lock.c: Update includes.
92802         * tests/test-tls.c: Update includes.
92803         * NEWS: Mention the renamed header files.
92805 2008-08-11  Jim Meyering  <meyering@redhat.com>
92807         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92809 2008-08-11  Eric Blake  <ebb9@byu.net>
92811         test-c-stack: avoid C99-ism
92812         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92813         before statement.
92814         Reported by Alain Guibert.
92816 2008-08-10  Jim Meyering  <meyering@redhat.com>
92818         ensure that return value of uinttostr et al are not ignored
92819         * lib/inttostr.h (__GNUC_PREREQ): Define.
92820         (__attribute_warn_unused_result__): Define.
92821         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92823 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92825         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92826         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92828 2008-08-07  Jim Meyering  <meyering@redhat.com>
92830         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92832         * modules/mkstemp (License): Relicense under LGPLv2+.
92833         * modules/tempname (License): Likewise.
92835 2008-08-06  Bruno Haible  <bruno@clisp.org>
92837         * lib/poll.c (poll): Further micro-optimization.
92839 2008-08-06  Jim Meyering  <meyering@redhat.com>
92841         inet_pton.c: use locale-independent tolower
92842         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92843         (inet_pton6): Use c_tolower rather than tolower.
92844         * modules/inet_pton (Depends-on): Add c-ctype.
92846 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92848         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92849         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92851 2008-08-06  Jim Meyering  <meyering@redhat.com>
92853         * modules/inet_pton (License): Relicense under LGPLv2+.
92855 2008-08-03  Bruno Haible  <bruno@clisp.org>
92857         Additional non-aborting API for lock and tls.
92858         * lib/lock.h: Include <errno.h>.
92859         (glthread_lock_init): New macro/function.
92860         (gl_lock_init): Define as wrapper around glthread_lock_init.
92861         (glthread_lock_lock): New macro/function.
92862         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92863         (glthread_lock_unlock): New macro/function.
92864         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92865         (glthread_lock_destroy): New macro/function.
92866         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92867         (glthread_rwlock_init): New macro/function.
92868         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92869         (glthread_rwlock_rdlock): New macro/function.
92870         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92871         (glthread_rwlock_wrlock): New macro/function.
92872         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92873         (glthread_rwlock_unlock): New macro/function.
92874         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92875         (glthread_rwlock_destroy): New macro/function.
92876         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92877         (glthread_recursive_lock_init): New macro/function.
92878         (gl_recursive_lock_init): Define as wrapper around
92879         glthread_recursive_lock_init.
92880         (glthread_recursive_lock_lock): New macro/function.
92881         (gl_recursive_lock_lock): Define as wrapper around
92882         glthread_recursive_lock_lock.
92883         (glthread_recursive_lock_unlock): New macro/function.
92884         (gl_recursive_lock_unlock): Define as wrapper around
92885         glthread_recursive_lock_unlock.
92886         (glthread_recursive_lock_destroy): New macro/function.
92887         (gl_recursive_lock_destroy): Define as wrapper around
92888         glthread_recursive_lock_destroy.
92889         (glthread_once): New macro/function.
92890         (gl_once): Define as wrapper around glthread_once.
92891         Update function declarations.
92892         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92893         glthread_rwlock_init. Return error code.
92894         (glthread_rwlock_rdlock_multithreaded): Renamed from
92895         glthread_rwlock_rdlock. Return error code.
92896         (glthread_rwlock_wrlock_multithreaded): Renamed from
92897         glthread_rwlock_wrlock. Return error code.
92898         (glthread_rwlock_unlock_multithreaded): Renamed from
92899         glthread_rwlock_unlock. Return error code.
92900         (glthread_rwlock_destroy_multithreaded): Renamed from
92901         glthread_rwlock_destroy. Return error code.
92902         (glthread_recursive_lock_init_multithreaded): Renamed from
92903         glthread_recursive_lock_init. Return error code.
92904         (glthread_recursive_lock_lock_multithreaded): Renamed from
92905         glthread_recursive_lock_lock. Return error code.
92906         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92907         glthread_recursive_lock_unlock. Return error code.
92908         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92909         glthread_recursive_lock_destroy. Return error code.
92910         (glthread_once_call): Make static.
92911         (glthread_once_multithreaded): Renamed from glthread_once.
92912         * lib/tls.h: Include <errno.h>.
92913         (glthread_tls_key_init): New macro/function.
92914         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92915         (glthread_tls_set): New macro/function.
92916         (gl_tls_set): Define as wrapper around glthread_tls_set.
92917         (glthread_tls_key_destroy): New macro/function.
92918         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92919         Update function declarations.
92920         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92921         glthread_tls_get.
92922         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92924 2008-08-04  Eric Blake  <ebb9@byu.net>
92926         gnumakefile: use space, not TAB, outside of targets
92927         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92929 2008-08-02  Jim Meyering  <meyering@redhat.com>
92931         getdate.y: avoid locale-dependent date parsing failure
92932         In Turkish locales, getdate would fail to recognize keywords
92933         containing a lowercase "i".  The solution is not to rely on
92934         locale-sensitive case-conversion.
92935         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92936         (lookup_word): Use c_toupper in place of toupper.
92937         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92938         Reported by Vefa Bicakci <bicave@superonline.com> in
92939         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92940         * modules/getdate (Depends-on): Add c-ctype.
92942 2008-08-02  Bruno Haible  <bruno@clisp.org>
92944         * gnulib-tool (func_import): When updating or creating a .gitignore
92945         file, prepend each added line with a slash, and ignore leading slashes
92946         from the existing lines.
92947         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92949 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92951         Portability fix for GNU make 3.79.1.
92952         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92953         versions do not understand.
92955 2008-08-01  Bruno Haible  <bruno@clisp.org>
92957         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92958         * tests/test-isnanf.h (zero): New variable.
92959         (main): Avoid literal -0.0f.
92960         * tests/test-isnand.h (zero): New variable.
92961         (main): Avoid literal -0.0.
92962         * tests/test-isnanl.h (zero): New variable.
92963         (main): Avoid literal -0.0L.
92964         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92965         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92966         -0.0, -0.0L.
92967         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92968         (test_signbitd): Avoid literal -0.0.
92969         (test_signbitl): Avoid literal -0.0L.
92970         * tests/test-ceilf1.c (zero): New variable.
92971         (main): Avoid literal -0.0f.
92972         * tests/test-ceill.c (zero): New variable.
92973         (main): Avoid literal -0.0L.
92974         * tests/test-floorf1.c (zero): New variable.
92975         (main): Avoid literal -0.0f.
92976         * tests/test-floorl.c (zero): New variable.
92977         (main): Avoid literal -0.0L.
92978         * tests/test-roundf1.c (zero): New variable.
92979         (main): Avoid literal -0.0f.
92980         * tests/test-round1.c (zero): New variable.
92981         (main): Avoid literal -0.0.
92982         * tests/test-roundl.c (zero): New variable.
92983         (main): Avoid literal -0.0L.
92984         * tests/test-truncf1.c (zero): New variable.
92985         (main): Avoid literal -0.0f.
92986         * tests/test-trunc1.c (zero): New variable.
92987         (main): Avoid literal -0.0.
92988         * tests/test-truncl.c (zero): New variable.
92989         (main): Avoid literal -0.0L.
92990         * tests/test-frexp.c (zero): New variable.
92991         (main): Avoid literal -0.0.
92992         * tests/test-frexpl.c (zero): New variable.
92993         (main): Avoid literal -0.0L.
92994         * tests/test-ldexpl.c (zero): New variable.
92995         (main): Avoid literal -0.0L.
92996         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92997         (zerod, zerol): New variables.
92998         (test_function): Avoid literals -0.0, -0.0L.
92999         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93000         (zerod, zerol): New variables.
93001         (test_function): Avoid literals -0.0, -0.0L.
93002         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93003         (zerod, zerol): New variables.
93004         (test_function): Avoid literals -0.0, -0.0L.
93005         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93006         (zerod, zerol): New variables.
93007         (test_function): Avoid literals -0.0, -0.0L.
93008         * tests/test-strtod.c (zero): New variable.
93009         (main): Avoid literal -0.0.
93010         Reported by Jonathan C. Patschke <jp@centtech.com>.
93012 2008-07-31  Jim Meyering  <meyering@redhat.com>
93014         sha256.h: correct definition of SHA224_DIGEST_SIZE
93015         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93016         Reported by Paulie Pena IV <paulie4@gmail.com>.
93017         Define as 224 / 8, rather than as a literal.
93018         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93019         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93020         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93022 2008-07-31  Bruno Haible  <bruno@clisp.org>
93024         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93025         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93026         Reported by Jonathan Patschke <jp@centtech.com>.
93028 2008-07-31  Bruno Haible  <bruno@clisp.org>
93030         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93031         Reported by Paolo Bonzini <bonzini@gnu.org>.
93033 2008-07-30  Eric Blake  <ebb9@byu.net>
93035         test-strtod: allow compilation without -lm
93036         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93037         Reported by Dennis Clarke <blastwave@gmail.com>.
93039 2008-07-28  Jim Meyering  <meyering@redhat.com>
93041         bootstrap: work also when there are no .po files in po/
93042         * build-aux/bootstrap (update_po_files): Complete the change
93043         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93045 2008-07-27  Jim Meyering  <meyering@redhat.com>
93047         * users.txt: Add zile.
93049 2008-07-26  Ben Pfaff  <blp@gnu.org>
93051         Add missing dependencies on new m4/exponent[fdl].m4 files.
93052         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93053         * modules/isnand-nolibm: Add m4/exponentd.m4.
93054         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93055         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93056         m4/isnan[fdl].m4, because the macros actually used moved.
93057         Reported by Jim Meyering.
93059 2008-07-14  Ben Pfaff  <blp@gnu.org>
93061         Add isinf module.
93062         * lib/isinf.c: New file.
93063         * lib/math.in.h: Define isinf macro if we have decided to replace
93064         it.
93065         * m4/isinf.m4: New file.
93066         * m4/math_h.m4: Initialize and substitute variables for isinf
93067         module.
93068         * modules/isinf: New file.
93069         * modules/isinf-tests: New file.
93070         * modules/math: Add substitutions for new module.
93071         * tests/test-isinf.c: New file.
93072         * doc/posix-functions/isinf.texi: Mention new module.
93073         * MODULES.html.sh: Mention new module.
93075 2008-07-14  Ben Pfaff  <blp@gnu.org>
93077         Factor out some macros for use by additional modules.
93078         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93079         exponentf.m4.
93080         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93081         exponentd.m4.
93082         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93083         file exponentl.m4.
93084         * m4/exponentf.m4: New file.
93085         * m4/exponentd.m4: New file.
93086         * m4/exponentl.m4: New file.
93087         * modules/isnanf: Use new file m4/exponentf.m4.
93088         * modules/isnand: Use new file m4/exponentd.m4.
93089         * modules/isnanl: Use new file m4/exponentl.m4.
93091 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93093         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93094         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93095         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93096         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93098         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93099         readlink on platforms without PATH_MAX.
93101 2008-07-21  Eric Blake  <ebb9@byu.net>
93103         Warn, not fail, on stale version.
93104         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93106         Don't allow installation with stale devel version number.
93107         * top/GNUmakefile (_is-install-target): New macro.
93108         (_curr-ver): Forbid installation with stale version number.
93110 2008-07-20  Bruno Haible  <bruno@clisp.org>
93112         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93113         TESTS_ENVIRONMENT.
93114         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93116 2008-07-20  Bruno Haible  <bruno@clisp.org>
93118         * lib/c-stack.h (c_stack_action): Add documentation.
93119         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93121 2008-07-20  Bruno Haible  <bruno@clisp.org>
93123         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93124         * modules/readlink (License): Likewise.
93126 2008-07-17  Eric Blake  <ebb9@byu.net>
93128         * modules/c-stack (Link): Fix typo.
93130         Make c-stack use libsigsegv, when available.
93131         * modules/c-stack (Depends-on): Add libsigsegv.
93132         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93133         needed.
93134         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93135         (segv_handler, overflow_handler, c_stack_action)
93136         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93137         implementation when libsigsegv is available, but only when using
93138         the library is necessary.
93139         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93140         comment, explaining why XSI check fails on Linux.
93141         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93142         * tests/test-c-stack2.sh: Tweak skip message.
93143         * NEWS: Document new link-time requirements.
93145 2008-07-16  Eric Blake  <ebb9@byu.net>
93147         c-stack: Expose false positives when not using libsigsegv.
93148         * modules/c-stack-tests (Files): Expand test.
93149         * tests/test-c-stack.c (main): Add means to conditionally trigger
93150         non-overflow SIGSEGV.
93151         * tests/test-c-stack2.sh: New file.
93153 2008-07-14  Bruno Haible  <bruno@clisp.org>
93155         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93156         Reported by Eric Blake.
93158 2008-07-14  Sam Steingold  <sds@gnu.org>
93159             Bruno Haible  <bruno@clisp.org>
93161         New module libsigsegv.
93162         * modules/libsigsegv: New file.
93163         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93164         modifications.
93165         * MODULES.html.sh (Signal handling): New section.
93167 2008-07-14  Bruno Haible  <bruno@clisp.org>
93169         * modules/unictype/ctype-* (Description): Add the word "function".
93170         Improves the resulting doc in MODULES.html.
93172 2008-07-12  Ben Pfaff  <blp@gnu.org>
93174         Add longlong module.
93175         * modules/longlong: New file.
93177 2008-07-12  Bruno Haible  <bruno@clisp.org>
93179         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93180         to empty.
93182 2008-07-10  Ben Pfaff  <blp@gnu.org>
93184         Add isnan module.
93185         * doc/posix-functions/isnan.texi: Mention new module.
93186         * lib/math.in.h: Define isnan macro if we have decided to replace
93187         it.
93188         * m4/isnan.m4: New file.
93189         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93190         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93191         also.
93192         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93193         redundancy.
93194         * m4/math_h.m4: Initialize and substitute variables for isnan
93195         module.
93196         * modules/isnan: New file.
93197         * modules/isnan-tests: New file.
93198         * modules/math: Add substitutions for new module.
93199         * tests/test-isnan.c: New file.
93200         * MODULES.html.sh: Mention new module.
93202 2008-07-10  Ben Pfaff  <blp@gnu.org>
93204         Add isnanf module.
93205         * lib/isnanf.m4: New file.
93206         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93207         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93208         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93209         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93210         * modules/isnanf: New file.
93211         * modules/isnanf-tests: New file.
93212         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93213         files.
93214         * tests/test-isnanf-nolibm.c: factored most of its contents into
93215         new file tests/test-isnanf.h.
93216         * tests/test-isnanf.h: New file.
93217         * tests/test-isnanf.c: New file.
93218         * MODULES.html.sh: Mention new module.
93219         * doc/glibc-functions/isnanf.texi: Mention new module.
93221 2008-07-10  Ben Pfaff  <blp@gnu.org>
93223         Add isnand module.
93224         * lib/isnand.h: New file.
93225         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93226         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93227         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93228         functionality also.
93229         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93230         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93231         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93232         * modules/isnand: New file.
93233         * modules/isnand-tests: New file.
93234         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93235         files.
93236         * tests/test-isnand-nolibm.c: factored most of its contents into
93237         new file tests/test-isnand.h.
93238         * tests/test-isnand.h: New file.
93239         * tests/test-isnand.c: New file.
93240         * MODULES.html.sh: Mention new module.
93242 2008-07-10  Ben Pfaff  <blp@gnu.org>
93244         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93245         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93246         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93247         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93248         * modules/isnanf-nolibm: Update references to renamed files.
93249         * modules/isnand-nolibm: Likewise.
93250         * modules/isnanf-nolibm-tests: Likewise.
93251         * modules/isnand-nolibm-tests: Likewise.
93252         * lib/frexp.c: Likewise.
93253         * lib/isfinite.c: Likewise.
93254         * lib/signbitd.c: Likewise.
93255         * lib/signbitf.c: Likewise.
93256         * lib/vasnprintf.c: Likewise.
93257         * tests/test-ceilf1.c: Likewise.
93258         * tests/test-ceilf2.c: Likewise.
93259         * tests/test-floorf1.c: Likewise.
93260         * tests/test-floorf2.c: Likewise.
93261         * tests/test-frexp.c: Likewise.
93262         * tests/test-round1.c: Likewise.
93263         * tests/test-round2.c: Likewise.
93264         * tests/test-roundf1.c: Likewise.
93265         * tests/test-strtod.c: Likewise.
93266         * tests/test-trunc1.c: Likewise.
93267         * tests/test-trunc2.c: Likewise.
93268         * tests/test-truncf1.c: Likewise.
93269         * tests/test-truncf2.c: Likewise.
93270         * NEWS: Mention the renamed header files.
93272 2008-07-11  Jim Meyering  <meyering@redhat.com>
93274         vc-list-files: make the last-resort awk code more portable
93275         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93276         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93277         does not support it.
93279 2008-07-10  Eric Blake  <ebb9@byu.net>
93281         Work with tar's bootstrap.
93282         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93283         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93284         an m4 comment.
93286 2008-07-09  Jim Meyering  <meyering@redhat.com>
93288         posix-shell.m4: fix typo that made this test malfunction
93289         * m4/posix-shell.m4: Remove capitalization in variable name.
93291 2008-07-08  Bruno Haible  <bruno@clisp.org>
93293         * m4/onceonly.m4: Update comments.
93294         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93296 2008-07-04  Jim Meyering  <meyering@redhat.com>
93298         * users.txt: Add vc-dwim.
93299         (bison, coreutils): Use the gitweb URL.
93301 2008-07-03  Jim Meyering  <meyering@redhat.com>
93303         * users.txt: Add libffcall.  From Sam Steingold.
93305 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93307         getdate.y: do not ignore TZ with relative day, month or year offset
93308         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93309         relative-date-handling, since otherwise, the latter would clobber the
93310         sole output (an updated Start value) of the tz-handling block.
93311         * tests/test-getdate.c: Tests for the fix
93313 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93315         Recognize 'foo_LIBRARIES += libgnu.a'.
93316         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93317         makefile snippet has already specified an installation location,
93318         also using '+='.
93320 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93322         getdate.y: factor out common actions
93323         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93324         Use them in place of open-coded actions.
93326 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93328         Add self-test for getdate module.
93329         * modules/getdate-tests: New file.
93330         * tests/test-getdate.c: New file.
93332 2008-06-29  Bruno Haible  <bruno@clisp.org>
93334         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93335         .gitignore.
93336         Reported by Sylvain Beucler <beuc@beuc.net>.
93338 2008-06-29  Bruno Haible  <bruno@clisp.org>
93340         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93341         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93343 2008-06-29  Bruno Haible  <bruno@clisp.org>
93345         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93346         EXTRA_DIST.
93347         Reported by Sylvain Beucler <beuc@beuc.net>.
93349 2008-06-26  Jim Meyering  <meyering@redhat.com>
93351         make several modules depend on the "open" module
93352         This provides slightly increased consistency when opening-for-write
93353         the name of a non-directory spelled with a trailing slash.
93354         * modules/chdir-safer: Likewise.
93355         * modules/chown: Likewise.
93356         * modules/clean-temp: Likewise.
93357         * modules/copy-file: Likewise.
93358         * modules/fchdir: Likewise.
93359         * modules/fcntl-safer: Likewise.
93360         * modules/pipe: Likewise.
93361         * modules/utime: Likewise.
93362         Prompted by Eric Blake and Bruno Haible.
93364 2008-06-24  Andreas Schwab  <schwab@suse.de>
93366         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93367         literals can be used as initializers for global variables.
93369 2008-06-23  Eric Blake  <ebb9@byu.net>
93371         Make gnulib-cache.m4 easier to diff.
93372         * gnulib-tool (func_import): Allow newlines when reading cached
93373         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93375 2008-06-23  Bruno Haible  <bruno@clisp.org>
93377         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93378         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93379         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93380         m4/signalblocking.m4.
93381         (gl_PREREQ_SIGACTION): Don't invoke it.
93382         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93383         gl_PREREQ_SIG_HANDLER_H.
93384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93385         Don't check for sigaction here.
93387 2008-06-23  Bruno Haible  <bruno@clisp.org>
93389         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93390         (install_handlers): Don't set the SA_RESETHAND flag.
93392 2008-06-23  Bruno Haible  <bruno@clisp.org>
93394         * m4/sigaction.m4: Comment fixes.
93395         * lib/signal.in.h: Likewise.
93397 2008-06-23  Eric Blake  <ebb9@byu.net>
93399         Fix typo.
93400         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93402         Avoid SA_ namespace.
93403         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93404         Reported by Ralf Wildenhues.
93406         Avoid test failure due to SA_RESTORER.
93407         * tests/test-sigaction.c (SA_MASK): New macro.
93408         (main): Avoid failing due to extension flags being set.
93409         Reported by Jim Meyering.
93411         Revert use of sig-handler.h in sigprocmask.c.
93412         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93413         it requires the existence of struct sigaction.
93414         * lib/sigprocmask.c (handler_t): Restore typedef.
93415         (rpl_signal, old_handlers): Use local type.
93417 2008-06-22  Bruno Haible  <bruno@clisp.org>
93419         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93420         conditionally.
93421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93423 2008-06-22  Bruno Haible  <bruno@clisp.org>
93425         * doc/posix-functions/siginterrupt.texi: Move note.
93427         * lib/signal.in.h (SA_RESTART): New macro.
93428         * lib/sigaction.c: Update comment.
93430         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93432         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93433         (gl_PREREQ_SIGPROCMASK): Invoke it.
93434         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93436         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93438         * lib/sigprocmask.c: Update a comment.
93440 2008-06-21  Eric Blake  <ebb9@byu.net>
93442         Use sigaction module rather than signal().
93443         * modules/c-stack (Depends-on): Add sigaction.
93444         * modules/fatal-signal (Depends-on): Likewise.
93445         * modules/nanosleep (Depends-on): Likewise.
93446         * modules/sigprocmask (Files): Add sig-handler.h.
93447         * modules/sigaction (Files): Likewise.
93448         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93449         Eggert.
93450         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93451         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93452         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93453         (init_fatal_signals): Likewise.
93454         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93455         (siginterrupt): Delete fallback.
93456         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93457         instead.
93458         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93459         siginterrupt.
93461         New module sigaction, for mingw.
93462         * modules/sigaction: New module...
93463         * modules/sigaction-tests: ...and its test.
93464         * m4/sigaction.m4: New file.
93465         * lib/sigaction.c: Likewise.
93466         * tests/test-sigaction.c: Likewise.
93467         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93468         * modules/signal (Makefile.am): Likewise.
93469         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93470         needed.
93471         * doc/posix-headers/signal.texi (signal.h): Mention provided
93472         types.
93473         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93474         that sigaction is preferable.
93475         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93476         module.
93477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93478         sigaction.
93480         Improve robustness of sigprocmask by overriding signal.
93481         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93482         is in use.
93483         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93484         (SIGKILL, SIGSTOP): Provide fallbacks.
93485         (rpl_signal): Implement.
93486         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93487         signal can be called inside handlers.
93489         Fix nanosleep module on mingw.
93490         * modules/nanosleep (Depends-on): Add sys_select.
93491         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93493         Fix licensing of sigprocmask.
93494         * modules/raise (License): Relicense as LGPL.
93496 2008-06-21  Bruno Haible  <bruno@clisp.org>
93498         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93499         result if it contains question marks.
93500         Reported by Michael Geng <linux@michaelgeng.de>.
93502 2008-06-19  Bruno Haible  <bruno@clisp.org>
93504         Fix CVS-ism.
93505         * doc/gnulib.texi: Include updated-stamp.texi.
93506         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93507         (updated-stamp.texi): New rule.
93508         (gnulib.info): Depend on it.
93509         * doc/.gitignore: Add updated-stamp.texi.
93510         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93512 2008-06-19  Bruno Haible  <bruno@clisp.org>
93514         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93515         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93517 2008-06-19  Eric Blake  <ebb9@byu.net>
93519         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93520         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93521         Reported by Stepan Kasal.
93523 2008-06-18  Bruno Haible  <bruno@clisp.org>
93525         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93526         Reported by Eric Blake.
93528 2008-06-18  Eric Blake  <ebb9@byu.net>
93530         Work around cygwin 1.5.25 strsignal bug.
93531         * tests/test-strsignal.c: Allow for const char *.
93532         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93534 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93536         * users.txt: Update URL to article and add author/date
93537         information.
93539 2008-06-17  Bruno Haible  <bruno@clisp.org>
93541         New macro gl_DISABLE_THREADS.
93542         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93543         if the user did not pass --enable-threads or --disable-threads option.
93544         (gl_DISABLE_THREADS): New macro.
93545         Reported by Eric Blake <ebb9@byu.net>.
93547 2008-06-17  Bruno Haible  <bruno@clisp.org>
93549         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93550         when the macro ignores it.
93551         Based on a patch by Eric Blake <ebb9@byu.net>.
93553 2008-06-17  Bruno Haible  <bruno@clisp.org>
93555         * modules/tls (License): Change to LGPLv2+.
93556         Reported by Eric Blake.
93558 2008-06-17  Eric Blake  <ebb9@byu.net>
93560         Simplify c-stack prerequisites.
93561         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93563         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93564         check.
93565         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93566         <sys/resource.h>.
93568         Move c-stack test into testsuite.
93569         * modules/c-stack-tests: New file.
93570         * lib/c-stack.c [DEBUG]: Move test program...
93571         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93572         fail test if sigaltstack is lacking.
93573         * tests/test-c-stack.sh: New driver file.
93575 2008-06-16  Eric Blake  <ebb9@byu.net>
93577         Use raise module consistently.
93578         * modules/fatal-signal (Depends-on): Add raise.
93579         * modules/sigprocmask (Depends-on): Likewise.
93580         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93581         * lib/sigprocmask.c (sigprocmask): Likewise.
93582         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93583         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93585         Fix compliance bug in sigpending.
93586         * lib/sigprocmask.c (sigpending): Return pending array via
93587         parameter, not return value.
93589 2008-06-14  Eric Blake  <ebb9@byu.net>
93591         Improve obstack-printf test code.
93592         * tests/test-obstack-printf.c (test_function): Fix comment, and
93593         simplify usage of obstack_* in macros.  Add a test for coverage.
93594         Reported by Bruno Haible.
93596 2008-06-14  Bruno Haible  <bruno@clisp.org>
93598         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93599         array size as a constant, not as a const variable.
93600         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93601         AC_USE_SYSTEM_EXTENSIONS.
93602         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93603         Test whether the obstack_printf function actually exists.
93604         * modules/obstack-printf (Depends-on): Add extensions.
93605         (Include): Remove obstack.h.
93606         * modules/obstack-printf-posix (Depends-on): Add extensions.
93607         (Include): Remove obstack.h.
93609 2008-06-13  Eric Blake  <ebb9@byu.net>
93611         Add obstack-printf and obstack-printf-posix modules.
93612         * modules/obstack-printf: New file.
93613         * modules/obstack-printf-posix: Likewise.
93614         * MODULES.html.sh (Misc): Mention them.
93615         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93616         Likewise.
93617         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93618         Likewise.
93619         * modules/stdio (Makefile.am): Accomodate new modules.
93620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93621         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93622         Declare.
93623         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93624         functions.
93625         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93626         (gl_REPLACE_OBSTACK_PRINTF): New macros
93627         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93628         * tests/test-obstack-printf.c: New file.
93629         * modules/obstack-printf-tests: Likewise.
93630         * modules/obstack-printf-posix-tests: Likewise.
93632 2008-06-11  Bruno Haible  <bruno@clisp.org>
93634         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93635         * lib/open.c: Include errno.h.
93636         (open): Fail when attempting to write to a file that has a trailing
93637         slash.
93638         * tests/test-open.c (main): Test against trailing slash bug.
93639         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93641 2008-06-10  Bruno Haible  <bruno@clisp.org>
93643         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93644         for $? to work inside the trap command, with various /bin/sh-s.
93645         * tests/test-vc-list-files-cvs.sh: Likewise.
93647 2008-06-10  Bruno Haible  <bruno@clisp.org>
93649         * lib/acl-internal.h: Don't include gettext.h here.
93650         * lib/set-mode-acl.c: Include gettext.h here.
93651         * lib/copy-acl.c: Likewise.
93653 2008-06-10  Bruno Haible  <bruno@clisp.org>
93655         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93656         * lib/wait-process.c (wait_subprocess): Likewise.
93657         * lib/execute.h (execute): Add termsigp argument.
93658         * lib/execute.c (execute): Likewise.
93659         * lib/csharpcomp.c (compile_csharp_using_pnet,
93660         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93661         * lib/csharpexec.c (execute_csharp_using_pnet,
93662         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93663         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93664         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93665         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93666         is_jikes_present): Update.
93667         * lib/javaexec.c (execute_java_class): Update.
93668         * lib/javaversion.c (execute_and_read_line): Update.
93669         * NEWS: Document the changes.
93670         Reported by Eric Blake.
93672 2008-06-10  Eric Blake  <ebb9@byu.net>
93674         Add missing include.
93675         * tests/test-strstr.c (includes): Add <signal.h>.
93676         * tests/test-strcasestr.c (includes): Likewise.
93677         * tests/test-memmem.c (includes): Likewise.
93679 2008-06-10  Bruno Haible  <bruno@clisp.org>
93681         * lib/wait-process.c (wait_subprocess): Add an assertion.
93683 2008-06-10  Bruno Haible  <bruno@clisp.org>
93685         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93687 2008-06-10  Bruno Haible  <bruno@clisp.org>
93689         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93690         using alarm().
93691         * tests/test-strcasestr.c (main): Likewise.
93692         * tests/test-strstr.c (main): Likewise.
93694 2008-06-09  Bruno Haible  <bruno@clisp.org>
93696         Work around the Solaris 10 ACE ACLs ABI change.
93697         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93698         declare if ACL_NO_TRIVIAL is present.
93699         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93700         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93701         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93702         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93703         define if ACL_NO_TRIVIAL is present.
93704         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93705         and use the current ABI.
93706         (file_has_acl): Use same #if condition as elsewhere.
93707         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93708         in use, and use the current ABI.
93709         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93710         Reported by Jim Meyering.
93712 2008-06-09  Eric Blake  <ebb9@byu.net>
93714         Work around environments that (stupidly) ignore SIGALRM.
93715         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93716         before using alarm().
93717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93719         Reported by Ian Beckwith <ianb@erislabs.net>.
93721         Produce autobuild blurb earlier in log.
93722         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93724 2008-06-09  Jim Meyering  <meyering@redhat.com>
93725         and Ondřej Vašík  <ovasik@redhat.com>
93727         utimens.c: correct kernel bug work-around
93728         Ondřej Vašík found that the invalid return value of 280 indicates
93729         failure, not success, and the kernel bug we're trying to work
93730         around affects not just the utimensat call, but also the fallback
93731         futimens call.
93732         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93733         not success.
93734         [HAVE_FUTIMENS]: Use the same work-around, here.
93736 2008-06-09  Jim Meyering  <meyering@redhat.com>
93738         add more guards around definition of ACE_-related code
93739         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93740         ALLOW and ACE_OWNER are also defined.
93742 2008-06-08  Bruno Haible  <bruno@clisp.org>
93744         * lib/acl-internal.h: Add me as co-author.
93745         * lib/file-has-acl.c: Likewise.
93746         * lib/set-mode-acl.c: Likewise.
93747         * lib/copy-acl.c: Likewise.
93749 2008-06-08  Bruno Haible  <bruno@clisp.org>
93751         Add support for AIX ACLs.
93752         * lib/acl-internal.h (acl_nontrivial): New declaration.
93753         * lib/file-has-acl.c (acl_nontrivial): New function.
93754         (file_has_acl): Add implementation using AIX 4 ACL API.
93755         * lib/set-mode-acl.c (qset_acl): Likewise.
93756         * lib/copy-acl.c (qcopy_acl): Likewise.
93758 2008-06-08  Bruno Haible  <bruno@clisp.org>
93760         Add support for HP-UX ACLs.
93761         * lib/acl-internal.h (acl_nontrivial): New declaration.
93762         * lib/file-has-acl.c (acl_nontrivial): New function.
93763         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93764         * lib/set-mode-acl.c (qset_acl): Likewise.
93765         * lib/copy-acl.c (qcopy_acl): Likewise.
93767 2008-06-08  Bruno Haible  <bruno@clisp.org>
93769         Add support for Cygwin ACLs.
93770         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93771         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93772         the chmod_or_fchmod call.
93773         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93775 2008-06-08  Bruno Haible  <bruno@clisp.org>
93777         Fix bug with setuid modes in Solaris 10+ code.
93778         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93779         succeeded, when the mode contains some special bits.
93781 2008-06-08  Bruno Haible  <bruno@clisp.org>
93783         Add support for Solaris 7..10 ACLs.
93784         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93785         declarations.
93786         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93787         functions.
93788         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93789         * lib/set-mode-acl.c (qset_acl): Likewise.
93790         * lib/copy-acl.c (qcopy_acl): Likewise.
93792 2008-06-08  Bruno Haible  <bruno@clisp.org>
93794         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93795         declaration.
93796         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93797         (acl_access_nontrivial): Remove MacOS X case.
93798         (file_has_acl): Use acl_extended_nontrivial.
93799         * lib/copy-acl.c (qcopy_acl): Likewise.
93801 2008-06-08  Bruno Haible  <bruno@clisp.org>
93803         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93805 2008-06-08  Jim Meyering  <meyering@redhat.com>
93807         * modules/acl (Maintainer): Add Bruno Haible.
93809 2008-06-07  Bruno Haible  <bruno@clisp.org>
93811         Improve support for Tru64 ACLs.
93812         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93813         ACL on OSF/1.
93815 2008-06-07  Bruno Haible  <bruno@clisp.org>
93817         Add support for MacOS X ACLs.
93818         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93819         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93820         * lib/set-mode-acl.c (qset_acl): Likewise.
93821         * lib/copy-acl.c (qcopy_acl): Likewise.
93823 2008-06-07  Bruno Haible  <bruno@clisp.org>
93825         Fix memory leak introduced on 2008-05-22.
93826         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93827         use.
93829 2008-06-07  Bruno Haible  <bruno@clisp.org>
93831         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93832         to construct an empty ACL.
93834 2008-06-07  Bruno Haible  <bruno@clisp.org>
93836         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93837         precisely.
93838         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93840 2008-06-07  Bruno Haible  <bruno@clisp.org>
93842         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93843         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93845 2008-06-07  Bruno Haible  <bruno@clisp.org>
93847         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93848         regardless of POSIX.
93849         * doc/posix-functions/_longjmp.texi: Likewise.
93850         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93851         SystemV platform in this case.
93853 2008-06-06  Eric Blake  <ebb9@byu.net>
93855         Document abort() bugs.
93856         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93858         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93859         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93860         sigsetjmp.
93861         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93862         siglongjmp, but only as a macro.
93863         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93864         is obsolete.
93865         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93867         Tweak documentation to cover cygwin argz bugs.
93868         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93869         argz bug fix; no code change needed since no cygwin releases
93870         occurred between the last fix and the bug being tested.
93871         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93872         module and recently fixed cygwin bugs.
93873         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93874         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93875         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93876         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93877         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93878         Likewise.
93879         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93880         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93881         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93882         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93883         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93884         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93885         Likewise.
93887         Avoid gcc warning on cygwin.
93888         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93889         !ACL_NO_TRIVIAL]: Avoid unused variable.
93891 2008-06-05  Eric Blake  <ebb9@byu.net>
93893         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93894         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93895         git-version-gen fails to come up with a version.
93896         Reported by Simon Josefsson.
93898 2008-06-05  Jim Meyering  <meyering@redhat.com>
93899             Paul Eggert  <eggert@cs.ucla.edu>
93901         utimens.c: work around a probable Linux kernel bug
93902         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93903         appears to be a kernel bug that causes utimensat to return 280
93904         instead of 0, indicating success.
93906 2008-06-04  Bruno Haible  <bruno@clisp.org>
93908         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93909         2008-06-01 commit.
93911 2008-06-04  Bruno Haible  <bruno@clisp.org>
93913         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93914         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93915         (file_has_acl): Use it. Save errno afterwards.
93916         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93918 2008-06-03  Bruno Haible  <bruno@clisp.org>
93920         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93921         draft code. Simplify #ifs.
93922         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93923         Put Solaris code after POSIX-draft code. Fix comments regarding
93924         Solaris 10, HP-UX. Mention Cygwin.
93925         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93927 2008-06-03  Eric Blake  <ebb9@byu.net>
93929         Provide fallback for older kernels.
93930         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93931         Provide runtime fallback if kernel lacks support.
93932         Reported by Mike Frysinger.
93934 2008-06-02  Bruno Haible  <bruno@clisp.org>
93936         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93937         it exists.
93939 2008-06-02  Bruno Haible  <bruno@clisp.org>
93941         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93942         * lib/copy-acl.c (qcopy_acl): Update comment.
93944 2008-06-02  Bruno Haible  <bruno@clisp.org>
93946         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93947         like ACL APIs.
93949 2008-06-02  Bruno Haible  <bruno@clisp.org>
93951         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93952         * tests/test-set-mode-acl.sh: Likewise.
93953         * tests/test-copy-acl.sh: Likewise.
93954         * tests/test-copy-file.sh: Likewise.
93956 2008-06-02  Bruno Haible  <bruno@clisp.org>
93958         * tests/test-file-has-acl.sh: Remove unused code.
93960 2008-06-01  Bruno Haible  <bruno@clisp.org>
93962         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93963         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93964         messages.
93965         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93967 2008-06-01  Bruno Haible  <bruno@clisp.org>
93969         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93970         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93971         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93972         APIs.
93973         * modules/acl-tests (configure.ac): Remove tests now contained in
93974         m4/acl.m4.
93976 2008-06-02  Jim Meyering  <meyering@redhat.com>
93978         announce-gen: use a better key-server host name
93979         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93980         it may be more consistently reliable.  Suggested by Werner Koch
93981         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93983 2008-06-01  Bruno Haible  <bruno@clisp.org>
93985         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93986         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93988 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93990         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93992 2008-06-01  Bruno Haible  <bruno@clisp.org>
93994         New ACL tests.
93995         * tests/test-file-has-acl.sh: New file.
93996         * tests/test-file-has-acl.c: New file.
93997         * tests/test-set-mode-acl.sh: New file.
93998         * tests/test-set-mode-acl.c: New file.
93999         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94000         * tests/test-copy-acl.c: New file.
94001         * modules/acl-tests: New file, based on modules/copy-file-tests.
94002         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94003         (Depends-on): Add acl-tests.
94004         (configure.ac): Remove checks.
94005         (Makefile.am): Don't create test-sameacls program here any more.
94007 2008-06-01  Bruno Haible  <bruno@clisp.org>
94009         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94010         * tests/test-sameacls.c: Include progname.h.
94011         (main): Invoke set_program_name. Portability fixes for MacOS X,
94012         Solaris, HP-UX.
94014 2008-06-01  Bruno Haible  <bruno@clisp.org>
94016         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94017         function.
94018         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94020 2008-06-01  Bruno Haible  <bruno@clisp.org>
94022         * modules/rpmatch (Depends-on): Add strdup.
94024 2008-06-01  Bruno Haible  <bruno@clisp.org>
94026         * lib/pipe.c: Include unistd-safer.h.
94027         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94028         * modules/pipe (Depends-on): Add unistd-safer.
94030 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94032         * modules/autobuild (configure.ac): Call AB_INIT.
94034 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94036         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94037         Suggested by Bruno Haible <bruno@clisp.org>.
94039 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94041         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94042         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94043         <bruno@clisp.org>.
94045 2008-05-29  Eric Blake  <ebb9@byu.net>
94047         Prefer new POSIX 200x interfaces over futimesat.
94048         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94049         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94050         when available.
94051         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94053 2008-05-28  Bruno Haible  <bruno@clisp.org>
94055         * modules/stpcpy (License): Change to LGPLv2+.
94056         Requested by David Lutterkort <dlutter@redhat.com>.
94058 2008-05-27  Bruno Haible  <bruno@clisp.org>
94060         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94061         current mingw.
94062         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94064 2008-05-27  Bruno Haible  <bruno@clisp.org>
94066         * modules/iconv_open (Link): New section, from module 'iconv'.
94067         * modules/striconv (Link): Likewise.
94068         * modules/striconveh (Link): Likewise.
94069         * modules/xstriconv (Link): Likewise.
94070         * modules/unicodeio (Link): Likewise.
94071         * modules/propername (Link): Likewise.
94072         Reported by Jim Meyering.
94074 2008-05-26  Jim Meyering  <meyering@redhat.com>
94076         sha256: do not artificially restrict buffer length to be < 2^32
94077         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94078         uint32_t to size_t.
94079         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94080         to match.
94082         avoid unaligned access errors, e.g., on sparc
94083         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94084         direct access through a possibly-unaligned uint64* pointer.
94085         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94086         direct access through a possibly-unaligned uint32* pointer.
94087         Prompted by this patch from Tom "spot" Callaway:
94088         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94090         sha512.c: fix typo in comment
94091         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94093 2008-05-25  Bruno Haible  <bruno@clisp.org>
94095         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94096         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94097         (Makefile.am): Update lib_SOURCES.
94099 2008-05-25  Bruno Haible  <bruno@clisp.org>
94101         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94103 2008-05-25  Jim Meyering  <meyering@redhat.com>
94105         useless-if-before-free: freed expr may have white-space differences
94106         * build-aux/useless-if-before-free: Recognize cases in which the
94107         freed expression differs from the tested one in embedded white
94108         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94109         $1 was used, so we can't make any regexp shy.  Improved tests now
94110         detect this.
94112         useless-if-before-free: accept white space in the expression.
94113         * build-aux/useless-if-before-free: For now, any white space
94114         in the expression must be identical in the free argument.
94116         useless-if-before-free: efficiency tweak
94117         * build-aux/useless-if-before-free: Make the expression-matching
94118         regexp "shy".
94119         Make the *outer* regexp shy, not the expr-matching one.
94121         update code-in-comment to accept cast of free arg
94122         * build-aux/useless-if-before-free: Update regexp.
94124 2008-05-25  Bruno Haible  <bruno@clisp.org>
94126         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94127         * modules/copy-file-tests (Files, Makefile.am): Update.
94128         * tests/test-copy-file.c (func_test_copy): Update.
94130 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94132         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94134 2008-05-23  Bruno Haible  <bruno@clisp.org>
94136         Improve support for ACLs on OSF/1.
94137         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94138         Remove fallback for unknown flavors of ACLs.
94140 2008-05-22  Bruno Haible  <bruno@clisp.org>
94142         Add support for ACLs on OSF/1.
94143         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94144         replacements.
94145         (acl_free_text): New macro fallback.
94146         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94147         acl_free.
94148         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94149         acl_free_text function. Require AC_C_INLINE.
94151 2008-05-22  Bruno Haible  <bruno@clisp.org>
94153         Make copy_acl work on MacOS X 10.5.
94154         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94155         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94156         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94157         If MODE_INSIDE_ACL, don't assume that every system has the same text
94158         representation for ACLs as FreeBSD.
94159         * lib/copy-acl.c (copy_acl): Add support for platforms with
94160         !MODE_INSIDE_ACL.
94161         * lib/file-has-acl.c (file_has_acl): Likewise.
94162         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94163         FreeBSD, MacOS X, or IRIX, respectively.
94165 2008-05-22  Bruno Haible  <bruno@clisp.org>
94167         * lib/acl.h: Don't include <sys/acl.h>.
94168         (GETACLCNT): Move fallback to lib/acl-internal.h.
94169         * lib/acl-internal.h: Include <sys/acl.h> here.
94170         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94172 2008-05-22  Bruno Haible  <bruno@clisp.org>
94174         Split off copy_acl function to separate file.
94175         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94176         * lib/acl.c (copy_acl): Moved function to separate file.
94177         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94178         * modules/acl (Files): Add lib/copy-acl.c.
94179         (Makefiles.am): Augment lib_SOURCES.
94181 2008-05-22  Bruno Haible  <bruno@clisp.org>
94183         * modules/copy-file-tests: New file.
94184         * tests/test-copy-file.sh: New file.
94185         * tests/test-copy-file.c: New file.
94186         * tests/test-copy-file-sameacls.c: New file.
94188 2008-05-22  Eric Blake  <ebb9@byu.net>
94190         Avoid gcc warning.
94191         * tests/test-memcmp.c (main): Pass NULL indirectly.
94193 2008-05-21  Bruno Haible  <bruno@clisp.org>
94195         Add reference doc about ACLs.
94196         * doc/acl-resources.txt: New file.
94197         * doc/acl-cygwin.txt: New file.
94199 2008-05-21  Bruno Haible  <bruno@clisp.org>
94201         Avoid one more warning from gcc.
94202         * lib/vasnprintf.c (IF_LINT): Update comments.
94203         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94205 2008-05-21  Jim Meyering  <meyering@redhat.com>
94207         avoid a warning from gcc
94208         * lib/vasnprintf.c (IF_LINT): Define.
94209         (scale10_round_decimal_long_double):
94210         Use it to avoid a "may be used uninitialized" warning.
94211         (scale10_round_decimal_double): Likewise.
94213 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94215         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94216         declared.
94218 2008-05-20  Bruno Haible  <bruno@clisp.org>
94220         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94221         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94223 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94225         * modules/memcmp-tests: New file.
94226         * tests/test-memcmp.c: New file.
94228 2008-05-19  Bruno Haible  <bruno@clisp.org>
94230         * modules/propername (Notice, configure.ac): Put quoted "..." into
94231         --keyword option.
94232         * lib/propername.h: Update comments accordingly.
94233         Reported by Eric Blake.
94235 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94237         * modules/getpass-gnu (Depends-on): Add fseeko.
94239 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94241         * modules/base64-tests: New file.
94243 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94245         * lib/base64.c (base64_decode_ctx): If a decode context structure
94246         was passed in use it to ignore newlines.  If a context structure
94247         was _not_ passed in, continue to treat newlines as garbage (this
94248         is the historical behavior).  Formerly base64_decode.
94249         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94250         takes a decode context structure.
94251         * lib/base64.h (base64_decode): Macro for four-argument calls.
94252         (base64_decode_alloc): Likewise.
94253         * lib/base64.c (base64_decode_ctx): If a decode context structure
94254         was passed in use it to ignore newlines.  If a context structure
94255         was _not_ passed in, continue to treat newlines as garbage (this
94256         is the historical behavior).  Formerly base64_decode.
94257         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94258         takes a decode context structure.
94259         * lib/base64.h (base64_decode): Macro for four-argument calls.
94260         (base64_decode_alloc): Likewise.
94262 2008-05-19  Jim Meyering  <meyering@redhat.com>
94264         avoid a warning from gcc
94265         * lib/trim.c (IF_LINT): Define.
94266         (trim2): Use it to avoid a "may be used uninitialized" warning.
94268         Fix doc typo.
94269         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94271 2008-05-19  Bruno Haible  <bruno@clisp.org>
94273         * doc/glibc-functions/getpass.texi: Document limits of other
94274         implementations.
94276 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94277             Bruno Haible <bruno@clisp.org>
94279         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94281 2008-05-18  Bruno Haible  <bruno@clisp.org>
94283         * modules/propername: New file, from GNU gettext.
94284         * lib/propername.h: New file, from GNU gettext.
94285         * lib/propername.c: New file, from GNU gettext.
94286         * MODULES.html.sh (Internationalization functions): Add propername.
94288 2008-05-16  Jim Meyering  <meyering@redhat.com>
94289             Bruno Haible  <bruno@clisp.org>
94291         Avoid some warnings from "gcc -Wshadow".
94292         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94294 2008-05-15  Eric Blake  <ebb9@byu.net>
94296         Extend previous patch to cygwin 1.7.0.
94297         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94298         fast implementation in cygwin >= 1.7.0.
94299         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94302 2008-05-15  Bruno Haible  <bruno@clisp.org>
94304         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94305         implementation in glibc >= 2.9.
94306         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94309 2008-05-15  Bruno Haible  <bruno@clisp.org>
94311         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94312         (Unicode string functions): Add unilbrk/*.
94313         Reported by Karl Berry.
94315 2008-05-15  Eric Blake  <ebb9@byu.net>
94317         Fix violation of <stdbool.h> replacement in regex.
94318         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94319         * lib/regexec.c (re_search_internal): Likewise.
94320         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94322 2008-05-15  Jim Meyering  <meyering@redhat.com>
94324         avoid distracting test output when git or cvs is not found
94325         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94326         * tests/test-vc-list-files-git.sh: Likewise.
94328 2008-05-15  Eric Blake  <ebb9@byu.net>
94330         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94331         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94332         glibc version.
94333         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94334         * doc/posix-functions/strstr.texi (strstr): Likewise.
94335         * lib/str-two-way.h (MAX): Sychronize with glibc.
94337 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94339         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94340         opr.ctx_type.
94341         (calc_first): Initialize constraint field.
94342         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94343         Fix grammar.
94344         (duplicate_node): Merge constraint field for all node types.
94345         (calc_eclosure_iter): Look at constraint field for all node types.
94346         * lib/regex_internal.c (create_cd_newstate): Don't look at
94347         opr.ctx_type.
94349 2008-05-14  Bruno Haible  <bruno@clisp.org>
94351         Help GCC to do better code generation.
94352         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94353         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94354         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94355         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94356         Declare with attribute 'malloc' if supported.
94358 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94360         use "echo STR|wc -c" rather than unportable "expr length STR"
94361         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94362         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94364 2008-05-14  Jim Meyering  <meyering@redhat.com>
94366         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94367         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94368         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94369         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94370         via Collin Lasse.
94372 2008-05-14  Eric Blake  <ebb9@byu.net>
94374         Avoid quadratic growth in gl_LIBSOURCES.
94375         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94376         Suggested by Bruno Haible.
94378         Test xmemdup0.
94379         * modules/xmemdup0-tests: New file.
94380         * tests/test-xmemdup0.c: Likewise.
94382 2008-05-13  Eric Blake  <ebb9@byu.net>
94384         Split xmemdup0 into its own module.
94385         * modules/xmemdup0: New file.
94386         * lib/xmemdup0.h: Likewise.
94387         * lib/xmemdup0.c: Likewise.
94388         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94389         * lib/xalloc.h (xmemdup0): Remove.
94390         * lib/xmalloc.c (xmemdup0): Likewise.
94392 2008-05-13  Eric Blake  <ebb9@byu.net>
94393             Bruno Haible  <bruno@clisp.org>
94395         Reduce number of forks required during autoconf.
94396         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94397         and gl_LIBSOURCES_DIR.
94398         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94399         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94400         m4_syscmd per file.
94401         <m4_foreach_w>: Move...
94402         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94404 2008-05-13  Eric Blake  <ebb9@byu.net>
94406         * gnulib-tool: Fix various comment typos.
94408 2008-05-12  Bruno Haible  <bruno@clisp.org>
94410         Tailor the linebreaking algorithm.
94411         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94413 2008-05-12  Bruno Haible  <bruno@clisp.org>
94415         Update to Unicode 5.0.0.
94416         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94417         LBP_JV, LBP_JT. Redistribute values.
94418         (unilbrk_table): Change size.
94419         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94420         Unicode TR#14 rev. 22.
94421         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94422         LBP_JV, LBP_JT. Redistribute values.
94423         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94424         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94425         Update.
94426         * lib/unilbrk/lbrkprop1.h: Regenerated.
94427         * lib/unilbrk/lbrkprop2.h: Regenerated.
94428         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94429         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94430         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94431         Likewise.
94432         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94433         Likewise.
94434         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94435         result.
94436         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94437         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94438         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94439         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94440         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94441         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94443 2008-05-11  Bruno Haible  <bruno@clisp.org>
94445         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94447 2008-05-11  Bruno Haible  <bruno@clisp.org>
94449         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94450         * modules/unilbrk/gen-lbrk: New file.
94452 2008-05-11  Bruno Haible  <bruno@clisp.org>
94454         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94455         * m4/sha512.m4 (gl_SHA512): Likewise.
94457 2008-05-11  Jim Meyering  <meyering@redhat.com>
94459         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94460         * modules/crypto/sha256: New file.
94461         * modules/crypto/sha512: Likewise.
94462         * lib/sha256.c: Likewise.
94463         * lib/sha256.h: Likewise.
94464         * lib/sha512.c: Likewise.
94465         * lib/sha512.h: Likewise.
94466         * lib/u64.h: Likewise.
94467         * m4/sha256.m4: Likewise.
94468         * m4/sha512.m4: Likewise.
94469         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94471 2008-05-10  Bruno Haible  <bruno@clisp.org>
94473         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94474         (Input/Output <stdio.h>): Add xprintf.
94475         (Signal handling <signal.h>): Add strsignal.
94476         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94477         (Core language properties): Add func.
94478         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94479         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94480         strings.
94481         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94482         (Input/output): New section.
94483         (File system functions): Add openat-die, stat-macros.
94484         (Networking functions): Add sockets.
94485         (Unicode string functions): Add unictype/*.
94486         (Support for building libraries and executables): Add gperf.
94487         (Support for building documentation): Add agpl-3.0.
94488         (Misc): Add nocrash.
94490 2008-05-10  Bruno Haible  <bruno@clisp.org>
94492         * modules/unictype/gen-ctype: New file.
94494 2008-05-10  Jim Meyering  <meyering@redhat.com>
94496         Make chdir-safer.c more efficient on a system with no symlinks.
94497         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94498         also if ELOOP is zero.  Suggested by Bruno Haible.
94500         Make chdir-safer.c slightly safer.
94501         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94502         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94504         Avoid compile failure on systems without ELOOP (like mingw).
94505         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94506         Reported by Bruno Haible.
94508 2008-05-10  Bruno Haible  <bruno@clisp.org>
94510         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94511         (is_utf8_encoding): Use a case-insensitive comparison.
94512         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94513         streq.
94515 2008-05-10  Bruno Haible  <bruno@clisp.org>
94517         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94518         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94519         * lib/unilbrk/ulc-common.h (iconv_string_length,
94520         iconv_string_keeping_offsets): Remove declarations.
94521         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94522         Don't include <iconv.h>, streq.h, xsize.h.
94523         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94524         conversion.
94525         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94526         <iconv.h>, streq.h, xsize.h.
94527         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94528         conversion.
94529         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94530         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94531         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94532         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94534 2008-05-10  Bruno Haible  <bruno@clisp.org>
94536         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94537         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94539         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94540         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94542         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94543         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94545         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94546         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94548         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94549         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94551         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94552         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94554         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94555         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94557         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94558         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94560 2008-05-10  Bruno Haible  <bruno@clisp.org>
94562         Split up 'linebreak' module.
94563         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94564         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94565         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94566         modifications.
94567         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94568         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94569         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94570         lib/linebreak.c.
94571         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94572         lib/linebreak.c.
94573         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94574         lib/linebreak.c.
94575         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94576         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94577         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94578         lib/linebreak.c.
94579         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94580         lib/linebreak.c.
94581         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94582         lib/linebreak.c.
94583         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94584         lib/linebreak.c.
94585         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94586         lib/linebreak.c.
94587         * modules/unilbrk/base: New file.
94588         * modules/unilbrk/tables: New file.
94589         * modules/unilbrk/u8-possible-linebreaks: New file.
94590         * modules/unilbrk/u16-possible-linebreaks: New file.
94591         * modules/unilbrk/u32-possible-linebreaks: New file.
94592         * modules/unilbrk/ulc-common: New file.
94593         * modules/unilbrk/ulc-possible-linebreaks: New file.
94594         * modules/unilbrk/u8-width-linebreaks: New file.
94595         * modules/unilbrk/u16-width-linebreaks: New file.
94596         * modules/unilbrk/u32-width-linebreaks: New file.
94597         * modules/unilbrk/ulc-width-linebreaks: New file.
94598         * lib/linebreak.h: Remove file.
94599         * lib/linebreak.c: Remove file.
94600         * m4/linebreak.m4: Remove file.
94601         * modules/linebreak: Remove file.
94602         * NEWS: Mention the changes.
94604 2008-05-09  Eric Blake  <ebb9@byu.net>
94606         Add xmemdup0.
94607         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94608         implementation.
94609         * lib/xmalloc.c (xmemdup0): New C implementation.
94611 2008-05-08  Bruno Haible  <bruno@clisp.org>
94613         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94615 2008-05-07  Eric Blake  <ebb9@byu.net>
94617         Support cross-compilation of <wctype.h>.
94618         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94619         AC_CACHE_CHECK.
94621 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94623         * build-aux/vc-list-files: Add support for bzr.
94625 2008-05-03  Jim Meyering  <meyering@redhat.com>
94627         avoid failed assertion with tight malloc
94628         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94630 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94632         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94633         are needed from arpa/inet.h.
94634         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94635         Reported by Bruno Haible.
94637 2008-05-02  Jim Meyering  <meyering@redhat.com>
94639         avoid compilation error on FreeBSD 6
94640         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94642 2008-05-01  Jim Meyering  <meyering@redhat.com>
94644         useless-if-before-free: correct --help's exit status description
94645         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94646         for one or more matches, etc.  Reported by Bruno Haible.
94648         vc-list-files: make the stand-alone gnulib test work
94649         * modules/vc-list-files-tests (configure.ac):
94650         Define and AC_SUBST abs_aux_dir.
94651         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94652         $(abs_top_srcdir) to each script and having each of them
94653         duplicate the work of setting PATH, set PATH here, using
94654         the new variable, abs_aux_dir instead.
94655         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94656         * tests/test-vc-list-files-git.sh: Likewise.
94657         Reported by Bruno Haible.
94659 2008-05-01  Bruno Haible  <bruno@clisp.org>
94661         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94662         reallocation. Rename 'done' to 'found_delimiter'.
94664 2008-05-01  Jim Meyering  <meyering@redhat.com>
94666         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94667         * build-aux/vc-list-files: Use `...`, not $(...).
94669 2008-04-30  Jim Meyering  <meyering@redhat.com>
94671         add tests for vc-list-files
94672         * modules/vc-list-files-tests: New module.
94673         * tests/test-vc-list-files-cvs.sh: New file.
94674         * tests/test-vc-list-files-git.sh: New file.
94676         avoid a warning from gcc
94677         * lib/getndelim2.c (IF_LINT): Define.
94678         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94680         vc-list-files: work properly with build-aux/cvsu, too
94681         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94682         to all cvs-based clauses.
94684         vc-list-files: work properly in the CVS+awk case, too
94685         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94687         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94688         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94689         take more than one file argument, so .  Add quotes, just in case $dir
94690         ever contains a shell meta-character.  Prompted by Soren Hansen in
94691         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94693 2008-04-29  Eric Blake  <ebb9@byu.net>
94695         Optimize getndelim2 to use block operations when possible.
94696         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94697         freadseek, and memchr2.
94698         * lib/getndelim2.c (getndelim2): Use them for block reads.
94700 2008-04-29  Bruno Haible  <bruno@clisp.org>
94702         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94703         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94704         * modules/inet_ntop (Depends-on): Add extensions.
94705         * modules/inet_pton (Depends-on): Likewise.
94706         Reported by Simon Josefsson.
94708 2008-04-29  Jim Meyering  <meyering@redhat.com>
94710         When the is more than one match in a block, match all of them.
94711         * build-aux/useless-if-before-free: Iterate through each block
94712         until there are no more matches.
94714         Fix broken useless-if-before-free script.
94715         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94716         the expression to match cast of argument to free-like function.
94718 2008-04-29  Eric Blake  <ebb9@byu.net>
94720         Use new header.
94721         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94723 2008-04-29  Jim Meyering  <meyering@redhat.com>
94725         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94726         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94727         by gnulib to exist and to declare e.g., inet_ntop.
94728         Don't include "inet_ntop.h", now removed.
94730         * m4/arpa_inet_h.m4: Remove trailing blanks.
94732 2008-04-29  Eric Blake  <ebb9@byu.net>
94734         Silence valgrind on safe reads beyond potential array bounds.
94735         * lib/rawmemchr.valgrind: New file.
94736         * lib/strchrnul.valgrind: Likewise.
94737         * modules/rawmemchr (Files): Distribute new file.
94738         * modules/strchrnul (Files): Likewise.
94739         Suggested by Bruno Haible.
94741 2008-04-29  Bruno Haible  <bruno@clisp.org>
94743         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94744         (inet_ntop, inet_pton): Change portability warning's wording.
94745         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94746         Invoke gl_CHECK_NEXT_HEADERS.
94747         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94748         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94749         set ARPA_INET_H.
94750         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94751         * modules/arpa_inet (Description): No longer only for systems that
94752         lack it.
94753         (Depends-on): Add include_next.
94754         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94755         HAVE_ARPA_INET_H.
94757 2008-04-29  Jim Meyering  <meyering@redhat.com>
94759         * modules/mkdir (License): Re-license as LGPLv2+.
94761 2008-04-29  Bruno Haible  <bruno@clisp.org>
94763         * modules/rawmemchr (Maintainer): Set to Eric.
94764         * modules/strchrnul (Maintainer): Likewise.
94766 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94768         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94769         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94771         * modules/arpa_inet (arpa/inet.h): Use them.
94773 2008-04-28  Eric Blake  <ebb9@byu.net>
94775         Test getndelim2.
94776         * modules/getndelim2-tests: New file.
94777         * tests/test-getndelim2.c: Likewise.
94778         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94779         stream.
94780         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94782         * MODULES.html.sh: Document new module.
94784 2008-04-20  Bruno Haible  <bruno@clisp.org>
94786         * lib/c-stack.c (die): Use raise.
94787         * modules/c-stack (Depends-on): Add raise.
94789 2008-04-28  Bruno Haible  <bruno@clisp.org>
94791         Expect rpmatch to be declared.
94792         * lib/yesno.c (rpmatch): Remove declaration.
94794         Declare rpmatch.
94795         * lib/stdlib.in.h (rpmatch): New declaration.
94796         * lib/rpmatch.c: Include <stdlib.h> first.
94797         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94798         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94800         HAVE_RPMATCH.
94801         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94803         (Include): Set to <stdlib.h>.
94804         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94805         HAVE_RPMATCH.
94806         * NEWS: Document the change.
94808 2008-04-28  Bruno Haible  <bruno@clisp.org>
94810         Change rpmatch to use nl_langinfo when appropriate.
94811         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94812         (N_): New macro.
94813         (localized_pattern): New function/macro.
94814         (try): Remove match, nomatch arguments. Copy the pattern into safe
94815         memory before caching it.
94816         (rpmatch): Use localized_pattern. Add translator comments.
94817         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94818         Suggested by Eric Blake.
94819         * modules/rpmatch (Depends-on): Add stdbool.
94821 2008-04-28  Eric Blake  <ebb9@byu.net>
94823         Add rawmemchr module, matching glibc.
94824         * modules/string (Makefile.am): New indicator.
94825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94826         * lib/string.in.h (rawmemchr): Declare when appropriate.
94827         * modules/rawmemchr: New file.
94828         * m4/rawmemchr.m4: Likewise.
94829         * lib/rawmemchr.c: Likewise.
94830         * modules/rawmemchr-tests: Likewise.
94831         * tests/test-rawmemchr.c: Likewise.
94832         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94833         module.
94834         * modules/strchrnul (Depends-on): Add rawmemchr.
94835         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94837         Whitespace cleanup.
94838         * tests/test-strchrnul.c: Reindent.
94839         * lib/strchrnul.c: Likewise.
94841         Optimize and test strchrnul.
94842         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94843         * modules/strchrnul-tests: New file.
94844         * tests/test-strchrnul.c: Likewise.
94846         Remove intprops dependency.
94847         * modules/memchr (Depends-on): Remove intprops.
94848         * modules/memrchr (Depends-on): Likewise.
94849         * modules/memchr2 (Depends-on): Likewise.
94850         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94851         * lib/memrchr.c (__memrchr): Likewise.
94852         * lib/memrchr2.c (memchr2): Likewise.
94853         Reported by Simon Josefsson.
94855 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94857         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94858         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94860 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94862         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94864         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94866         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94868         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94869         declarations.
94870         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94872         * m4/inet_pton.m4: Don't check for header files.
94874         * m4/inet_ntop.m4: Don't check for header files.
94876 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94878         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94879         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94880         trigger for cygwin).
94881         Reported by Bruno Haible  <bruno@clisp.org>.
94883 2008-04-28  Bruno Haible  <bruno@clisp.org>
94885         * doc/posix-functions/strdup.texi: Mention mingw problem.
94887 2008-04-27  Bruno Haible  <bruno@clisp.org>
94889         * modules/stat-time-tests (Depends-on): Add sleep.
94890         * tests/test-stat-time.c (force_unlink): New function.
94891         (cleanup): Use it.
94892         (test_mtime): Remove the ctime related tests.
94893         (test_ctime): New function, containing the ctime related tests.
94894         (main): Call test_ctime, except on native Windows platforms.
94896 2008-04-27  Bruno Haible  <bruno@clisp.org>
94898         * lib/rpmatch.c (rpmatch): Add some comments.
94899         Reported by James Youngman <jay@gnu.org>.
94901 2008-04-27  Bruno Haible  <bruno@clisp.org>
94903         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94904         quiet NaNs.
94906 2008-04-27  Bruno Haible  <bruno@clisp.org>
94908         Make test-yesno.sh work on mingw.
94909         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94910         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94911         (main): Set stdin to binary mode.
94912         * modules/yesno-tests (Depends-on): Add binary-io.
94914 2008-04-27  Bruno Haible  <bruno@clisp.org>
94916         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94917         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94918         argument that lie outside the IEEE 854 domain.
94919         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94920         (gl_ISFINITE): Use it.
94921         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94923 2008-04-27  Bruno Haible  <bruno@clisp.org>
94925         Allow local renaming in config.h.
94926         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94928 2008-04-27  Bruno Haible  <bruno@clisp.org>
94930         * lib/memchr.c (__memchr): Change type of 'i'.
94931         * lib/memchr2.c (memchr2): Likewise.
94933 2008-04-26  Eric Blake  <ebb9@byu.net>
94934         and Bruno Haible  <bruno@clisp.org>
94936         Optimize and test memrchr.
94937         * modules/memrchr (Depends-on): Add intprops.
94938         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94939         * modules/memrchr-tests: New file.
94940         * tests/test-memrchr.c: New file.
94942 2008-04-26  Bruno Haible  <bruno@clisp.org>
94944         Add tentative support for DragonFly BSD.
94945         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94946         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94947         fp.
94948         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94949         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94950         * lib/fpurge.c (fpurge): Likewise.
94951         * lib/freadable.c (freaadable): Likewise.
94952         * lib/freadahead.c (freadahead): Likewise.
94953         * lib/freading.c (freading): Likewise.
94954         * lib/freadptr.c (freadptr): Likewise.
94955         * lib/freadseek.c (freadptrinc): Likewise.
94956         * lib/fseeko.c (fseeko): Likewise.
94957         * lib/fseterr.c (fseterr): Likewise.
94958         * lib/fwritable.c (fwritable): Likewise.
94959         * lib/fwriting.c (fwriting): Likewise.
94961 2008-04-26  Bruno Haible  <bruno@clisp.org>
94963         * lib/stdio-impl.h: New file.
94964         * lib/fbufmode.c: Include stdio-impl.h.
94965         (fbufmode): Use fp_, remove redundant #defines.
94966         * lib/fflush.c: Include stdio-impl.h.
94967         (clear_ungetc_buffer): Remove redundant #defines.
94968         * lib/fpurge.c: Include stdio-impl.h.
94969         (fpurge): Remove redundant #defines.
94970         * lib/freadable.c: Include stdio-impl.h.
94971         (freadable): Remove redundant #defines.
94972         * lib/freadahead.c: Include stdio-impl.h.
94973         (freadahead): Remove redundant #defines.
94974         * lib/freading.c: Include stdio-impl.h.
94975         (freading): Remove redundant #defines.
94976         * lib/freadptr.c: Include stdio-impl.h.
94977         (freadptr): Remove redundant #defines.
94978         * lib/freadseek.c: Include stdio-impl.h.
94979         (freadptrinc): Remove redundant #defines.
94980         * lib/fseeko.c: Include stdio-impl.h.
94981         (rpl_fseeko): Remove redundant #defines.
94982         * lib/fseterr.c: Include stdio-impl.h.
94983         (fseterr): Remove redundant #defines.
94984         * lib/fwritable.c: Include stdio-impl.h.
94985         (fwritable: Remove redundant #defines.
94986         * lib/fwriting.c: Include stdio-impl.h.
94987         (fwriting): Remove redundant #defines.
94988         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94989         * modules/fflush (Files): Likewise.
94990         * modules/fpurge (Files): Likewise.
94991         * modules/freadable (Files): Likewise.
94992         * modules/freadahead (Files): Likewise.
94993         * modules/freading (Files): Likewise.
94994         * modules/freadptr (Files): Likewise.
94995         * modules/freadseek (Files): Likewise.
94996         * modules/fseeko (Files): Likewise.
94997         * modules/fseterr (Files): Likewise.
94998         * modules/fwritable (Files): Likewise.
94999         * modules/fwriting (Files): Likewise.
95001 2008-04-26  Bruno Haible  <bruno@clisp.org>
95003         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95004         restore_seek_optimization, update_fpos_cache): New functions, extracted
95005         from rpl_fflush.
95006         (rpl_fflush): Use them.
95007         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95008         (gl_REPLACE_FFLUSH): Use it.
95010 2008-04-26  Bruno Haible  <bruno@clisp.org>
95012         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95013         on Solaris.
95014         * tests/test-xstrtoimax.sh: Likewise.
95015         * tests/test-xstrtoumax.sh: Likewise.
95016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95018 2008-04-26  Bruno Haible  <bruno@clisp.org>
95020         * modules/memchr-tests: New file.
95021         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95023 2008-04-26  Eric Blake  <ebb9@byu.net>
95024             Bruno Haible  <bruno@clisp.org>
95026         * lib/memchr.c: Include intprops.h.
95027         (__memchr): Optimize parallel detection of matching bytes. Rename local
95028         variables. Add explanatory comments.
95030 2008-04-26  Bruno Haible  <bruno@clisp.org>
95032         Fix module 'memchr', broken since 2000-10-28.
95033         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95035 2008-04-26  Bruno Haible  <bruno@clisp.org>
95037         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95038         comments.
95040 2008-04-25  Eric Blake  <ebb9@byu.net>
95042         Use native fstatat on cygwin 1.7.0.
95043         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95044         first.
95046 2008-04-23  Eric Blake  <ebb9@byu.net>
95048         Improve memchr2 performance.
95049         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95050         NUL bytes.
95051         * modules/memchr2 (Depends-on): Use intprops.h.
95053 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95055         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95056         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95057         <blp@cs.stanford.edu>.
95059 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95061         * lib/arpa_inet.in.h: New file.
95063         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95064         (Makefile.am): Sed in substitute header file.
95066         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95067         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95069         * modules/inet_ntop (configure.ac): Use
95070         gl_ARPA_INET_MODULE_INDICATOR.
95072         * modules/inet_pton (configure.ac): Use
95073         gl_ARPA_INET_MODULE_INDICATOR.
95075 2008-04-22  Jim Meyering  <meyering@redhat.com>
95077         * modules/verify (License): Re-license as LGPLv2+.
95079 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95081         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95082         parameter to void* as per POSIX standard (MinGW uses char*).
95084 2008-04-21  Bruno Haible  <bruno@clisp.org>
95086         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95087         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95088         Define to replacements if REPLACE_ISWCNTRL is 1.
95089         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95090         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95091         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95092         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95093         what it fixes.
95094         * doc/posix-functions/iswalpha.texi: Likewise.
95095         * doc/posix-functions/iswblank.texi: Likewise.
95096         * doc/posix-functions/iswcntrl.texi: Likewise.
95097         * doc/posix-functions/iswdigit.texi: Likewise.
95098         * doc/posix-functions/iswgraph.texi: Likewise.
95099         * doc/posix-functions/iswlower.texi: Likewise.
95100         * doc/posix-functions/iswprint.texi: Likewise.
95101         * doc/posix-functions/iswpunct.texi: Likewise.
95102         * doc/posix-functions/iswspace.texi: Likewise.
95103         * doc/posix-functions/iswupper.texi: Likewise.
95104         * doc/posix-functions/iswxdigit.texi: Likewise.
95105         Reported by Alain Guibert.
95107 2008-04-21  Bruno Haible  <bruno@clisp.org>
95109         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95110         Patch by Alain Guibert.
95112 2008-04-21  Bruno Haible  <bruno@clisp.org>
95114         Fix test failures on mingw.
95115         * tests/test-xstrtol.c (print_no_progname): New function.
95116         (main): Install it in error_print_progname hook.
95117         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95118         * tests/test-xstrtoimax.sh: Likewise.
95119         * tests/test-xstrtoumax.sh: Likewise.
95121 2008-04-21  Bruno Haible  <bruno@clisp.org>
95123         Fix test failure on mingw.
95124         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95126 2008-04-21  Bruno Haible  <bruno@clisp.org>
95128         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95129         Actually assign a value.
95131 2008-04-20  Bruno Haible  <bruno@clisp.org>
95133         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95134         take 2.
95135         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95136         'canonicalize-lgpl' module is also used.
95137         * lib/canonicalize-lgpl.c: Undo last change.
95138         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95140 2008-04-20  Bruno Haible  <bruno@clisp.org>
95142         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95143         config.h. Provide _mkdir based fallback for mingw.
95144         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95145         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95146         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95147         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95148         rather than defining mkdir in config.h.
95149         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95150         (gl_SYS_STAT_H_DEFAULTS): New macro.
95151         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95152         HAVE_IO_H any more.
95153         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95154         HAVE_DECL_MKDIR and HAVE_IO_H.
95156 2008-04-20  Bruno Haible  <bruno@clisp.org>
95158         * lib/isapipe.c: Port to native Windows platforms.
95160 2008-04-20  Bruno Haible  <bruno@clisp.org>
95162         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95164 2008-04-21  Eric Blake  <ebb9@byu.net>
95166         Work around preprocessors that don't handle UINTMAX_MAX.
95167         * lib/memchr2.c (memchr2): Avoid embedded #if.
95168         Reported by Alain Guibert, fix suggested by Bruno Haible.
95170 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95172         * doc/posix-functions/strftime.texi (strftime): Explain better
95173         Windows incompatibility.  Suggested by Micah Cowan
95174         <micah@cowan.name>.
95176 2008-04-20  Bruno Haible  <bruno@clisp.org>
95178         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95179         unistr/u8-mblen.
95181 2008-04-20  Bruno Haible  <bruno@clisp.org>
95183         Fix test failure on platforms with non-GNU iconv.
95184         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95185         (U_TO_U8): Use it, rather than u16_to_u8.
95186         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95187         units at the end of the input string.
95188         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95190 2008-04-20  Bruno Haible  <bruno@clisp.org>
95192         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95193         when the resulting length is 0.
95194         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95196 2008-04-20  Bruno Haible  <bruno@clisp.org>
95198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95199         works.
95200         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95202 2008-04-20  Bruno Haible  <bruno@clisp.org>
95204         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95205         * modules/tsearch-tests (configure.ac): Test for initstate function.
95207 2008-04-20  Bruno Haible  <bruno@clisp.org>
95209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95210         for nlink_t if missing.
95211         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95213 2008-04-19  Bruno Haible  <bruno@clisp.org>
95215         Work around snprintf bug on Linux libc5.
95216         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95218         gl_SNPRINTF_SIZE1.
95219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95220         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95221         that test failed.
95222         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95223         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95224         * modules/snprintf (Files): Add m4/printf.m4.
95225         * modules/vsnprintf (Files): Likewise.
95226         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95227         * doc/posix-functions/vsnprintf.texi: Likewise.
95229 2008-04-19  Bruno Haible  <bruno@clisp.org>
95231         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95232         from 0.0058 to less than 10^-7.
95234 2008-04-19  Bruno Haible  <bruno@clisp.org>
95236         Fix rounding when a precision is given.
95237         * lib/vasnprintf.c (is_borderline): New function.
95238         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95239         9...9x.
95240         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95241         %e, %g.
95242         * tests/test-vasprintf-posix.c (test_function): Likewise.
95243         * tests/test-snprintf-posix.h (test_function): Likewise.
95244         * tests/test-sprintf-posix.h (test_function): Likewise.
95245         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95246         * tests/test-printf-posix.h (test_function): Likewise.
95247         * tests/test-printf-posix.output: Update.
95248         Reported by John Darrington <john@darrington.wattle.id.au> via
95249         Ben Pfaff <blp@cs.stanford.edu>.
95251 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95253         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95254         Suggested by Bruno Haible <bruno@clisp.org>.
95256 2008-04-17  Bruno Haible  <bruno@clisp.org>
95258         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95259         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95260         implementation.
95261         Patch by Bruce Merry <bmerry@gmail.com>.
95263 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95265         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95266         doesn't work under Windows.
95268 2008-04-16  Bruno Haible  <bruno@clisp.org>
95270         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95271         New macros.
95272         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95273         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95274         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95275         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95276         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95277         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95278         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95279         macros.
95280         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95281         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95282         Northern Sotho, Uighur.
95284 2008-04-16  Bruno Haible  <bruno@clisp.org>
95286         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95287         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95288         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95289         Reported by Daniel Bergström <daniel@octocode.com>.
95291 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95292             Bruno Haible  <bruno@clisp.org>
95294         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95295         function.
95296         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95297         New functions, mostly extracted from gl_locale_name_default.
95298         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95300 2008-04-16  Eric Blake  <ebb9@byu.net>
95302         Adjust strtod detection to catch glibc 2.7 bug.
95303         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95304         Reported by John Gatewood Ham.
95306 2008-04-16  Bruno Haible  <bruno@clisp.org>
95308         Add tentative support for Linux libc5.
95309         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95310         * lib/fpurge.c (fpurge): Likewise.
95311         * lib/freadable.c (freadable): Likewise.
95312         * lib/freadahead.c (freadahead): Likewise.
95313         * lib/freading.c (freading): Likewise.
95314         * lib/freadptr.c (freadptr): Likewise.
95315         * lib/freadseek.c (freadptrinc): Likewise.
95316         * lib/fseeko.c (rpl_fseeko): Likewise.
95317         * lib/fseterr.c (fseterr): Likewise.
95318         * lib/fwritable.c (fwritable): Likewise.
95319         * lib/fwriting.c (fwriting): Likewise.
95320         Reported by Alain Guibert <alguibert+bts@free.fr>.
95322 2008-04-15  Bruno Haible  <bruno@clisp.org>
95324         * modules/mathl (configure.ac): Define module indicator.
95326 2008-04-15  Bruno Haible  <bruno@clisp.org>
95328         * lib/logl.c (logl): Remove unused variables.
95330 2008-04-15  Bruno Haible  <bruno@clisp.org>
95332         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95333         fails.
95335 2008-04-15  Bruno Haible  <bruno@clisp.org>
95337         * lib/trim.c (trim2): Fix argument of isspace() macro.
95339 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95341         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95342         to 0.
95343         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95345 2008-04-14  Bruno Haible  <bruno@clisp.org>
95347         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95348         AC_LANG_PROGRAM argument.
95349         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95350         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95352         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95353         * m4/math_h.m4 (gl_MATH_H): Likewise.
95354         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95356         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95357         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95358         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95359         * m4/regex.m4 (gl_REGEX): Likewise.
95360         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95361         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95364         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95365         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95369 2008-04-14  Jim Meyering  <meyering@redhat.com>
95371         test-strtod: fix typos: s/abs/fabs/
95372         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95374 2008-04-13  Bruno Haible  <bruno@clisp.org>
95376         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95377         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95378         module is also used and while not building the reloc-wrapper.
95380 2008-04-13  Bruno Haible  <bruno@clisp.org>
95382         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95384 2008-04-13  Bruno Haible  <bruno@clisp.org>
95386         Fix AIX compilation failure introduced on 2008-04-02.
95387         * tests/test-frexp.c (exp): Undefine before redefining.
95388         * tests/test-frexpl.c (exp): Likewise.
95390 2008-04-13  Bruno Haible  <bruno@clisp.org>
95392         Work around a HP-UX stdio bug.
95393         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95394         * tests/test-ftello.c (main): Likewise.
95395         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95396         * doc/posix-functions/ftello.texi: Likewise.
95398 2008-04-13  Bruno Haible  <bruno@clisp.org>
95400         Make test-signbit pass on HP-UX/hppa.
95401         * tests/test-signbit.c (minus_zerol): New variable.
95402         (test_signbitl): Use it.
95404 2008-04-13  Bruno Haible  <bruno@clisp.org>
95406         Make truncl work on OSF/1 4.0.
95407         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95408         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95409         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95411         HAVE_DECL_TRUNCL.
95412         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95413         HAVE_DECL_TRUNCL.
95414         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95416 2008-04-13  Bruno Haible  <bruno@clisp.org>
95418         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95420 2008-04-13  Bruno Haible  <bruno@clisp.org>
95422         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95423         expression, so as to avoid HP-UX 11 cc compiler bug.
95425 2008-04-13  Bruno Haible  <bruno@clisp.org>
95427         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95429 2008-04-13  Bruno Haible  <bruno@clisp.org>
95431         * lib/git-merge-changelog.c: Remove empty declaration outside of
95432         functions.
95434 2008-04-13  Bruno Haible  <bruno@clisp.org>
95436         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95438 2008-04-13  Bruno Haible  <bruno@clisp.org>
95440         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95441         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95443         also if it exists but lacks definitions of the SHUT_* macros.
95444         * modules/sys_socket (Description): Update.
95445         Reported by Elbert Pol <e.pol@chello.nl>.
95447 2008-04-13  Bruno Haible  <bruno@clisp.org>
95449         * lib/localcharset.c (OS2): Don't redefine if already defined.
95450         Reported by Elbert Pol <e.pol@chello.nl>.
95452 2008-04-13  Bruno Haible  <bruno@clisp.org>
95454         * lib/binary-io.h [__EMX__]: Include <io.h>.
95455         Reported by Elbert Pol <e.pol@chello.nl>.
95457 2008-04-12  Bruno Haible  <bruno@clisp.org>
95459         * lib/fpucw.h: Enable the definitions also for x86_64.
95460         Needed for NetBSD/x86_64.
95461         Reported by Thomas Klausner <tk@giga.or.at>.
95463 2008-04-12  Bruno Haible  <bruno@clisp.org>
95465         * tests/test-strtod.c: Include isnand.h.
95466         (main): Use isnand instead of isnan.
95467         Reported by Jim Meyering.
95469 2008-04-12  Bruno Haible  <bruno@clisp.org>
95471         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95472         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95474 2008-04-12  Jim Meyering  <meyering@redhat.com>
95476         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95478 2008-04-12  Bruno Haible  <bruno@clisp.org>
95480         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95481         Reported by Elbert Pol <e.pol@chello.nl>.
95483 2008-04-12  Eric Blake  <ebb9@byu.net>
95485         Work around Solaris 10 math.h bug.
95486         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95487         (gl_MATH_H_DEFAULTS): Set up default.
95488         * modules/math (Makefile.am): Replace new indicators.
95489         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95490         * tests/test-math.c (main): Test this.
95491         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95492         * doc/posix-headers/math.texi (math.h): Mention bug.
95493         Reported by Nelson H. F. Beebe and Jim Meyering.
95495 2008-04-11  Bruno Haible  <bruno@clisp.org>
95497         Adapt to future versions of Apple GCC.
95498         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95499         Reported by Peter O'Gorman <peter@pogma.com>.
95501 2008-04-11  Bruno Haible  <bruno@clisp.org>
95503         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95505 2008-04-11  Bruno Haible  <bruno@clisp.org>
95507         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95509         * modules/getaddrinfo-tests (Makefile.am): Define
95510         test_getaddrinfo_LDADD.
95512 2008-04-11  Bruno Haible  <bruno@clisp.org>
95514         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95515         (init): Fix syntax error.
95516         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95517         is declared.
95519 2008-04-11  Bruno Haible  <bruno@clisp.org>
95521         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95522         * modules/glob (Depends-on): Add stdbool.
95524 2008-04-11  Bruno Haible  <bruno@clisp.org>
95526         * lib/trim.c: Include <string.h>.
95528 2008-04-11  Eric Blake  <ebb9@byu.net>
95530         Avoid compile failure on OS/2.
95531         * lib/regex_internal.h (internal_function): Disable optimization
95532         on OS/2 (__EMX__), where it caused compiler error.
95533         Reported by Elbert Pol.
95535 2008-04-11  Bruno Haible  <bruno@clisp.org>
95537         Flush the standard error stream before aborting. Needed on mingw.
95538         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95539         * tests/test-array_list.c (ASSERT): Likewise.
95540         * tests/test-array_oset.c (ASSERT): Likewise.
95541         * tests/test-avltree_list.c (ASSERT): Likewise.
95542         * tests/test-avltree_oset.c (ASSERT): Likewise.
95543         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95544         * tests/test-binary-io.c (ASSERT): Likewise.
95545         * tests/test-byteswap.c (ASSERT): Likewise.
95546         * tests/test-c-ctype.c (ASSERT): Likewise.
95547         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95548         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95549         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95550         * tests/test-c-strstr.c (ASSERT): Likewise.
95551         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95552         * tests/test-canonicalize.c (ASSERT): Likewise.
95553         * tests/test-carray_list.c (ASSERT): Likewise.
95554         * tests/test-ceilf1.c (ASSERT): Likewise.
95555         * tests/test-ceilf2.c (ASSERT): Likewise.
95556         * tests/test-ceill.c (ASSERT): Likewise.
95557         * tests/test-count-one-bits.c (ASSERT): Likewise.
95558         * tests/test-fbufmode.c (ASSERT): Likewise.
95559         * tests/test-fflush2.c (ASSERT): Likewise.
95560         * tests/test-floorf1.c (ASSERT): Likewise.
95561         * tests/test-floorf2.c (ASSERT): Likewise.
95562         * tests/test-floorl.c (ASSERT): Likewise.
95563         * tests/test-fopen.c (ASSERT): Likewise.
95564         * tests/test-fpending.c (ASSERT): Likewise.
95565         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95566         * tests/test-fpurge.c (ASSERT): Likewise.
95567         * tests/test-freadable.c (ASSERT): Likewise.
95568         * tests/test-freadahead.c (ASSERT): Likewise.
95569         * tests/test-freading.c (ASSERT): Likewise.
95570         * tests/test-freadptr.c (ASSERT): Likewise.
95571         * tests/test-freadptr2.c (ASSERT): Likewise.
95572         * tests/test-freadseek.c (ASSERT): Likewise.
95573         * tests/test-freopen.c (ASSERT): Likewise.
95574         * tests/test-frexp.c (ASSERT): Likewise.
95575         * tests/test-frexpl.c (ASSERT): Likewise.
95576         * tests/test-fseek.c (ASSERT): Likewise.
95577         * tests/test-fseeko.c (ASSERT): Likewise.
95578         * tests/test-fstrcmp.c (ASSERT): Likewise.
95579         * tests/test-ftell.c (ASSERT): Likewise.
95580         * tests/test-ftello.c (ASSERT): Likewise.
95581         * tests/test-func.c (ASSERT): Likewise.
95582         * tests/test-fwritable.c (ASSERT): Likewise.
95583         * tests/test-fwriting.c (ASSERT): Likewise.
95584         * tests/test-getdelim.c (ASSERT): Likewise.
95585         * tests/test-getline.c (ASSERT): Likewise.
95586         * tests/test-i-ring.c (ASSERT): Likewise.
95587         * tests/test-iconv-utf.c (ASSERT): Likewise.
95588         * tests/test-iconv.c (ASSERT): Likewise.
95589         * tests/test-isfinite.c (ASSERT): Likewise.
95590         * tests/test-isnand.c (ASSERT): Likewise.
95591         * tests/test-isnanf.c (ASSERT): Likewise.
95592         * tests/test-isnanl.h (ASSERT): Likewise.
95593         * tests/test-ldexpl.c (ASSERT): Likewise.
95594         * tests/test-linked_list.c (ASSERT): Likewise.
95595         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95596         * tests/test-localename.c (ASSERT): Likewise.
95597         * tests/test-lseek.c (ASSERT): Likewise.
95598         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95599         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95600         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95601         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95602         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95603         * tests/test-mbschr.c (ASSERT): Likewise.
95604         * tests/test-mbscspn.c (ASSERT): Likewise.
95605         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95606         * tests/test-mbspbrk.c (ASSERT): Likewise.
95607         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95608         * tests/test-mbsrchr.c (ASSERT): Likewise.
95609         * tests/test-mbsspn.c (ASSERT): Likewise.
95610         * tests/test-mbsstr1.c (ASSERT): Likewise.
95611         * tests/test-mbsstr2.c (ASSERT): Likewise.
95612         * tests/test-mbsstr3.c (ASSERT): Likewise.
95613         * tests/test-memchr2.c (ASSERT): Likewise.
95614         * tests/test-memmem.c (ASSERT): Likewise.
95615         * tests/test-open.c (ASSERT): Likewise.
95616         * tests/test-printf-frexp.c (ASSERT): Likewise.
95617         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95618         * tests/test-printf-posix.c (ASSERT): Likewise.
95619         * tests/test-quotearg.c (ASSERT): Likewise.
95620         * tests/test-rbtree_list.c (ASSERT): Likewise.
95621         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95622         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95623         * tests/test-round1.c (ASSERT): Likewise.
95624         * tests/test-roundf1.c (ASSERT): Likewise.
95625         * tests/test-roundl.c (ASSERT): Likewise.
95626         * tests/test-signbit.c (ASSERT): Likewise.
95627         * tests/test-sleep.c (ASSERT): Likewise.
95628         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95629         * tests/test-snprintf.c (ASSERT): Likewise.
95630         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95631         * tests/test-stat-time.c (ASSERT): Likewise.
95632         * tests/test-strcasestr.c (ASSERT): Likewise.
95633         * tests/test-strerror.c (ASSERT): Likewise.
95634         * tests/test-striconv.c (ASSERT): Likewise.
95635         * tests/test-striconveh.c (ASSERT): Likewise.
95636         * tests/test-striconveha.c (ASSERT): Likewise.
95637         * tests/test-strsignal.c (ASSERT): Likewise.
95638         * tests/test-strstr.c (ASSERT): Likewise.
95639         * tests/test-strtod.c (ASSERT): Likewise.
95640         * tests/test-trunc1.c (ASSERT): Likewise.
95641         * tests/test-trunc2.c (ASSERT): Likewise.
95642         * tests/test-truncf1.c (ASSERT): Likewise.
95643         * tests/test-truncf2.c (ASSERT): Likewise.
95644         * tests/test-truncl.c (ASSERT): Likewise.
95645         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95646         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95647         * tests/test-vasnprintf.c (ASSERT): Likewise.
95648         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95649         * tests/test-vasprintf.c (ASSERT): Likewise.
95650         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95651         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95652         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95653         * tests/test-vsnprintf.c (ASSERT): Likewise.
95654         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95655         * tests/test-wcwidth.c (ASSERT): Likewise.
95656         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95657         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95658         * tests/test-xvasprintf.c (ASSERT): Likewise.
95659         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95660         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95661         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95662         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95663         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95664         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95665         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95666         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95667         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95668         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95669         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95670         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95671         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95672         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95673         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95674         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95675         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95676         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95677         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95678         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95679         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95680         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95681         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95682         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95683         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95684         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95685         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95686         * tests/unictype/test-combining.c (ASSERT): Likewise.
95687         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95688         * tests/unictype/test-digit.c (ASSERT): Likewise.
95689         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95690         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95691         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95692         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95693         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95694         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95695         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95696         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95697         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95698         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95699         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95700         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95701         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95702         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95703         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95704         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95705         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95706         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95707         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95708         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95709         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95710         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95711         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95712         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95713         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95714         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95715         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95716         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95717         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95718         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95719         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95720         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95721         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95722         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95723         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95724         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95725         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95726         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95727         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95728         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95729         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95730         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95731         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95732         Reported by Eric Blake.
95734 2008-04-11  Bruno Haible  <bruno@clisp.org>
95736         * lib/wchar.in.h: Tweak comment.
95738 2008-04-11  Bruno Haible  <bruno@clisp.org>
95740         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95741         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95742         gl_COMMON.
95743         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95745 2008-04-11  Bruno Haible  <bruno@clisp.org>
95747         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95749 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95751         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95752         of attempting to use non-existing /dev/*random.  Based on patch
95753         from Adam Strzelecki <ono@java.pl> in
95754         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95756 2008-04-08  Bruno Haible  <bruno@clisp.org>
95758         Add tentative support for emx+gcc.
95759         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95760         * lib/fpurge.c (fpurge): Likewise.
95761         * lib/freadable.c (freadable): Likewise.
95762         * lib/freadahead.c (freadahead): Likewise.
95763         * lib/freading.c (freading): Likewise.
95764         * lib/freadptr.c (freadptr): Likewise.
95765         * lib/freadseek.c (freadptrinc): Likewise.
95766         * lib/fseeko.c (rpl_fseeko): Likewise.
95767         * lib/fseterr.c (fseterr): Likewise.
95768         * lib/fwritable.c (fwritable): Likewise.
95769         * lib/fwriting.c (fwriting): Likewise.
95770         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95772 2008-04-09  Eric Blake  <ebb9@byu.net>
95774         Avoid some autoconf warnings.
95775         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95776         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95777         * m4/afs.m4 (gl_AFS): Likewise.
95778         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95779         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95780         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95781         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95782         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95783         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95784         (AC_CHECK_DECLS_ONCE): Likewise.
95785         Rename file...
95786         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95787         gnulib-tool requires autoconf 2.59 or better.
95788         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95790 2008-04-08  Eric Blake  <ebb9@byu.net>
95792         Use 'git describe --match' if present (added in git 1.5.5).
95793         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95794         if possible.
95796 2008-04-08  Bruno Haible  <bruno@clisp.org>
95798         Add tentative support for OpenServer.
95799         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95800         _ptr, _cnt.
95801         * lib/fpurge.c (fpurge): Likewise.
95802         * lib/freadable.c (freadable): Likewise.
95803         * lib/freadahead.c (freadahead): Likewise.
95804         * lib/freading.c (freading): Likewise.
95805         * lib/freadptr.c (freadptr): Likewise.
95806         * lib/freadseek.c (freadptrinc): Likewise.
95807         * lib/fseeko.c (rpl_fseeko): Likewise.
95808         * lib/fseterr.c (fseterr): Likewise.
95809         * lib/fwritable.c (fwritable): Likewise.
95810         * lib/fwriting.c (fwriting): Likewise.
95811         Reported by Roger Cornelius <rac@tenzing.org> and
95812         Brian K. White <brian@aljex.com>.
95814 2008-04-06  Jim Meyering  <meyering@redhat.com>
95816         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95818 2008-04-06  Bruno Haible  <bruno@clisp.org>
95820         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95821         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95822         * tests/test-printf-posix.sh: Likewise.
95823         * tests/test-vfprintf-posix.sh: Likewise.
95824         * tests/test-vprintf-posix.sh: Likewise.
95825         * tests/test-xprintf-posix.sh: Likewise.
95827 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95829         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95830         hide error from 'ls', needed on OS/2.
95831         Report by Elbert Pol <elbert.pol@gmail.com>.
95833 2008-04-04  Eric Blake  <ebb9@byu.net>
95835         Make test-fseeko.c failures meaningful.
95836         * tests/test-fseeko.c: Print line number on failure.
95837         * tests/test-fseek.c: Likewise.
95838         Reported by Nelson H. F. Beebe.
95840         Improve strtod bug detection check.
95841         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95842         required for Solaris 10.
95843         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95845 2008-04-04  Bruno Haible  <bruno@clisp.org>
95847         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95848         by m4/setenv.m4.
95850 2008-04-03  Eric Blake  <ebb9@byu.net>
95852         Ensure sane .version contents.
95853         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95854         version string.
95855         * build-aux/git-version-gen: Improve documentation.
95857         Make GNU make output nicer.
95858         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95859         MAKECMDGOALS to enforce message for all command line targets.  Set
95860         srcdir for use in maint.mk.
95862         Another maintainer tweak.
95863         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95864         a target that regenerates version.
95866 2008-04-03  Jim Meyering  <meyering@redhat.com>
95868         vc-list-files: don't cause coreutils "make po-check" failure
95869         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95871 2008-04-03  Eric Blake  <ebb9@byu.net>
95873         Allow VPATH usage of vc-list-files.
95874         * build-aux/vc-list-files (scriptversion): Add timestamp.
95875         (options): Add --help, --version, -C.
95876         (CVS): Support installed cvsu.
95878 2008-04-02  Bruno Haible  <bruno@clisp.org>
95880         Avoid some "statement with no effect" warnings from gcc.
95881         * tests/test-wctype.c (main): Explicitly ignore unused values.
95882         Reported by Jim Meyering.
95884 2008-04-02  Jim Meyering  <meyering@redhat.com>
95886         Avoid some warnings from "gcc -Wshadow".
95887         * tests/test-frexp.c (exp): Define to a different identifier.
95888         * tests/test-frexpl.c (exp): Likewise.
95890 2008-04-03  Jim Meyering  <meyering@redhat.com>
95892         bootstrap: remove dangling *.[ch] symlinks from lib
95893         * build-aux/bootstrap [dangling symlink removal]: Move find's
95894         -depth option to precede all others, to avoid a warning.
95895         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95897 2008-04-02  Bruno Haible  <bruno@clisp.org>
95899         Avoid some warnings from "gcc -Wshadow".
95900         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95901         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95902         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95903         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95904         Reported by Jim Meyering.
95906 2008-04-01  Bruno Haible  <bruno@clisp.org>
95908         Fix test to work on IRIX 6.5 with cc.
95909         * tests/test-math.c (numeric_equal): New function.
95910         (main): Use it.
95912 2008-04-01  Bruno Haible  <bruno@clisp.org>
95914         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95916 2008-04-01  Bruno Haible  <bruno@clisp.org>
95918         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95919         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95920         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95921         (Depends-on): Remove math.
95923         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95924         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95925         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95926         (Depends-on): Remove math.
95928         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95929         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95930         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95931         (Depends-on): Remove math.
95932         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95933         (Depends-on): Remove math.
95935         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95936         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95937         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95938         (Depends-on): Remove math.
95939         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95940         (Depends-on): Remove math.
95942         * tests/test-round1.c: Include nan.h.
95943         (main): Use NaNd instead of NAN.
95944         * modules/round-tests (Files): Add tests/nan.h.
95946         * tests/test-trunc1.c: Include nan.h.
95947         (main): Use NaNd instead of NAN.
95948         * modules/trunc-tests (Files): Add tests/nan.h.
95950         * tests/test-roundf1.c: Include nan.h.
95951         (main): Use NaNf instead of NAN.
95952         * modules/roundf-tests (Files): Add tests/nan.h.
95954         * tests/test-truncf1.c: Include nan.h.
95955         (main): Use NaNf instead of NAN.
95956         * modules/truncf-tests (Files): Add tests/nan.h.
95958         * tests/test-ceilf1.c: Include nan.h.
95959         (main): Use NaNf instead of NAN.
95960         * modules/ceilf-tests (Files): Add tests/nan.h.
95962         * tests/test-floorf1.c: Include nan.h.
95963         (main): Use NaNf instead of NAN.
95964         * modules/floorf-tests (Files): Add tests/nan.h.
95966         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95967         (main): Use NaNf instead of NAN.
95968         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95970         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95971         (main): Use NaNd instead of NAN.
95972         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95974         * tests/test-frexp.c: Include nan.h.
95975         (main): Use NaNd instead of NAN.
95976         * modules/frexp-tests (Files): Add tests/nan.h.
95978         * lib/isnan.c: Don't include <math.h>.
95979         (FUNC): Don't use NAN macro.
95980         * modules/isnand-nolibm (Depends-on): Remove math.
95981         * modules/isnanf-nolibm (Depends-on): Remove math.
95982         * modules/isnanl (Depends-on): Remove math.
95983         * modules/isnanl-nolibm (Depends-on): Remove math.
95985         * tests/nan.h: New file.
95987 2008-04-01  Eric Blake  <ebb9@byu.net>
95989         Fix typos.
95990         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95991         values to be the right type.
95993         For now, cater to gnulib strtod inaccuracies.
95994         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95995         fractional results.  While not as nice from a QoI perspective, it
95996         is a quicker patch than correctly implementing decimal to binary
95997         rounding.
95999 2008-03-31  Eric Blake  <ebb9@byu.net>
96001         Guarantee a definition of NAN.
96002         * lib/math.in.h (NAN): Define if missing.
96003         * tests/test-math.c (main): Test it.
96004         * doc/posix-headers/math.texi (math.h): Document this.
96005         * lib/isnan.c (rpl_isnand): Use it.
96006         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96007         * tests/test-floorf1.c (NaN): Likewise.
96008         * tests/test-frexp.c (NaN): Likewise.
96009         * tests/test-isnand.c (NaN): Likewise.
96010         * tests/test-isnanf.c (NaN): Likewise.
96011         * tests/test-round1.c (NaN): Likewise.
96012         * tests/test-roundf1.c (NaN): Likewise.
96013         * tests/test-snprintf-posix.h (NaN): Likewise.
96014         * tests/test-sprintf-posix.h (NaN): Likewise.
96015         * tests/test-trunc1.c (NaN): Likewise.
96016         * tests/test-truncf1.c (NaN): Likewise.
96017         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96018         * tests/test-vasprintf-posix.c (NaN): Likewise.
96019         * modules/isnand-nolibm (Depends-on): Add math.
96020         * modules/isnanf-nolibm (Depends-on): Likewise.
96021         * modules/isnanl (Depends-on): Likewise.
96022         * modules/isnanl-nolibm (Depends-on): Likewise.
96023         * modules/snprintf-posix-tests (Depends-on): Likewise.
96024         * modules/sprintf-posix-tests (Depends-on): Likewise.
96025         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96026         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96027         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96028         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96030 2008-03-31  Bruno Haible  <bruno@clisp.org>
96032         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96033         * doc/posix-functions/strtod.texi: Likewise.
96035 2008-03-31  Bruno Haible  <bruno@clisp.org>
96037         * tests/test-strtod.c (main): Don't use C99 syntax.
96039 2008-03-31  Bruno Haible  <bruno@clisp.org>
96041         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96042         Reported by Eric Blake.
96044 2008-03-31  Jim Meyering  <meyering@redhat.com>
96046         Don't compare actual signbit return values.
96047         * tests/test-strtod.c (main): Rather, compare only their
96048         zero/non-zero nature.
96050 2008-03-31  Eric Blake  <ebb9@byu.net>
96052         More strtod documentation.
96053         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96054         failures as distinct bugs.
96056 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96058         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96059         Problem reported by Erik Benada in
96060         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96062 2008-03-30  Bruno Haible  <bruno@clisp.org>
96064         * tests/test-strtod.c: Add comments about which assertion fails on which
96065         platform.
96066         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96068 2008-03-30  Eric Blake  <ebb9@byu.net>
96070         Test signbit behavior on zeros.
96071         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96072         (test_signbitd, test_signbitl): Likewise.
96074         More strtod touchups.
96075         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96076         sign of negative underflow, for now.  Use .5, not .1.
96077         * doc/posix-functions/strtod.texi (strtod): Mention these
96078         limitations.
96079         Reported by Jim Meyering.
96081 2008-03-30  Bruno Haible  <bruno@clisp.org>
96083         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96084         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96086 2008-03-30  Bruno Haible  <bruno@clisp.org>
96088         Avoid failure when attempting to return empty iconv results on some
96089         platforms.
96090         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96091         allocation, don't report ENOMEM when the resulting string is empty.
96093 2008-03-30  Bruno Haible  <bruno@clisp.org>
96095         Fix buffer overrun.
96096         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96097         Don't consider the width for tmp_length. Check count against tmp_length
96098         before doing the padding. Ensure enough allocation during padding.
96100 2008-03-30  Eric Blake  <ebb9@byu.net>
96102         strtod touchups.
96103         * lib/strtod.c (strtod): Avoid compiler warnings.
96104         Reported by Jim Meyering.
96106 2008-03-30  Bruno Haible  <bruno@clisp.org>
96108         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96109         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96110         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96111         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96112         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96113         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96114         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96115         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96117         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96118         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96119         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96120         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96121         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96122         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96123         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96124         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96126         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96127         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96128         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96129         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96130         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96131         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96132         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96133         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96135         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96136         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96138         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96139         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96141         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96142         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96144         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96146         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96148         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96150         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96152         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96154         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96156         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96158         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96160         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96161         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96163         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96164         (Depends-on): Add EOVERFLOW.
96165         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96166         (Depends-on): Add EOVERFLOW.
96167         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96168         (Depends-on): Add EOVERFLOW.
96169         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96170         (Depends-on): Add EOVERFLOW.
96171         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96172         (Depends-on): Add EOVERFLOW.
96173         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96174         (Depends-on): Add EOVERFLOW.
96175         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96176         (Depends-on): Add EOVERFLOW.
96177         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96178         (Depends-on): Add EOVERFLOW.
96180         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96182         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96184         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96186         * modules/snprintf (Depends-on): Add EOVERFLOW.
96188         * lib/poll.c (EOVERFLOW): Remove fallback.
96189         * modules/poll (Depends-on): Add EOVERFLOW.
96191         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96192         * modules/getugroups (Depends-on): Add EOVERFLOW.
96194         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96195         * modules/getdelim (Depends-on): Add EOVERFLOW.
96197         * lib/ftell.c (EOVERFLOW): Remove fallback.
96198         * modules/ftell (Depends-on): Add EOVERFLOW.
96200         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96202         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96204         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96206         * modules/EOVERFLOW-tests: New file.
96207         * tests/test-EOVERFLOW.c: New file.
96209         * modules/EOVERFLOW: New file.
96210         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96212 2008-03-30  Bruno Haible  <bruno@clisp.org>
96214         Fix bug introduced on 2007-06-10.
96215         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96216         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96218 2008-03-30  Bruno Haible  <bruno@clisp.org>
96220         Improve freadseek's efficiency after ungetc.
96221         * lib/freadseek.c: Include freadahead.h.
96222         (freadptrinc): New function, extracted from freadseek.
96223         (freadseek): Use it in a loop. Use freadahead to determine the number
96224         of loop iterations.
96225         * modules/freadseek (Depends-on): Add freadahead.
96226         (configure.ac): Require AC_C_INLINE.
96228 2008-03-30  Bruno Haible  <bruno@clisp.org>
96230         * lib/freadseek.c (freadseek): Don't ignore the return value of
96231         freadptr.
96233 2008-03-29  Eric Blake  <ebb9@byu.net>
96235         Add hex float support.
96236         * modules/strtod (Depends-on): Add c-ctype.
96237         (Link): Mention POW_LIB.
96238         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96239         whitespace between 'e' and exponent.
96240         * tests/test-strtod.c (main): Enable hex float tests.
96241         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96242         now provides.
96244         Document various strtod bugs, with some fixes.
96245         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96246         "-0x", "inf", "nan", and hex constants.
96247         * doc/posix-functions/atof.texi (atof): Likewise.
96248         * modules/stdlib (Makefile.am): Support strtod.
96249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96250         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96251         detect additional strtod bugs.
96252         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96253         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96254         bool where appropriate.  Parse 'inf' and 'nan'.
96255         * tests/test-strtod.c: New file.
96256         * modules/strtod (Depends-on): Add stdbool, stdlib.
96257         (configure.ac): Turn on module indicator.
96258         * modules/strtod-tests: New module.
96260 2008-03-29  Eric Blake  <ebb9@byu.net>
96262         Fix ftell on mingw.
96263         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96264         * modules/ftell-tests (Depends-on): Add binary-io.
96265         * modules/ftello-tests (Depends-on): Likewise.
96266         * tests/test-ftell.c (main): Enhance test to cover behavior after
96267         ungetc.  Enforce binary mode.
96268         * tests/test-ftello.c (main): Likewise.
96270         Pass test-freadseek on cygwin.
96271         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96272         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96273         ungetc buffer.
96275         * tests/test-fflush2.c (main): Fix typo.
96277 2008-03-29  Bruno Haible  <bruno@clisp.org>
96279         * tests/test-fflush2.c (main): Temporarily disable the contents of
96280         this test.
96281         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96282         Reported by Eric Blake.
96284 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96286         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96287         (GC_SHA224_DIGEST_SIZE): Add.
96289         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96290         (gc_hash_digest_length): Likewise.
96291         (gc_hash_buffer): Likewise.
96293 2008-03-25  Bruno Haible  <bruno@clisp.org>
96295         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96296         detail which gettext release to use.
96297         Reported by Simon Josefsson.
96299 2008-03-26  Jim Meyering  <meyering@redhat.com>
96301         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96302         * modules/gnumakefile (clean-GNUmakefile): Also, use
96303         test ... && ... || : syntax rather than if-then ... fi.
96305         gnumakefile: Don't double-quote-expand $(VPATH) value.
96306         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96308 2008-03-24  Eric Blake  <ebb9@byu.net>
96310         Alter GNUmakefile to install into top directory.
96311         * modules/maintainer-makefile: Split, and add dependency...
96312         * modules/gnumakefile: to this new module.
96313         * build-aux/GNUmakefile: Move...
96314         * top/GNUmakefile: ...here.
96315         * build-aux/maint.mk: Move...
96316         * top/maint.mk: ...here.
96317         * MODULES.html.sh (Support for maintaining...): Document new
96318         module.
96320 2008-03-23  Bruno Haible  <bruno@clisp.org>
96322         * gnulib-tool: New options --vc-files, --no-vc-files.
96323         (func_usage): Document them.
96324         (vc_files): New variable.
96325         (func_import): Consider vc_files.
96326         (func_create_testdir): Set vc_files to empty.
96327         Suggested by Jim Meyering and Karl Berry.
96329 2008-03-23  Bruno Haible  <bruno@clisp.org>
96331         Fix regex compilation error on HP-UX 11.
96332         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96333         * modules/regex (Files): Add m4/mbstate_t.m4.
96334         Reported by Ton Voon <ton.voon@altinity.com>.
96336 2008-03-23  Bruno Haible  <bruno@clisp.org>
96338         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96340 2008-03-23  Eric Blake  <ebb9@byu.net>
96341             Bruno Haible  <bruno@clisp.org>
96343         Install files from top/ in the destination directory.
96344         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96345         augmentation also for the files from top/.
96346         (func_import, func_create_testdir): Rewrite file names:
96347         top/filename -> filename.
96349 2008-03-23  Bruno Haible  <bruno@clisp.org>
96351         Tweak "gnulib --version" output.
96352         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96354 2008-03-23  Bruno Haible  <bruno@clisp.org>
96356         Tweak "gnulib --version" output.
96357         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96358         rather than contents of ChangeLog, when possible.
96360 2008-03-21  Eric Blake  <ebb9@byu.net>
96362         More --version tweaks.
96363         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96364         date of last ChangeLog entry.
96366 2008-03-21  Jim Meyering  <meyering@redhat.com>
96368         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96370 2008-03-20  Eric Blake  <ebb9@byu.net>
96372         VPATH fix.
96373         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96375 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96377         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96378         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96380 2008-03-20  Eric Blake  <ebb9@byu.net>
96382         Sync GNUmakefile with coreutils.
96383         * build-aux/GNUmakefile (have-Makefile): Rename...
96384         (_have-Makefile): ...to this, for namespace consideration.
96385         (GNUmakefile.cfg): Include, if present.
96386         (_autoreconf): Define a default.
96387         (_is-dist-target): New rule for rebuilds to pick up intra-release
96388         version.
96389         (maint-cfg.mk): Rename...
96390         (cfg.mk): ...to this.
96392 2008-03-18  Jim Meyering  <meyering@redhat.com>
96394         New script and module: mktempd
96395         * MODULES.html.sh (maint+release support): Add mktempd.
96396         * build-aux/mktempd: New file.
96397         * modules/mktempd: New file.
96399 2008-03-15  Jim Meyering  <meyering@redhat.com>
96401         Undo last change.
96402         * lib/sha1.c, lib/md5.c: 63 != ~63.
96403         Reported by Andreas Schwab.
96405         sha1.c, md5.c: Hoist a redundant expression.
96406         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96407         "ctx->buflen" only once, before calling *_process_block.
96408         * lib/md5.c (md5_process_bytes): Likewise.
96410 2008-03-14  Eric Blake  <ebb9@byu.net>
96412         Bump copyright year in files generated by gnulib-tool.
96413         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96414         gnulib-tool, rather than hard-coding it.
96416         Fix 'gnulib-tool --version' output to work with git.
96417         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96418         (startup): ...here.
96419         (func_version): Use it to invoke git-version-gen, rather than
96420         relying on CVS keyword expansion.  Modernize wording.
96421         (cvsdatestamp, last_checkin_date, version): Kill unused
96422         variables.
96424 2008-03-12  Jim Meyering  <meyering@redhat.com>
96426         Recognize optional cast of the argument to free.
96427         * build-aux/useless-if-before-free: Update regexps.
96429         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96431 2008-03-11  Bruno Haible  <bruno@clisp.org>
96433         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96434         by a single package.
96435         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96436         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96437         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96438         Reported by Sam Steingold <sds@gnu.org>.
96440 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96442         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96443         repositories.
96445 2008-03-11  Bruno Haible  <bruno@clisp.org>
96447         Avoid conflicts between local macro definitions.
96448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96449         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96451 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96452             Bruno Haible  <bruno@clisp.org>
96454         Make va_copy work with some version of xlc on AIX 5.1.
96455         * lib/stdarg.in.h: New file.
96456         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96457         On AIX, use a <stdarg.h> file substitute.
96458         * modules/stdarg (Files): Add lib/stdarg.in.h.
96459         (Depends-on): Add include_next.
96460         (Makefile.am): Build a stdarg.h substitute if requested.
96461         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96463 2008-03-10  Bruno Haible  <bruno@clisp.org>
96465         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96467         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96469 2008-03-10  Bruno Haible  <bruno@clisp.org>
96471         * modules/stdlib (Depends-on): Add include_next, remove
96472         absolute-header.
96474 2008-03-09  Bruno Haible  <bruno@clisp.org>
96476         * lib/freadahead.h (freadahead): Document more precisely.
96477         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96478         the sum of both buffer sizes.
96479         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96480         * NEWS: Document the change.
96482 2008-03-09  Bruno Haible  <bruno@clisp.org>
96484         Extend freadptr to return also the buffer size.
96485         * lib/freadptr.h (freadptr): Add sizep argument.
96486         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96487         (freadptr): Add sizep argument. Determine buffer size like freadahead
96488         does.
96489         * tests/test-freadptr.c: Don't include freadahead.h.
96490         (main): Adapt for new calling convention of freadptr.
96491         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96492         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96493         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96494         tests/test-freadptr2.sh.
96495         (Depends): Remove freadahead.
96496         (TESTS): Add test-freadptr2.sh.
96497         (check_PROGRAMS): Add test-freadptr2.
96499 2008-03-09  Bruno Haible  <bruno@clisp.org>
96501         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96502         Report and solution by Simon Josefsson.
96504 2008-03-06  Bruno Haible  <bruno@clisp.org>
96506         Make fflush after ungetc work on BSD platforms.
96507         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96508         * tests/test-fflush2.c: New file.
96509         * tests/test-fflush2.sh: New file.
96510         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96511         tests/test-fflush2.c.
96512         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96513         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96515 2008-03-06  Eric Blake  <ebb9@byu.net>
96517         Likewise for ftello.
96518         * modules/ftello (Dependencies): Add extensions.
96519         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96521 2008-03-06  Bruno Haible  <bruno@clisp.org>
96523         * modules/fseeko (Dependencies): Add extensions.
96524         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96525         Needed on glibc systems.
96527 2008-03-06  Bruno Haible  <bruno@clisp.org>
96529         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96530         email address.
96531         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96533 2008-03-06  Bruno Haible  <bruno@clisp.org>
96535         * users.txt: Add libgnupdf.
96537 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96539         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96540         (Header File Substitutes, Function Substitutes,
96541         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96542         (Build robot for gnulib): Fix typo.
96544 2008-03-06  Bruno Haible  <bruno@clisp.org>
96546         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96547         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96549 2008-03-06  Bruno Haible  <bruno@clisp.org>
96551         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96552         * doc/gnulib.texi: Include it.
96554 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96556         * modules/func (License): Change license to unlimited; there was
96557         no LGPL parts in the module anyway.
96559 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96561         * modules/__func__: Renamed to modules/func.
96562         * modules/__func__-tests: Renamed to modules/func-tests.
96563         * tests/test-__func__.c: Renamed to tests/test-func.c.
96564         * m4/__func__.m4: Renamed to m4/func.m4.
96565         * doc/gnulib.texi (__func__): Section renamed to func.
96566         Suggested by Eric Blake <ebb9@byu.net>.
96568 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96570         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96571         about __func__.  Make example self-contained.  Suggested by Eric
96572         Blake <ebb9@byu.net>.
96574         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96575         Suggested by Eric Blake <ebb9@byu.net>.
96577 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96579         * modules/__func__: New file.
96580         * modules/__func__-tests: New file.
96581         * tests/test-__func__.c: New file.
96582         * m4/__func__.m4: New file.
96583         * doc/gnulib.texi (__func__): Document __func__ module.
96585 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96587         * modules/byteswap (License): Re-license as LGPLv2+.
96589 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96591         * doc/Makefile: Add pdf target.
96593 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96595         * modules/inline (License): Use 'unlimited', since there are only
96596         *.m4 files in this module.
96598 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96599             Bruno Haible  <bruno@clisp.org>
96601         Add support for HP C 7.1 on OpenVMS 8.3.
96602         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96604 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96606         Update VMS specifics.
96607         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96609 2008-03-02  Jim Meyering  <meyering@redhat.com>
96611         Remove the last dependency on the "free" module.
96612         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96613         Reported by Bob Proulx.
96615         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96617         Remove useless "if" tests before free.  Deprecate "free" module.
96618         * doc/posix-functions/free.texi: Mention that this
96619         module is no longer useful.
96620         * modules/free (Notice): Say this module is obsolete.
96621         * modules/readutmp (Depends-on): Remove free.
96622         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96623         * lib/putenv.c (putenv): Likewise.
96624         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96625         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96626         * tests/test-c-strcasestr.c (main): Likewise.
96627         * tests/test-c-strstr.c (main): Likewise.
96628         * tests/test-mbscasestr1.c (main): Likewise.
96629         * tests/test-mbscasestr2.c (main): Likewise.
96630         * tests/test-mbsstr1.c (main): Likewise.
96631         * tests/test-mbsstr2.c (main): Likewise.
96632         * tests/test-memmem.c (main): Likewise.
96633         * tests/test-strcasestr.c (main): Likewise.
96634         * tests/test-striconv.c (main): Likewise.
96635         * tests/test-striconveh.c (main): Likewise.
96636         * tests/test-striconveha.c (main): Likewise.
96637         * tests/test-strstr.c (main): Likewise.
96639         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96641         bootstrap: sync from coreutils again
96642         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96644 2008-03-01  Jim Meyering  <meyering@redhat.com>
96646         bootstrap: sync from coreutils
96647         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96648         also when the target doesn't exist.
96650 2008-03-01  Eric Blake  <ebb9@byu.net>
96652         Fix bugs in last patch.
96653         * lib/memchr2.c (memchr2): Fix typo.
96654         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96655         extension.
96656         Reported by Bruce Korb.
96658         New module 'memchr2'.
96659         * modules/memchr2: New file.
96660         * modules/memchr2-tests: Likewise.
96661         * lib/memchr2.h: Likewise.
96662         * lib/memchr2.c: Likewise, based on memchr.c.
96663         * tests/test-memchr2.c: New test.
96664         * MODULES.html.sh (String handling): Add memchr2.
96666 2008-02-29  Bruno Haible  <bruno@clisp.org>
96668         * modules/freadseek-tests: New file.
96669         * tests/test-freadseek.sh: New file.
96670         * tests/test-freadseek.c: New file.
96672         New module 'freadseek'.
96673         * modules/freadseek: New file.
96674         * lib/freadseek.h: New file.
96675         * lib/freadseek.c: New file.
96676         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96678 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96680         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96681         wydawca.
96683         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96684         program_invocation_name and program_invocation_short_name are
96685         present.
96687 2008-02-28  Bruno Haible  <bruno@clisp.org>
96689         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96690         * tests/test-freadptr.sh: Also test non-seekable stdin.
96692 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96694         * build-aux/bootstrap (source_base, m4_base)
96695         (doc_base, tests_base): New variables.
96696         (gnulib_tool_options): Do not hardcode base directories, use
96697         the above variables instead.
96699 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96701         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96703 2008-02-28  Bruno Haible  <bruno@clisp.org>
96705         * modules/freadptr-tests: New file.
96706         * tests/test-freadptr.sh: New file.
96707         * tests/test-freadptr.c: New file.
96709         New module 'freadptr'.
96710         * modules/freadptr: New file.
96711         * lib/freadptr.h: New file.
96712         * lib/freadptr.c: New file.
96713         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96715 2008-02-26  Karl Berry  <karl@freefriends.org>
96717         Sync from Libtool:
96718         * libltdl/argz.c (argz_add, argz_count): New functions.
96719         * libltdl/argz.in.h: Declare them.
96720         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96722 2008-02-22  Bruno Haible  <bruno@clisp.org>
96724         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96725         is a pointer type.  Needed for HP-UX 10.
96726         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96727         * doc/posix-functions/gmtime_r.texi: Likewise.
96728         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96730 2008-02-24  Bruno Haible  <bruno@clisp.org>
96732         * modules/environ-tests: New file.
96733         * tests/test-environ.c: New file.
96735         New module 'environ'.
96736         * modules/environ: New file.
96737         * lib/unistd.in.h (environ): New declaration.
96738         * m4/environ.m4: New file.
96739         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96740         after use.
96741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96742         HAVE_DECL_ENVIRON.
96743         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96744         HAVE_DECL_ENVIRON.
96745         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96746         wrong claim that 'environ' is missing on some systems.
96747         * modules/execute (Depends-on): Add environ.
96748         * lib/execute.c (environ): Remove fallback declaration.
96749         * modules/pipe (Depends-on): Add environ.
96750         * lib/pipe.c (environ): Remove fallback declaration.
96751         * modules/setenv (Depends-on): Add environ.
96752         * lib/setenv.c (environ): Remove fallback declaration.
96753         * modules/unsetenv (Depends-on): Add environ.
96754         * lib/unsetenv.c (environ): Remove fallback declaration.
96755         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96756         m4/environ.m4.
96757         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96758         (gl_PREREQ_UNSETENV): Likewise.
96760 2008-02-24  Bruno Haible  <bruno@clisp.org>
96762         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96764 2008-02-20  Bob Proulx  <bob@proulx.com>
96766         Enable use of older two part flavor 'git describe'.
96767         * build-aux/git-version-gen: If using the older two part flavor of
96768         git version then recreate the third part now present in the
96769         newer three part flavor of git describe.
96771 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96773         * lib/fts.c (fts_build): Typo correction to comment.
96775 2008-02-17  Bruno Haible  <bruno@clisp.org>
96777         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96778         generating no-op conflicts.
96780 2008-02-17  Bruno Haible  <bruno@clisp.org>
96782         Speed up by 10%.
96783         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96784         result_entries, rather than an index-based loop.
96786 2008-02-17  Bruno Haible  <bruno@clisp.org>
96788         Speed up by 25%.
96789         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96790         'hashcode_cached'.
96791         (entry_create): New function.
96792         (entry_hashcode): Use the cached hashcode if possible.
96793         (read_changelog_file, try_split_merged_entry): Use entry_create.
96795 2008-02-17  Bruno Haible  <bruno@clisp.org>
96797         Speed up from O(n^2) to O(n) for long ChangeLog files.
96798         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96799         (read_changelog_file): Change implementation of entries_reversed list
96800         to rbtreehash.
96801         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96803 2008-02-17  Bruno Haible  <bruno@clisp.org>
96805         New option --split-merged-entry.
96806         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96807         (find_paragraph_end, try_split_merged_entry): New functions.
96808         (long_options): Add option --split-merged-entry.
96809         (usage): Document option --split-merged-entry.
96810         (main): Implement option --split-merged-entry.
96811         Reported by Eric Blake.
96813 2008-02-17  Bruno Haible  <bruno@clisp.org>
96815         * lib/git-merge-changelog.c: Include c-strstr.h.
96816         (main): Support the "git pull --rebase" situation.
96817         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96818         Reported by Eric Blake.
96820 2008-02-16  Eric Blake  <ebb9@byu.net>
96822         Avoid doubling \ in common case of "c-maybe" quoting style.
96823         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96824         eliding outer quotes.
96825         * lib/quotearg.h: Document this.
96826         * tests/test-quotearg.c (result_strings, inputs, results_g)
96827         (flag_results, locale_results): Test it by adding a new string to
96828         each test group.
96829         (compare_strings): Test new string.
96831 2008-02-13  Eric Blake  <ebb9@byu.net>
96833         Avoid trigraph quoting in default output.
96834         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96835         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96836         unless explicitly requested.
96837         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96839 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96841         Don't rely on signed integer overflowing to negative value.
96842         * lib/getugroups.c (getugroups): Include <limits.h>.
96843         Instead, compare against INT_MAX, and increment only if the test passes.
96845 2008-02-13  Jim Meyering  <meyering@redhat.com>
96846         and Eric Blake  <ebb9@byu.net>
96848         Avoid shadowing warning and compile errors on Linux.
96849         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96850         forwarding macros on Linux.
96851         (dcgettext): Define a stub, for Linux.
96852         (results_g, main): Avoid warnings.
96854 2008-02-12  Eric Blake  <ebb9@byu.net>
96856         Silence warning in last patch.
96857         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96859         Quotearg part 4: add tests, fix c-maybe colon quoting.
96860         * lib/quotearg.h: Improve documentation.
96861         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96862         escapes when adding outer quotes.  When quoting trigraphs, use
96863         valid C notation.  When quoting NUL, omit extra characters if next
96864         character is not digit.  Alter prototype.
96865         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96866         callers.
96867         * modules/quotearg-tests: New module.
96868         * tests/test-quotearg.c: New test.
96870 2008-02-07  Eric Blake  <ebb9@byu.net>
96872         Quotearg part 3: add flag to control outer quote elision.
96873         * lib/quotearg.h (c_maybe_quoting_style): New style.
96874         (enum quoting_flags): Better documentation of flags.
96875         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96876         c-maybe style.
96877         (quotearg_buffer_restyled): Handle new flag to elide outer
96878         quotes.
96880         Quotearg part 2: add flag that can control NUL elision.
96881         * lib/quotearg.h (set_quoting_flags): New prototype.
96882         * lib/quotearg.c (struct quoting_options): Add flag field.
96883         (set_quoting_flags): New function.
96884         (quotearg_buffer_restyled): Add flags parameter.
96885         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96886         (quotearg_n_options): Set the flag, since length cannot be
96887         returned.
96888         (quoting_options_from_style): Default flags correctly.
96890         Quotearg part 1: more wrappers, restore quotearg_char state.
96891         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96892         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96893         (quotearg_colon_mem): New wrappers.
96894         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96895         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96896         functions.
96897         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96898         (quotearg_colon_mem): New functions.
96900 2008-02-11  Bruno Haible  <bruno@clisp.org>
96902         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96903         library in the current directory: it does not work with parallel make.
96904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96906 2008-02-11  Bruno Haible  <bruno@clisp.org>
96908         * .gitattributes: New file.
96910 2008-02-11  Jim Meyering  <meyering@redhat.com>
96912         useless-if-before-free: Fix reversed exit values.
96913         * build-aux/useless-if-before-free: Use correct values
96914         for EXIT_MATCH and EXIT_NO_MATCH.
96916         * build-aux/useless-if-before-free: Close stdout carefully.
96918 2008-02-10  Bruno Haible  <bruno@clisp.org>
96920         New module 'git-merge-changelog'.
96921         * modules/git-merge-changelog: New file.
96922         * lib/git-merge-changelog.c: New file.
96924 2008-02-10  Jim Meyering  <meyering@redhat.com>
96926         useless-if-before-free: New option: --list (-l).
96928         useless-if-before-free: Don't exit immediately upon open failure.
96929         * build-aux/useless-if-before-free: Exit 2 for errors.
96930         Upon failure to open a file, don't exit immediately.
96931         Rather, just warn and continue with any remaining files.
96933 2008-02-10  Bruno Haible  <bruno@clisp.org>
96935         New abstract list operation 'node_set_value'.
96936         * lib/gl_list.h (gl_list_node_set_value): New function.
96937         (struct gl_list_implementation): New field node_set_value.
96938         * lib/gl_list.c (gl_list_node_set_value): New function.
96939         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96940         (gl_array_list_implementation): Update.
96941         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96942         (gl_carray_list_implementation): Update.
96943         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96944         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96945         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96946         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96947         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96948         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96949         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96950         Update.
96951         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96952         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96953         (gl_sublist_list_implementation): Update.
96955 2008-02-10  Bruno Haible  <bruno@clisp.org>
96957         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96958         Needed when ELEMENT is #defined to 'some_type *'.
96960 2008-02-10  Jim Meyering  <meyering@redhat.com>
96962         New script and module: useless-if-before-free
96963         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96964         * build-aux/useless-if-before-free: New file.
96965         * modules/useless-if-before-free: New file.
96967         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96969         xstrtol_error: Fix typo.
96970         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96971         s/exit_failure/exit_status/.
96973 2008-02-09  Jim Meyering  <meyering@redhat.com>
96975         New script and module: gitlog-to-changelog
96976         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96977         * modules/gitlog-to-changelog: New file.
96978         * build-aux/gitlog-to-changelog: New file.
96980 2008-02-08  Jim Meyering  <meyering@redhat.com>
96982         Avoid two "parameter unused" warnings.
96983         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96984         Mark "st" as used.
96986         Use "git COMMAND", not "git-COMMAND".
96987         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96988         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96989         * build-aux/git-version-gen: Use "git status", not "git-status".
96991 2008-02-07  Bruno Haible  <bruno@clisp.org>
96993         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96994         Avoids a crash on Windows Vista.
96995         Reported by Adam Strzelecki <ono@java.pl> via
96996         Simon Josefsson <simon@josefsson.org>.
96998 2008-02-06  Bruno Haible  <bruno@clisp.org>
97000         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97001         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97002         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97004         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97005         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97006         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97007         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97009         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97015         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97016         left-adjust flag.
97017         * tests/test-snprintf-posix.h (test_function): Likewise.
97018         * tests/test-sprintf-posix.h (test_function): Likewise.
97019         * tests/test-vasprintf-posix.c (test_function): Likewise.
97020         * doc/posix-functions/fprintf.texi: Update.
97021         * doc/posix-functions/printf.texi: Update.
97022         * doc/posix-functions/snprintf.texi: Update.
97023         * doc/posix-functions/sprintf.texi: Update.
97024         * doc/posix-functions/vfprintf.texi: Update.
97025         * doc/posix-functions/vprintf.texi: Update.
97026         * doc/posix-functions/vsnprintf.texi: Update.
97027         * doc/posix-functions/vsprintf.texi: Update.
97028         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97030 2008-02-06  Bruno Haible  <bruno@clisp.org>
97032         Fix bug introduced on 2008-01-26.
97033         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97035 2008-02-06  Bruno Haible  <bruno@clisp.org>
97037         Fix bug introduced on 2007-06-10.
97038         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97039         !NEED_PRINTF_FLAG_ZERO.
97041 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97043         getloadavg: use libperfstat on AIX5
97044         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97046 2008-02-03  Bruno Haible  <bruno@clisp.org>
97048         * lib/diffseq.h: Add comments about required #includes.
97049         Reported by Michael Biggs <gnulib@doubleplum.net>.
97051 2008-02-01  Bruno Haible  <bruno@clisp.org>
97053         * users.txt: Add gnuit.
97055 2008-01-31  Bruno Haible  <bruno@clisp.org>
97057         * lib/md4.c (set_uint32): Mark as inline.
97058         * lib/md5.c (set_uint32): Likewise.
97059         * lib/sha1.c (set_uint32): Likewise.
97060         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97061         * m4/md5.m4 (gl_MD5): Likewise.
97062         * m4/sha1.m4 (gl_SHA1): Likewise.
97064 2008-01-31  Jim Meyering  <meyering@redhat.com>
97066         Use "sizeof VAR", rather than a literal "4".
97067         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97068         * lib/md4.c (md4_read_ctx): Likewise.
97069         * lib/sha1.c (sha1_read_ctx): Likewise.
97071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97073         * tests/test-sha1.c: New file, based on test-md5.c.
97075         * modules/crypto/sha1-tests: New file.
97077 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97079         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97081 2008-01-31  Jim Meyering  <meyering@redhat.com>
97083         Prefer "sizeof v" over the equivalent "4".
97084         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97085         * lib/md5.c (set_uint32): Likewise.
97086         * lib/sha1.c (set_uint32): Likewise.
97088 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97090         * lib/sha1.c (set_uint32): Mark function as static.
97092 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97094         md2: clarify comments to say that alignment is not required.
97095         * lib/md2.h: Remove warning about alignment in comment.
97096         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97097         never been required.
97099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97101         md4: adapt alignment constraint fix from sha1.
97102         * lib/md4.c (set_uint32): New function, from sha1.c
97103         (md4_read_ctx): Use it.
97104         (md4_finish_ctx): Doc fix.
97105         * lib/md4.h: Doc fix.
97107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97109         md5: adapt alignment constraint fix from sha1.
97110         * lib/md5.c (set_uint32): New function, from sha1.c
97111         (md5_read_ctx): Use it.
97112         (md5_finish_ctx): Doc fix.
97113         * lib/md5.h: Doc fix.
97115 2008-01-30  Peter Palfrader  <weasel@debian.org>
97117         sha1: remove the result buffer alignment constraint
97118         * lib/sha1.c (set_uint32): New function.
97119         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97120         constraint.
97121         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97122         * lib/sha1.h: Likewise.
97124 2008-01-30  Andreas Schwab  <schwab@suse.de>
97125             Bruno Haible  <bruno@clisp.org>
97127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97128         correct definition of LDBL_MIN_EXP.
97130 2008-01-30  Karl Berry  <karl@gnu.org>
97132         * config/srclist-update: try to preserve x bit on updates.
97133         * config/srclistvars.sh: update for karl.
97135 2008-01-29  Jim Meyering  <meyering@redhat.com>
97137         vasnprintf.c: Avoid warning about unused label
97138         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97139         "overflow" label definition and associated code with the
97140         same cpp condition that guards the sole use of that label.
97142 2008-01-26  Bruno Haible  <bruno@clisp.org>
97144         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97145         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97146         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97147         * lib/isnanl-nolibm.h (isnanl): Likewise.
97148         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97150 2008-01-26  Bruno Haible  <bruno@clisp.org>
97152         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97153         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97155 2008-01-26  Bruno Haible  <bruno@clisp.org>
97157         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97158         GCC >= 4.0 built-in.
97159         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97161 2008-01-26  Bruno Haible  <bruno@clisp.org>
97163         Rename isnan, applicable to 'double' only, to isnand.
97164         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97165         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97166         (configure.ac): Update.
97167         (Include): Replace "isnan.h" with "isnand.h".
97168         * m4/isnand.m4: Renamed from m4/isnan.m4.
97169         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97170         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97171         instead of isnan.c.
97172         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97173         instead of HAVE_ISNAN_IN_LIBC.
97174         (isnand): Renamed from isnan.
97175         * lib/isnand.c: New file.
97176         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97177         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97178         (Makefile.am): Update.
97179         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97180         Include isnand.h instead of isnan.h.
97181         (main): Test isnand instead of isnan.
97182         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97183         isnan-nolibm.
97184         * modules/frexp (Depends-on): Likewise.
97185         * modules/frexp-tests (Depends-on): Likewise.
97186         * modules/frexp-nolibm (Depends-on): Likewise.
97187         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97188         * modules/isfinite (Depends-on): Likewise.
97189         * modules/round-tests (Depends-on): Likewise.
97190         * modules/signbit (Depends-on): Likewise.
97191         * modules/signbit-tests (Depends-on): Likewise.
97192         * modules/snprintf-posix (Depends-on): Likewise.
97193         * modules/sprintf-posix (Depends-on): Likewise.
97194         * modules/trunc-tests (Depends-on): Likewise.
97195         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97196         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97197         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97198         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97199         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97200         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97201         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97202         * modules/vasnprintf-posix (Depends-on): Likewise.
97203         * modules/vasprintf-posix (Depends-on): Likewise.
97204         * modules/vfprintf-posix (Depends-on): Likewise.
97205         * modules/vsnprintf-posix (Depends-on): Likewise.
97206         * modules/vsprintf-posix (Depends-on): Likewise.
97207         * lib/frexp.c: Include isnand.h instead of isnan.h.
97208         (ISNAN): Set to isnand instead of isnan.
97209         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97210         (gl_isfinited): Use isnand instead of isnan.
97211         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97212         (gl_signbitd): Use isnand instead of isnan.
97213         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97214         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97215         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97216         (main): Use isnand instead of isnan.
97217         * tests/test-round1.c: Include isnand.h.
97218         (main): Use isnand instead of isnan.
97219         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97220         (ISNAN): Set to isnand instead of isnan.
97221         * tests/test-trunc1.c: Include isnand.h.
97222         (main): Use isnand instead of isnan.
97223         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97224         (equal): Use isnand instead of isnan.
97225         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97226         isnand-nolibm.
97227         * NEWS: Mention the change.
97229 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97230             Bruno Haible  <bruno@clisp.org>
97232         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97233         the GCC builtins for signbits are present and set
97234         REPLACE_SIGNBIT_USING_GCC if so.
97235         * lib/math.in.h (signbit): Define using GCC builtins if
97236         REPLACE_SIGNBIT_USING_GCC is set.
97237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97238         REPLACE_SIGNBIT_USING_GCC.
97239         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97241 2008-01-25  Jim Meyering  <meyering@redhat.com>
97243         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97244         * lib/poll.c: Include <config.h>, not "config.h".
97245         * tests/test-getaddrinfo.c: Likewise.
97247 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97249         * modules/sockets-tests: New file.
97251 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97253         * modules/sockets: New module, can be used to call WSA_Startup and
97254         WSA_Cleanup when needed.
97256         * lib/sockets.h, lib/sockets.c: New files.
97258         * m4/sockets.m4: New file.
97260         * tests/test-sockets.c: New file.
97262 2008-01-19  Bruno Haible  <bruno@clisp.org>
97264         * doc/posix-headers: Renamed from doc/headers.
97265         * doc/posix-functions: Renamed from doc/functions.
97266         * doc/gnulib.texi: Update.
97268 2008-01-19  Bruno Haible  <bruno@clisp.org>
97270         * doc/glibc-functions/strcasestr.texi: Include contents of
97271         doc/functions/strcasestr.texi, fixing the list of platforms.
97272         * doc/functions/strcasestr.texi: Remove file.
97274 2008-01-19  Bruno Haible  <bruno@clisp.org>
97276         * doc/glibc-functions/memmem.texi: Include contents of
97277         doc/functions/memmem.texi.
97278         * doc/functions/memmem.texi: Remove file.
97280 2008-01-18  Bruno Haible  <bruno@clisp.org>
97282         * doc/glibc-functions/*.texi: New files.
97283         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97284         to use the new files.
97286 2008-01-17  Bruno Haible  <bruno@clisp.org>
97288         * tests/test-gethostname.c (main): Fix printf statement.
97290 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97292         * modules/gethostname-tests: New file.
97294         * tests/test-gethostname.c: New file.
97296 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97298         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97299         used by the UNAME case.  Reported by Bruno Haible
97300         <bruno@clisp.org>.
97302 2008-01-17  Eric Blake  <ebb9@byu.net>
97304         Convert c-strcasestr to be more efficient.
97305         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97306         (Depends-on): Add c-strcase, remove malloca, strnlen.
97307         * tests/test-c-strcasestr.c (main): Enhance test.
97308         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97310 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97312         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97313         Use it in creating po/Makevars.
97315 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97317         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97318         Applications that requires it should initialize libgcrypt
97319         manually.
97321 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97323         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97325 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97327         Fix problem with getdate on mingw32 reported by Simon Josefsson
97328         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97329         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97330         tzname", when deciding whether to declare tzname.
97331         * lib/strftime.c (tzname): Likewise.
97333 2008-01-15  Bruno Haible  <bruno@clisp.org>
97335         Work around a MacOS X 10.5 bug in frexpl().
97336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97337         * doc/functions/frexpl.texi: Document the bug.
97338         Reported by Elias Pipping <pipping@gentoo.org>.
97340 2008-01-14  Eric Blake  <ebb9@byu.net>
97342         Touch up previous patch.
97343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97344         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97346         Convert strcasestr module to use Two-Way algorithm.
97347         * modules/strcasestr-simple: New module, based on the old
97348         strcasestr, but with Two-Way rather than KMP.
97349         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97350         * lib/string.in.h (rpl_strcasestr): Declare.
97351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97352         performance.
97353         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97354         * modules/string (Makefile.am): Support strcasestr.
97355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97356         * modules/strcasestr-tests (Depends-on): Check for alarm.
97357         * tests/test-strcasestr.c: Augment test.
97358         * lib/str-two-way.h: Clean up stray macro.
97359         * NEWS: Document new module.
97360         * MODULES.html.sh (string handling): Likewise.
97361         * doc/functions/strcasestr.texi: New file.
97362         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97363         here, since it is not a POSIX function.
97365 2008-01-14  Colin Watson  <cjwatson@debian.org>
97366             Bruno Haible  <bruno@clisp.org>
97368         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97369         works fine; if not, set REPLACE_STRSIGNAL.
97370         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97372         REPLACE_STRSIGNAL.
97373         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97374         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97375         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97377 2008-01-14  Bruno Haible  <bruno@clisp.org>
97379         * modules/strsignal (Include): Change to <string.h>.
97381 2008-01-14  Colin Watson  <cjwatson@debian.org>
97383         * modules/argp (Notice): Add a notice recommending to change
97384         XGETTEXT_OPTIONS.
97385         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97387 2008-01-13  Colin Watson  <cjwatson@debian.org>
97389         * modules/strsignal-tests: New file.
97390         * tests/test-strsignal.c: New file.
97392         * lib/strsignal.c: New file, from glibc with modifications.
97393         * lib/siglist.h: New file, from glibc with modifications.
97394         * lib/string.in.h (strsignal): New declaration.
97395         * m4/strsignal.m4: New file.
97396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97397         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97398         * modules/strsignal: New file.
97399         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97400         HAVE_DECL_STRSIGNAL.
97402 2008-01-13  Bruno Haible  <bruno@clisp.org>
97404         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97405         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97406         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97409 2008-01-13  Bruno Haible  <bruno@clisp.org>
97411         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97412         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97413         * lib/argp.h (__attribute__): Likewise.
97414         * lib/c-stack.c (__attribute__): Likewise.
97415         * lib/error.h (__attribute__): Likewise.
97416         * lib/fts.c (__attribute__): Likewise.
97417         * lib/openat.h (__attribute__): Likewise.
97418         * lib/stdio.in.h (__attribute__): Likewise.
97419         * lib/string.in.h (__attribute__): Likewise.
97420         * lib/utimens.c (__attribute__): Likewise.
97421         * lib/vasnprintf.h (__attribute__): Likewise.
97422         * lib/xalloc.h (__attribute__): Likewise.
97423         * lib/xprintf.h (__attribute__): Likewise.
97424         * lib/xstrtol.h (__attribute__): Likewise.
97425         * lib/xvasprintf.h (__attribute__): Likewise.
97427 2008-01-12  Bruno Haible  <bruno@clisp.org>
97429         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97430         * doc/glibc-headers/a.out.texi: New file.
97431         * doc/glibc-headers/aliases.texi: New file.
97432         * doc/glibc-headers/alloca.texi: New file.
97433         * doc/glibc-headers/ar.texi: New file.
97434         * doc/glibc-headers/argp.texi: New file.
97435         * doc/glibc-headers/argz.texi: New file.
97436         * doc/glibc-headers/byteswap.texi: New file.
97437         * doc/glibc-headers/crypt.texi: New file.
97438         * doc/glibc-headers/endian.texi: New file.
97439         * doc/glibc-headers/envz.texi: New file.
97440         * doc/glibc-headers/err.texi: New file.
97441         * doc/glibc-headers/error.texi: New file.
97442         * doc/glibc-headers/execinfo.texi: New file.
97443         * doc/glibc-headers/fpu_control.texi: New file.
97444         * doc/glibc-headers/fstab.texi: New file.
97445         * doc/glibc-headers/fts.texi: New file.
97446         * doc/glibc-headers/getopt.texi: New file.
97447         * doc/glibc-headers/ieee754.texi: New file.
97448         * doc/glibc-headers/ifaddrs.texi: New file.
97449         * doc/glibc-headers/libintl.texi: New file.
97450         * doc/glibc-headers/mcheck.texi: New file.
97451         * doc/glibc-headers/mntent.texi: New file.
97452         * doc/glibc-headers/obstack.texi: New file.
97453         * doc/glibc-headers/paths.texi: New file.
97454         * doc/glibc-headers/printf.texi: New file.
97455         * doc/glibc-headers/pty.texi: New file.
97456         * doc/glibc-headers/resolv.texi: New file.
97457         * doc/glibc-headers/shadow.texi: New file.
97458         * doc/glibc-headers/sysexits.texi: New file.
97459         * doc/glibc-headers/ttyent.texi: New file.
97461 2008-01-12  Jim Meyering  <meyering@redhat.com>
97463         announce-gen: emit Gnulib's git-based version string.
97464         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97465         New option --gnulib-version=V, where V is expected to be
97466         the output of running git describe in the gnulib directory.
97467         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97468         not useful, and plan to stop publishing an xdelta file with each
97469         coreutils release.
97471         * build-aux/announce-gen: Also check for lzma-compressed files.
97473 2008-01-11  Bruno Haible  <bruno@clisp.org>
97475         * tests/test-memmem.c (main): Increase maximum allowed time.
97476         * tests/test-strstr.c (main): Likewise.
97478 2008-01-11  Bruno Haible  <bruno@clisp.org>
97480         * doc/functions/memmem.texi: Add more precisions about platforms.
97481         * doc/functions/strstr.texi: Likewise.
97483 2008-01-10  Eric Blake  <ebb9@byu.net>
97485         * m4/strstr.m4: Delete cruft from copy-n-paste.
97486         Reported by Bruno Haible.
97488 2008-01-10  Bruno Haible  <bruno@clisp.org>
97490         Make c-strstr rely on strstr.
97491         * lib/c-strstr.c: Don't include str-kmp.h.
97492         (c_strstr): Define in terms of strstr.
97493         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97494         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97496 2008-01-10  Bruno Haible  <bruno@clisp.org>
97498         * doc/gnulib.texi (String Functions in C Locale): New section.
97499         * doc/c-ctype.texi: New file.
97500         * doc/c-strcase.texi: New file.
97501         * doc/c-strcaseeq.texi: New file.
97502         * doc/c-strcasestr.texi: New file.
97503         * doc/c-strstr.texi: New file.
97504         * doc/c-strtod.texi: New file.
97505         * doc/c-strtold.texi: New file.
97507 2008-01-10  Eric Blake  <ebb9@byu.net>
97509         * lib/relocatable.h: Fix a comment.
97511 2008-01-10  Eric Blake  <ebb9@byu.net>
97513         Share two-way algorithm.
97514         * lib/str-two-way.h: New file, merged from...
97515         * lib/memmem.c: ...here...
97516         * lib/strstr.c: ...and here.
97517         * modules/memmem (Files): Use it.
97518         * modules/strstr (Files): Likewise.
97520         Avoid quadratic strstr implementations.
97521         * lib/strstr.c: New file.
97522         * m4/strstr.m4: Likewise.
97523         * modules/strstr: Likewise.
97524         * modules/strstr-tests: Likewise.
97525         * tests/test-strstr.c: Likewise.
97526         * lib/string.in.h (rpl_strstr): Declare.
97527         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97529         * modules/string (Makefile.am): Likewise.
97530         * MODULES.html.sh (string handling): Mention new module.
97531         * doc/functions/strstr.texi (strstr): Document the bug.
97533 2008-01-10  Bruno Haible  <bruno@clisp.org>
97535         * lib/relocatable.h (relocate): State whether result is freshly
97536         allocated or not.
97537         * lib/relocatable.c (relocate): Return a freshly allocated string
97538         instead of a pointer to a privately held string.
97539         Reported by Sylvain Beucler <beuc@gnu.org>.
97541 2008-01-10  Colin Watson  <cjwatson@debian.org>
97543         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97544         s/S_ISNLK/S_ISLNK/.
97546 2008-01-09  Bruno Haible  <bruno@clisp.org>
97548         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97549         and other files.
97550         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97551         if it's only a guess.
97552         * modules/memmem: Simplify by depending on memmem-simple.
97554 2008-01-09  Bruno Haible  <bruno@clisp.org>
97556         Work around OpenBSD 4.0 tdelete() bug.
97557         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97558         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97559         macros and don't redefine the enum values.
97560         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97561         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97562         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97564 2008-01-09  Bruno Haible  <bruno@clisp.org>
97566         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97567         (main): Don't perform the tests if setlocale did not install a UTF-8
97568         locale. Needed on OpenBSD 4.0.
97569         * modules/wcwidth-tests (Depends-on): Add localcharset.
97571 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97573         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97574         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97575         * NEWS: announce this.
97576         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97578 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97579         and Eric Blake  <ebb9@byu.net>
97581         Add memmem-simple module.
97582         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97583         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97584         * modules/memmem-simple: New file.
97585         * modules/memmem (Description): Tweak.
97586         * MODULES.html.sh (string handling): Mention new module.
97587         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97588         addressed by memmem-simple.
97589         * NEWS: Document the difference.
97591 2008-01-09  Eric Blake  <ebb9@byu.net>
97593         Give gcc some memmem optimization hints.
97594         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97595         (strcasestr): Declare as pure.
97596         * modules/memmem (Maintainer): Claim my implementation.
97598 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97600         Support AIX 6.1 and higher.
97601         * build-aux/config.libpath: Likewise.
97602         * build-aux/config.rpath: Likewise.
97604 2008-01-08  Jim Meyering  <meyering@redhat.com>
97605             Bruno Haible  <bruno@clisp.org>
97607         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97608         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97609         Reported by Peter Fales in
97610         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97612 2008-01-08  Bruno Haible  <bruno@clisp.org>
97614         * modules/unictype/category-of (Depends-on): Add
97615         unictype/category-none.
97616         * modules/unictype/category-and-tests (Depends-on): Add
97617         unictype/category-{L,N,Lu,Nd}.
97618         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97619         * modules/unictype/category-or-tests (Depends-on): Add
97620         unictype/category-{L,N}.
97621         * modules/unictype/category-name-tests (Depends-on): Add
97622         unictype/category-{Z,Nl}.
97623         Reported by Simon Josefsson.
97625 2008-01-08  Bruno Haible  <bruno@clisp.org>
97627         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97628         convention better.
97629         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97630         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97631         Reported by Peter Miller <millerp@canb.auug.org.au>.
97633 2008-01-08  Eric Blake  <ebb9@byu.net>
97635         Rewrite memmem to guarantee linear complexity without malloc.
97636         * lib/memmem.c (memmem): Use Two-Way rather than
97637         Knuth-Morris-Pratt, to allow O(1) space usage.
97638         (critical_factorization, two_way_short_needle)
97639         (two_way_long_needle): New functions.
97640         (knuth_morris_pratt): Delete.
97641         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97642         Add stdint.
97643         * tests/test-memmem.c (main): Add tests for periodic needle and
97644         sublinear performance.
97645         * doc/functions/memmem.texi (memmem): Document other deficiencies
97646         in cygwin and older glibc.
97648 2008-01-08  Bruno Haible  <bruno@clisp.org>
97650         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97651         augmentation.
97653 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97655         Add a configure time option: --disable-acl.
97656         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97657         AC_ARG_ENABLE(acl).
97659 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97661         * tests/test-localename.c: Don't include obsolete "setenv.h".
97663         * modules/localename-tests (Depends-on): Need unsetenv.
97665 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97667         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97669 2008-01-06  Colin Watson  <cjwatson@debian.org>
97671         * users.txt: Add man-db.
97673 2008-01-07  Bruno Haible  <bruno@clisp.org>
97675         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97676         previous section name.
97678 2008-01-07  Bruno Haible  <bruno@clisp.org>
97680         * lib/progname.c (set_program_name): Don't strip off a leading
97681         "lt-" prefix outside a .libs directory.
97682         Suggested by Paul Eggert.
97684 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97685             Bruno Haible  <bruno@clisp.org>
97687         Improve memory cleanup in 'relocatable' module.
97688         * lib/relocatable.h (compute_curr_prefix): Change return type to
97689         'char *'.
97690         * lib/relocatable.c (compute_curr_prefix): Change return type to
97691         'char *'. Free curr_installdir after use.
97692         (relocate): Free curr_prefix_better after use.
97693         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97695 2008-01-01  Bruno Haible  <bruno@clisp.org>
97697         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97698         failure on older glibc systems.
97699         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97701 2008-01-05  Eric Blake  <ebb9@byu.net>
97703         Avoid quadratic system memmem.
97704         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97705         Reported by Ralf Wildenhues.
97707         Fix memmem test for mingw.
97708         * modules/memmem-tests (configure.ac): Check for alarm.
97709         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97710         it.
97711         * doc/functions/memmem.texi: New file.
97712         * doc/gnulib.texi (Function Substitutes): Add memmem.
97713         Reported by Bruno Haible.
97715 2008-01-04  Bruno Haible  <bruno@clisp.org>
97717         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97718         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97719         gl_HEADER_STRING_H_DEFAULTS.
97721 2008-01-04  Eric Blake  <ebb9@byu.net>
97723         Shorten duration of memmem test.
97724         * tests/test-memmem.c (main): Use alarm to declare failure if test
97725         is taking too long.
97726         Reported by Ralf Wildenhues.
97728 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97730         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97731         string, needed by strerror.
97733 2008-01-03  Colin Watson  <cjwatson@debian.org>
97734             Bruno Haible  <bruno@clisp.org>
97736         * doc/gnulib-tool.texi (Localization): New section.
97738 2008-01-02  Bruno Haible  <bruno@clisp.org>
97740         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97741         variables to 'unsigned char *' type.
97742         Reported by Paul Eggert.
97744 2008-01-02  Jim Meyering  <jim@meyering.net>
97746         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97748 2007-12-31  Jim Meyering  <jim@meyering.net>
97750         Avoid use of private FTS type name.
97751         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97753 2007-12-30  Karl Berry  <karl@gnu.org>
97755         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97756         work around defect in Texinfo and/or the standalone Info browser.
97758 2007-12-30  Bruno Haible  <bruno@clisp.org>
97760         Unify 5 copies of the KMP code.
97761         * lib/str-kmp.h: New file.
97762         * lib/c-strcasestr.c: Include str-kmp.h.
97763         (knuth_morris_pratt): Remove function.
97764         (c_strcasestr): Update.
97765         * lib/c-strstr.c: Include str-kmp.h.
97766         (knuth_morris_pratt): Remove function.
97767         (c_strcasestr): Update.
97768         * lib/mbscasestr.c: Include str-kmp.h.
97769         (knuth_morris_pratt_unibyte): Remove function.
97770         * lib/mbsstr.c: Include str-kmp.h.
97771         (knuth_morris_pratt_unibyte): Remove function.
97772         * lib/strcasestr.c: Include str-kmp.h.
97773         (knuth_morris_pratt): Remove function.
97774         (strcasestr): Update.
97775         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97776         * modules/c-strstr (Files): Likewise.
97777         * modules/mbscasestr (Files): Likewise.
97778         * modules/mbsstr (Files): Likewise.
97779         * modules/strcasestr (Files): Likewise.
97780         Suggested by Paul Eggert.
97782 2007-12-30  Bruno Haible  <bruno@clisp.org>
97784         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97785         defined.
97787 2007-12-30  Bruno Haible  <bruno@clisp.org>
97789         * lib/xmalloca.h: Include xalloc.h.
97790         (xnmalloca): New macro.
97792 2007-12-30  Bruno Haible  <bruno@clisp.org>
97794         * lib/malloca.h (nmalloca): New macro.
97795         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97796         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97797         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97798         knuth_morris_pratt_multibyte): Likewise.
97799         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97800         knuth_morris_pratt_multibyte): Likewise.
97801         * lib/memmem.c (knuth_morris_pratt): Likewise.
97802         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97804 2007-12-25  Bruno Haible  <bruno@clisp.org>
97806         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97807         * lib/glob.c: Don't include openat.h.
97808         (link_exists2_p): Add back the code that deals with the
97809         !GLOB_ALTDIRFUNC case.
97810         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97811         let it do the filename concatenation.
97812         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97813         * modules/glob (Depends-on): Remove openat.
97815 2007-12-31  Bruno Haible  <bruno@clisp.org>
97817         * modules/dirfd (License): Change to LGPLv2+.
97818         Approved by Jim Meyering.
97820 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97822         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97823         when multiplying M by sizeof (size_t).
97825 2007-12-10  Martin Lambers  <marlam@marlam.de>
97827         Override getpagesize on mingw.
97828         * lib/getpagesize.c: New file.
97829         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97830         * modules/getpagesize (Files): Add lib/getpagesize.c.
97831         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97833         REPLACE_GETPAGESIZE.
97834         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97836 2007-12-25  Bruno Haible  <bruno@clisp.org>
97838         * modules/localcharset (Notice): New field.
97839         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97840         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97842 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97843             Bruno Haible  <bruno@clisp.org>
97845         Avoid using the syntax symbol() in formatted documentation.
97846         * MODULES.html.sh (func_module): When replacing symbol() with a
97847         hyperlink, remove the parentheses. Show an error if some remain.
97848         Recognize and render the '...' syntax.
97849         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97850         Rework. Add paragraph about GCC's inlining.
97851         * doc/alloca.texi: Likewise.
97852         * doc/error.texi: Remove parentheses from symbol reference.
97853         * doc/gnulib-intro.texi: Likewise.
97854         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97855         * modules/fnmatch (Description): Reword to say "the ... function".
97856         * modules/full-read (Description): Likewise.
97857         * modules/full-write (Description): Likewise.
97858         * modules/safe-read (Description): Likewise.
97859         * modules/safe-write (Description): Likewise.
97860         * modules/strchrnul (Description): Likewise.
97861         * modules/trim (Description): Likewise.
97862         * modules/error (Description): Remove parentheses from symbol
97863         references.
97864         * modules/verror (Description): Likewise.
97865         Reported by Karl Berry.
97867 2007-12-25  Bruno Haible  <bruno@clisp.org>
97869         Fixup after 2007-10-16 commit.
97870         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97872 2007-12-24  Bruno Haible  <bruno@clisp.org>
97874         Make --enable-relocatable work with DESTDIR.
97875         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97876         to compute installdir from destprog.
97877         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97878         also set the RELOC_DESTDIR variable.
97879         Reported by Левашев Иван <octagram@bluebottle.com>.
97881 2007-12-24  Bruno Haible  <bruno@clisp.org>
97883         Fix link error due to xalloc_die().
97884         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97885         of xreadlink.
97886         * lib/relocwrapper.c: Update comments.
97887         * build-aux/install-reloc: Remove xreadlink.c from file list.
97888         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97889         xreadlink.c.
97890         Reported by Левашев Иван <octagram@bluebottle.com>.
97892 2007-12-24  Bruno Haible  <bruno@clisp.org>
97894         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97895         * lib/setenv.h: Remove file.
97896         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97897         lib/setenv.h.
97898         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97899         (Depends-on): Add stdlib.
97900         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97901         gl_FUNC_UNSETENV.
97902         (Include): Replace setenv.h with <stdlib.h>.
97903         * modules/unsetenv: New file.
97904         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97905         * lib/unsetenv.c: Include <stdlib.h> first.
97906         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97907         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97908         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97909         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97910         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97911         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97913         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97914         * doc/functions/unsetenv.texi: Update.
97915         * modules/xsetenv (Depends-on): Add unsetenv.
97916         * modules/getdate (Depends-on): Likewise.
97917         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97918         * lib/xsetenv.c: Don't include setenv.h.
97919         * lib/getdate.y: Likewise.
97920         * lib/relocwrapper.c: Likewise.
97921         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97922         (Depends-on): Add stdlib.
97923         * NEWS: Mention the changes.
97924         Reported by Левашев Иван <octagram@bluebottle.com>.
97926 2007-12-23  Bruno Haible  <bruno@clisp.org>
97928         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97929         indentation.
97931 2007-12-23  Bruno Haible  <bruno@clisp.org>
97933         * lib/c-strcasestr.c: Add more comments.
97934         * lib/c-strstr.c: Likewise.
97935         * lib/mbscasestr.c: Likewise.
97936         * lib/mbsstr.c: Likewise.
97937         * lib/strcasestr.c: Likewise.
97938         * lib/memmem.c: Likewise.
97940 2007-12-23  Bruno Haible  <bruno@clisp.org>
97942         * tests/test-memmem.c: Include <string.h> first.
97944 2007-12-22  Bruno Haible  <bruno@clisp.org>
97946         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97947         the contents of $testsbase.
97948         Reported by Ralf Wildenhues.
97950 2007-12-22  Bruno Haible  <bruno@clisp.org>
97952         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97953         two variables local_ldadd_before, local_ldadd_last.
97955 2007-12-20  Eric Blake  <ebb9@byu.net>
97957         Work around circular library issue when cross-compiling.
97958         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97959         that progname.o does not need to pull in rpl_memcmp.
97961 2007-12-19  Eric Blake  <ebb9@byu.net>
97963         Fix memmem to avoid O(n^2) worst-case complexity.
97964         * lib/memmem.c (knuth_morris_pratt): New function.
97965         (memmem): Use it if first few naive iterations fail.
97966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97967         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97968         * modules/memchr (License): Likewise.
97969         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97970         malloca.
97971         * tests/test-memmem.c: Rewrite, borrowing ideas from
97972         test-mbsstr1.c; the old version wouldn't even compile!
97973         * modules/memmem-tests: New file.
97974         * lib/string.in.h (rpl_memmem): Add declaration.
97975         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97977         REPLACE_MEMMEM.
97979 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97981         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97982         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97983         before any system include files, and undef after them all.  This
97984         should fix a problem on VMS reported by John E. Malmberg in
97985         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97987 2007-12-17  Eric Blake  <ebb9@byu.net>
97989         Revert addition of verify, for BSD/OS.
97990         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97991         can't handle large files, for the sake of obsolete platforms.
97992         * modules/fseeko (Depends-on): Remove verify.
97993         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97994         * doc/functions/ftello.texi (ftello): Likewise.
97995         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97996         Reported by Larry Jones.
97998 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98000         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98001         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98003 2007-12-17  Jim Meyering  <meyering@redhat.com>
98005         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98006         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98007         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98008         * modules/getcwd (Depends-on): Add openat.
98009         Reported by Petr Salinger.
98011 2007-12-17  Bruno Haible  <bruno@clisp.org>
98013         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98014         avoid a segmentation fault of the configure test on x86_64 systems.
98016 2007-12-15  Jim Meyering  <meyering@redhat.com>
98018         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98020 2007-12-13  Eric Blake  <ebb9@byu.net>
98022         Another fseek test.
98023         * tests/test-fseek.c (main): Also test ungetc handling.
98024         * tests/test-fseeko.c (main): Likewise.
98025         * modules/fseeko (Depends-on): Add verify.
98026         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98027         large.
98028         Reported by Larry Jones.
98030         Fix fseeko on mingw.
98031         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98032         seek.
98034         Beef up fseek tests.
98035         * tests/test-fseek.c (main): Also test eof handling.
98036         * tests/test-fseeko.c (main): Likewise.
98037         Reported by Larry Jones.
98039 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98041         Fix fseeko on BSD-based platforms.
98042         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98043         successful seek.
98045 2007-12-12  Eric Blake  <ebb9@byu.net>
98047         Allow circular dependency of separate libtests.a
98048         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98049         when use_libtests.
98051 2007-12-11  Eric Blake  <ebb9@byu.net>
98053         Fix bug with -0.0L in previous patch.
98054         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98055         * tests/test-isnan.c (main): Also test on zeroes.
98056         * tests/test-isnanf.c (main): Likewise.
98057         * tests/test-isnanl.h (main): Likewise.
98059         Detect pseudo-denormals on x86 even when cross-compiling.
98060         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98061         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98062         invalid bit patterns that happen to satisfy ==.
98064         Avoid link failures with separate libtests.a.
98065         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98066         last, to satisfy circular dependencies.
98068 2007-12-11  Eric Blake  <ebb9@byu.net>
98069         and Bruno Haible  <bruno@clisp.org>
98071         Fix OpenBSD 4.0 <float.h> handling of long double.
98072         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98073         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98074         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98076 2007-12-11  Jim Meyering  <meyering@redhat.com>
98078         * users.txt: Add libvirt.
98080         Support versions of autoconf prior to 2.59c.
98081         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98082         if it is not already defined.
98084 2007-12-09  Bruno Haible  <bruno@clisp.org>
98086         Let 'gnulib-tool --import' collect sources needed for the tests in
98087         tests/ rather than in lib/.
98088         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98089         argument. If true, add rules to generate libtests.a, and put libtests.a
98090         into $(LDADD). Consider source files in subdirectories and set
98091         uses_subdirs.
98092         (func_emit_initmacro_start, func_emit_initmacro_end,
98093         func_emit_initmacro_done): Pass all arguments explicitly.
98094         (func_import): Determine two module lists main_modules,
98095         testsrelated_modules. Determine use_libtests. Determine two variables
98096         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98097         instead of just sed_transform_lib_file. Determine two variables
98098         main_files and testsrelated_files. Compute 'files' as the union of
98099         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98100         func_add_or_update. In the generated gnulib-comp.m4, collect the
98101         object files for tests/ in different variables than those for lib/.
98102         Substitute LIBTESTS_LIBDEPS.
98103         (func_create_testdir): Combine the uses_subdirs results from
98104         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98106 2007-12-09  Bruno Haible  <bruno@clisp.org>
98108         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98109         the build-aux directory.
98111 2007-12-09  Bruno Haible  <bruno@clisp.org>
98113         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98114         introduced on 2006-09-09.
98116 2007-12-07  Jim Meyering  <meyering@redhat.com>
98118         Let these macros work also with autoconf-2.59.
98119         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98120         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98123 2007-12-06  Jim Meyering  <meyering@redhat.com>
98125         Avoid a configure-time syntax error in gl_FUNC_ACL.
98126         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98127         function in each branch, before testing the cache variable.
98129 2007-12-04  Eric Blake  <ebb9@byu.net>
98131         Make scripts executable.
98132         * build-aux/config.guess: Add execute permissions.
98133         * build-aux/config.sub: Likewise.
98134         * build-aux/gendocs.sh: Likewise.
98136         Fix frexp on mingw.
98137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98138         cross-compiling.
98139         * doc/functions/frexp.texi (frexp): Document the bug.
98141         Make cygwin fseeko check more reliable.
98142         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98143         version numbers, rather than unrelated feature check.
98144         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98145         * doc/functions/ftello.texi (ftello): Likewise.
98146         Reported by Bruno Haible.
98148         * m4/strerror.m4: Bump version number.
98150 2007-12-03  Bruno Haible  <bruno@clisp.org>
98152         * doc/functions/mprotect.texi: Mention the mingw problem.
98154 2007-12-03  Eric Blake  <ebb9@byu.net>
98156         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98157         REPLACE_STRERROR is initialized before this macro.
98159 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98161         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98162         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98163         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98164         put -lsec in even for programs other than 'ls'.  This fixes a problem
98165         for gettext reported by Bruno Haible in
98166         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98167         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98168         Add support for Solaris 10.  This isn't efficient, but should get the
98169         job done for now.
98171 2007-12-03  James Youngman  <jay@gnu.org>
98173         * doc/regexprops-generic.texi: change "an close-group" to "a
98174         close-group" and "illegal" to "not allowed".
98176 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98178         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98179         pr_byname.h. Needed for the rare case when the maintainer has done
98180         "make maintainer-clean" in the source directory and then attempts a
98181         build outside the source directory.
98182         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98183         scripts_byname.h.
98185 2007-12-02  Martin Lambers  <marlam@marlam.de>
98186             Bruno Haible  <bruno@clisp.org>
98188         * lib/getpagesize.h: Remove file.
98189         * lib/unistd.in.h: Include declaration of getpagesize here.
98190         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98191         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98192         HAVE_SYS_PARAM_H.
98193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98194         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98195         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98196         (Depends-on): Add unistd.
98197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98198         (Include): Use <unistd.h> instead of getpagesize.h.
98199         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98200         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98201         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98202         gl_GETPAGESIZE invocation, already handled by module dependency.
98203         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98205 2007-12-02  Bruno Haible  <bruno@clisp.org>
98207         * modules/strings-tests: New file.
98208         * tests/test-strings.c: New file.
98210         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98211         * lib/strings.in.h: New file.
98212         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98213         * m4/strings_h.m4: New file.
98214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98215         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98216         * modules/strings: New file.
98217         * modules/string (Makefile.am): Update.
98218         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98219         Reported by Karl Berry.
98221 2007-12-01  Eric Blake  <ebb9@byu.net>
98223         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98224         accommodate fix in cygwin 1.5.25.
98226 2007-12-01  Jim Meyering  <meyering@redhat.com>
98228         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98229         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98230         that would inhibit utf8-optimization of a regexp containing line-
98231         or buffer-anchors, e.g., `^', `$'.
98233 2007-11-30  Bruno Haible  <bruno@clisp.org>
98235         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98236         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98237         glthread_recursive_lock_init.
98238         * lib/lock.c (glthread_recursive_lock_init)
98239         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98240         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98242 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98244         New function qset_acl, like set_acl but with syscall semantics.
98245         * lib/acl.h (qset_acl): New decl.
98246         * lib/acl.c (qset_acl): New function.
98247         (set_acl): Use new function.  Use more-consistent diagnostics.
98249 2007-11-28  Jim Meyering  <meyering@redhat.com>
98251         * modules/physmem (License): Change from GPL to LGPLv2+.
98253 2007-11-26  Bruno Haible  <bruno@clisp.org>
98255         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98256         'long double' type has excess precision.
98257         Reported by Jim Meyering in
98258         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98260 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98262         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98263         Sync from <http://gnu.org/licenses>.
98264         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98265         with license text from same location.
98266         * doc/maintain.texi, doc/standards.texi:  Sync from
98267         <http://savannah.gnu.org/projects/gnustandards>.
98269 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98270         and Jim Meyering  <meyering@redhat.com>
98272         Adjust getdate' grammar to accept a slightly more regular language.
98273         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98274         Before, the former was rejected.
98275         * lib/getdate.y (digits_to_date_time): New function, factored
98276         out of ...
98277         (number): ...here.  Just call digits_to_date_time.
98278         (hybrid): New non-terminal to handle an <unsigned number,
98279         signed relative offset> sequence consistently.
98281 2007-11-18  Jim Meyering  <meyering@redhat.com>
98283         Pull my changes from coreutils:
98284         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98285         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98286         use of $gnulib_tool_option_extras, so that it's separated from the
98287         preceding argument.
98289         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98290         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98291         parent destination directories before copying a file into place.
98293 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98295         bootstrap: work also with 4-argument variant of AC_INIT
98296         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98298 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98300         Port test-getaddrinfo to Solaris.
98301         Problem reported by Bruno Haible in
98302         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98303         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98304         explanation of setting 'hints'.
98305         Don't reject an implementation merely because it returns EAI_SERVICE.
98306         (EAI_SERVICE): Define to 0 if not defined.
98308 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98310         The license of gnu-make and posix-shell is now "GPLed build tool".
98311         * modules/gnu-make (License): Likewise.
98312         * modules/posix-shell (License): Likewise.
98314         New module posix-shell, for determining a POSIX shell
98315         or perhaps something that is close enough to a POSIX shell.
98316         * m4/posix-shell.m4: New file.
98317         * modules/posix-shell: New file.
98319         * MODULES.html.sh: Mention new module.
98321         New module gnu-make, for determining whether we're using GNU Make.
98322         * m4/gnu-make.m4: New file.
98323         * modules/gnu-make: New file.
98324         * MODULES.html.sh: Mention new module.
98326 2007-11-14  Jim Meyering  <meyering@redhat.com>
98328         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98329         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98330         use this macro to create a function _definition_.
98331         Remove useless "#undef ARGMATCH_DIE".
98333 2007-11-14  Bruno Haible  <bruno@clisp.org>
98335         * lib/config.charset: Update for OpenBSD 4.1.
98336         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98338 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98340         Document 64-bit #if problems in stdint.texi.
98341         * doc/headers/stdint.texi (stdint.h): Mention problems with
98342         64-bit-#if, and how to work around them.
98344         Don't insist on 'long long int' support in the preprocessor.  It
98345         breaks too many things.  For example, PRIdMAX still uses a 'long
98346         long int' format with the latest Sun compiler, even though
98347         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98348         preprocessor problem.  This causes the latest coreutils to dump
98349         core on Solaris 10 sparc with the Sun C compiler.
98350         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98351         the troublesome expressions at configure-time, not at #if-time.
98352         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98353         preprocessor.
98354         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98355         compile-time C checks, done at 'configure'-time.
98356         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98357         * modules/inttypes (Makefile): Substitute the new symbols that
98358         gl_INTTYPES_H now generates.
98359         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98361 2007-11-12  Bruno Haible  <bruno@clisp.org>
98363         Tests for Unicode character classification functions.
98365         * modules/unictype/bidicategory-byname-tests: New file.
98366         * modules/unictype/bidicategory-name-tests: New file.
98367         * modules/unictype/bidicategory-of-tests: New file.
98368         * modules/unictype/bidicategory-test-tests: New file.
98369         * modules/unictype/block-list-tests: New file.
98370         * modules/unictype/block-of-tests: New file.
98371         * modules/unictype/block-test-tests: New file.
98372         * modules/unictype/category-C-tests: New file.
98373         * modules/unictype/category-Cc-tests: New file.
98374         * modules/unictype/category-Cf-tests: New file.
98375         * modules/unictype/category-Cn-tests: New file.
98376         * modules/unictype/category-Co-tests: New file.
98377         * modules/unictype/category-Cs-tests: New file.
98378         * modules/unictype/category-L-tests: New file.
98379         * modules/unictype/category-Ll-tests: New file.
98380         * modules/unictype/category-Lm-tests: New file.
98381         * modules/unictype/category-Lo-tests: New file.
98382         * modules/unictype/category-Lt-tests: New file.
98383         * modules/unictype/category-Lu-tests: New file.
98384         * modules/unictype/category-M-tests: New file.
98385         * modules/unictype/category-Mc-tests: New file.
98386         * modules/unictype/category-Me-tests: New file.
98387         * modules/unictype/category-Mn-tests: New file.
98388         * modules/unictype/category-N-tests: New file.
98389         * modules/unictype/category-Nd-tests: New file.
98390         * modules/unictype/category-Nl-tests: New file.
98391         * modules/unictype/category-No-tests: New file.
98392         * modules/unictype/category-P-tests: New file.
98393         * modules/unictype/category-Pc-tests: New file.
98394         * modules/unictype/category-Pd-tests: New file.
98395         * modules/unictype/category-Pe-tests: New file.
98396         * modules/unictype/category-Pf-tests: New file.
98397         * modules/unictype/category-Pi-tests: New file.
98398         * modules/unictype/category-Po-tests: New file.
98399         * modules/unictype/category-Ps-tests: New file.
98400         * modules/unictype/category-S-tests: New file.
98401         * modules/unictype/category-Sc-tests: New file.
98402         * modules/unictype/category-Sk-tests: New file.
98403         * modules/unictype/category-Sm-tests: New file.
98404         * modules/unictype/category-So-tests: New file.
98405         * modules/unictype/category-Z-tests: New file.
98406         * modules/unictype/category-Zl-tests: New file.
98407         * modules/unictype/category-Zp-tests: New file.
98408         * modules/unictype/category-Zs-tests: New file.
98409         * modules/unictype/category-and-not-tests: New file.
98410         * modules/unictype/category-and-tests: New file.
98411         * modules/unictype/category-byname-tests: New file.
98412         * modules/unictype/category-name-tests: New file.
98413         * modules/unictype/category-none-tests: New file.
98414         * modules/unictype/category-of-tests: New file.
98415         * modules/unictype/category-or-tests: New file.
98416         * modules/unictype/category-test-withtable-tests: New file.
98417         * modules/unictype/combining-class-tests: New file.
98418         * modules/unictype/ctype-alnum-tests: New file.
98419         * modules/unictype/ctype-alpha-tests: New file.
98420         * modules/unictype/ctype-blank-tests: New file.
98421         * modules/unictype/ctype-cntrl-tests: New file.
98422         * modules/unictype/ctype-digit-tests: New file.
98423         * modules/unictype/ctype-graph-tests: New file.
98424         * modules/unictype/ctype-lower-tests: New file.
98425         * modules/unictype/ctype-print-tests: New file.
98426         * modules/unictype/ctype-punct-tests: New file.
98427         * modules/unictype/ctype-space-tests: New file.
98428         * modules/unictype/ctype-upper-tests: New file.
98429         * modules/unictype/ctype-xdigit-tests: New file.
98430         * modules/unictype/decimal-digit-tests: New file.
98431         * modules/unictype/digit-tests: New file.
98432         * modules/unictype/mirror-tests: New file.
98433         * modules/unictype/numeric-tests: New file.
98434         * modules/unictype/property-alphabetic-tests: New file.
98435         * modules/unictype/property-ascii-hex-digit-tests: New file.
98436         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98437         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98438         * modules/unictype/property-bidi-block-separator-tests: New file.
98439         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98440         * modules/unictype/property-bidi-common-separator-tests: New file.
98441         * modules/unictype/property-bidi-control-tests: New file.
98442         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98443         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98444         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98445         * modules/unictype/property-bidi-european-digit-tests: New file.
98446         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98447         * modules/unictype/property-bidi-left-to-right-tests: New file.
98448         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98449         * modules/unictype/property-bidi-other-neutral-tests: New file.
98450         * modules/unictype/property-bidi-pdf-tests: New file.
98451         * modules/unictype/property-bidi-segment-separator-tests: New file.
98452         * modules/unictype/property-bidi-whitespace-tests: New file.
98453         * modules/unictype/property-byname-tests: New file.
98454         * modules/unictype/property-combining-tests: New file.
98455         * modules/unictype/property-composite-tests: New file.
98456         * modules/unictype/property-currency-symbol-tests: New file.
98457         * modules/unictype/property-dash-tests: New file.
98458         * modules/unictype/property-decimal-digit-tests: New file.
98459         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98460         * modules/unictype/property-deprecated-tests: New file.
98461         * modules/unictype/property-diacritic-tests: New file.
98462         * modules/unictype/property-extender-tests: New file.
98463         * modules/unictype/property-format-control-tests: New file.
98464         * modules/unictype/property-grapheme-base-tests: New file.
98465         * modules/unictype/property-grapheme-extend-tests: New file.
98466         * modules/unictype/property-grapheme-link-tests: New file.
98467         * modules/unictype/property-hex-digit-tests: New file.
98468         * modules/unictype/property-hyphen-tests: New file.
98469         * modules/unictype/property-id-continue-tests: New file.
98470         * modules/unictype/property-id-start-tests: New file.
98471         * modules/unictype/property-ideographic-tests: New file.
98472         * modules/unictype/property-ids-binary-operator-tests: New file.
98473         * modules/unictype/property-ids-trinary-operator-tests: New file.
98474         * modules/unictype/property-ignorable-control-tests: New file.
98475         * modules/unictype/property-iso-control-tests: New file.
98476         * modules/unictype/property-join-control-tests: New file.
98477         * modules/unictype/property-left-of-pair-tests: New file.
98478         * modules/unictype/property-line-separator-tests: New file.
98479         * modules/unictype/property-logical-order-exception-tests: New file.
98480         * modules/unictype/property-lowercase-tests: New file.
98481         * modules/unictype/property-math-tests: New file.
98482         * modules/unictype/property-non-break-tests: New file.
98483         * modules/unictype/property-not-a-character-tests: New file.
98484         * modules/unictype/property-numeric-tests: New file.
98485         * modules/unictype/property-other-alphabetic-tests: New file.
98486         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98487         * modules/unictype/property-other-grapheme-extend-tests: New file.
98488         * modules/unictype/property-other-id-continue-tests: New file.
98489         * modules/unictype/property-other-id-start-tests: New file.
98490         * modules/unictype/property-other-lowercase-tests: New file.
98491         * modules/unictype/property-other-math-tests: New file.
98492         * modules/unictype/property-other-uppercase-tests: New file.
98493         * modules/unictype/property-paired-punctuation-tests: New file.
98494         * modules/unictype/property-paragraph-separator-tests: New file.
98495         * modules/unictype/property-pattern-syntax-tests: New file.
98496         * modules/unictype/property-pattern-white-space-tests: New file.
98497         * modules/unictype/property-private-use-tests: New file.
98498         * modules/unictype/property-punctuation-tests: New file.
98499         * modules/unictype/property-quotation-mark-tests: New file.
98500         * modules/unictype/property-radical-tests: New file.
98501         * modules/unictype/property-sentence-terminal-tests: New file.
98502         * modules/unictype/property-soft-dotted-tests: New file.
98503         * modules/unictype/property-space-tests: New file.
98504         * modules/unictype/property-terminal-punctuation-tests: New file.
98505         * modules/unictype/property-test-tests: New file.
98506         * modules/unictype/property-titlecase-tests: New file.
98507         * modules/unictype/property-unassigned-code-value-tests: New file.
98508         * modules/unictype/property-unified-ideograph-tests: New file.
98509         * modules/unictype/property-uppercase-tests: New file.
98510         * modules/unictype/property-variation-selector-tests: New file.
98511         * modules/unictype/property-white-space-tests: New file.
98512         * modules/unictype/property-xid-continue-tests: New file.
98513         * modules/unictype/property-xid-start-tests: New file.
98514         * modules/unictype/property-zero-width-tests: New file.
98515         * modules/unictype/scripts-tests: New file.
98516         * modules/unictype/syntax-c-ident-tests: New file.
98517         * modules/unictype/syntax-c-whitespace-tests: New file.
98518         * modules/unictype/syntax-java-ident-tests: New file.
98519         * modules/unictype/syntax-java-whitespace-tests: New file.
98520         * tests/unictype/test-bidi_byname.c: New file.
98521         * tests/unictype/test-bidi_name.c: New file.
98522         * tests/unictype/test-bidi_of.c: New file.
98523         * tests/unictype/test-bidi_test.c: New file.
98524         * tests/unictype/test-block_list.c: New file.
98525         * tests/unictype/test-block_of.c: New file.
98526         * tests/unictype/test-block_test.c: New file.
98527         * tests/unictype/test-categ_and.c: New file.
98528         * tests/unictype/test-categ_and_not.c: New file.
98529         * tests/unictype/test-categ_byname.c: New file.
98530         * tests/unictype/test-categ_name.c: New file.
98531         * tests/unictype/test-categ_none.c: New file.
98532         * tests/unictype/test-categ_of.c: New file.
98533         * tests/unictype/test-categ_or.c: New file.
98534         * tests/unictype/test-categ_test_withtable.c: New file.
98535         * tests/unictype/test-combining.c: New file.
98536         * tests/unictype/test-decdigit.c: New file.
98537         * tests/unictype/test-digit.c: New file.
98538         * tests/unictype/test-mirror.c: New file.
98539         * tests/unictype/test-numeric.c: New file.
98540         * tests/unictype/test-pr_byname.c: New file.
98541         * tests/unictype/test-pr_test.c: New file.
98542         * tests/unictype/test-predicate-part1.h: New file.
98543         * tests/unictype/test-predicate-part2.h: New file.
98544         * tests/unictype/test-scripts.c: New file.
98545         * tests/unictype/test-sy_c_ident.c: New file.
98546         * tests/unictype/test-sy_java_ident.c: New file.
98548         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98549         for Unicode 5.0.0.
98550         * tests/unictype/test-categ_Cc.c: Likewise.
98551         * tests/unictype/test-categ_Cf.c: Likewise.
98552         * tests/unictype/test-categ_Cn.c: Likewise.
98553         * tests/unictype/test-categ_Co.c: Likewise.
98554         * tests/unictype/test-categ_Cs.c: Likewise.
98555         * tests/unictype/test-categ_L.c: Likewise.
98556         * tests/unictype/test-categ_Ll.c: Likewise.
98557         * tests/unictype/test-categ_Lm.c: Likewise.
98558         * tests/unictype/test-categ_Lo.c: Likewise.
98559         * tests/unictype/test-categ_Lt.c: Likewise.
98560         * tests/unictype/test-categ_Lu.c: Likewise.
98561         * tests/unictype/test-categ_M.c: Likewise.
98562         * tests/unictype/test-categ_Mc.c: Likewise.
98563         * tests/unictype/test-categ_Me.c: Likewise.
98564         * tests/unictype/test-categ_Mn.c: Likewise.
98565         * tests/unictype/test-categ_N.c: Likewise.
98566         * tests/unictype/test-categ_Nd.c: Likewise.
98567         * tests/unictype/test-categ_Nl.c: Likewise.
98568         * tests/unictype/test-categ_No.c: Likewise.
98569         * tests/unictype/test-categ_P.c: Likewise.
98570         * tests/unictype/test-categ_Pc.c: Likewise.
98571         * tests/unictype/test-categ_Pd.c: Likewise.
98572         * tests/unictype/test-categ_Pe.c: Likewise.
98573         * tests/unictype/test-categ_Pf.c: Likewise.
98574         * tests/unictype/test-categ_Pi.c: Likewise.
98575         * tests/unictype/test-categ_Po.c: Likewise.
98576         * tests/unictype/test-categ_Ps.c: Likewise.
98577         * tests/unictype/test-categ_S.c: Likewise.
98578         * tests/unictype/test-categ_Sc.c: Likewise.
98579         * tests/unictype/test-categ_Sk.c: Likewise.
98580         * tests/unictype/test-categ_Sm.c: Likewise.
98581         * tests/unictype/test-categ_So.c: Likewise.
98582         * tests/unictype/test-categ_Z.c: Likewise.
98583         * tests/unictype/test-categ_Zl.c: Likewise.
98584         * tests/unictype/test-categ_Zp.c: Likewise.
98585         * tests/unictype/test-categ_Zs.c: Likewise.
98586         * tests/unictype/test-ctype_alnum.c: Likewise.
98587         * tests/unictype/test-ctype_alpha.c: Likewise.
98588         * tests/unictype/test-ctype_blank.c: Likewise.
98589         * tests/unictype/test-ctype_cntrl.c: Likewise.
98590         * tests/unictype/test-ctype_digit.c: Likewise.
98591         * tests/unictype/test-ctype_graph.c: Likewise.
98592         * tests/unictype/test-ctype_lower.c: Likewise.
98593         * tests/unictype/test-ctype_print.c: Likewise.
98594         * tests/unictype/test-ctype_punct.c: Likewise.
98595         * tests/unictype/test-ctype_space.c: Likewise.
98596         * tests/unictype/test-ctype_upper.c: Likewise.
98597         * tests/unictype/test-ctype_xdigit.c: Likewise.
98598         * tests/unictype/test-decdigit.h: Likewise.
98599         * tests/unictype/test-digit.h: Likewise.
98600         * tests/unictype/test-numeric.h: Likewise.
98601         * tests/unictype/test-pr_alphabetic.c: Likewise.
98602         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98603         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98604         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98605         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98606         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98607         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98608         * tests/unictype/test-pr_bidi_control.c: Likewise.
98609         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98610         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98611         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98612         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98613         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98614         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98615         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98616         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98617         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98618         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98619         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98620         * tests/unictype/test-pr_combining.c: Likewise.
98621         * tests/unictype/test-pr_composite.c: Likewise.
98622         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98623         * tests/unictype/test-pr_dash.c: Likewise.
98624         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98625         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98626         * tests/unictype/test-pr_deprecated.c: Likewise.
98627         * tests/unictype/test-pr_diacritic.c: Likewise.
98628         * tests/unictype/test-pr_extender.c: Likewise.
98629         * tests/unictype/test-pr_format_control.c: Likewise.
98630         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98631         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98632         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98633         * tests/unictype/test-pr_hex_digit.c: Likewise.
98634         * tests/unictype/test-pr_hyphen.c: Likewise.
98635         * tests/unictype/test-pr_id_continue.c: Likewise.
98636         * tests/unictype/test-pr_id_start.c: Likewise.
98637         * tests/unictype/test-pr_ideographic.c: Likewise.
98638         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98639         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98640         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98641         * tests/unictype/test-pr_iso_control.c: Likewise.
98642         * tests/unictype/test-pr_join_control.c: Likewise.
98643         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98644         * tests/unictype/test-pr_line_separator.c: Likewise.
98645         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98646         * tests/unictype/test-pr_lowercase.c: Likewise.
98647         * tests/unictype/test-pr_math.c: Likewise.
98648         * tests/unictype/test-pr_non_break.c: Likewise.
98649         * tests/unictype/test-pr_not_a_character.c: Likewise.
98650         * tests/unictype/test-pr_numeric.c: Likewise.
98651         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98652         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98653         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98654         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98655         * tests/unictype/test-pr_other_id_start.c: Likewise.
98656         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98657         * tests/unictype/test-pr_other_math.c: Likewise.
98658         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98659         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98660         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98661         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98662         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98663         * tests/unictype/test-pr_private_use.c: Likewise.
98664         * tests/unictype/test-pr_punctuation.c: Likewise.
98665         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98666         * tests/unictype/test-pr_radical.c: Likewise.
98667         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98668         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98669         * tests/unictype/test-pr_space.c: Likewise.
98670         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98671         * tests/unictype/test-pr_titlecase.c: Likewise.
98672         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98673         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98674         * tests/unictype/test-pr_uppercase.c: Likewise.
98675         * tests/unictype/test-pr_variation_selector.c: Likewise.
98676         * tests/unictype/test-pr_white_space.c: Likewise.
98677         * tests/unictype/test-pr_xid_continue.c: Likewise.
98678         * tests/unictype/test-pr_xid_start.c: Likewise.
98679         * tests/unictype/test-pr_zero_width.c: Likewise.
98680         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98681         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98683 2007-11-12  Bruno Haible  <bruno@clisp.org>
98685         Unicode character classification functions.
98686         * lib/unictype.h: New file.
98687         * modules/unictype/base: New file.
98688         * modules/unictype/category-L: New file.
98689         * modules/unictype/category-Lu: New file.
98690         * modules/unictype/category-Ll: New file.
98691         * modules/unictype/category-Lt: New file.
98692         * modules/unictype/category-Lm: New file.
98693         * modules/unictype/category-Lo: New file.
98694         * modules/unictype/category-M: New file.
98695         * modules/unictype/category-Mn: New file.
98696         * modules/unictype/category-Mc: New file.
98697         * modules/unictype/category-Me: New file.
98698         * modules/unictype/category-N: New file.
98699         * modules/unictype/category-Nd: New file.
98700         * modules/unictype/category-Nl: New file.
98701         * modules/unictype/category-No: New file.
98702         * modules/unictype/category-P: New file.
98703         * modules/unictype/category-Pc: New file.
98704         * modules/unictype/category-Pd: New file.
98705         * modules/unictype/category-Ps: New file.
98706         * modules/unictype/category-Pe: New file.
98707         * modules/unictype/category-Pi: New file.
98708         * modules/unictype/category-Pf: New file.
98709         * modules/unictype/category-Po: New file.
98710         * modules/unictype/category-S: New file.
98711         * modules/unictype/category-Sm: New file.
98712         * modules/unictype/category-Sc: New file.
98713         * modules/unictype/category-Sk: New file.
98714         * modules/unictype/category-So: New file.
98715         * modules/unictype/category-Z: New file.
98716         * modules/unictype/category-Zs: New file.
98717         * modules/unictype/category-Zl: New file.
98718         * modules/unictype/category-Zp: New file.
98719         * modules/unictype/category-C: New file.
98720         * modules/unictype/category-Cc: New file.
98721         * modules/unictype/category-Cf: New file.
98722         * modules/unictype/category-Cs: New file.
98723         * modules/unictype/category-Co: New file.
98724         * modules/unictype/category-Cn: New file.
98725         * modules/unictype/category-or: New file.
98726         * modules/unictype/category-of: New file.
98727         * modules/unictype/category-test: New file.
98728         * modules/unictype/category-test-withtable: New file.
98729         * modules/unictype/category-byname: New file.
98730         * modules/unictype/category-none: New file.
98731         * modules/unictype/category-and: New file.
98732         * modules/unictype/category-and-not: New file.
98733         * modules/unictype/category-name: New file.
98734         * modules/unictype/combining-class: New file.
98735         * modules/unictype/category-all: New file.
98736         * modules/unictype/bidicategory-all: New file.
98737         * modules/unictype/bidicategory-byname: New file.
98738         * modules/unictype/bidicategory-name: New file.
98739         * modules/unictype/bidicategory-of: New file.
98740         * modules/unictype/bidicategory-test: New file.
98741         * modules/unictype/decimal-digit: New file.
98742         * modules/unictype/digit: New file.
98743         * modules/unictype/numeric: New file.
98744         * modules/unictype/mirror: New file.
98745         * modules/unictype/property-white-space: New file.
98746         * modules/unictype/property-alphabetic: New file.
98747         * modules/unictype/property-other-alphabetic: New file.
98748         * modules/unictype/property-not-a-character: New file.
98749         * modules/unictype/property-default-ignorable-code-point: New file.
98750         * modules/unictype/property-other-default-ignorable-code-point: New
98751         file.
98752         * modules/unictype/property-deprecated: New file.
98753         * modules/unictype/property-logical-order-exception: New file.
98754         * modules/unictype/property-variation-selector: New file.
98755         * modules/unictype/property-private-use: New file.
98756         * modules/unictype/property-unassigned-code-value: New file.
98757         * modules/unictype/property-uppercase: New file.
98758         * modules/unictype/property-other-uppercase: New file.
98759         * modules/unictype/property-lowercase: New file.
98760         * modules/unictype/property-other-lowercase: New file.
98761         * modules/unictype/property-titlecase: New file.
98762         * modules/unictype/property-soft-dotted: New file.
98763         * modules/unictype/property-id-start: New file.
98764         * modules/unictype/property-other-id-start: New file.
98765         * modules/unictype/property-id-continue: New file.
98766         * modules/unictype/property-other-id-continue: New file.
98767         * modules/unictype/property-xid-start: New file.
98768         * modules/unictype/property-xid-continue: New file.
98769         * modules/unictype/property-pattern-white-space: New file.
98770         * modules/unictype/property-pattern-syntax: New file.
98771         * modules/unictype/property-join-control: New file.
98772         * modules/unictype/property-grapheme-base: New file.
98773         * modules/unictype/property-grapheme-extend: New file.
98774         * modules/unictype/property-other-grapheme-extend: New file.
98775         * modules/unictype/property-grapheme-link: New file.
98776         * modules/unictype/property-bidi-control: New file.
98777         * modules/unictype/property-bidi-left-to-right: New file.
98778         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98779         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98780         * modules/unictype/property-bidi-european-digit: New file.
98781         * modules/unictype/property-bidi-eur-num-separator: New file.
98782         * modules/unictype/property-bidi-eur-num-terminator: New file.
98783         * modules/unictype/property-bidi-arabic-digit: New file.
98784         * modules/unictype/property-bidi-common-separator: New file.
98785         * modules/unictype/property-bidi-block-separator: New file.
98786         * modules/unictype/property-bidi-segment-separator: New file.
98787         * modules/unictype/property-bidi-whitespace: New file.
98788         * modules/unictype/property-bidi-non-spacing-mark: New file.
98789         * modules/unictype/property-bidi-boundary-neutral: New file.
98790         * modules/unictype/property-bidi-pdf: New file.
98791         * modules/unictype/property-bidi-embedding-or-override: New file.
98792         * modules/unictype/property-bidi-other-neutral: New file.
98793         * modules/unictype/property-hex-digit: New file.
98794         * modules/unictype/property-ascii-hex-digit: New file.
98795         * modules/unictype/property-ideographic: New file.
98796         * modules/unictype/property-unified-ideograph: New file.
98797         * modules/unictype/property-radical: New file.
98798         * modules/unictype/property-ids-binary-operator: New file.
98799         * modules/unictype/property-ids-trinary-operator: New file.
98800         * modules/unictype/property-zero-width: New file.
98801         * modules/unictype/property-space: New file.
98802         * modules/unictype/property-non-break: New file.
98803         * modules/unictype/property-iso-control: New file.
98804         * modules/unictype/property-format-control: New file.
98805         * modules/unictype/property-dash: New file.
98806         * modules/unictype/property-hyphen: New file.
98807         * modules/unictype/property-punctuation: New file.
98808         * modules/unictype/property-line-separator: New file.
98809         * modules/unictype/property-paragraph-separator: New file.
98810         * modules/unictype/property-quotation-mark: New file.
98811         * modules/unictype/property-sentence-terminal: New file.
98812         * modules/unictype/property-terminal-punctuation: New file.
98813         * modules/unictype/property-currency-symbol: New file.
98814         * modules/unictype/property-math: New file.
98815         * modules/unictype/property-other-math: New file.
98816         * modules/unictype/property-paired-punctuation: New file.
98817         * modules/unictype/property-left-of-pair: New file.
98818         * modules/unictype/property-combining: New file.
98819         * modules/unictype/property-composite: New file.
98820         * modules/unictype/property-decimal-digit: New file.
98821         * modules/unictype/property-numeric: New file.
98822         * modules/unictype/property-diacritic: New file.
98823         * modules/unictype/property-extender: New file.
98824         * modules/unictype/property-ignorable-control: New file.
98825         * modules/unictype/property-test: New file.
98826         * modules/unictype/property-byname: New file.
98827         * modules/unictype/property-all: New file.
98828         * modules/unictype/scripts: New file.
98829         * modules/unictype/scripts-all: New file.
98830         * modules/unictype/block-of: New file.
98831         * modules/unictype/block-test: New file.
98832         * modules/unictype/block-list: New file.
98833         * modules/unictype/block-all: New file.
98834         * modules/unictype/syntax-c-whitespace: New file.
98835         * modules/unictype/syntax-java-whitespace: New file.
98836         * modules/unictype/syntax-c-ident: New file.
98837         * modules/unictype/syntax-java-ident: New file.
98838         * modules/unictype/ctype-alnum: New file.
98839         * modules/unictype/ctype-alpha: New file.
98840         * modules/unictype/ctype-cntrl: New file.
98841         * modules/unictype/ctype-digit: New file.
98842         * modules/unictype/ctype-graph: New file.
98843         * modules/unictype/ctype-lower: New file.
98844         * modules/unictype/ctype-print: New file.
98845         * modules/unictype/ctype-punct: New file.
98846         * modules/unictype/ctype-space: New file.
98847         * modules/unictype/ctype-upper: New file.
98848         * modules/unictype/ctype-xdigit: New file.
98849         * modules/unictype/ctype-blank: New file.
98850         * lib/unictype/bidi_byname.c: New file.
98851         * lib/unictype/bidi_name.c: New file.
98852         * lib/unictype/bidi_of.c: New file.
98853         * lib/unictype/bidi_test.c: New file.
98854         * lib/unictype/bitmap.h: New file.
98855         * lib/unictype/block_test.c: New file.
98856         * lib/unictype/blocks.c: New file.
98857         * lib/unictype/categ_C.c: New file.
98858         * lib/unictype/categ_Cc.c: New file.
98859         * lib/unictype/categ_Cf.c: New file.
98860         * lib/unictype/categ_Cn.c: New file.
98861         * lib/unictype/categ_Co.c: New file.
98862         * lib/unictype/categ_Cs.c: New file.
98863         * lib/unictype/categ_L.c: New file.
98864         * lib/unictype/categ_Ll.c: New file.
98865         * lib/unictype/categ_Lm.c: New file.
98866         * lib/unictype/categ_Lo.c: New file.
98867         * lib/unictype/categ_Lt.c: New file.
98868         * lib/unictype/categ_Lu.c: New file.
98869         * lib/unictype/categ_M.c: New file.
98870         * lib/unictype/categ_Mc.c: New file.
98871         * lib/unictype/categ_Me.c: New file.
98872         * lib/unictype/categ_Mn.c: New file.
98873         * lib/unictype/categ_N.c: New file.
98874         * lib/unictype/categ_Nd.c: New file.
98875         * lib/unictype/categ_Nl.c: New file.
98876         * lib/unictype/categ_No.c: New file.
98877         * lib/unictype/categ_P.c: New file.
98878         * lib/unictype/categ_Pc.c: New file.
98879         * lib/unictype/categ_Pd.c: New file.
98880         * lib/unictype/categ_Pe.c: New file.
98881         * lib/unictype/categ_Pf.c: New file.
98882         * lib/unictype/categ_Pi.c: New file.
98883         * lib/unictype/categ_Po.c: New file.
98884         * lib/unictype/categ_Ps.c: New file.
98885         * lib/unictype/categ_S.c: New file.
98886         * lib/unictype/categ_Sc.c: New file.
98887         * lib/unictype/categ_Sk.c: New file.
98888         * lib/unictype/categ_Sm.c: New file.
98889         * lib/unictype/categ_So.c: New file.
98890         * lib/unictype/categ_Z.c: New file.
98891         * lib/unictype/categ_Zl.c: New file.
98892         * lib/unictype/categ_Zp.c: New file.
98893         * lib/unictype/categ_Zs.c: New file.
98894         * lib/unictype/categ_and.c: New file.
98895         * lib/unictype/categ_and_not.c: New file.
98896         * lib/unictype/categ_byname.c: New file.
98897         * lib/unictype/categ_name.c: New file.
98898         * lib/unictype/categ_none.c: New file.
98899         * lib/unictype/categ_of.c: New file.
98900         * lib/unictype/categ_or.c: New file.
98901         * lib/unictype/categ_test.c: New file.
98902         * lib/unictype/combining.c: New file.
98903         * lib/unictype/ctype_alnum.c: New file.
98904         * lib/unictype/ctype_alpha.c: New file.
98905         * lib/unictype/ctype_blank.c: New file.
98906         * lib/unictype/ctype_cntrl.c: New file.
98907         * lib/unictype/ctype_digit.c: New file.
98908         * lib/unictype/ctype_graph.c: New file.
98909         * lib/unictype/ctype_lower.c: New file.
98910         * lib/unictype/ctype_print.c: New file.
98911         * lib/unictype/ctype_punct.c: New file.
98912         * lib/unictype/ctype_space.c: New file.
98913         * lib/unictype/ctype_upper.c: New file.
98914         * lib/unictype/ctype_xdigit.c: New file.
98915         * lib/unictype/decdigit.c: New file.
98916         * lib/unictype/digit.c: New file.
98917         * lib/unictype/identsyntaxmap.h: New file.
98918         * lib/unictype/mirror.c: New file.
98919         * lib/unictype/numeric.c: New file.
98920         * lib/unictype/pr_alphabetic.c: New file.
98921         * lib/unictype/pr_ascii_hex_digit.c: New file.
98922         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98923         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98924         * lib/unictype/pr_bidi_block_separator.c: New file.
98925         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98926         * lib/unictype/pr_bidi_common_separator.c: New file.
98927         * lib/unictype/pr_bidi_control.c: New file.
98928         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98929         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98930         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98931         * lib/unictype/pr_bidi_european_digit.c: New file.
98932         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98933         * lib/unictype/pr_bidi_left_to_right.c: New file.
98934         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98935         * lib/unictype/pr_bidi_other_neutral.c: New file.
98936         * lib/unictype/pr_bidi_pdf.c: New file.
98937         * lib/unictype/pr_bidi_segment_separator.c: New file.
98938         * lib/unictype/pr_bidi_whitespace.c: New file.
98939         * lib/unictype/pr_byname.c: New file.
98940         * lib/unictype/pr_byname.gperf: New file.
98941         * lib/unictype/pr_combining.c: New file.
98942         * lib/unictype/pr_composite.c: New file.
98943         * lib/unictype/pr_currency_symbol.c: New file.
98944         * lib/unictype/pr_dash.c: New file.
98945         * lib/unictype/pr_decimal_digit.c: New file.
98946         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98947         * lib/unictype/pr_deprecated.c: New file.
98948         * lib/unictype/pr_diacritic.c: New file.
98949         * lib/unictype/pr_extender.c: New file.
98950         * lib/unictype/pr_format_control.c: New file.
98951         * lib/unictype/pr_grapheme_base.c: New file.
98952         * lib/unictype/pr_grapheme_extend.c: New file.
98953         * lib/unictype/pr_grapheme_link.c: New file.
98954         * lib/unictype/pr_hex_digit.c: New file.
98955         * lib/unictype/pr_hyphen.c: New file.
98956         * lib/unictype/pr_id_continue.c: New file.
98957         * lib/unictype/pr_id_start.c: New file.
98958         * lib/unictype/pr_ideographic.c: New file.
98959         * lib/unictype/pr_ids_binary_operator.c: New file.
98960         * lib/unictype/pr_ids_trinary_operator.c: New file.
98961         * lib/unictype/pr_ignorable_control.c: New file.
98962         * lib/unictype/pr_iso_control.c: New file.
98963         * lib/unictype/pr_join_control.c: New file.
98964         * lib/unictype/pr_left_of_pair.c: New file.
98965         * lib/unictype/pr_line_separator.c: New file.
98966         * lib/unictype/pr_logical_order_exception.c: New file.
98967         * lib/unictype/pr_lowercase.c: New file.
98968         * lib/unictype/pr_math.c: New file.
98969         * lib/unictype/pr_non_break.c: New file.
98970         * lib/unictype/pr_not_a_character.c: New file.
98971         * lib/unictype/pr_numeric.c: New file.
98972         * lib/unictype/pr_other_alphabetic.c: New file.
98973         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98974         * lib/unictype/pr_other_grapheme_extend.c: New file.
98975         * lib/unictype/pr_other_id_continue.c: New file.
98976         * lib/unictype/pr_other_id_start.c: New file.
98977         * lib/unictype/pr_other_lowercase.c: New file.
98978         * lib/unictype/pr_other_math.c: New file.
98979         * lib/unictype/pr_other_uppercase.c: New file.
98980         * lib/unictype/pr_paired_punctuation.c: New file.
98981         * lib/unictype/pr_paragraph_separator.c: New file.
98982         * lib/unictype/pr_pattern_syntax.c: New file.
98983         * lib/unictype/pr_pattern_white_space.c: New file.
98984         * lib/unictype/pr_private_use.c: New file.
98985         * lib/unictype/pr_punctuation.c: New file.
98986         * lib/unictype/pr_quotation_mark.c: New file.
98987         * lib/unictype/pr_radical.c: New file.
98988         * lib/unictype/pr_sentence_terminal.c: New file.
98989         * lib/unictype/pr_soft_dotted.c: New file.
98990         * lib/unictype/pr_space.c: New file.
98991         * lib/unictype/pr_terminal_punctuation.c: New file.
98992         * lib/unictype/pr_test.c: New file.
98993         * lib/unictype/pr_titlecase.c: New file.
98994         * lib/unictype/pr_unassigned_code_value.c: New file.
98995         * lib/unictype/pr_unified_ideograph.c: New file.
98996         * lib/unictype/pr_uppercase.c: New file.
98997         * lib/unictype/pr_variation_selector.c: New file.
98998         * lib/unictype/pr_white_space.c: New file.
98999         * lib/unictype/pr_xid_continue.c: New file.
99000         * lib/unictype/pr_xid_start.c: New file.
99001         * lib/unictype/pr_zero_width.c: New file.
99002         * lib/unictype/scripts.c: New file.
99003         * lib/unictype/sy_c_ident.c: New file.
99004         * lib/unictype/sy_c_whitespace.c: New file.
99005         * lib/unictype/sy_java_ident.c: New file.
99006         * lib/unictype/sy_java_whitespace.c: New file.
99008         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99009         Unicode 5.0.0.
99010         * lib/unictype/blocks.h: Likewise.
99011         * lib/unictype/categ_C.h: Likewise.
99012         * lib/unictype/categ_Cc.h: Likewise.
99013         * lib/unictype/categ_Cf.h: Likewise.
99014         * lib/unictype/categ_Cn.h: Likewise.
99015         * lib/unictype/categ_Co.h: Likewise.
99016         * lib/unictype/categ_Cs.h: Likewise.
99017         * lib/unictype/categ_L.h: Likewise.
99018         * lib/unictype/categ_Ll.h: Likewise.
99019         * lib/unictype/categ_Lm.h: Likewise.
99020         * lib/unictype/categ_Lo.h: Likewise.
99021         * lib/unictype/categ_Lt.h: Likewise.
99022         * lib/unictype/categ_Lu.h: Likewise.
99023         * lib/unictype/categ_M.h: Likewise.
99024         * lib/unictype/categ_Mc.h: Likewise.
99025         * lib/unictype/categ_Me.h: Likewise.
99026         * lib/unictype/categ_Mn.h: Likewise.
99027         * lib/unictype/categ_N.h: Likewise.
99028         * lib/unictype/categ_Nd.h: Likewise.
99029         * lib/unictype/categ_Nl.h: Likewise.
99030         * lib/unictype/categ_No.h: Likewise.
99031         * lib/unictype/categ_P.h: Likewise.
99032         * lib/unictype/categ_Pc.h: Likewise.
99033         * lib/unictype/categ_Pd.h: Likewise.
99034         * lib/unictype/categ_Pe.h: Likewise.
99035         * lib/unictype/categ_Pf.h: Likewise.
99036         * lib/unictype/categ_Pi.h: Likewise.
99037         * lib/unictype/categ_Po.h: Likewise.
99038         * lib/unictype/categ_Ps.h: Likewise.
99039         * lib/unictype/categ_S.h: Likewise.
99040         * lib/unictype/categ_Sc.h: Likewise.
99041         * lib/unictype/categ_Sk.h: Likewise.
99042         * lib/unictype/categ_Sm.h: Likewise.
99043         * lib/unictype/categ_So.h: Likewise.
99044         * lib/unictype/categ_Z.h: Likewise.
99045         * lib/unictype/categ_Zl.h: Likewise.
99046         * lib/unictype/categ_Zp.h: Likewise.
99047         * lib/unictype/categ_Zs.h: Likewise.
99048         * lib/unictype/categ_of.h: Likewise.
99049         * lib/unictype/combining.h: Likewise.
99050         * lib/unictype/ctype_alnum.h: Likewise.
99051         * lib/unictype/ctype_alpha.h: Likewise.
99052         * lib/unictype/ctype_blank.h: Likewise.
99053         * lib/unictype/ctype_cntrl.h: Likewise.
99054         * lib/unictype/ctype_digit.h: Likewise.
99055         * lib/unictype/ctype_graph.h: Likewise.
99056         * lib/unictype/ctype_lower.h: Likewise.
99057         * lib/unictype/ctype_print.h: Likewise.
99058         * lib/unictype/ctype_punct.h: Likewise.
99059         * lib/unictype/ctype_space.h: Likewise.
99060         * lib/unictype/ctype_upper.h: Likewise.
99061         * lib/unictype/ctype_xdigit.h: Likewise.
99062         * lib/unictype/decdigit.h: Likewise.
99063         * lib/unictype/digit.h: Likewise.
99064         * lib/unictype/mirror.h: Likewise.
99065         * lib/unictype/numeric.h: Likewise.
99066         * lib/unictype/pr_alphabetic.h: Likewise.
99067         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99068         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99069         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99070         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99071         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99072         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99073         * lib/unictype/pr_bidi_control.h: Likewise.
99074         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99075         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99076         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99077         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99078         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99079         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99080         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99081         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99082         * lib/unictype/pr_bidi_pdf.h: Likewise.
99083         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99084         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99085         * lib/unictype/pr_combining.h: Likewise.
99086         * lib/unictype/pr_composite.h: Likewise.
99087         * lib/unictype/pr_currency_symbol.h: Likewise.
99088         * lib/unictype/pr_dash.h: Likewise.
99089         * lib/unictype/pr_decimal_digit.h: Likewise.
99090         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99091         * lib/unictype/pr_deprecated.h: Likewise.
99092         * lib/unictype/pr_diacritic.h: Likewise.
99093         * lib/unictype/pr_extender.h: Likewise.
99094         * lib/unictype/pr_format_control.h: Likewise.
99095         * lib/unictype/pr_grapheme_base.h: Likewise.
99096         * lib/unictype/pr_grapheme_extend.h: Likewise.
99097         * lib/unictype/pr_grapheme_link.h: Likewise.
99098         * lib/unictype/pr_hex_digit.h: Likewise.
99099         * lib/unictype/pr_hyphen.h: Likewise.
99100         * lib/unictype/pr_id_continue.h: Likewise.
99101         * lib/unictype/pr_id_start.h: Likewise.
99102         * lib/unictype/pr_ideographic.h: Likewise.
99103         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99104         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99105         * lib/unictype/pr_ignorable_control.h: Likewise.
99106         * lib/unictype/pr_iso_control.h: Likewise.
99107         * lib/unictype/pr_join_control.h: Likewise.
99108         * lib/unictype/pr_left_of_pair.h: Likewise.
99109         * lib/unictype/pr_line_separator.h: Likewise.
99110         * lib/unictype/pr_logical_order_exception.h: Likewise.
99111         * lib/unictype/pr_lowercase.h: Likewise.
99112         * lib/unictype/pr_math.h: Likewise.
99113         * lib/unictype/pr_non_break.h: Likewise.
99114         * lib/unictype/pr_not_a_character.h: Likewise.
99115         * lib/unictype/pr_numeric.h: Likewise.
99116         * lib/unictype/pr_other_alphabetic.h: Likewise.
99117         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99118         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99119         * lib/unictype/pr_other_id_continue.h: Likewise.
99120         * lib/unictype/pr_other_id_start.h: Likewise.
99121         * lib/unictype/pr_other_lowercase.h: Likewise.
99122         * lib/unictype/pr_other_math.h: Likewise.
99123         * lib/unictype/pr_other_uppercase.h: Likewise.
99124         * lib/unictype/pr_paired_punctuation.h: Likewise.
99125         * lib/unictype/pr_paragraph_separator.h: Likewise.
99126         * lib/unictype/pr_pattern_syntax.h: Likewise.
99127         * lib/unictype/pr_pattern_white_space.h: Likewise.
99128         * lib/unictype/pr_private_use.h: Likewise.
99129         * lib/unictype/pr_punctuation.h: Likewise.
99130         * lib/unictype/pr_quotation_mark.h: Likewise.
99131         * lib/unictype/pr_radical.h: Likewise.
99132         * lib/unictype/pr_sentence_terminal.h: Likewise.
99133         * lib/unictype/pr_soft_dotted.h: Likewise.
99134         * lib/unictype/pr_space.h: Likewise.
99135         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99136         * lib/unictype/pr_titlecase.h: Likewise.
99137         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99138         * lib/unictype/pr_unified_ideograph.h: Likewise.
99139         * lib/unictype/pr_uppercase.h: Likewise.
99140         * lib/unictype/pr_variation_selector.h: Likewise.
99141         * lib/unictype/pr_white_space.h: Likewise.
99142         * lib/unictype/pr_xid_continue.h: Likewise.
99143         * lib/unictype/pr_xid_start.h: Likewise.
99144         * lib/unictype/pr_zero_width.h: Likewise.
99145         * lib/unictype/scripts.h: Likewise.
99146         * lib/unictype/scripts_byname.gperf: Likewise.
99147         * lib/unictype/sy_c_ident.h: Likewise.
99148         * lib/unictype/sy_c_whitespace.h: Likewise.
99149         * lib/unictype/sy_java_ident.h: Likewise.
99150         * lib/unictype/sy_java_whitespace.h: Likewise.
99152         * lib/unictype/Makefile: New file.
99153         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99154         glibc.
99155         * lib/unictype/3level.h: New file, copied from glibc.
99156         * lib/unictype/3levelbit.h: New file.
99158 2007-11-11  Bruno Haible  <bruno@clisp.org>
99160         * modules/gperf: New file.
99161         * modules/iconv_open (Depends-on): Add it.
99162         (Makefile.am): Remove the GPERF definition.
99164 2007-11-11  Bruno Haible  <bruno@clisp.org>
99166         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99167         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99169 2007-11-11  Bruno Haible  <bruno@clisp.org>
99171         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99172         (usage): Remove function.
99174 2007-11-11  Bruno Haible  <bruno@clisp.org>
99176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99177         gl_FUNC_CEILF_LIBS.
99178         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99179         gl_FUNC_CEIL_LIBS.
99180         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99181         gl_FUNC_CEILL_LIBS.
99182         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99183         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99184         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99186 2007-11-11  Bruno Haible  <bruno@clisp.org>
99188         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99189         roundf were declared but do not exist on functions.
99190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99191         roundl were declared but do not exist on functions.
99192         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99193         HAVE_FLOORL_AND_CEILL, respectively.
99194         Needed for Sun C on Solaris 10.
99196 2007-11-11  Bruno Haible  <bruno@clisp.org>
99198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99199         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99200         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99201         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99202         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99203         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99204         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99205         HAVE_DECL_ROUNDF.
99206         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99207         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99209         of HAVE_DECL_ROUND*.
99210         * modules/math (Makefile.am): Update.
99212 2007-11-10  Bruno Haible  <bruno@clisp.org>
99214         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99215         ptrdiff_t as m4/intl.m4.
99217 2007-11-10  Jim Meyering  <meyering@redhat.com>
99219         Avoid link failure for the argmatch test.
99220         * tests/test-argmatch.c (usage): Define function to avoid a link
99221         failure: argmatch_die requires a usage function.
99223 2007-11-09  Bruno Haible  <bruno@clisp.org>
99225         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99226         * doc/functions/vsnprintf.texi: Likewise.
99227         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99228         with a size argument < 2.
99230 2007-11-09  Bruno Haible  <bruno@clisp.org>
99232         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99233         buffer. Fixes an inefficiency introduced on 2007-11-03.
99235 2007-11-09  Bruno Haible  <bruno@clisp.org>
99237         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99238         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99240 2007-11-08  Jim Meyering  <meyering@redhat.com>
99242         Change cache variable name prefix "jm_" to "gl_" everywhere.
99243         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99244         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99245         * m4/uptime.m4: s/gl_/jm_/
99247 2007-11-07  Bruno Haible  <bruno@clisp.org>
99249         Update to GNU gettext 0.17.
99250         * m4/intl.m4: Update to GNU gettext 0.17.
99251         * m4/po.m4: Likewise.
99252         * modules/gettext (Files): Remove m4/ulonglong.m4.
99253         (configure.ac): Require gettext infrastructure from version 0.17.
99255 2007-11-06  Bruno Haible  <bruno@clisp.org>
99257         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99258         symbolic values are not defined in a public header.
99259         * lib/freadable.c (freadable) [QNX]: Likewise.
99260         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99261         * lib/freading.c (freading) [QNX]: Likewise.
99262         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99263         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99264         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99265         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99266         Reported by Alain Magloire.
99268         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99270 2007-11-05  Bruno Haible  <bruno@clisp.org>
99272         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99273         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99274         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99275         Reported by Eric Blake.
99277 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99278             Bruno Haible  <bruno@clisp.org>
99280         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99281         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99282         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99283         (malloc): Undefine also before including <stdlib.h>.
99284         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99285         Needed on OSF/1 4.0.
99287 2007-11-05  Jim Meyering  <meyering@redhat.com>
99289         git-version-gen: sync from coreutils.
99290         * build-aux/git-version-gen: Add comments.
99291         Change the first '-' to '.' in the snapshot version string,
99292         e.g., 6.9-377-08144 -> 6.9.377-08144
99293         Remove first parameter.
99294         Don't declare a version "-dirty" merely because a time
99295         stamp has changed.
99297 2007-11-04  Bruno Haible  <bruno@clisp.org>
99299         * lib/lock.h: Protect all macro definitions containing an 'if'
99300         statement through a "do { ... } while (0)".
99301         * lib/tls.h: Likewise.
99303 2007-11-04  Bruno Haible  <bruno@clisp.org>
99305         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99307 2007-11-04  Bruno Haible  <bruno@clisp.org>
99309         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99310         * modules/fprintf-posix (Depends-on): Add nocrash.
99311         * modules/snprintf-posix (Depends-on): Likewise.
99312         * modules/sprintf-posix (Depends-on): Likewise.
99313         * modules/vasnprintf-posix (Depends-on): Likewise.
99314         * modules/vasprintf-posix (Depends-on): Likewise.
99315         * modules/vfprintf-posix (Depends-on): Likewise.
99316         * modules/vsnprintf-posix (Depends-on): Likewise.
99317         * modules/vsprintf-posix (Depends-on): Likewise.
99318         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99319         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99320         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99321         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99322         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99323         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99324         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99326 2007-11-04  Bruno Haible  <bruno@clisp.org>
99328         * modules/nocrash: New file.
99329         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99330         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99332 2007-11-04  Bruno Haible  <bruno@clisp.org>
99334         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99335         precision handling.
99336         * tests/test-vasprintf-posix.c (test_function): Likewise.
99337         * tests/test-snprintf-posix.h (test_function): Likewise.
99338         * tests/test-sprintf-posix.h (test_function): Likewise.
99340         Fix *printf behaviour for large precisions on mingw and BeOS.
99341         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99342         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99344         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99346         gl_PRINTF_PRECISION and test its result. Invoke
99347         gl_PREREQ_VASNPRINTF_PRECISION.
99348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99355         * doc/functions/fprintf.texi: Update.
99356         * doc/functions/printf.texi: Update.
99357         * doc/functions/snprintf.texi: Update.
99358         * doc/functions/sprintf.texi: Update.
99359         * doc/functions/vfprintf.texi: Update.
99360         * doc/functions/vprintf.texi: Update.
99361         * doc/functions/vsnprintf.texi: Update.
99362         * doc/functions/vsprintf.texi: Update.
99364 2007-11-04  Bruno Haible  <bruno@clisp.org>
99366         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99368 2007-11-04  Bruno Haible  <bruno@clisp.org>
99370         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99371         Reported by Sylvain Beucler <beuc@gnu.org>.
99373 2007-11-03  Bruno Haible  <bruno@clisp.org>
99375         * tests/test-fprintf-posix2.sh: New file.
99376         * tests/test-fprintf-posix2.c: New file.
99377         * modules/fprintf-posix-tests (Files): Add them.
99378         (TESTS): Add test-fprintf-posix2.sh.
99379         (configure.ac): Check for getrlimit and setrlimit.
99380         (check_PROGRAMS): Add test-fprintf-posix2.
99382         * tests/test-printf-posix2.sh: New file.
99383         * tests/test-printf-posix2.c: New file.
99384         * modules/printf-posix-tests (Files): Add them.
99385         (TESTS): Add test-printf-posix2.sh.
99386         (configure.ac): Check for getrlimit and setrlimit.
99387         (check_PROGRAMS): Add test-printf-posix2.
99389         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99390         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99391         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99392         (decode_double): New function, copied from decode_long_double.
99393         (scale10_round_decimal_decoded): New function, extracted from
99394         scale10_round_decimal_long_double.
99395         (scale10_round_decimal_long_double): Use it.
99396         (scale10_round_decimal_double): New function.
99397         (floorlog10): New function.
99398         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99400         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99401         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99402         gl_PRINTF_ENOMEM and test its result. Invoke
99403         gl_PREREQ_VASNPRINTF_ENOMEM.
99404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99406         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99408         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99410         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99411         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99412         * modules/snprintf-posix (Depends-on): Likewise.
99413         * modules/sprintf-posix (Depends-on): Likewise.
99414         * modules/vasnprintf-posix (Depends-on): Likewise.
99415         * modules/vasprintf-posix (Depends-on): Likewise.
99416         * modules/vfprintf-posix (Depends-on): Likewise.
99417         * modules/vsnprintf-posix (Depends-on): Likewise.
99418         * modules/vsprintf-posix (Depends-on): Likewise.
99419         * doc/functions/fprintf.texi: Update.
99420         * doc/functions/printf.texi: Update.
99421         * doc/functions/snprintf.texi: Update.
99422         * doc/functions/sprintf.texi: Update.
99423         * doc/functions/vfprintf.texi: Update.
99424         * doc/functions/vprintf.texi: Update.
99425         * doc/functions/vsnprintf.texi: Update.
99426         * doc/functions/vsprintf.texi: Update.
99428 2007-11-03  Bruno Haible  <bruno@clisp.org>
99430         * modules/frexp-nolibm-tests: New file.
99432         * modules/frexp-nolibm: New file.
99433         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99435 2007-11-03  Bruno Haible  <bruno@clisp.org>
99437         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99438         value is C99 compliant.
99439         Needed for OSF/1 5.1.
99441 2007-11-03  Bruno Haible  <bruno@clisp.org>
99443         Fix out-of-memory handling of vasnprintf.
99444         * lib/printf-parse.c: Include <errno.h>.
99445         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99446         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99447         is already set.
99449 2007-11-02  Eric Blake  <ebb9@byu.net>
99451         Fix tests on cygwin.
99452         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99454 2007-11-01  Bruno Haible  <bruno@clisp.org>
99456         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99457         warning.
99458         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99459         needed for POSIX compatibility.
99461 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99463         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99464         for compatibility with GNU.
99466 2007-11-01  Bruno Haible  <bruno@clisp.org>
99468         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99469         (putenv): Renamed from rpl_putenv. Change argument type from
99470         'const char *' to 'char *'.
99471         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99472         of defining putenv in config.h, just set REPLACE_PUTENV.
99473         * modules/putenv (Depends-on): Add stdlib.
99474         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99475         (Include): Use <stdlib.h>.
99476         * lib/stdlib.in.h (putenv): New declaration.
99477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99478         REPLACE_PUTENV.
99479         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99480         REPLACE_PUTENV.
99481         Needed for MacOS X 10.5.0.
99482         Reported by Peter O'Gorman <peter@pogma.com>.
99484 2007-11-01  Jim Meyering  <meyering@redhat.com>
99486         Treat an empty date string exactly like "0".
99487         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99488         if the remaining date string (to be parsed) is empty, use "0".
99489         Reported by Mischa Molhoek and discussed in this thread:
99490         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99492 2007-10-31  Bruno Haible  <bruno@clisp.org>
99494         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99495         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99496         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99497         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99498         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99499         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99501 2007-10-31  Bruno Haible  <bruno@clisp.org>
99503         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99504         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99505         (AC_TYPE_LONG_LONG_INT): Use it.
99506         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99507         it as well.
99508         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99509         to m4/longlong.m4.
99510         * modules/stdint (Files): Remove m4/ulonglong.m4.
99511         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99512         m4/ulonglong.m4.
99513         * modules/strtoumax (Files): Likewise.
99515 2007-10-30  Bruno Haible  <bruno@clisp.org>
99517         * modules/xvasprintf-posix: New file.
99518         Suggested by Eric Blake.
99520 2007-10-30  Bruno Haible  <bruno@clisp.org>
99522         * modules/xprintf-posix-tests: New file.
99523         * tests/test-xprintf-posix.sh: New file.
99524         * tests/test-xprintf-posix.c: New file.
99525         * tests/test-xfprintf-posix.c: New file.
99527         * modules/xprintf-posix: New file.
99529 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99531         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99532         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99533         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99535 2007-10-29  Bruno Haible  <bruno@clisp.org>
99537         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99538         contain the special marker '_cv_'.
99539         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99540         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99541         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99542         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99543         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99544         Reported by Ralf Wildenhues.
99546 2007-10-29  Bruno Haible  <bruno@clisp.org>
99548         * gnulib-tool (func_import): When --lgpl is not specified, set
99549         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99550         GPLv3.
99551         Reported by Simon Josefsson.
99553 2007-10-28  Bruno Haible  <bruno@clisp.org>
99555         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99556         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99557         HAVE_DECL_ISFINITE.
99558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99559         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99560         HAVE_DECL_ISFINITE.
99562 2007-10-28  Bruno Haible  <bruno@clisp.org>
99564         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99565         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99567 2007-10-28  Bruno Haible  <bruno@clisp.org>
99569         Fix link errors with Sun C 5.0 on Solaris 10.
99570         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99571         function is declared but not present in the compiler's libm.
99572         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99573         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99574         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99575         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99576         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99577         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99578         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99580         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99581         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99582         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99583         HAVE_DECL_FLOORL.
99585 2007-10-28  Bruno Haible  <bruno@clisp.org>
99587         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99588         gl_FUNC_FLOORL. Cache the result.
99589         (gl_FUNC_FLOORL): Use it.
99590         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99591         gl_FUNC_CEILL. Cache the result.
99592         (gl_FUNC_CEILL): Use it.
99594         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99595         gl_FUNC_FLOOR. Cache the result.
99596         (gl_FUNC_FLOOR): Use it.
99597         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99598         gl_FUNC_CEIL. Cache the result.
99599         (gl_FUNC_CEIL): Use it.
99601         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99602         gl_FUNC_FLOORF. Cache the result.
99603         (gl_FUNC_FLOORF): Use it.
99604         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99605         gl_FUNC_CEILF. Cache the result.
99606         (gl_FUNC_CEILF): Use it.
99608 2007-10-28  Bruno Haible  <bruno@clisp.org>
99610         * gnulib-tool: Allow specifying the LGPL version number through
99611         --lgpl=2 or --lgpl=3.
99612         (func_usage): Document --lgpl with argument.
99613         Handle --lgpl=... arguments.
99614         (func_import): Recognize also gl_LGPL calls with an argument. When
99615         --lgpl=2 is used and the module's license is just LGPL, report an
99616         error. Set sed_transform_lib_file according to the lgpl variable. In
99617         the generated files, use --lgpl or gl_LGPL invocations with argument,
99618         if necessary.
99619         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99620         an LGPv2+ license.
99621         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99622         gl_LGPL macro.
99624 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99625             Bruno Haible  <bruno@clisp.org>
99627         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99628         (u16_uctomb_aux): Likewise.
99629         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99630         !HAVE_INLINE.
99631         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99633 2007-10-28  Bruno Haible  <bruno@clisp.org>
99635         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99636         Invoke AM_GETTEXT_OPTION if it exists.
99637         * modules/vasprintf: Likewise.
99638         * modules/verror: Likewise.
99639         * modules/xprintf: Likewise.
99640         * modules/xvasprintf: Likewise.
99642 2007-10-27  Ben Pfaff  <blp@gnu.org>
99644         * lib/math.in.h: Define isfinite macro and prototypes for
99645         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99646         implementations.
99647         * m4/math_h.m4: New substitutions for isfinite module.
99648         * lib/isfinite.c: New file.
99649         * m4/isfinite.m4: New file.
99650         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99651         * modules/isfinite: New file.
99652         * modules/isfinite-tests: New file.
99653         * tests/tests-isfinite.c: New file.
99654         * doc/functions/isfinite.texi: Mention isfinite module.
99655         * MODULES.html.sh: Mention new module.
99657 2007-10-27  Ben Pfaff  <blp@gnu.org>
99659         Ralf Wildenhues reported that Tru64 4.0D declares the round
99660         functions but does not have definitions.
99661         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99662         cannot be found in any library, set the output variable to
99663         "missing" instead of "".
99664         * m4/round.m4: Also use our substitute if we cannot find round in
99665         any library, even if it is declared.
99666         * m4/roundf.m4: Likewise for roundf.
99667         * m4/roundl.m4: Likewise for roundl.
99668         * lib/math.in.h: Undefine roundf, round, roundl before defining
99669         their replacements, to allow for hypothetical systems where these
99670         may be defined as macros but not available in libraries.
99672 2007-10-27  Bruno Haible  <bruno@clisp.org>
99674         * doc/gnulib.texi: Invoke @firstparagraphindent.
99675         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99676         changes in gnulib.
99677         (Source changes): New section.
99679 2007-10-26  Bruno Haible  <bruno@clisp.org>
99681         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99682         borrowed from autoconf.
99684 2007-10-26  Bruno Haible  <bruno@clisp.org>
99686         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99687         strerror returned the empty string. Needed on HP-UX 11.00.
99689 2007-10-24  Micah Cowan  <micah@cowan.name>
99691         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99692         * build-aux/bootstrap: Remove support for now-unnecessary option,
99693         --cvs-user, and envvars CVS_USER, CVS_RSH.
99695 2007-10-24  Jim Meyering  <meyering@redhat.com>
99697         Avoid diagnostics from sha1sum when there is no cached checksum.
99698         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99699         if the po.s1 file hasn't been created yet.
99701         * build-aux/bootstrap: Sync from coreutils:
99702         2007-10-24  Jim Meyering  <meyering@redhat.com>
99703         Get gnulib from the git repository, not from an obsolete cvs one.
99704         * build-aux/bootstrap: Suggestion from Micah Cowan.
99705         2007-10-04  Jim Meyering  <jim@meyering.net>
99706         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99707         (update_po_files): Work also when there are no .po files in po/.
99709 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99711         * README: Append ".git" to git and cg examples.
99712         Problem reported by Benoit Sigoure.
99714 2007-10-23  Micah Cowan  <micah@cowan.name>
99716         * users.txt: Add wget.
99718 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99720         Fix linking of some unistdio tests on FreeBSD.
99721         * modules/unistdio/u16-vsnprintf-tests
99722         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99723         * modules/unistdio/u16-vsprintf-tests
99724         (test_u16_vsnprintf1_LDADD): Likewise.
99725         * modules/unistdio/u32-vsnprintf-tests
99726         (test_u32_vsnprintf1_LDADD): Likewise.
99727         * modules/unistdio/u32-vsprintf-tests
99728         (test_u32_vsprintf1_LDADD): Likewise.
99729         * modules/unistdio/u8-vsnprintf-tests
99730         (test_u8_vsnprintf1_LDADD): Likewise.
99731         * modules/unistdio/u8-vsprintf-tests
99732         (test_u8_vsprintf1_LDADD): Likewise.
99733         * modules/unistdio/ulc-vsnprintf-tests
99734         (test_ulc_vsnprintf1_LDADD): Likewise.
99735         * modules/unistdio/ulc-vsprintf-tests
99736         (test_ulc_vsprintf1_LDADD): Likewise.
99738         Fix linking of some uniconv tests on FreeBSD.
99739         * modules/uniconv/u16-conv-from-enc-tests
99740         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99741         * modules/uniconv/u16-conv-to-enc-tests
99742         (test_u16_conv_to_enc_LDADD): Likewise.
99743         * modules/uniconv/u16-strconv-from-enc-tests
99744         (test_u16_strconv_from_enc_LDADD): Likewise.
99745         * modules/uniconv/u16-strconv-to-enc-tests
99746         (test_u16_strconv_to_enc_LDADD): Likewise.
99747         * modules/uniconv/u32-conv-from-enc-tests
99748         (test_u32_conv_from_enc_LDADD): Likewise.
99749         * modules/uniconv/u32-conv-to-enc-tests
99750         (test_u32_conv_to_enc_LDADD): Likewise.
99751         * modules/uniconv/u32-strconv-from-enc-tests
99752         (test_u32_strconv_from_enc_LDADD): Likewise.
99753         * modules/uniconv/u32-strconv-to-enc-tests
99754         (test_u32_strconv_to_enc_LDADD): Likewise.
99755         * modules/uniconv/u8-conv-from-enc-tests
99756         (test_u8_conv_from_enc_LDADD): Likewise.
99757         * modules/uniconv/u8-conv-to-enc-tests
99758         (test_u8_conv_to_enc_LDADD): Likewise.
99759         * modules/uniconv/u8-strconv-from-enc-tests
99760         (test_u8_strconv_from_enc_LDADD): Likewise.
99761         * modules/uniconv/u8-strconv-to-enc-tests
99762         (test_u8_strconv_to_enc_LDADD): Likewise.
99764 2007-10-22  Bruno Haible  <bruno@clisp.org>
99766         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99767         size.
99769 2007-10-22  Eric Blake  <ebb9@byu.net>
99771         Tweak x*printf documentation.
99772         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99773         variable name and comments.
99774         Suggested by Bruno Haible.
99776 2007-10-22  Bruno Haible  <bruno@clisp.org>
99778         * lib/acl.c (copy_acl): Fix file name in comment.
99780 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99782         Fix Tru64 problem with stdbool.h.
99783         * lib/stdbool.in.h (false, true):
99784         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99785         Don't declare as an enum in this situation; it runs afoul of Tru64.
99786         Problem reported by Steven M. Schweda in
99787         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99789 2007-10-22  Eric Blake  <ebb9@byu.net>
99791         Also wrap vf?printf.
99792         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99793         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99794         (xvprintf, xvfprintf): New functions.
99796 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99798         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99799         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99801         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99802         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99804 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99806         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99807         by Bruno Haible.
99809 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99811         * lib/getloadavg.c
99812         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99813         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99815         * tests/test-i-ring.c: Work for C89.
99817 2007-10-22  Bruno Haible  <bruno@clisp.org>
99819         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99820         -1u, in preprocessor expression, so that we don't test for the bug
99821         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99822         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99824 2007-10-22  Eric Blake  <ebb9@byu.net>
99826         * tests/test-yesno.sh: Silence stderr during test.
99828 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99830         * modules/crypto/gc-camellia: New file.
99832         * m4/gc-camellia.m4: New file.
99834         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99836         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99838 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99840         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99841         --help to stdout.  Reported by sms@antinode.org (Steven
99842         M. Schweda).
99844 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99846         * users.txt: Fix link to libksba.
99848 2007-10-21  Ben Pfaff  <blp@gnu.org>
99850         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99851         round.c roundf implementation that depends on floorf and ceilf to
99852         be tested unconditionally.
99854 2007-10-21  Ben Pfaff  <blp@gnu.org>
99856         * m4/check-libm-func.m4: Removed.
99857         * m4/check-math-lib.m4: New file.
99858         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99859         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99860         definition and lack of AC_LIBOBJ([roundf]).
99861         * m4/roundl.m4: Ditto, and similarly for roundl.
99862         * modules/round: Reference new m4 file.
99863         * modules/roundf: Ditto.
99864         * modules/roundl: Ditto.
99865         * tests/test-round2.c (main): Use ROUND instead of round.
99866         Bug report from Bruno Haible.
99868 2007-10-21  Bruno Haible  <bruno@clisp.org>
99870         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99871         context.
99873 2007-10-21  Bruno Haible  <bruno@clisp.org>
99875         * tests/test-wcwidth.c (main): Allow negative result for some control
99876         characters.
99878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99879         Needed on OSF/1 5.1.
99881 2007-10-21  Bruno Haible  <bruno@clisp.org>
99883         * tests/test-floorf1.c: Include isnanf.h.
99884         (main): Use isnanf() instead of isnan().
99885         * tests/test-ceilf1.c: Include isnanf.h.
99886         (main): Use isnanf() instead of isnan().
99887         * tests/test-truncf1.c: Include isnanf.h.
99888         (main): Use isnanf() instead of isnan().
99889         * tests/test-roundf1.c: Include isnanf.h.
99890         (main): Use isnanf() instead of isnan().
99892 2007-10-21  Eric Blake  <ebb9@byu.net>
99894         * users.txt: Update URL for m4.
99896 2007-10-21  Bruno Haible  <bruno@clisp.org>
99898         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99900 2007-10-21  Bruno Haible  <bruno@clisp.org>
99902         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99903         Git's management files if the CVS files are not present.
99905 2007-10-20  Bruno Haible  <bruno@clisp.org>
99907         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99908         gcc-3.4.x.
99910 2007-10-20  Ben Pfaff  <blp@gnu.org>
99912         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99913         implementations.
99914         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99915         * lib/round.c: New file.
99916         * lib/roundf.c: New file.
99917         * lib/roundl.c: New file.
99918         * m4/round.m4: New file.
99919         * m4/roundf.m4: New file.
99920         * m4/roundl.m4: New file.
99921         * m4/check-libm-func-m4: New file.
99922         * modules/math: Replace round, roundf, roundl related @VARS@ in
99923         math.in.h.
99924         * modules/round: New file.
99925         * modules/round-tests: New file.
99926         * modules/roundf: New file.
99927         * modules/roundf-tests: New file.
99928         * modules/roundl: New file.
99929         * modules/roundl-tests: New file.
99930         * tests/test-round1.c: New file.
99931         * tests/test-round2.c: New file.
99932         * tests/test-roundf1.c: New file.
99933         * tests/test-roundf2.c: New file.
99934         * tests/test-roundl.c: New file.
99935         * doc/functions/round.texi: Mention round module.
99936         * doc/functions/roundf.texi: Mention roundf module.
99937         * doc/functions/roundl.texi: Mention roundl module.
99938         * MODULES.html.sh: Mention new modules.
99939         Thanks to Bruno Haible for suggestions.
99941 2007-10-20  Jim Meyering  <meyering@redhat.com>
99943         * lib/xprintf.c: Include <config.h> unconditionally.
99945         Change xprintf's license to GPL.
99946         * modules/xprintf (License): s/LGPL/GPL/, since this module
99947         depends on modules (exit and exitfail) which are GPL.
99948         Suggestion from Bruno Haible.
99950         xprintf fixes.
99951         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99952         Use a clearer diagnostic.
99953         Patch from Bruno Haible.
99955 2007-10-20  Bruno Haible  <bruno@clisp.org>
99957         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99958         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99961 2007-10-20  Bruno Haible  <bruno@clisp.org>
99963         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99964         precision in the comparison result > x - 1 or similar.
99965         * tests/test-ceilf2.c (correct_result_p): Likewise.
99966         * tests/test-truncf2.c (correct_result_p): Likewise.
99967         * tests/test-trunc2.c (correct_result_p): Likewise.
99968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99970 2007-10-20  Bruno Haible  <bruno@clisp.org>
99972         * modules/ceil: New file.
99973         * m4/ceil.m4: New file.
99974         * doc/functions/ceil.texi: Mention the 'ceil' module.
99976 2007-10-20  Bruno Haible  <bruno@clisp.org>
99978         * modules/floor: New file.
99979         * m4/floor.m4: New file.
99980         * doc/functions/floor.texi: Mention the 'floor' module.
99982 2007-10-20  Bruno Haible  <bruno@clisp.org>
99984         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99985         of %a.
99986         * modules/floorf-tests (Depends-on): Likewise.
99987         * modules/truncf-tests (Depends-on): Likewise.
99988         * modules/trunc-tests (Depends-on): Likewise.
99989         Reported by Ben Pfaff.
99991 2007-10-19  Jim Meyering  <meyering@redhat.com>
99993         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99994         Don't bother testing specific errno values.  Just test ferror.
99996         New module: xprintf
99997         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99999 2007-10-19  Bruno Haible  <bruno@clisp.org>
100001         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100002         syntax.
100003         * modules/javaexec (Makefile.am): Likewise.
100004         * modules/relocatable-prog (Makefile.am): Likewise.
100005         Suggested by Jim Meyering.
100007 2007-10-18  Bruno Haible  <bruno@clisp.org>
100009         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100010         Reported by Jim Meyering.
100012 2007-10-18  Eric Blake  <ebb9@byu.net>
100014         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100016 2007-10-18  Bruno Haible  <bruno@clisp.org>
100018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100019         the format string into writable memory. Needed in Fortify conditions.
100021 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100022             Bruno Haible  <bruno@clisp.org>
100024         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100025         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100026         * modules/trim (Depends-on): Add mbchar.
100027         (configure.ac): Add gl_FUNC_MBRTOWC.
100028         (Makefile.am): Augment lib_SOURCES.
100030 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100032         Modify glob.c to use fstatat and dirfd, to simplify it.
100033         Suggested by Eric Blake.
100034         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100035         Don't include <stdbool.h>; not used.
100036         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100037         (link_exists_p): Simplify implementation, since we can now assume
100038         dirfd and fstatat.
100039         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100041 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100043         * gnulib-tool (func_get_dependencies): Fix sed script to
100044         match only tests.
100046 2007-10-17  Bruno Haible  <bruno@clisp.org>
100048         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100049         allow locale names without encoding suffix.
100050         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100051         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100053 2007-10-16  Bruno Haible  <bruno@clisp.org>
100055         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100056         * lib/getgroups.c (getgroups): Likewise.
100057         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100059 2007-10-16  Bruno Haible  <bruno@clisp.org>
100061         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100062         * modules/malloc-posix (License): Likewise.
100063         * modules/realloc-posix (License): Likewise.
100064         * modules/calloc-posix (License): Likewise.
100065         * modules/intprops (License): Change from GPL to LGPL, with
100066         Paul Eggert's approval.
100068 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100070         Merge glibc changes into lib/glob.c.
100072         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100073         2007-10-15 04:59:03 UTC.  Here are the changes:
100075         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100077         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100079         * lib/glob.c: Add some branch prediction throughout.
100081         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100083         [BZ #5103]
100084         * lib/glob.c (glob): Recognize patterns starting \/.
100086         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100088         [BZ #3996]
100089         * lib/glob.c (attribute_hidden): Define if not defined.
100090         (glob): Unescape dirname, filename or username when needed and not
100091         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100092         is NULL.  Handle unescaped [ in pattern without closing ].
100093         Don't pass GLOB_CHECK down to recursive glob for directories.
100094         (__glob_pattern_type): New function.
100095         (__glob_pattern_p): Implement using __glob_pattern_type.
100096         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100097         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100098         Remove unreachable code.
100100         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100102         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100103         explain why there are no leaks.
100105         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100107         [BZ #3253]
100108         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100109         time, rather allocate increasingly bigger arrays of pointers, if
100110         possible with alloca, if too large with malloc.
100112 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100114         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100115         Problem reported by H.Merijn Brand in
100116         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100118         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100120 2007-10-15  Bruno Haible  <bruno@clisp.org>
100122         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100123         with explicit rpl_ prefix.
100124         * lib/fopen.c (fopen): Likewise.
100125         * lib/freopen.c (freopen): Likewise.
100126         * lib/iconv.c (iconv): Likewise.
100127         * lib/iconv_close.c (iconv_close): Likewise.
100129 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100131         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100133 2007-10-15  Bruno Haible  <bruno@clisp.org>
100135         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100136         <stddef.h> instead of <stdlib.h> since we only need NULL.
100137         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100139 2007-10-15  Bruno Haible  <bruno@clisp.org>
100141         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100142         Replace paragraph talking about LIBOBJS.
100143         Reported by Colin Watson <cjwatson@debian.org>.
100145 2007-10-15  Bruno Haible  <bruno@clisp.org>
100147         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100148         <stdlib.h> before using NULL.
100150 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100152         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100153         Reported by Albert Chin <china@thewrittenword.com>.
100155 2007-10-14  Bruno Haible  <bruno@clisp.org>
100157         * modules/iconv_open-utf-tests: New file.
100158         * tests/test-iconv-utf.c: New file.
100160         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100161         * modules/iconv_open-utf: New file.
100162         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100163         (iconv, iconv_close): New declarations.
100164         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100165         be defined.
100166         (iconv_open): Add special handling of conversion between UTF-8 and
100167         UTF-{16,32}{BE,LE}.
100168         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100169         * lib/iconv_close.c: New file.
100170         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100171         gl_FUNC_ICONV_OPEN.
100172         (gl_FUNC_ICONV_OPEN): Use it.
100173         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100174         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100175         and REPLACE_ICONV_UTF.
100176         * modules/iconv_open (Depends-on): Add c-strcase.
100177         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100178         ICONV_CONST.
100179         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100181 2007-10-13  Albert Chin  <china@thewrittenword.com>
100182             Bruno Haible  <bruno@clisp.org>
100184         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100185         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100187 2007-10-13  Bruno Haible  <bruno@clisp.org>
100189         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100190         defined, use the ISO C99 inline semantics.
100191         * lib/argp.h (ARGP_EI): Likewise.
100193 2007-10-13  Bruno Haible  <bruno@clisp.org>
100195         Handle 'inline' change in gcc 4.3.0.
100196         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100197         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100198         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100199         argp_fmtstream_point): Disable 'extern' declaration if the function
100200         definition is going to be provided inline.
100201         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100202         semantics, not the ISO C99 inline semantics.
100203         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100204         'extern' declaration if the function definition is going to be provided
100205         inline.
100206         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100207         the GNU C inline semantics, not the ISO C99 inline semantics. With
100208         GCC 4.2, avoid a warning.
100210 2007-10-13  Bruno Haible  <bruno@clisp.org>
100212         * lib/freading.h (freading): Enable the use of __freading for
100213         glibc >= 2.7.
100214         * lib/freading.c (freading): Likewise.
100216 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100218         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100219         "warning: C99 inline functions are not supported; using GNU89".
100221 2007-10-12  Bruno Haible  <bruno@clisp.org>
100223         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100224         of 2.
100225         * tests/test-ceilf2.c: New file.
100226         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100228         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100229         * modules/ceilf-tests: Update.
100231 2007-10-12  Bruno Haible  <bruno@clisp.org>
100233         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100234         of 2.
100235         * tests/test-floorf2.c: New file.
100236         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100238         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100239         * modules/floorf-tests: Update.
100241 2007-10-12  Bruno Haible  <bruno@clisp.org>
100243         * tests/test-trunc2.c: New file.
100244         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100246         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100247         * modules/trunc-tests: Update.
100249 2007-10-12  Bruno Haible  <bruno@clisp.org>
100251         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100252         of 2.
100253         * tests/test-truncf2.c: New file.
100254         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100256         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100257         * modules/truncf-tests: Update.
100259 2007-10-11  Eric Blake  <ebb9@byu.net>
100261         Don't claim strerror is broken on Interix.
100262         * doc/functions/strerror.texi (strerror): Known broken systems are
100263         now Solaris 8, and not Interix.
100264         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100265         Interix on cross-compile.
100266         Reported by Martin Koeppe in
100267         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100269 2007-10-11  Bruno Haible  <bruno@clisp.org>
100271         * modules/i-ring-tests: New file.
100272         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100273         instead of assert.
100275 2007-10-11  Bruno Haible  <bruno@clisp.org>
100277         * modules/filenamecat-tests: New file.
100278         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100279         * lib/filenamecat.c: Remove test code.
100281 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100283         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100285         * lib/strerror.c: Include <string.h> always, to test interface,
100286         and to remove the need for the dummy.
100287         Include intprops.h to compute width instead of doing it ourselves
100288         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100289         (strerror): Define it to return NULL if there's no system strerror.
100290         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100291         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100292         ancient pre-strerror Unix systems well any more.  Saying "unknown
100293         system error" is enough.
100294         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100295         simpler strerror.c implementation.
100296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100297         Simplify the tests to reflect the simpler strerror implementation.
100298         * modules/strerror (Depends-on): Add intprops.
100300 2007-10-09  Eric Blake  <ebb9@byu.net>
100302         Silence test-fpending.
100303         * modules/fpending-tests (Files): Add wrapper script.
100304         * tests/test-fpending.sh: New file.
100306 2007-10-09  Bruno Haible  <bruno@clisp.org>
100308         * MODULES.html.sh (func_module): Don't create a hyperlink for
100309         function names like 'printf_frexp'.
100310         (Misc): Add crc, memxor.
100311         (Characteristics of floating types): New section.
100312         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100313         isnanf-nolibm, signbit, trunc, truncf, truncl.
100314         (Enhancements for ISO C 99 functions): New subsection Input/output.
100315         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100316         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100317         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100318         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100319         (Enhancements for POSIX:2001 functions): Add chdir-long.
100320         (File system functions): Add areadlink, chdir-safer, read-file.
100321         Remove cycle-check.
100322         (File system as inode set): New section.
100323         (Date and time): Add gethrxtime.
100324         (Multithreading): Add openmp.
100325         (Internationalization functions): Add localename.
100326         (Unicode string functions): Add unistr/u*-mbsnlen.
100327         (Support for maintaining and releasing projects): Add git-version-gen.
100328         (Lone files): Remove directories.
100330 2007-10-08  Ben Pfaff  <blp@gnu.org>
100332         * lib/xmalloca.h: Fix typo in comment.
100334 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100336         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100337         when avoiding problems with integer overflow.  Use a portable test
100338         instead.
100340 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100342         * modules/dummy (License): Change to LGPLv2+.
100343         * modules/float (License): Likewise
100344         * modules/realloc (License): Likewise
100345         * modules/stdlib (License): Likewise
100347 2007-10-07  Bruno Haible  <bruno@clisp.org>
100349         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100350         * floor.c (TWO_MANT_DIG): Likewise.
100351         * ceil.c (TWO_MANT_DIG): Likewise.
100352         Reported by Ben Pfaff.
100354 2007-10-07  Bruno Haible  <bruno@clisp.org>
100356         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100357         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100358         * lib/frexp.c (FUNC): Likewise.
100359         * lib/printf-frexp.h (printf_frexp): Likewise.
100360         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100361         * lib/printf-frexp.c (FUNC): Likewise.
100362         Suggested by Jim Meyering.
100364 2007-10-07  Jim Meyering  <meyering@redhat.com>
100366         Make xnanosleep's integer overflow test more robust.
100367         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100368         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100370 2007-10-07  Bruno Haible  <bruno@clisp.org>
100372         * NEWS: Mention the license change.
100374         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100375         abbreviations in the modules files.
100377         Change copyright notice from GPLv2+ to GPLv3+.
100378         * README: Change copyright notice.
100379         * MODULES.html.sh: Likewise.
100380         * build-aux/bootstrap.conf: Likewise.
100381         * build-aux/config.libpath: Likewise.
100382         * build-aux/csharpcomp.sh.in: Likewise.
100383         * build-aux/csharpexec.sh.in: Likewise.
100384         * build-aux/install-reloc: Likewise.
100385         * build-aux/javacomp.sh.in: Likewise.
100386         * build-aux/javaexec.sh.in: Likewise.
100387         * build-aux/ldd.sh.in: Likewise.
100388         * build-aux/reloc-ldflags: Likewise.
100389         * build-aux/relocatable.sh.in: Likewise.
100390         * build-aux/x-to-1.in: Likewise.
100391         * check-module: Likewise.
100392         * config/srclistvars.sh: Likewise.
100393         * gnulib-tool: Likewise.
100394         * lib/acl-internal.h: Likewise.
100395         * lib/acl.c: Likewise.
100396         * lib/acl.h: Likewise.
100397         * lib/acl_entries.c: Likewise.
100398         * lib/areadlink-with-size.c: Likewise.
100399         * lib/areadlink.c: Likewise.
100400         * lib/areadlink.h: Likewise.
100401         * lib/argmatch.c: Likewise.
100402         * lib/argmatch.h: Likewise.
100403         * lib/argp-ba.c: Likewise.
100404         * lib/argp-eexst.c: Likewise.
100405         * lib/argp-fmtstream.c: Likewise.
100406         * lib/argp-fmtstream.h: Likewise.
100407         * lib/argp-fs-xinl.c: Likewise.
100408         * lib/argp-help.c: Likewise.
100409         * lib/argp-namefrob.h: Likewise.
100410         * lib/argp-parse.c: Likewise.
100411         * lib/argp-pin.c: Likewise.
100412         * lib/argp-pv.c: Likewise.
100413         * lib/argp-pvh.c: Likewise.
100414         * lib/argp-xinl.c: Likewise.
100415         * lib/argp.h: Likewise.
100416         * lib/at-func.c: Likewise.
100417         * lib/atanl.c: Likewise.
100418         * lib/backupfile.c: Likewise.
100419         * lib/backupfile.h: Likewise.
100420         * lib/basename.c: Likewise.
100421         * lib/binary-io.h: Likewise.
100422         * lib/byteswap.in.h: Likewise.
100423         * lib/c-stack.c: Likewise.
100424         * lib/c-stack.h: Likewise.
100425         * lib/c-strcasestr.c: Likewise.
100426         * lib/c-strcasestr.h: Likewise.
100427         * lib/c-strstr.c: Likewise.
100428         * lib/c-strstr.h: Likewise.
100429         * lib/c-strtod.c: Likewise.
100430         * lib/calloc.c: Likewise.
100431         * lib/canon-host.c: Likewise.
100432         * lib/canon-host.h: Likewise.
100433         * lib/canonicalize-lgpl.c: Likewise.
100434         * lib/canonicalize.c: Likewise.
100435         * lib/canonicalize.h: Likewise.
100436         * lib/ceil.c: Likewise.
100437         * lib/ceilf.c: Likewise.
100438         * lib/ceill.c: Likewise.
100439         * lib/chdir-long.c: Likewise.
100440         * lib/chdir-long.h: Likewise.
100441         * lib/chdir-safer.c: Likewise.
100442         * lib/chdir-safer.h: Likewise.
100443         * lib/chown.c: Likewise.
100444         * lib/classpath.c: Likewise.
100445         * lib/classpath.h: Likewise.
100446         * lib/clean-temp.c: Likewise.
100447         * lib/clean-temp.h: Likewise.
100448         * lib/cloexec.c: Likewise.
100449         * lib/close-stream.c: Likewise.
100450         * lib/closein.c: Likewise.
100451         * lib/closein.h: Likewise.
100452         * lib/closeout.c: Likewise.
100453         * lib/closeout.h: Likewise.
100454         * lib/concat-filename.c: Likewise.
100455         * lib/copy-file.c: Likewise.
100456         * lib/copy-file.h: Likewise.
100457         * lib/count-one-bits.h: Likewise.
100458         * lib/crc.c: Likewise.
100459         * lib/crc.h: Likewise.
100460         * lib/creat-safer.c: Likewise.
100461         * lib/csharpcomp.c: Likewise.
100462         * lib/csharpcomp.h: Likewise.
100463         * lib/csharpexec.c: Likewise.
100464         * lib/csharpexec.h: Likewise.
100465         * lib/cycle-check.c: Likewise.
100466         * lib/cycle-check.h: Likewise.
100467         * lib/diacrit.c: Likewise.
100468         * lib/diacrit.h: Likewise.
100469         * lib/diffseq.h: Likewise.
100470         * lib/dirchownmod.c: Likewise.
100471         * lib/dirent.in.h: Likewise.
100472         * lib/dirfd.c: Likewise.
100473         * lib/dirfd.h: Likewise.
100474         * lib/dirname.c: Likewise.
100475         * lib/dirname.h: Likewise.
100476         * lib/dummy.c: Likewise.
100477         * lib/dup-safer.c: Likewise.
100478         * lib/dup2.c: Likewise.
100479         * lib/eealloc.h: Likewise.
100480         * lib/error.c: Likewise.
100481         * lib/error.h: Likewise.
100482         * lib/euidaccess.c: Likewise.
100483         * lib/exclude.c: Likewise.
100484         * lib/exclude.h: Likewise.
100485         * lib/execute.c: Likewise.
100486         * lib/execute.h: Likewise.
100487         * lib/exitfail.c: Likewise.
100488         * lib/exitfail.h: Likewise.
100489         * lib/expl.c: Likewise.
100490         * lib/fatal-signal.c: Likewise.
100491         * lib/fatal-signal.h: Likewise.
100492         * lib/fbufmode.c: Likewise.
100493         * lib/fbufmode.h: Likewise.
100494         * lib/fchdir.c: Likewise.
100495         * lib/fchmodat.c: Likewise.
100496         * lib/fchownat.c: Likewise.
100497         * lib/fcntl--.h: Likewise.
100498         * lib/fcntl-safer.h: Likewise.
100499         * lib/fcntl.in.h: Likewise.
100500         * lib/fd-safer.c: Likewise.
100501         * lib/fflush.c: Likewise.
100502         * lib/file-has-acl.c: Likewise.
100503         * lib/file-set.c: Likewise.
100504         * lib/file-type.c: Likewise.
100505         * lib/file-type.h: Likewise.
100506         * lib/fileblocks.c: Likewise.
100507         * lib/filemode.c: Likewise.
100508         * lib/filemode.h: Likewise.
100509         * lib/filename.h: Likewise.
100510         * lib/filenamecat.c: Likewise.
100511         * lib/filenamecat.h: Likewise.
100512         * lib/findprog.c: Likewise.
100513         * lib/findprog.h: Likewise.
100514         * lib/float.in.h: Likewise.
100515         * lib/floor.c: Likewise.
100516         * lib/floorf.c: Likewise.
100517         * lib/floorl.c: Likewise.
100518         * lib/fopen-safer.c: Likewise.
100519         * lib/fopen.c: Likewise.
100520         * lib/fpending.c: Likewise.
100521         * lib/fpending.h: Likewise.
100522         * lib/fprintf.c: Likewise.
100523         * lib/fprintftime.h: Likewise.
100524         * lib/fpucw.h: Likewise.
100525         * lib/fpurge.c: Likewise.
100526         * lib/fpurge.h: Likewise.
100527         * lib/freadable.c: Likewise.
100528         * lib/freadable.h: Likewise.
100529         * lib/freadahead.c: Likewise.
100530         * lib/freadahead.h: Likewise.
100531         * lib/freading.c: Likewise.
100532         * lib/freading.h: Likewise.
100533         * lib/free.c: Likewise.
100534         * lib/freopen.c: Likewise.
100535         * lib/frexp.c: Likewise.
100536         * lib/frexpl.c: Likewise.
100537         * lib/fseek.c: Likewise.
100538         * lib/fseterr.c: Likewise.
100539         * lib/fseterr.h: Likewise.
100540         * lib/fstatat.c: Likewise.
100541         * lib/fstrcmp.c: Likewise.
100542         * lib/fstrcmp.h: Likewise.
100543         * lib/fsusage.c: Likewise.
100544         * lib/fsusage.h: Likewise.
100545         * lib/ftell.c: Likewise.
100546         * lib/ftello.c: Likewise.
100547         * lib/fts-cycle.c: Likewise.
100548         * lib/fts.c: Likewise.
100549         * lib/fts_.h: Likewise.
100550         * lib/full-read.c: Likewise.
100551         * lib/full-read.h: Likewise.
100552         * lib/full-write.c: Likewise.
100553         * lib/full-write.h: Likewise.
100554         * lib/fwritable.c: Likewise.
100555         * lib/fwritable.h: Likewise.
100556         * lib/fwriteerror.c: Likewise.
100557         * lib/fwriteerror.h: Likewise.
100558         * lib/fwriting.c: Likewise.
100559         * lib/fwriting.h: Likewise.
100560         * lib/gcd.c: Likewise.
100561         * lib/gcd.h: Likewise.
100562         * lib/getcwd.c: Likewise.
100563         * lib/getdate.h: Likewise.
100564         * lib/getdate.y: Likewise.
100565         * lib/getdomainname.c: Likewise.
100566         * lib/getdomainname.h: Likewise.
100567         * lib/getgroups.c: Likewise.
100568         * lib/gethostname.c: Likewise.
100569         * lib/gethrxtime.c: Likewise.
100570         * lib/gethrxtime.h: Likewise.
100571         * lib/getloadavg.c: Likewise.
100572         * lib/getndelim2.c: Likewise.
100573         * lib/getndelim2.h: Likewise.
100574         * lib/getnline.c: Likewise.
100575         * lib/getnline.h: Likewise.
100576         * lib/getopt.c: Likewise.
100577         * lib/getopt.in.h: Likewise.
100578         * lib/getopt1.c: Likewise.
100579         * lib/getopt_int.h: Likewise.
100580         * lib/getpagesize.h: Likewise.
100581         * lib/getsubopt.c: Likewise.
100582         * lib/gettime.c: Likewise.
100583         * lib/getugroups.c: Likewise.
100584         * lib/getugroups.h: Likewise.
100585         * lib/getusershell.c: Likewise.
100586         * lib/gl_anyavltree_list1.h: Likewise.
100587         * lib/gl_anyavltree_list2.h: Likewise.
100588         * lib/gl_anyhash_list1.h: Likewise.
100589         * lib/gl_anyhash_list2.h: Likewise.
100590         * lib/gl_anylinked_list1.h: Likewise.
100591         * lib/gl_anylinked_list2.h: Likewise.
100592         * lib/gl_anyrbtree_list1.h: Likewise.
100593         * lib/gl_anyrbtree_list2.h: Likewise.
100594         * lib/gl_anytree_list1.h: Likewise.
100595         * lib/gl_anytree_list2.h: Likewise.
100596         * lib/gl_anytree_oset.h: Likewise.
100597         * lib/gl_anytreehash_list1.h: Likewise.
100598         * lib/gl_anytreehash_list2.h: Likewise.
100599         * lib/gl_array_list.c: Likewise.
100600         * lib/gl_array_list.h: Likewise.
100601         * lib/gl_array_oset.c: Likewise.
100602         * lib/gl_array_oset.h: Likewise.
100603         * lib/gl_avltree_list.c: Likewise.
100604         * lib/gl_avltree_list.h: Likewise.
100605         * lib/gl_avltree_oset.c: Likewise.
100606         * lib/gl_avltree_oset.h: Likewise.
100607         * lib/gl_avltreehash_list.c: Likewise.
100608         * lib/gl_avltreehash_list.h: Likewise.
100609         * lib/gl_carray_list.c: Likewise.
100610         * lib/gl_carray_list.h: Likewise.
100611         * lib/gl_linked_list.c: Likewise.
100612         * lib/gl_linked_list.h: Likewise.
100613         * lib/gl_linkedhash_list.c: Likewise.
100614         * lib/gl_linkedhash_list.h: Likewise.
100615         * lib/gl_list.c: Likewise.
100616         * lib/gl_list.h: Likewise.
100617         * lib/gl_oset.c: Likewise.
100618         * lib/gl_oset.h: Likewise.
100619         * lib/gl_rbtree_list.c: Likewise.
100620         * lib/gl_rbtree_list.h: Likewise.
100621         * lib/gl_rbtree_oset.c: Likewise.
100622         * lib/gl_rbtree_oset.h: Likewise.
100623         * lib/gl_rbtreehash_list.c: Likewise.
100624         * lib/gl_rbtreehash_list.h: Likewise.
100625         * lib/gl_sublist.c: Likewise.
100626         * lib/gl_sublist.h: Likewise.
100627         * lib/group-member.c: Likewise.
100628         * lib/group-member.h: Likewise.
100629         * lib/hard-locale.c: Likewise.
100630         * lib/hard-locale.h: Likewise.
100631         * lib/hash-pjw.c: Likewise.
100632         * lib/hash-pjw.h: Likewise.
100633         * lib/hash-triple.c: Likewise.
100634         * lib/hash.c: Likewise.
100635         * lib/hash.h: Likewise.
100636         * lib/human.c: Likewise.
100637         * lib/human.h: Likewise.
100638         * lib/i-ring.c: Likewise.
100639         * lib/i-ring.h: Likewise.
100640         * lib/idcache.c: Likewise.
100641         * lib/imaxabs.c: Likewise.
100642         * lib/imaxdiv.c: Likewise.
100643         * lib/inet_pton.c: Likewise.
100644         * lib/inet_pton.h: Likewise.
100645         * lib/intprops.h: Likewise.
100646         * lib/inttostr.c: Likewise.
100647         * lib/inttostr.h: Likewise.
100648         * lib/inttypes.in.h: Likewise.
100649         * lib/isapipe.c: Likewise.
100650         * lib/isdir.c: Likewise.
100651         * lib/isnan.c: Likewise.
100652         * lib/isnan.h: Likewise.
100653         * lib/isnanf.c: Likewise.
100654         * lib/isnanf.h: Likewise.
100655         * lib/isnanl-nolibm.h: Likewise.
100656         * lib/isnanl.c: Likewise.
100657         * lib/isnanl.h: Likewise.
100658         * lib/javacomp.c: Likewise.
100659         * lib/javacomp.h: Likewise.
100660         * lib/javaexec.c: Likewise.
100661         * lib/javaexec.h: Likewise.
100662         * lib/javaversion.c: Likewise.
100663         * lib/javaversion.h: Likewise.
100664         * lib/javaversion.java: Likewise.
100665         * lib/lbrkprop.h: Likewise.
100666         * lib/lchmod.h: Likewise.
100667         * lib/lchown.c: Likewise.
100668         * lib/ldexpl.c: Likewise.
100669         * lib/linebreak.c: Likewise.
100670         * lib/linebreak.h: Likewise.
100671         * lib/linebuffer.c: Likewise.
100672         * lib/linebuffer.h: Likewise.
100673         * lib/locale.in.h: Likewise.
100674         * lib/logl.c: Likewise.
100675         * lib/long-options.c: Likewise.
100676         * lib/long-options.h: Likewise.
100677         * lib/lstat.c: Likewise.
100678         * lib/lstat.h: Likewise.
100679         * lib/math.in.h: Likewise.
100680         * lib/mbchar.c: Likewise.
100681         * lib/mbchar.h: Likewise.
100682         * lib/mbfile.h: Likewise.
100683         * lib/mbiter.h: Likewise.
100684         * lib/mbscasecmp.c: Likewise.
100685         * lib/mbscasestr.c: Likewise.
100686         * lib/mbschr.c: Likewise.
100687         * lib/mbscspn.c: Likewise.
100688         * lib/mbslen.c: Likewise.
100689         * lib/mbsncasecmp.c: Likewise.
100690         * lib/mbsnlen.c: Likewise.
100691         * lib/mbspbrk.c: Likewise.
100692         * lib/mbspcasecmp.c: Likewise.
100693         * lib/mbsrchr.c: Likewise.
100694         * lib/mbssep.c: Likewise.
100695         * lib/mbsspn.c: Likewise.
100696         * lib/mbsstr.c: Likewise.
100697         * lib/mbstok_r.c: Likewise.
100698         * lib/mbswidth.c: Likewise.
100699         * lib/mbswidth.h: Likewise.
100700         * lib/mbuiter.h: Likewise.
100701         * lib/memcasecmp.c: Likewise.
100702         * lib/memcasecmp.h: Likewise.
100703         * lib/memchr.c: Likewise.
100704         * lib/memcmp.c: Likewise.
100705         * lib/memcoll.c: Likewise.
100706         * lib/memcoll.h: Likewise.
100707         * lib/memcpy.c: Likewise.
100708         * lib/memrchr.c: Likewise.
100709         * lib/mkancesdirs.c: Likewise.
100710         * lib/mkdir-p.c: Likewise.
100711         * lib/mkdir-p.h: Likewise.
100712         * lib/mkdir.c: Likewise.
100713         * lib/mkdirat.c: Likewise.
100714         * lib/mkdtemp.c: Likewise.
100715         * lib/mkstemp-safer.c: Likewise.
100716         * lib/mkstemp.c: Likewise.
100717         * lib/modechange.c: Likewise.
100718         * lib/modechange.h: Likewise.
100719         * lib/mountlist.c: Likewise.
100720         * lib/mountlist.h: Likewise.
100721         * lib/mpsort.c: Likewise.
100722         * lib/nanosleep.c: Likewise.
100723         * lib/obstack.c: Likewise.
100724         * lib/obstack.h: Likewise.
100725         * lib/open-safer.c: Likewise.
100726         * lib/open.c: Likewise.
100727         * lib/openat-die.c: Likewise.
100728         * lib/openat-priv.h: Likewise.
100729         * lib/openat-proc.c: Likewise.
100730         * lib/openat.c: Likewise.
100731         * lib/openat.h: Likewise.
100732         * lib/pagealign_alloc.c: Likewise.
100733         * lib/pagealign_alloc.h: Likewise.
100734         * lib/physmem.c: Likewise.
100735         * lib/physmem.h: Likewise.
100736         * lib/pipe-safer.c: Likewise.
100737         * lib/pipe.c: Likewise.
100738         * lib/pipe.h: Likewise.
100739         * lib/posixtm.c: Likewise.
100740         * lib/posixtm.h: Likewise.
100741         * lib/posixver.c: Likewise.
100742         * lib/printf-frexp.c: Likewise.
100743         * lib/printf-frexp.h: Likewise.
100744         * lib/printf-frexpl.c: Likewise.
100745         * lib/printf-frexpl.h: Likewise.
100746         * lib/printf.c: Likewise.
100747         * lib/progname.c: Likewise.
100748         * lib/progname.h: Likewise.
100749         * lib/progreloc.c: Likewise.
100750         * lib/putenv.c: Likewise.
100751         * lib/quote.c: Likewise.
100752         * lib/quote.h: Likewise.
100753         * lib/quotearg.c: Likewise.
100754         * lib/quotearg.h: Likewise.
100755         * lib/raise.c: Likewise.
100756         * lib/readline.c: Likewise.
100757         * lib/readline.h: Likewise.
100758         * lib/readlink.c: Likewise.
100759         * lib/readtokens.c: Likewise.
100760         * lib/readtokens.h: Likewise.
100761         * lib/readtokens0.c: Likewise.
100762         * lib/readtokens0.h: Likewise.
100763         * lib/readutmp.c: Likewise.
100764         * lib/readutmp.h: Likewise.
100765         * lib/realloc.c: Likewise.
100766         * lib/relocwrapper.c: Likewise.
100767         * lib/rename-dest-slash.c: Likewise.
100768         * lib/rename.c: Likewise.
100769         * lib/rmdir.c: Likewise.
100770         * lib/rpmatch.c: Likewise.
100771         * lib/safe-read.c: Likewise.
100772         * lib/safe-read.h: Likewise.
100773         * lib/safe-write.c: Likewise.
100774         * lib/safe-write.h: Likewise.
100775         * lib/same-inode.h: Likewise.
100776         * lib/same.c: Likewise.
100777         * lib/same.h: Likewise.
100778         * lib/save-cwd.c: Likewise.
100779         * lib/save-cwd.h: Likewise.
100780         * lib/savedir.c: Likewise.
100781         * lib/savedir.h: Likewise.
100782         * lib/savewd.c: Likewise.
100783         * lib/savewd.h: Likewise.
100784         * lib/search.in.h: Likewise.
100785         * lib/setenv.c: Likewise.
100786         * lib/setenv.h: Likewise.
100787         * lib/settime.c: Likewise.
100788         * lib/sh-quote.c: Likewise.
100789         * lib/sh-quote.h: Likewise.
100790         * lib/sig2str.c: Likewise.
100791         * lib/sig2str.h: Likewise.
100792         * lib/signal.in.h: Likewise.
100793         * lib/signbitd.c: Likewise.
100794         * lib/signbitf.c: Likewise.
100795         * lib/signbitl.c: Likewise.
100796         * lib/sigprocmask.c: Likewise.
100797         * lib/sincosl.c: Likewise.
100798         * lib/sleep.c: Likewise.
100799         * lib/sprintf.c: Likewise.
100800         * lib/sqrtl.c: Likewise.
100801         * lib/stat-time.h: Likewise.
100802         * lib/stdio--.h: Likewise.
100803         * lib/stdio-safer.h: Likewise.
100804         * lib/stdlib--.h: Likewise.
100805         * lib/stdlib-safer.h: Likewise.
100806         * lib/stdlib.in.h: Likewise.
100807         * lib/stpcpy.c: Likewise.
100808         * lib/stpncpy.c: Likewise.
100809         * lib/strchrnul.c: Likewise.
100810         * lib/strcspn.c: Likewise.
100811         * lib/strerror.c: Likewise.
100812         * lib/strftime.c: Likewise.
100813         * lib/strftime.h: Likewise.
100814         * lib/striconveh.c: Likewise.
100815         * lib/striconveh.h: Likewise.
100816         * lib/striconveha.c: Likewise.
100817         * lib/striconveha.h: Likewise.
100818         * lib/stripslash.c: Likewise.
100819         * lib/strnlen1.c: Likewise.
100820         * lib/strnlen1.h: Likewise.
100821         * lib/strtod.c: Likewise.
100822         * lib/strtoimax.c: Likewise.
100823         * lib/strtok_r.c: Likewise.
100824         * lib/strtol.c: Likewise.
100825         * lib/strtoll.c: Likewise.
100826         * lib/strtoul.c: Likewise.
100827         * lib/strtoull.c: Likewise.
100828         * lib/sysexits.in.h: Likewise.
100829         * lib/tempname.c: Likewise.
100830         * lib/tempname.h: Likewise.
100831         * lib/timespec.h: Likewise.
100832         * lib/tls.c: Likewise.
100833         * lib/tls.h: Likewise.
100834         * lib/tmpdir.c: Likewise.
100835         * lib/tmpdir.h: Likewise.
100836         * lib/tmpfile-safer.c: Likewise.
100837         * lib/tmpfile.c: Likewise.
100838         * lib/trigl.c: Likewise.
100839         * lib/trigl.h: Likewise.
100840         * lib/trim.c: Likewise.
100841         * lib/trim.h: Likewise.
100842         * lib/trunc.c: Likewise.
100843         * lib/truncf.c: Likewise.
100844         * lib/truncl.c: Likewise.
100845         * lib/tsearch.c: Likewise.
100846         * lib/unicodeio.c: Likewise.
100847         * lib/unicodeio.h: Likewise.
100848         * lib/unistd--.h: Likewise.
100849         * lib/unistd-safer.h: Likewise.
100850         * lib/unistdio/ulc-fprintf.c: Likewise.
100851         * lib/unistdio/ulc-vfprintf.c: Likewise.
100852         * lib/unlinkdir.c: Likewise.
100853         * lib/unlinkdir.h: Likewise.
100854         * lib/unlocked-io.h: Likewise.
100855         * lib/unsetenv.c: Likewise.
100856         * lib/userspec.c: Likewise.
100857         * lib/utime.c: Likewise.
100858         * lib/utimecmp.c: Likewise.
100859         * lib/utimecmp.h: Likewise.
100860         * lib/utimens.c: Likewise.
100861         * lib/verify.h: Likewise.
100862         * lib/verror.c: Likewise.
100863         * lib/verror.h: Likewise.
100864         * lib/version-etc-fsf.c: Likewise.
100865         * lib/version-etc.c: Likewise.
100866         * lib/version-etc.h: Likewise.
100867         * lib/vfprintf.c: Likewise.
100868         * lib/vprintf.c: Likewise.
100869         * lib/vsprintf.c: Likewise.
100870         * lib/w32spawn.h: Likewise.
100871         * lib/wait-process.c: Likewise.
100872         * lib/wait-process.h: Likewise.
100873         * lib/wcwidth.c: Likewise.
100874         * lib/write-any-file.c: Likewise.
100875         * lib/xalloc-die.c: Likewise.
100876         * lib/xalloc.h: Likewise.
100877         * lib/xasprintf.c: Likewise.
100878         * lib/xgetcwd.c: Likewise.
100879         * lib/xgetcwd.h: Likewise.
100880         * lib/xgetdomainname.c: Likewise.
100881         * lib/xgetdomainname.h: Likewise.
100882         * lib/xgethostname.c: Likewise.
100883         * lib/xmalloc.c: Likewise.
100884         * lib/xmalloca.c: Likewise.
100885         * lib/xmalloca.h: Likewise.
100886         * lib/xmemcoll.c: Likewise.
100887         * lib/xnanosleep.c: Likewise.
100888         * lib/xreadlink.c: Likewise.
100889         * lib/xreadlink.h: Likewise.
100890         * lib/xsetenv.c: Likewise.
100891         * lib/xsetenv.h: Likewise.
100892         * lib/xstriconv.c: Likewise.
100893         * lib/xstriconv.h: Likewise.
100894         * lib/xstrndup.c: Likewise.
100895         * lib/xstrndup.h: Likewise.
100896         * lib/xstrtod.c: Likewise.
100897         * lib/xstrtod.h: Likewise.
100898         * lib/xstrtol-error.c: Likewise.
100899         * lib/xstrtol.c: Likewise.
100900         * lib/xstrtol.h: Likewise.
100901         * lib/xtime.h: Likewise.
100902         * lib/xvasprintf.c: Likewise.
100903         * lib/xvasprintf.h: Likewise.
100904         * lib/yesno.c: Likewise.
100905         * lib/yesno.h: Likewise.
100906         * posix-modules: Likewise.
100907         * tests/test-alloca-opt.c: Likewise.
100908         * tests/test-arcfour.c: Likewise.
100909         * tests/test-arctwo.c: Likewise.
100910         * tests/test-argmatch.c: Likewise.
100911         * tests/test-argp-2.sh: Likewise.
100912         * tests/test-argp.c: Likewise.
100913         * tests/test-arpa_inet.c: Likewise.
100914         * tests/test-array_list.c: Likewise.
100915         * tests/test-array_oset.c: Likewise.
100916         * tests/test-atexit.c: Likewise.
100917         * tests/test-avltree_list.c: Likewise.
100918         * tests/test-avltree_oset.c: Likewise.
100919         * tests/test-avltreehash_list.c: Likewise.
100920         * tests/test-base64.c: Likewise.
100921         * tests/test-binary-io.c: Likewise.
100922         * tests/test-byteswap.c: Likewise.
100923         * tests/test-c-ctype.c: Likewise.
100924         * tests/test-c-strcasecmp.c: Likewise.
100925         * tests/test-c-strcasestr.c: Likewise.
100926         * tests/test-c-strncasecmp.c: Likewise.
100927         * tests/test-c-strstr.c: Likewise.
100928         * tests/test-canonicalize-lgpl.c: Likewise.
100929         * tests/test-canonicalize.c: Likewise.
100930         * tests/test-carray_list.c: Likewise.
100931         * tests/test-ceilf.c: Likewise.
100932         * tests/test-ceill.c: Likewise.
100933         * tests/test-count-one-bits.c: Likewise.
100934         * tests/test-crc.c: Likewise.
100935         * tests/test-dirname.c: Likewise.
100936         * tests/test-fbufmode.c: Likewise.
100937         * tests/test-fcntl.c: Likewise.
100938         * tests/test-fflush.c: Likewise.
100939         * tests/test-floorf.c: Likewise.
100940         * tests/test-floorl.c: Likewise.
100941         * tests/test-fopen.c: Likewise.
100942         * tests/test-fprintf-posix.c: Likewise.
100943         * tests/test-fprintf-posix.h: Likewise.
100944         * tests/test-fpurge.c: Likewise.
100945         * tests/test-freadable.c: Likewise.
100946         * tests/test-freadahead.c: Likewise.
100947         * tests/test-freading.c: Likewise.
100948         * tests/test-freopen.c: Likewise.
100949         * tests/test-frexp.c: Likewise.
100950         * tests/test-frexpl.c: Likewise.
100951         * tests/test-fseek.c: Likewise.
100952         * tests/test-fseeko.c: Likewise.
100953         * tests/test-fseterr.c: Likewise.
100954         * tests/test-fstrcmp.c: Likewise.
100955         * tests/test-ftell.c: Likewise.
100956         * tests/test-ftello.c: Likewise.
100957         * tests/test-fwritable.c: Likewise.
100958         * tests/test-fwriting.c: Likewise.
100959         * tests/test-getaddrinfo.c: Likewise.
100960         * tests/test-getpass.c: Likewise.
100961         * tests/test-gettimeofday.c: Likewise.
100962         * tests/test-hmac-md5.c: Likewise.
100963         * tests/test-hmac-sha1.c: Likewise.
100964         * tests/test-iconv.c: Likewise.
100965         * tests/test-iconvme.c: Likewise.
100966         * tests/test-inttypes.c: Likewise.
100967         * tests/test-isnan.c: Likewise.
100968         * tests/test-isnanf.c: Likewise.
100969         * tests/test-isnanl-nolibm.c: Likewise.
100970         * tests/test-isnanl.c: Likewise.
100971         * tests/test-isnanl.h: Likewise.
100972         * tests/test-ldexpl.c: Likewise.
100973         * tests/test-linked_list.c: Likewise.
100974         * tests/test-linkedhash_list.c: Likewise.
100975         * tests/test-locale.c: Likewise.
100976         * tests/test-localename.c: Likewise.
100977         * tests/test-lock.c: Likewise.
100978         * tests/test-lseek.c: Likewise.
100979         * tests/test-malloca.c: Likewise.
100980         * tests/test-math.c: Likewise.
100981         * tests/test-mbscasecmp.c: Likewise.
100982         * tests/test-mbscasestr1.c: Likewise.
100983         * tests/test-mbscasestr2.c: Likewise.
100984         * tests/test-mbscasestr3.c: Likewise.
100985         * tests/test-mbscasestr4.c: Likewise.
100986         * tests/test-mbschr.c: Likewise.
100987         * tests/test-mbscspn.c: Likewise.
100988         * tests/test-mbsncasecmp.c: Likewise.
100989         * tests/test-mbspbrk.c: Likewise.
100990         * tests/test-mbspcasecmp.c: Likewise.
100991         * tests/test-mbsrchr.c: Likewise.
100992         * tests/test-mbsspn.c: Likewise.
100993         * tests/test-mbsstr1.c: Likewise.
100994         * tests/test-mbsstr2.c: Likewise.
100995         * tests/test-mbsstr3.c: Likewise.
100996         * tests/test-md5.c: Likewise.
100997         * tests/test-memmem.c: Likewise.
100998         * tests/test-netinet_in.c: Likewise.
100999         * tests/test-open.c: Likewise.
101000         * tests/test-printf-frexp.c: Likewise.
101001         * tests/test-printf-frexpl.c: Likewise.
101002         * tests/test-printf-posix.c: Likewise.
101003         * tests/test-printf-posix.h: Likewise.
101004         * tests/test-rbtree_list.c: Likewise.
101005         * tests/test-rbtree_oset.c: Likewise.
101006         * tests/test-rbtreehash_list.c: Likewise.
101007         * tests/test-read-file.c: Likewise.
101008         * tests/test-rijndael.c: Likewise.
101009         * tests/test-search.c: Likewise.
101010         * tests/test-signbit.c: Likewise.
101011         * tests/test-sleep.c: Likewise.
101012         * tests/test-snprintf-posix.c: Likewise.
101013         * tests/test-snprintf-posix.h: Likewise.
101014         * tests/test-snprintf.c: Likewise.
101015         * tests/test-sprintf-posix.c: Likewise.
101016         * tests/test-sprintf-posix.h: Likewise.
101017         * tests/test-stat-time.c: Likewise.
101018         * tests/test-stdbool.c: Likewise.
101019         * tests/test-stdint.c: Likewise.
101020         * tests/test-stdio.c: Likewise.
101021         * tests/test-stdlib.c: Likewise.
101022         * tests/test-stpncpy.c: Likewise.
101023         * tests/test-strcasestr.c: Likewise.
101024         * tests/test-striconv.c: Likewise.
101025         * tests/test-striconveh.c: Likewise.
101026         * tests/test-striconveha.c: Likewise.
101027         * tests/test-string.c: Likewise.
101028         * tests/test-sys_select.c: Likewise.
101029         * tests/test-sys_socket.c: Likewise.
101030         * tests/test-sys_stat.c: Likewise.
101031         * tests/test-sys_time.c: Likewise.
101032         * tests/test-sysexits.c: Likewise.
101033         * tests/test-time.c: Likewise.
101034         * tests/test-tls.c: Likewise.
101035         * tests/test-trunc.c: Likewise.
101036         * tests/test-truncf.c: Likewise.
101037         * tests/test-truncl.c: Likewise.
101038         * tests/test-unistd.c: Likewise.
101039         * tests/test-vasnprintf-posix.c: Likewise.
101040         * tests/test-vasnprintf-posix2.c: Likewise.
101041         * tests/test-vasnprintf.c: Likewise.
101042         * tests/test-vasprintf-posix.c: Likewise.
101043         * tests/test-vasprintf.c: Likewise.
101044         * tests/test-verify.c: Likewise.
101045         * tests/test-vfprintf-posix.c: Likewise.
101046         * tests/test-vprintf-posix.c: Likewise.
101047         * tests/test-vsnprintf-posix.c: Likewise.
101048         * tests/test-vsnprintf.c: Likewise.
101049         * tests/test-vsprintf-posix.c: Likewise.
101050         * tests/test-wchar.c: Likewise.
101051         * tests/test-wctype.c: Likewise.
101052         * tests/test-wcwidth.c: Likewise.
101053         * tests/test-xstrtol.c: Likewise.
101054         * tests/test-xvasprintf.c: Likewise.
101055         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101056         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101057         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101058         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101059         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101060         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101061         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101062         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101063         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101064         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101065         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101066         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101067         * tests/uniname/test-uninames.c: Likewise.
101068         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101069         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101070         * tests/unistdio/test-u16-printf1.h: Likewise.
101071         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101072         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101073         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101074         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101075         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101076         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101077         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101078         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101079         * tests/unistdio/test-u32-printf1.h: Likewise.
101080         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101081         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101082         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101083         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101084         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101085         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101086         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101087         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101088         * tests/unistdio/test-u8-printf1.h: Likewise.
101089         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101090         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101091         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101092         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101093         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101094         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101095         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101096         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101097         * tests/unistdio/test-ulc-printf1.h: Likewise.
101098         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101099         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101100         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101101         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101102         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101103         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101104         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101105         * tests/uniwidth/test-u16-width.c: Likewise.
101106         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101107         * tests/uniwidth/test-u32-width.c: Likewise.
101108         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101109         * tests/uniwidth/test-u8-width.c: Likewise.
101110         * tests/uniwidth/test-uc_width.c: Likewise.
101111         * config/srclist-update: Likewise.
101112         (fixlicense): Update to GPLv3+.
101114         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101115         * tests/test-tsearch.c: Change copyright notice.
101117         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101118         * lib/c-strcaseeq.h: Change copyright notice.
101119         * lib/streq.h: Likewise.
101120         * lib/uniconv.h: Likewise.
101121         * lib/uniconv/u-conv-from-enc.h: Likewise.
101122         * lib/uniconv/u-conv-to-enc.h: Likewise.
101123         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101124         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101125         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101126         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101127         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101128         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101129         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101130         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101131         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101132         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101133         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101134         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101135         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101136         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101137         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101138         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101139         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101140         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101141         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101142         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101143         * lib/uniname.h: Likewise.
101144         * lib/uniname/uniname.c: Likewise.
101145         * lib/unistdio.h: Likewise.
101146         * lib/unistdio/u-asnprintf.h: Likewise.
101147         * lib/unistdio/u-asprintf.h: Likewise.
101148         * lib/unistdio/u-printf-args.c: Likewise.
101149         * lib/unistdio/u-printf-args.h: Likewise.
101150         * lib/unistdio/u-printf-parse.h: Likewise.
101151         * lib/unistdio/u-snprintf.h: Likewise.
101152         * lib/unistdio/u-sprintf.h: Likewise.
101153         * lib/unistdio/u-vasprintf.h: Likewise.
101154         * lib/unistdio/u-vsnprintf.h: Likewise.
101155         * lib/unistdio/u-vsprintf.h: Likewise.
101156         * lib/unistdio/u16-asnprintf.c: Likewise.
101157         * lib/unistdio/u16-asprintf.c: Likewise.
101158         * lib/unistdio/u16-printf-parse.c: Likewise.
101159         * lib/unistdio/u16-snprintf.c: Likewise.
101160         * lib/unistdio/u16-sprintf.c: Likewise.
101161         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101162         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101163         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101164         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101165         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101166         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101167         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101168         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101169         * lib/unistdio/u16-vasnprintf.c: Likewise.
101170         * lib/unistdio/u16-vasprintf.c: Likewise.
101171         * lib/unistdio/u16-vsnprintf.c: Likewise.
101172         * lib/unistdio/u16-vsprintf.c: Likewise.
101173         * lib/unistdio/u32-asnprintf.c: Likewise.
101174         * lib/unistdio/u32-asprintf.c: Likewise.
101175         * lib/unistdio/u32-printf-parse.c: Likewise.
101176         * lib/unistdio/u32-snprintf.c: Likewise.
101177         * lib/unistdio/u32-sprintf.c: Likewise.
101178         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101179         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101180         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101181         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101182         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101183         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101184         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101185         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101186         * lib/unistdio/u32-vasnprintf.c: Likewise.
101187         * lib/unistdio/u32-vasprintf.c: Likewise.
101188         * lib/unistdio/u32-vsnprintf.c: Likewise.
101189         * lib/unistdio/u32-vsprintf.c: Likewise.
101190         * lib/unistdio/u8-asnprintf.c: Likewise.
101191         * lib/unistdio/u8-asprintf.c: Likewise.
101192         * lib/unistdio/u8-printf-parse.c: Likewise.
101193         * lib/unistdio/u8-snprintf.c: Likewise.
101194         * lib/unistdio/u8-sprintf.c: Likewise.
101195         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101196         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101197         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101198         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101199         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101200         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101201         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101202         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101203         * lib/unistdio/u8-vasnprintf.c: Likewise.
101204         * lib/unistdio/u8-vasprintf.c: Likewise.
101205         * lib/unistdio/u8-vsnprintf.c: Likewise.
101206         * lib/unistdio/u8-vsprintf.c: Likewise.
101207         * lib/unistdio/ulc-asnprintf.c: Likewise.
101208         * lib/unistdio/ulc-asprintf.c: Likewise.
101209         * lib/unistdio/ulc-printf-parse.c: Likewise.
101210         * lib/unistdio/ulc-snprintf.c: Likewise.
101211         * lib/unistdio/ulc-sprintf.c: Likewise.
101212         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101213         * lib/unistdio/ulc-vasprintf.c: Likewise.
101214         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101215         * lib/unistdio/ulc-vsprintf.c: Likewise.
101216         * lib/unistr.h: Likewise.
101217         * lib/unistr/u-cpy-alloc.h: Likewise.
101218         * lib/unistr/u-cpy.h: Likewise.
101219         * lib/unistr/u-endswith.h: Likewise.
101220         * lib/unistr/u-move.h: Likewise.
101221         * lib/unistr/u-set.h: Likewise.
101222         * lib/unistr/u-startswith.h: Likewise.
101223         * lib/unistr/u-stpcpy.h: Likewise.
101224         * lib/unistr/u-stpncpy.h: Likewise.
101225         * lib/unistr/u-strcat.h: Likewise.
101226         * lib/unistr/u-strcpy.h: Likewise.
101227         * lib/unistr/u-strcspn.h: Likewise.
101228         * lib/unistr/u-strdup.h: Likewise.
101229         * lib/unistr/u-strlen.h: Likewise.
101230         * lib/unistr/u-strncat.h: Likewise.
101231         * lib/unistr/u-strncpy.h: Likewise.
101232         * lib/unistr/u-strnlen.h: Likewise.
101233         * lib/unistr/u-strpbrk.h: Likewise.
101234         * lib/unistr/u-strspn.h: Likewise.
101235         * lib/unistr/u-strstr.h: Likewise.
101236         * lib/unistr/u-strtok.h: Likewise.
101237         * lib/unistr/u16-check.c: Likewise.
101238         * lib/unistr/u16-chr.c: Likewise.
101239         * lib/unistr/u16-cmp.c: Likewise.
101240         * lib/unistr/u16-cpy-alloc.c: Likewise.
101241         * lib/unistr/u16-cpy.c: Likewise.
101242         * lib/unistr/u16-endswith.c: Likewise.
101243         * lib/unistr/u16-mblen.c: Likewise.
101244         * lib/unistr/u16-mbsnlen.c: Likewise.
101245         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101246         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101247         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101248         * lib/unistr/u16-mbtouc.c: Likewise.
101249         * lib/unistr/u16-mbtoucr.c: Likewise.
101250         * lib/unistr/u16-move.c: Likewise.
101251         * lib/unistr/u16-next.c: Likewise.
101252         * lib/unistr/u16-prev.c: Likewise.
101253         * lib/unistr/u16-set.c: Likewise.
101254         * lib/unistr/u16-startswith.c: Likewise.
101255         * lib/unistr/u16-stpcpy.c: Likewise.
101256         * lib/unistr/u16-stpncpy.c: Likewise.
101257         * lib/unistr/u16-strcat.c: Likewise.
101258         * lib/unistr/u16-strchr.c: Likewise.
101259         * lib/unistr/u16-strcmp.c: Likewise.
101260         * lib/unistr/u16-strcpy.c: Likewise.
101261         * lib/unistr/u16-strcspn.c: Likewise.
101262         * lib/unistr/u16-strdup.c: Likewise.
101263         * lib/unistr/u16-strlen.c: Likewise.
101264         * lib/unistr/u16-strmblen.c: Likewise.
101265         * lib/unistr/u16-strmbtouc.c: Likewise.
101266         * lib/unistr/u16-strncat.c: Likewise.
101267         * lib/unistr/u16-strncmp.c: Likewise.
101268         * lib/unistr/u16-strncpy.c: Likewise.
101269         * lib/unistr/u16-strnlen.c: Likewise.
101270         * lib/unistr/u16-strpbrk.c: Likewise.
101271         * lib/unistr/u16-strrchr.c: Likewise.
101272         * lib/unistr/u16-strspn.c: Likewise.
101273         * lib/unistr/u16-strstr.c: Likewise.
101274         * lib/unistr/u16-strtok.c: Likewise.
101275         * lib/unistr/u16-to-u32.c: Likewise.
101276         * lib/unistr/u16-to-u8.c: Likewise.
101277         * lib/unistr/u16-uctomb-aux.c: Likewise.
101278         * lib/unistr/u16-uctomb.c: Likewise.
101279         * lib/unistr/u32-check.c: Likewise.
101280         * lib/unistr/u32-chr.c: Likewise.
101281         * lib/unistr/u32-cmp.c: Likewise.
101282         * lib/unistr/u32-cpy-alloc.c: Likewise.
101283         * lib/unistr/u32-cpy.c: Likewise.
101284         * lib/unistr/u32-endswith.c: Likewise.
101285         * lib/unistr/u32-mblen.c: Likewise.
101286         * lib/unistr/u32-mbsnlen.c: Likewise.
101287         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101288         * lib/unistr/u32-mbtouc.c: Likewise.
101289         * lib/unistr/u32-mbtoucr.c: Likewise.
101290         * lib/unistr/u32-move.c: Likewise.
101291         * lib/unistr/u32-next.c: Likewise.
101292         * lib/unistr/u32-prev.c: Likewise.
101293         * lib/unistr/u32-set.c: Likewise.
101294         * lib/unistr/u32-startswith.c: Likewise.
101295         * lib/unistr/u32-stpcpy.c: Likewise.
101296         * lib/unistr/u32-stpncpy.c: Likewise.
101297         * lib/unistr/u32-strcat.c: Likewise.
101298         * lib/unistr/u32-strchr.c: Likewise.
101299         * lib/unistr/u32-strcmp.c: Likewise.
101300         * lib/unistr/u32-strcpy.c: Likewise.
101301         * lib/unistr/u32-strcspn.c: Likewise.
101302         * lib/unistr/u32-strdup.c: Likewise.
101303         * lib/unistr/u32-strlen.c: Likewise.
101304         * lib/unistr/u32-strmblen.c: Likewise.
101305         * lib/unistr/u32-strmbtouc.c: Likewise.
101306         * lib/unistr/u32-strncat.c: Likewise.
101307         * lib/unistr/u32-strncmp.c: Likewise.
101308         * lib/unistr/u32-strncpy.c: Likewise.
101309         * lib/unistr/u32-strnlen.c: Likewise.
101310         * lib/unistr/u32-strpbrk.c: Likewise.
101311         * lib/unistr/u32-strrchr.c: Likewise.
101312         * lib/unistr/u32-strspn.c: Likewise.
101313         * lib/unistr/u32-strstr.c: Likewise.
101314         * lib/unistr/u32-strtok.c: Likewise.
101315         * lib/unistr/u32-to-u16.c: Likewise.
101316         * lib/unistr/u32-to-u8.c: Likewise.
101317         * lib/unistr/u32-uctomb.c: Likewise.
101318         * lib/unistr/u8-check.c: Likewise.
101319         * lib/unistr/u8-chr.c: Likewise.
101320         * lib/unistr/u8-cmp.c: Likewise.
101321         * lib/unistr/u8-cpy-alloc.c: Likewise.
101322         * lib/unistr/u8-cpy.c: Likewise.
101323         * lib/unistr/u8-endswith.c: Likewise.
101324         * lib/unistr/u8-mblen.c: Likewise.
101325         * lib/unistr/u8-mbsnlen.c: Likewise.
101326         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101327         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101328         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101329         * lib/unistr/u8-mbtouc.c: Likewise.
101330         * lib/unistr/u8-mbtoucr.c: Likewise.
101331         * lib/unistr/u8-move.c: Likewise.
101332         * lib/unistr/u8-next.c: Likewise.
101333         * lib/unistr/u8-prev.c: Likewise.
101334         * lib/unistr/u8-set.c: Likewise.
101335         * lib/unistr/u8-startswith.c: Likewise.
101336         * lib/unistr/u8-stpcpy.c: Likewise.
101337         * lib/unistr/u8-stpncpy.c: Likewise.
101338         * lib/unistr/u8-strcat.c: Likewise.
101339         * lib/unistr/u8-strchr.c: Likewise.
101340         * lib/unistr/u8-strcmp.c: Likewise.
101341         * lib/unistr/u8-strcpy.c: Likewise.
101342         * lib/unistr/u8-strcspn.c: Likewise.
101343         * lib/unistr/u8-strdup.c: Likewise.
101344         * lib/unistr/u8-strlen.c: Likewise.
101345         * lib/unistr/u8-strmblen.c: Likewise.
101346         * lib/unistr/u8-strmbtouc.c: Likewise.
101347         * lib/unistr/u8-strncat.c: Likewise.
101348         * lib/unistr/u8-strncmp.c: Likewise.
101349         * lib/unistr/u8-strncpy.c: Likewise.
101350         * lib/unistr/u8-strnlen.c: Likewise.
101351         * lib/unistr/u8-strpbrk.c: Likewise.
101352         * lib/unistr/u8-strrchr.c: Likewise.
101353         * lib/unistr/u8-strspn.c: Likewise.
101354         * lib/unistr/u8-strstr.c: Likewise.
101355         * lib/unistr/u8-strtok.c: Likewise.
101356         * lib/unistr/u8-to-u16.c: Likewise.
101357         * lib/unistr/u8-to-u32.c: Likewise.
101358         * lib/unistr/u8-uctomb-aux.c: Likewise.
101359         * lib/unistr/u8-uctomb.c: Likewise.
101360         * lib/unitypes.h: Likewise.
101361         * lib/uniwidth.h: Likewise.
101362         * lib/uniwidth/cjk.h: Likewise.
101363         * lib/uniwidth/u16-strwidth.c: Likewise.
101364         * lib/uniwidth/u16-width.c: Likewise.
101365         * lib/uniwidth/u32-strwidth.c: Likewise.
101366         * lib/uniwidth/u32-width.c: Likewise.
101367         * lib/uniwidth/u8-strwidth.c: Likewise.
101368         * lib/uniwidth/u8-width.c: Likewise.
101369         * lib/uniwidth/width.c: Likewise.
101371 2007-10-07  Bruno Haible  <bruno@clisp.org>
101373         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101374         The file is still under LGPL (see modules/inttypes).
101376 2007-10-06  Bruno Haible  <bruno@clisp.org>
101378         * modules/trunc (Dependencies): Add 'extensions'.
101379         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101380         Reported by Ben Pfaff <blp@gnu.org>.
101382 2007-10-06  Bruno Haible  <bruno@clisp.org>
101384         * modules/freopen-tests: New file.
101385         * tests/test-freopen.c: New file.
101387         * modules/fopen-tests: New file.
101388         * tests/test-fopen.c: New file.
101390         * modules/fopen: New file.
101391         * lib/fopen.c: New file.
101392         * m4/fopen.m4: New file.
101393         * modules/freopen: New file.
101394         * lib/freopen.c: New file.
101395         * m4/freopen.m4: New file.
101396         * lib/stdio.in.h (fopen, freopen): New declarations.
101397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101398         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101399         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101400         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101401         * doc/functions/fopen.texi: Mention the 'fopen' module.
101402         * doc/functions/freopen.texi: Mention the 'freopen' module.
101404 2007-10-06  Bruno Haible  <bruno@clisp.org>
101406         * modules/open-tests: New file.
101407         * tests/test-open.c: New file.
101409         * modules/open: New file.
101410         * lib/open.c: New file.
101411         * m4/open.m4: New file.
101412         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101413         lib/open.c does.
101414         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101415         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101416         macros.
101417         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101418         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101419         REPLACE_OPEN.
101420         * doc/functions/open.texi: Mention the 'open' module.
101422 2007-10-04  Bruno Haible  <bruno@clisp.org>
101424         * modules/ceill-tests: New file.
101425         * tests/test-ceill.c: New file.
101427         * modules/ceill: New file.
101428         * lib/ceill.c: Replace entire file.
101429         * m4/ceill.m4: New file.
101430         * lib/math.in.h (ceill): Replace declaration.
101431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101432         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101433         * doc/functions/ceill.texi: Mention the 'ceill' module.
101434         * modules/mathl (Files): Remove lib/ceill.c.
101435         (Depends-on): Add ceill.
101437 2007-10-04  Bruno Haible  <bruno@clisp.org>
101439         * modules/ceilf-tests: New file.
101440         * tests/test-ceilf.c: New file.
101442         * modules/ceilf: New file.
101443         * lib/ceil.c: New file.
101444         * lib/ceilf.c: New file.
101445         * m4/ceilf.m4: New file.
101446         * lib/math.in.h (ceilf): New declaration.
101447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101448         HAVE_DECL_CEILF.
101449         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101450         HAVE_DECL_CEILF.
101451         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101453 2007-10-04  Bruno Haible  <bruno@clisp.org>
101455         * modules/floorl-tests: New file.
101456         * tests/test-floorl.c: New file.
101458         * modules/floorl: New file.
101459         * lib/floorl.c: Replace entire file.
101460         * m4/floorl.m4: New file.
101461         * lib/math.in.h (floorl): Replace declaration.
101462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101463         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101464         * doc/functions/floorl.texi: Mention the 'floorl' module.
101465         * modules/mathl (Files): Remove lib/floorl.c.
101466         (Depends-on): Add floorl.
101468 2007-10-04  Bruno Haible  <bruno@clisp.org>
101470         * modules/floorf-tests: New file.
101471         * tests/test-floorf.c: New file.
101473         * modules/floorf: New file.
101474         * lib/floor.c: New file.
101475         * lib/floorf.c: New file.
101476         * m4/floorf.m4: New file.
101477         * lib/math.in.h (floorf): New declaration.
101478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101479         HAVE_DECL_FLOORF.
101480         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101481         HAVE_DECL_FLOORF.
101482         * doc/functions/floorf.texi: Mention the 'floorf' module.
101484 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101485             Bruno Haible  <bruno@clisp.org>
101487         Advertise for the Git server instead of the CVS server.
101488         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101489         repository instead of the CVS one.
101490         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101491         about all VCS systems generically.
101492         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101494 2007-10-04  Bruno Haible  <bruno@clisp.org>
101496         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101497         means.
101498         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101500 2007-10-04  Bruno Haible  <bruno@clisp.org>
101502         * modules/truncl-tests: New file.
101503         * tests/test-truncl.c: New file.
101505         * modules/truncl: New file.
101506         * lib/truncl.c: New file.
101507         * m4/truncl.m4: New file.
101508         * lib/math.in.h (truncl): New declaration.
101509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101510         HAVE_DECL_TRUNCL.
101511         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101512         HAVE_DECL_TRUNCL.
101513         * doc/functions/truncl.texi: Mention the 'truncl' module.
101515 2007-10-04  Bruno Haible  <bruno@clisp.org>
101517         * modules/truncf-tests: New file.
101518         * tests/test-truncf.c: New file.
101520         * modules/truncf: New file.
101521         * lib/trunc.c: Make paramerizable through USE_* macros.
101522         * lib/truncf.c: New file.
101523         * m4/truncf.m4: New file.
101524         * lib/math.in.h (truncf): New declaration.
101525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101526         HAVE_DECL_TRUNCF.
101527         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101528         HAVE_DECL_TRUNCF.
101529         * doc/functions/truncf.texi: Mention the 'truncf' module.
101531 2007-10-03  Bruno Haible  <bruno@clisp.org>
101533         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101534         augmentation also for tests modules.
101535         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101536         * modules/atexit-tests (Makefile.am): Likewise.
101537         * modules/binary-io-tests (Makefile.am): Likewise.
101538         * modules/c-strcase-tests (Makefile.am): Likewise.
101539         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101540         * modules/canonicalize-tests (Makefile.am): Likewise.
101541         * modules/closein-tests (Makefile.am): Likewise.
101542         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101543         * modules/freadahead-tests (Makefile.am): Likewise.
101544         * modules/fseek-tests (Makefile.am): Likewise.
101545         * modules/fseeko-tests (Makefile.am): Likewise.
101546         * modules/ftell-tests (Makefile.am): Likewise.
101547         * modules/ftello-tests (Makefile.am): Likewise.
101548         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101549         * modules/isnanl-tests (Makefile.am): Likewise.
101550         * modules/lseek-tests (Makefile.am): Likewise.
101551         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101552         * modules/mbscasestr-tests (Makefile.am): Likewise.
101553         * modules/mbschr-tests (Makefile.am): Likewise.
101554         * modules/mbscspn-tests (Makefile.am): Likewise.
101555         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101556         * modules/mbspbrk-tests (Makefile.am): Likewise.
101557         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101558         * modules/mbsrchr-tests (Makefile.am): Likewise.
101559         * modules/mbsspn-tests (Makefile.am): Likewise.
101560         * modules/mbsstr-tests (Makefile.am): Likewise.
101561         * modules/printf-posix-tests (Makefile.am): Likewise.
101562         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101563         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101564         * modules/tsearch-tests (Makefile.am): Likewise.
101565         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101566         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101567         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101568         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101569         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101570         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101571         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101572         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101573         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101574         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101575         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101576         * modules/xstrtol-tests (Makefile.am): Likewise.
101577         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101578         * modules/yesno-tests (Makefile.am): Likewise.
101580 2007-10-03  Bruno Haible  <bruno@clisp.org>
101582         * modules/trunc-tests: New file.
101583         * tests/test-trunc.c: New file.
101585         * modules/trunc: New file.
101586         * lib/trunc.c: New file.
101587         * m4/trunc.m4: New file.
101588         * lib/math.in.h (trunc): New declaration.
101589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101590         HAVE_DECL_TRUNC.
101591         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101592         HAVE_DECL_TRUNC.
101593         * doc/functions/trunc.texi: Mention the 'trunc' module.
101595 2007-10-03  Bruno Haible  <bruno@clisp.org>
101597         * tests/test-fpending.c: New file, mostly copied
101598         from coreutils/lib/t-fpending.c.
101599         * modules/fpending-tests: New file.
101601 2007-10-03  Bruno Haible  <bruno@clisp.org>
101603         Port the stdio extensions to QNX (untested).
101604         * lib/fseterr.c (fseterr): Add support for QNX.
101605         * lib/fbufmode.c (fbufmode): Likewise.
101606         * lib/freadable.c (freadable): Likewise.
101607         * lib/fwritable.c (fwritable): Likewise.
101608         * lib/freading.c (freading): Likewise.
101609         * lib/fwriting.c (fwriting): Likewise.
101610         * lib/freadahead.c (freadahed): Likewise.
101611         * lib/fpurge.c (fpurge): Likewise.
101612         * lib/fseeko.c (rpl_fseeko): Likewise.
101614 2007-10-03  Bruno Haible  <bruno@clisp.org>
101615             Jim Meyering  <jim@meyering.net>
101616             Eric Blake  <ebb9@byu.net>
101618         * doc/relocatable.texi: Use @command instead of @program.
101620 2007-10-02  Jim Meyering  <jim@meyering.net>
101622         Perform one more "_.h" -> ".in.h" substitution.
101623         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101624         instead of unistd_.h here, too.
101626 2007-10-01  Bruno Haible  <bruno@clisp.org>
101628         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101629         Needed for the alloca-opt module.
101631 2007-09-30  Bruno Haible  <bruno@clisp.org>
101633         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101634         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101635         alloca_.h.
101636         * lib/argz.in.h: Renamed from lib/argz_.h.
101637         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101638         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101639         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101640         byteswap_.h.
101641         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101642         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101643         dirent_.h.
101644         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101645         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101646         fcntl_.h.
101647         * lib/float.in.h: Renamed from lib/float_.h.
101648         * modules/float (Files, Makefile.am): Use float.in.h instead of
101649         float_.h.
101650         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101651         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101652         fnmatch_.h.
101653         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101654         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101655         getopt_.h.
101656         * lib/glob.in.h: Renamed from lib/glob_.h.
101657         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101658         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101659         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101660         iconv_.h.
101661         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101662         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101663         inttypes_.h.
101664         * lib/locale.in.h: Renamed from lib/locale_.h.
101665         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101666         locale_.h.
101667         * lib/math.in.h: Renamed from lib/math_.h.
101668         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101669         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101670         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101671         of netinet_in_.h. Add dependency.
101672         * lib/poll.in.h: Renamed from lib/poll_.h.
101673         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101674         * lib/search.in.h: Renamed from lib/search_.h.
101675         * modules/search (Files, Makefile.am): Use search.in.h instead of
101676         search_.h.
101677         * lib/signal.in.h: Renamed from lib/signal_.h.
101678         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101679         _signal.h.
101680         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101681         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101682         stdbool_.h.
101683         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101684         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101685         stdint_.h.
101686         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101687         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101688         stdio_.h.
101689         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101690         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101691         stdlib_.h.
101692         * lib/string.in.h: Renamed from lib/string_.h.
101693         * modules/string (Files, Makefile.am): Use string.in.h instead of
101694         string_.h.
101695         * doc/gnulib-tool.texi (Initial import): Update.
101696         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101697         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101698         of sys_select_.h. Add dependency.
101699         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101700         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101701         of sys_socket_.h.
101702         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101703         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101704         sys_stat_.h.
101705         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101706         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101707         sys_time_.h.
101708         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101709         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101710         sysexits_.h.
101711         * lib/time.in.h: Renamed from lib/time_.h.
101712         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101713         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101714         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101715         unistd_.h.
101716         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101717         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101718         wchar_.h.
101719         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101720         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101721         wctype_.h.
101722         * build-aux/bootstrap (slurp): Update.
101723         * lib/.cppi-disable: Update.
101725 2007-09-30  Bruno Haible  <bruno@clisp.org>
101727         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101728         Needed on BeOS.
101730 2007-09-30  Bruno Haible  <bruno@clisp.org>
101732         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101734 2007-09-29  Bruno Haible  <bruno@clisp.org>
101736         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101738 2007-09-29  Bruno Haible  <bruno@clisp.org>
101740         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101741         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101742         * build-aux/install-reloc: Compile also areadlink.c.
101743         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101745 2007-09-29  Bruno Haible  <bruno@clisp.org>
101747         * gnulib-tool (func_emit_initmacro_done): Indentation.
101749 2007-09-29  Bruno Haible  <bruno@clisp.org>
101751         * README: Add CVS checkout update instructions.
101752         Info from Bob Proulx <bob@proulx.com>.
101754 2007-09-28  Eric Blake  <ebb9@byu.net>
101756         Provide move-if-change.
101757         * build-aux/move-if-change: New file, based on best practice
101758         rather than any canonical upstream location.
101760 2007-09-28  Jim Meyering  <jim@meyering.net>
101762         Fix canonicalize loop-detection corner case.
101763         Do not attempt to stat the symlink values stored via seen_triple.
101764         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101765         on linux-2.6.18, (but not 2.6.22).
101766         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101767         triple_compare.  The former compares dev,ino,filename, while the latter
101768         would actually stat dirname(filename) when dev and ino were equal.
101769         * lib/hash-triple.c: Install <string.h>.
101770         (STREQ): Define.
101771         (triple_compare_ino_str): New function.
101772         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101774 2007-09-28  Eric Blake  <ebb9@byu.net>
101776         Enforce that AC_REPLACE_FUNCS files exist.
101777         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101778         override check for typos.
101780         Fix test-closein on Solaris 10.
101781         * tests/test-closein.c (main): Don't assume stdin can be inherited
101782         closed on all systems.
101783         * tests/test-closein.sh: Likewise.
101784         Reported by Piotr Tarnowski.
101786 2007-09-28  Jim Meyering  <jim@meyering.net>
101788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101790 2007-09-27  Jim Meyering  <jim@meyering.net>
101792         canonicalize: Avoid a false-positive cycle failure.
101793         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101794         Sort.  Remove cycle-check.
101795         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101796         not cycle-check.h.
101797         (seen_triple): New function.
101798         (canonicalize_filename_mode): Use it instead of cycle-check.
101799         * tests/test-canonicalize.c: Add a test for this bug.
101800         * tests/test-canonicalize.sh: Set up and run the test.
101802         New module, file-set, from coreutils.
101803         * modules/file-set: Define it.
101804         * lib/file-set.c, lib/file-set.h: Implement.
101806         New module, hash-triple, from coreutils.
101807         * modules/hash-triple: Define it.
101808         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101810 2007-09-25  Eric Blake  <ebb9@byu.net>
101812         Fix strerror on Interix.
101813         * lib/string_.h (strerror): Declare replacement.
101814         * doc/functions/strerror.texi (strerror): Document the Interix
101815         shortcoming.
101816         * modules/string (Makefile.am): Support new hooks.
101817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101818         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101819         gl_FUNC_STRERROR_SEPARATE.
101820         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101821         * lib/strerror.c (rpl_strerror): Provide replacement.
101822         * modules/strerror (Depends-on): Add string.
101823         (configure.ac): Detect use of module.
101824         * tests/test-strerror.c: New file.
101825         * modules/strerror-tests: New test module.
101826         * modules/argp (Depends-on): Add strerror.
101827         * modules/error (Depends-on): Likewise.
101828         Reported by Martin Koeppe.
101830 2007-09-24  Bruno Haible  <bruno@clisp.org>
101832         * README: Update git instructions.
101834 2007-09-24  Eric Blake  <ebb9@byu.net>
101836         Revert fpending breakage from 2007-09-08.
101837         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101838         __fpending.c.
101840 2007-09-24  Jim Meyering  <jim@meyering.net>
101842         filenamecat.c: Add a test.
101843         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101844         showing how the function works when DIR is the empty string.
101846 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101848         * tests/test-canonicalize.sh: Turn on executable bit.
101850 2007-09-19  Eric Blake  <ebb9@byu.net>
101852         * README: Update CVS instructions.
101854 2007-09-18  Bruno Haible  <bruno@clisp.org>
101856         * modules/areadlink: New file.
101857         * lib/areadlink.h (areadlink): New declaration.
101858         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101860 2007-09-17  Jim Meyering  <jim@meyering.net>
101862         * lib/savewd.c (ESTALE) [!defined]: Define.
101863         Reported to be required on Interix by Martin Koeppe.
101865 2007-09-17  Bruno Haible  <bruno@clisp.org>
101867         * gnulib-tool (func_version): Use $version.
101869 2007-09-16  Bruno Haible  <bruno@clisp.org>
101871         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101872         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101873         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101874         Reported by Greg Schafer <gschafer@zip.com.au>.
101876 2007-09-15  Bruno Haible  <bruno@clisp.org>
101878         * gnulib-tool (sed): Try a little harder to make bash understand the
101879         alias.
101880         Reported by Bruce Korb <bruce.korb@gmail.com>.
101882 2007-09-13  Eric Blake  <ebb9@byu.net>
101884         * ChangeLog: Remove conflict markers.
101886 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101888         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101889         Reported by Bruno Haible <bruno@clisp.org>.
101891 2007-09-12  Bruno Haible  <bruno@clisp.org>
101893         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101894         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101895         is not defined.
101897 2007-09-12  Eric Blake  <ebb9@byu.net>
101899         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101900         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101901         Autoconf definition.
101902         * modules/euidaccess (Depends-on): Add extensions, for
101903         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101904         * modules/fnmatch (Depends-on): Likewise.
101905         * modules/getaddrinfo (Depends-on): Likewise.
101906         * modules/getdelim (Depends-on): Likewise.
101907         * modules/getline (Depends-on): Likewise.
101908         * modules/getsubopt (Depends-on): Likewise.
101909         * modules/gettext (Depends-on): Likewise.
101910         * modules/group-member (Depends-on): Likewise.
101911         * modules/mbchar (Depends-on): Likewise.
101912         * modules/memmem (Depends-on): Likewise.
101913         * modules/mempcpy (Depends-on): Likewise.
101914         * modules/memrchr (Depends-on): Likewise.
101915         * modules/pagealign_alloc (Depends-on): Likewise.
101916         * modules/readutmp (Depends-on): Likewise.
101917         * modules/stpcpy (Depends-on): Likewise.
101918         * modules/stpncpy (Depends-on): Likewise.
101919         * modules/strchrnul (Depends-on): Likewise.
101920         * modules/strndup (Depends-on): Likewise.
101921         * modules/strsep (Depends-on): Likewise.
101922         * modules/strverscmp (Depends-on): Likewise.
101923         * modules/vasprintf (Depends-on): Likewise.
101924         * modules/wcwidth (Depends-on): Likewise.
101925         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101926         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101927         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101930         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101931         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101932         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101933         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101934         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101936         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101937         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101939         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101940         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101942         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101943         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101944         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101946         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101947         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101948         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101949         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101951         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101952         so that lock.m4 can be used in gettext without extensions module.
101954 2007-09-11  Bruno Haible  <bruno@clisp.org>
101956         * m4/isc-posix.m4: Remove file.
101957         Suggested by Eric Blake.
101959 2007-09-11  Eric Blake  <ebb9@byu.net>
101961         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101963 2007-09-10  Bruno Haible  <bruno@clisp.org>
101965         * posix-modules: Fix typo in error message.
101966         Reported by Matt <mkraai@beckman.com>.
101968 2007-09-09  Bruno Haible  <bruno@clisp.org>
101970         * doc/functions/getdelim.texi: Update list of platforms lacking the
101971         function.
101972         * doc/functions/getline.texi: Likewise.
101974 2007-09-09  Jim Meyering  <jim@meyering.net>
101976         * lib/hash.c (hash_initialize): Detect calloc failure.
101977         Reported by Bruno Haible.
101979 2007-09-09  Bruno Haible  <bruno@clisp.org>
101981         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101982         malloc or realloc fails.
101984 2007-09-09  Bruno Haible  <bruno@clisp.org>
101986         * modules/getcwd (Depends-on): Add malloc-posix.
101987         * modules/glob (Depends-on): Likewise.
101988         * modules/putenv (Depends-on): Likewise.
101989         * modules/strdup (Depends-on): Likewise.
101990         * modules/getdelim (Depends-on): Add realloc-posix.
101991         * modules/read-file (Depends-on): Likewise.
101993 2007-09-09  Bruno Haible  <bruno@clisp.org>
101995         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101996         (gl_FUNC_MALLOC_POSIX): Require it.
101997         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101998         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101999         * modules/realloc (Files): Add m4/malloc.m4.
102000         * modules/calloc (Files): Likewise.
102002 2007-09-09  Bruno Haible  <bruno@clisp.org>
102004         * modules/malloc-posix: New file.
102005         * modules/malloc (Depends-on): Add malloc-posix.
102006         * lib/malloc.c: Include errno.h.
102007         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102008         and a POSIX-compatible malloc into a single function. Set ENOMEM
102009         when returning NULL.
102010         * m4/malloc.m4: New file.
102011         * doc/functions/malloc.texi: Mention the malloc-posix module.
102012         * lib/stdlib_.h (malloc): New declaration.
102013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102014         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102015         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102016         and HAVE_MALLOC_POSIX.
102018 2007-09-09  Bruno Haible  <bruno@clisp.org>
102020         * modules/realloc-posix: New file.
102021         * modules/realloc (Depends-on): Add realloc-posix.
102022         * lib/realloc.c: Include errno.h.
102023         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102024         and a POSIX-compatible realloc into a single function. Set ENOMEM
102025         when returning NULL.
102026         * m4/realloc.m4: New file.
102027         * doc/functions/realloc.texi: Mention the realloc-posix module.
102028         * lib/stdlib_.h (realloc): New declaration.
102029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102030         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102031         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102032         and HAVE_REALLOC_POSIX.
102034 2007-09-09  Bruno Haible  <bruno@clisp.org>
102036         * modules/calloc-posix: New file.
102037         * modules/calloc (Depends-on): Add calloc-posix.
102038         * lib/calloc.c: Include errno.h.
102039         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102040         and a POSIX-compatible calloc into a single function. Set ENOMEM
102041         when returning NULL.
102042         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102043         * doc/functions/calloc.texi: Mention the calloc-posix module.
102044         * lib/stdlib_.h (calloc): New declaration.
102045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102046         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102047         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102048         and HAVE_CALLOC_POSIX.
102050 2007-09-09  Bruno Haible  <bruno@clisp.org>
102052         Allow for modules to show an arbitrary notice.
102053         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102054         * gnulib-tool: New option --extract-notice.
102055         (func_usage): Document it.
102056         (sed_extract_prog): Update.
102057         (func_get_notice): New function.
102058         (func_modules_notice): New function.
102059         (func_import, func_create_testdir): Invoke it.
102060         Suggested by Jim Meyering.
102062 2007-09-09  Bruno Haible  <bruno@clisp.org>
102064         * gnulib-tool: New options --verbose, --quiet.
102065         (func_usage): Document them.
102066         (verbose): New variable.
102067         (func_execute_command): New function.
102068         (func_import): Don't show the module list and the file list if
102069         $verbose < 0.
102070         (func_create_testdir): Likewise. Use func_execute_command.
102071         (func_create_megatestdir): Use func_execute_command.
102073 2007-09-08  Bruno Haible  <bruno@clisp.org>
102075         * gnulib-tool (func_import): Prefer rsync over wget when available,
102076         for fetching the PO files.
102078 2007-09-08  Bruno Haible  <bruno@clisp.org>
102080         * posix-modules: New file. Portions copied from gnulib-tool.
102081         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102083 2007-09-08  Jim Meyering  <jim@meyering.net>
102085         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102086         * lib/fpending.h: Rename from __fpending.h.
102087         * lib/fpending.c: Rename from __fpending.c.
102088         Include "fpending.h", not "__fpending.h".
102089         * lib/__fpending.h, lib/__fpending.c: Remove files.
102090         * modules/fpending (Files): Reflect new file names.
102091         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102093 2007-09-08  Bruno Haible  <bruno@clisp.org>
102095         * m4/inttypes-h.m4: Remove stub file.
102097 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102099         * doc/headers/stdint.texi: Discuss #include_next issue.
102101 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102103         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102105 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102107         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102108         in variable name.
102110 2007-09-03  Jim Meyering  <jim@meyering.net>
102112         New module: git-version-gen.
102113         * modules/git-version-gen: New file.
102115         Import changes from coreutils for bootstrap script.
102117         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102119         bootstrap: uses rsync to download the .po files
102120         * build-aux/bootstrap (po_download_command_format): New global.
102121         (download_po_files): Use rsync.
102122         (update_po_files): Don't remove .po files after download,
102123         so future rsync runs can take advantage of the copies.
102125         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102127         Solve the unnecessary-.po-file-regeneration problem once and for all.
102128         * build-aux/bootstrap (download_po_files): New function, renamed from
102129         get_translations.  Now, downloads, but doesn't update LINGUAS.
102130         (update_po_files): New function.
102132         bootstrap: Ignore more.
102133         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102134         uniwidth to e.g., lib/.gitignore.
102135         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102137         * build-aux/bootstrap: New setting: vc_ignore.
102138         (insert_sorted_if_absent): Create $file if absent.
102139         Adapt to new, possibly empty, list: $vc_ignore.
102141         bootstrap: generate more ignorable names
102142         * build-aux/bootstrap (slurp): When generating ignorable names,
102143         also map .sin to .sed, .gperf to .c, and .y to .c.
102145 2007-09-03  Jim Meyering  <jim@meyering.net>
102147         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102148         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102150 2007-09-02  Bruno Haible  <bruno@clisp.org>
102152         Fix mis-recognition of 'mcs' on QNX 6.
102153         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102154         output contains the string "Mono".
102155         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102156         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102158 2007-09-01  Bruno Haible  <bruno@clisp.org>
102160         Fix collision between uniwidth/* and linebreak modules.
102161         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102162         u32_width): Remove declarations.
102163         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102164         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102165         streq3, streq2, streq1, streq0): Remove functions.
102166         (STREQ): Remove macro.
102167         (is_cjk_encoding): Remove function.
102168         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102169         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102170         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102171         * NEWS: Document the change.
102173 2007-09-01  Bruno Haible  <bruno@clisp.org>
102175         * lib/streq.h: Add double-inclusion guard.
102177 2007-09-01  Karl Berry  <karl@gnu.org>
102179         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102181 2007-08-28  Jim Meyering  <jim@meyering.net>
102183         Rename mreadlink_with_size to areadlink_with_size.
102184         * NEWS: Document the change.
102185         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102186         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102187         * lib/mreadlink.h: Rename this to...
102188         * lib/areadlink.h: ...this.
102189         * modules/mreadlink-with-size: Rename this to...
102190         * modules/areadlink-with-size: ...this.
102191         * lib/canonicalize.c: Reflect the renaming.
102192         * modules/canonicalize: Likewise.
102194 2007-08-26  Bruno Haible  <bruno@clisp.org>
102196         * gnulib-tool (func_import): When deciding which files to remove,
102197         consider also dangling symbolic links.
102198         Reported by Eric Blake.
102200 2007-08-26  Bruno Haible  <bruno@clisp.org>
102202         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102204 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102206         * lib/readline.c: Don't include getline.h, the prototype is now
102207         found in stdio.h.
102209 2007-08-23  Jim Meyering  <jim@meyering.net>
102211         Getdelim touchup.
102212         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102213         around the funlockfile call, since funlockfile never sets errno.
102214         Don't set errno upon failed realloc.
102216 2007-08-22  Eric Blake  <ebb9@byu.net>
102218         Getline touchups.
102219         * lib/getdelim.c (getdelim): Revert regression that required *n to
102220         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102222         getdelim, rather than whether implementation is missing.
102223         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102224         * lib/stdio_.h (getline): Also declare if replacement is
102225         required.
102226         * doc/functions/getdelim.texi: New file.
102227         * doc/functions/getline.texi: Likewise.
102228         * doc/gnulib.texi (Function Substitutes): Add new files.
102229         Reported by Bruno Haible.
102231 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102233         * users.txt: Add Guile.
102235 2007-08-22  Eric Blake  <ebb9@byu.net>
102237         * tests/test-getdelim.c (main): Use remove, not unlink.
102238         * tests/test-getline.c (main): Likewise.
102240         Move getline and getdelim into stdio.h, per POSIX 200x.
102241         * modules/getline (Files): Remove getline.h.
102242         (Depends-on): Add stdio.
102243         (configure.ac): Add module indicator.
102244         * modules/getdelim (Files): Remove getdelim.h.
102245         (Depends-on): Add stdio.
102246         (configure.ac): Add module indicator.
102247         * modules/stdio (Makefile.am): Work with new indicators.
102248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102249         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102250         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102251         * lib/getdelim.h: Delete.
102252         * lib/getline.h: Delete.
102253         * lib/stdio_.h (getdelim, getline): Declare.
102254         * modules/getdelim-tests: New module.
102255         * modules/getline-tests: Likewise.
102256         * tests/test-getdelim.c: New file.
102257         * tests/test-getline.c: Likewise.
102258         * NEWS: Document the change.
102259         * lib/getline.c: Update choice of header.
102260         * lib/csharpcomp.c: Likewise.
102261         * lib/getpass.c: Likewise.
102262         * lib/javacomp.c: Likewise.
102263         * lib/javaversion.c: Likewise.
102264         * lib/yesno.c: Likewise.
102265         * lib/getdelim.c: Likewise.
102266         (getdelim): Set errno on failure, and avoid memory leak.
102268 2007-08-19  Bruno Haible  <bruno@clisp.org>
102270         * modules/closein (Depends-on): Add freadahead.
102271         * lib/closein.c: Include freadahead.h.
102272         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102273         is zero.
102275 2007-08-19  Bruno Haible  <bruno@clisp.org>
102277         * modules/freadahead-tests: New file.
102278         * tests/test-freadahead.sh: New file.
102279         * tests/test-freadahead.c: New file.
102281         * modules/freadahead: New file.
102282         * lib/freadahead.h: New file.
102283         * lib/freadahead.c: New file.
102284         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102285         fbufmode, fpurge, freadable, fwritable.
102287 2007-08-19  Eric Blake  <ebb9@byu.net>
102289         Test yesno in combination with closein.
102290         * lib/yesno.c (yesno): Document use of stdin.
102291         * modules/yesno-tests (Files): New module.
102292         * tests/test-yesno.c (main): New file.
102293         * tests/test-yesno.sh: Likewise.
102295 2007-08-19  Bruno Haible  <bruno@clisp.org>
102297         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102298         * lib/fseeko.c (rpl_fseeko): Likewise.
102299         * lib/fseterr.c (fseterr): Likewise.
102301 2007-08-19  Bruno Haible  <bruno@clisp.org>
102303         * tests/test-lseek.c (main): Disable a test for BeOS.
102304         * doc/functions/lseek.texi: Document the BeOS bug.
102306 2007-08-19  Bruno Haible  <bruno@clisp.org>
102307             Eric Blake  <ebb9@byu.net>
102309         * lib/lseek.c: Include <sys/stat.h>.
102310         (rpl_lseek): Add workaround code also for Unix platforms.
102311         Needed for BeOS.
102312         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102313         * doc/functions/lseek.texi: Document BeOS definiency.
102315 2007-08-18  Bruno Haible  <bruno@clisp.org>
102317         * modules/fstrcmp-tests: New file.
102318         * tests/test-fstrcmp.c: New file.
102320 2007-08-18  Bruno Haible  <bruno@clisp.org>
102322         * modules/fstrcmp: New file, from GNU gettext with modifications.
102323         * lib/fstrcmp.h: New file, from GNU gettext.
102324         * lib/fstrcmp.c: New file, from GNU gettext.
102325         * MODULES.html.sh (String handling): Add fstrcmp.
102327 2007-08-18  Bruno Haible  <bruno@clisp.org>
102329         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102330         'bool'.
102331         (diag, compareseq): Remove const from the ctxt argument.
102332         (USE_HEURISTIC): Undefine at the end.
102334 2007-08-18  Jim Meyering  <jim@meyering.net>
102336         New file: lib/idcache.h
102337         * NEWS: Mention the addition.
102338         * modules/idcache (Files): Add lib/idcache.h
102339         * lib/idcache.c: Include "idcache.h".
102340         Don't include <sys/types.h>.
102341         Add a FIXME comment.
102342         Move file-scoped "static" declarations to the top.
102343         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102345 2007-08-17  Bruno Haible  <bruno@clisp.org>
102346         and Paul Eggert  <eggert@cs.ucla.edu>
102348         * MODULES.html.sh: Add diffseq.
102349         * modules/diffseq: New file.
102350         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102351         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102353 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102355         Import changes from coreutils for bootstrap script.
102357         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102359         * build-aux/bootstrap (slurp): Work even in environments where
102360         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102361         current code does not slurp files whose names start with ".", and
102362         this looks like it might be a troublesome area.
102364         2007-07-11  Jim Meyering  <jim@meyering.net>
102366         If there's a GPL vN copyright comment, require that N == 3.
102368         2007-07-08  Jim Meyering  <jim@meyering.net>
102370         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102371         * build-aux/bootstrap (mam_template): Move definition out of loop.
102373         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102375         * build-aux/bootstrap (symlink_to_dir): Rename function from
102376         symlink_to_gnulib.  Add a directory parameter.  Update all
102377         callers.
102378         (cp_mark_as_generated): Also check for -- and link to -- files in
102379         gl/.
102381         2007-07-08  Jim Meyering  <jim@meyering.net>
102383         Adapt to deeper hierarchy in gnulib.
102384         * build-aux/bootstrap (symlink_to_dir): If the destination
102385         directory doesn't exist, create it. This is required at least for
102386         "lib/uniwidth/cjk.h".
102388         2007-05-15  Jim Meyering  <jim@meyering.net>
102390         * build-aux/bootstrap: Now that generated Makefile.am files
102391         are no longer under version control, they must be created at
102392         bootstrap time.
102394 2007-08-14  Ben Pfaff  <blp@gnu.org>
102396         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102398 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102400         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102401         given the changes below.
102402         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102403         even on hosts that have padding bits beyond the supported 64.
102405 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102407         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102408         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102409         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102410         depends on it.
102411         (xstrtol_error): Remove.
102412         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102413         but with a different signature.
102414         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102415         * lib/xstrtol-error.c: Include exitfail.h.
102416         (xstrtol_fatal): New function, with a different signature from the
102417         old xstrtol_error, so that the caller need not worry about passing
102418         in an exit status, or about storage management of the option argument.
102419         (xstrtol_error): Now a static function.  Redo signature to
102420         implement xstrtol_fatal.  Output the correct number of hyphens in
102421         front of the option so that the caller need not worry about
102422         storage management.
102423         (N_): New macro.
102424         (_): Remove; not used now.
102425         * modules/xstrtol: Depend on getopt.
102426         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102427         of old STRTOL_FATAL_ERROR macro.
102428         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102429         of test program.
102430         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102431         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102433 2007-08-08  Eric Blake  <ebb9@byu.net>
102435         * lib/xstrtol-error.c: Add missing include.
102437         Move xstrtol messages into gnulib domain, when --pobase is used.
102438         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102439         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102440         * modules/xstrtol (Files): Distribute new file.
102441         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102442         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102443         * tests/test-xstrtol.c: ...into new file.
102444         * tests/test-xstrtoul.c: Also test xstrtoul.
102445         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102446         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102447         * tests/test-xstrtol.sh: Drive the tests.
102448         * tests/test-xstrtoimax.sh: Likewise.
102449         * tests/test-xstrtoumax.sh: Likewise.
102450         * modules/xstrtol-tests: New module.
102451         * modules/xstrtoimax-tests: Likewise.
102452         * modules/xstrtoumax-tests: Likewise.
102454 2007-08-08  Jim Meyering  <jim@meyering.net>
102456         New function: mfile_name_concat.
102457         * lib/filenamecat.c (mfile_name_concat): New function, just like
102458         file_name_concat, but return NULL upon failure rather than exiting
102459         with a diagnostic.
102460         * lib/filenamecat.h: Declare it.
102462 2007-08-07  Bruno Haible  <bruno@clisp.org>
102464         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102465         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102466         warning from gcc.
102467         Reported by Eric Blake.
102469 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102471         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102472         * modules/crypto/arcfour (License): Likewise.
102473         * modules/crypto/des-tests (License): Likewise.
102474         * modules/crypto/gc-arctwo-tests (License): Likewise.
102475         * modules/crypto/gc-des-tests (License): Likewise.
102476         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102477         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102478         * modules/crypto/gc-md2-tests (License): Likewise.
102479         * modules/crypto/gc-md4-tests (License): Likewise.
102480         * modules/crypto/gc-md5-tests (License): Likewise.
102481         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102482         * modules/crypto/gc-rijndael-tests (License): Likewise.
102483         * modules/crypto/gc-sha1-tests (License): Likewise.
102484         * modules/crypto/gc-tests (License): Likewise.
102485         * modules/crypto/hmac-md5 (License): Likewise.
102486         * modules/crypto/hmac-sha1 (License): Likewise.
102487         * modules/crypto/md2-tests (License): Likewise.
102488         * modules/crypto/md4-tests (License): Likewise.
102489         * modules/crypto/md5 (License): Likewise.
102490         * modules/crypto/rijndael (License): Likewise.
102491         * modules/crypto/sha1 (License): Likewise.
102492         * modules/memxor (License): Likewise.
102494 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102495         and Bruno Haible  <bruno@clisp.org>
102497         * NEWS: Describe interface changes to human, xstrtol.
102498         * lib/human.h: Include <xstrtol.h>.
102499         (human_options): Return enum strtol_error, not int.  Remove
102500         bool arg; take int * instead.
102501         * lib/human.c: Don't include "gettext.h".
102502         (_): Remove; no longer used.
102503         Don't include <xstrtol.h>, since human.h does it.
102504         (human_options): Adjust to abovementioned interface changes.
102505         Do not report error to stderr; that's now the caller's
102506         responsibility.
102507         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102508         interface change.
102509         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102510         Str, Argument_type_string.  All uses changed.  Put " argument"
102511         in diagnostics to make them clearer.  Change wording of suffix
102512         message for clarity.
102513         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102514         Argument_type_string.
102515         (STRTOL_FATAL_WARN): Remove; no longer used.
102516         * modules/human (Depends-on): Remove gettext-h.
102518 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102520         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102522 2007-07-31  Bruno Haible  <bruno@clisp.org>
102524         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102525         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102526         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102528 2007-07-31  Bruno Haible  <bruno@clisp.org>
102530         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102531         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102533 2007-07-30  Bruno Haible  <bruno@clisp.org>
102535         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102536         * modules/c-ctype (License): Likewise.
102537         * modules/c-strcase (License): Likewise.
102538         * modules/check-version (License): Likewise.
102539         * modules/iconv (License): Likewise.
102540         * modules/iconv_open (License): Likewise.
102541         * modules/read-file (License): Likewise.
102542         * modules/striconv (License): Likewise.
102543         * modules/strverscmp (License): Likewise.
102544         * modules/vasprintf (License): Likewise.
102545         * modules/crypto/des (License): Likewise.
102546         * modules/crypto/gc (License): Likewise.
102547         * modules/crypto/gc-arcfour (License): Likewise.
102548         * modules/crypto/gc-arctwo (License): Likewise.
102549         * modules/crypto/gc-des (License): Likewise.
102550         * modules/crypto/gc-hmac-md5 (License): Likewise.
102551         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102552         * modules/crypto/gc-md2 (License): Likewise.
102553         * modules/crypto/gc-md4 (License): Likewise.
102554         * modules/crypto/gc-md5 (License): Likewise.
102555         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102556         * modules/crypto/gc-random (License): Likewise.
102557         * modules/crypto/gc-rijndael (License): Likewise.
102558         * modules/crypto/gc-sha1 (License): Likewise.
102559         * modules/crypto/md2 (License): Likewise.
102560         * modules/crypto/md4 (License): Likewise.
102562 2007-07-30  Jim Meyering  <jim@meyering.net>
102564         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102565         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102566         it has valid stat data.  This bug would cause du not to count the
102567         sizes of inaccessible directories.
102568         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102569         in <http://bugzilla.redhat.com/250077>.
102571 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102572             Bruno Haible  <bruno@clisp.org>
102574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102575         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102576         #include_next, gives a diagnostic about it, but reports no error in
102577         the exit code.
102578         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102580 2007-07-24  Ben Pfaff  <blp@gnu.org>
102582         Improve name: "count-one-bits" is better than "popcount".
102583         * MODULES.html.sh: Update name.
102584         * lib/popcount.h: Renamed lib/count-one-bits.h.
102585         (popcount): Renamed count_one_bits.
102586         (popcountl): Renamed count_one_bits_l.
102587         (popcountll): Renamed count_one_bits_ll.
102588         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102589         * modules/popcount: Renamed module/count-one-bits.
102590         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102591         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102593 2007-07-23  Ben Pfaff  <blp@gnu.org>
102595         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102596         better code generation, and add U to large constants to avoid
102597         warnings, in non-GCC case.
102598         Suggested by Bruno Haible.
102600 2007-07-23  Ben Pfaff  <blp@gnu.org>
102602         * lib/popcount.h: Use verify_true instead of if...abort.
102603         * modules/popcount: Depend on verify module.
102604         Suggested by Jim Meyering.
102606 2007-07-23  Bruno Haible  <bruno@clisp.org>
102608         * gnulib-tool (func_import): Create a .cvsignore file also when the
102609         directory is not yet in CVS but the toplevel directory is. When
102610         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102611         Reported by Karl Berry.
102613 2007-07-22  Ben Pfaff  <blp@gnu.org>
102615         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102616         case.
102617         Suggested by Eric Blake.
102619 2007-07-22  Ben Pfaff  <blp@gnu.org>
102621         New module: popcount.
102622         * MODULES.html.sh: Add popcount.
102623         * modules/popcount: New file.
102624         * modules/popcount-tests: New file.
102625         * tests/test-popcount.c: New file.
102626         * lib/popcount.h: New file.
102627         * m4/popcount.m4: New file.
102629 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102631         * build-aux/announce-gen: Update to GPLv3.
102633         * build-aux/config.guess: Update from config.
102635 2007-07-21  Bruno Haible  <bruno@clisp.org>
102637         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102638         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102640 2007-07-20  Jim Meyering  <jim@meyering.net>
102642         * check-module: Diagnose a self-dependency.
102644 2007-07-19  Bruno Haible  <bruno@clisp.org>
102646         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102647         empty.
102648         Reported by Eric Blake.
102650 2007-07-18  Bruno Haible  <bruno@clisp.org>
102652         * gnulib-tool: New options --po-base, --po-domain.
102653         (func_usage): Document them.
102654         (pobase, po_domain): New variables.
102655         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102656         DEFAULT_TEXT_DOMAIN.
102657         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102658         (func_import): Consider pobase and po_domain. Create a po/ directory.
102659         (func_create_testdir): Set pobase and po_domain to empty.
102660         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102661         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102663 2007-07-18  Bruno Haible  <bruno@clisp.org>
102665         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102666         EXTRA_DIST augmentation for files in build-aux/.
102668 2007-07-16  Bruno Haible  <bruno@clisp.org>
102670         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102671         * modules/getdelim (License): Likewise.
102673 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102675         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102676         * modules/d-type (License): Likewise.
102677         * modules/extensions (License): Likewise.
102678         * modules/fnmatch (License): Likewise.
102679         * modules/fseeko (License): Likewise.
102680         * modules/getaddrinfo (License): Likewise.
102681         * modules/getline (License): Likewise.
102682         * modules/getlogin_r (License): Likewise.
102683         * modules/getpass (License): Likewise.
102684         * modules/gettimeofday (License): Likewise.
102685         * modules/glob (License): Likewise.
102686         * modules/inet_ntop (License): Likewise.
102687         * modules/malloc (License): Likewise.
102688         * modules/malloca (License): Likewise.
102689         * modules/memmem (License): Likewise.
102690         * modules/mempcpy (License): Likewise.
102691         * modules/memset (License): Likewise.
102692         * modules/minmax (License): Likewise.
102693         * modules/mktime (License): Likewise.
102694         * modules/netinet_in (License): Likewise.
102695         * modules/pathmax (License): Likewise.
102696         * modules/poll (License): Likewise.
102697         * modules/regex (License): Likewise.
102698         * modules/snprintf (License): Likewise.
102699         * modules/stdbool (License): Likewise.
102700         * modules/stdint (License): Likewise.
102701         * modules/stdio (License): Likewise.
102702         * modules/strcase (License): Likewise.
102703         * modules/strcasestr (License): Likewise.
102704         * modules/strdup (License): Likewise.
102705         * modules/string (License): Likewise.
102706         * modules/strndup (License): Likewise.
102707         * modules/strnlen (License): Likewise.
102708         * modules/strpbrk (License): Likewise.
102709         * modules/strptime (License): Likewise.
102710         * modules/strsep (License): Likewise.
102711         * modules/sys_select (License): Likewise.
102712         * modules/sys_socket (License): Likewise.
102713         * modules/sys_stat (License): Likewise.
102714         * modules/sys_time (License): Likewise.
102715         * modules/time (License): Likewise.
102716         * modules/time_r (License): Likewise.
102717         * modules/timegm (License): Likewise.
102718         * modules/unistd (License): Likewise.
102719         * modules/vsnprintf (License): Likewise.
102720         * modules/wctype (License): Likewise.
102722 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102724         * modules/argz (License): LGPLv2+.
102726 2007-07-15  Karl Berry  <karl@gnu.org>
102728         * doc/gnulib.texi: revise node structure per new fdl.texi.
102730 2007-07-14  Bruno Haible  <bruno@clisp.org>
102732         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102733         the output file.
102734         * lib/uniname/uninames.h: Regenerated.
102736 2007-07-14  Karl Berry  <karl@gnu.org>
102738         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102739         omitting sectioning and index commands.
102741 2007-07-13  Bruno Haible  <bruno@clisp.org>
102743         New gnulib-tool option --more-symlinks.
102744         * gnulib-tool (func_usage): Document --more-symlinks.
102745         (do_copyrights): New variable.
102746         Recognize option --more-symlinks.
102747         (func_import): Don't add a copyright notice transform to
102748         sed_transform_lib_file if do_copyrights is empty.
102750 2007-07-13  Bruno Haible  <bruno@clisp.org>
102752         * lib/vasnprintf.c (decimal_point_char): Define also if
102753         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102754         && !NEED_PRINTF_DIRECTIVE_A.
102755         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102756         Gary V. Vaughan <gary@gnu.org>.
102758 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102760         * lib/inttypes_.h: Undo previous change, since it was fixed
102761         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102763 2007-07-13  Bruno Haible  <bruno@clisp.org>
102765         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102766         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102768 2007-07-13  Jim Meyering  <jim@meyering.net>
102770         df: Don't fail for Tru64's "file-on-file mount".
102771         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102772         so we fall through and use statfs instead.  Details here:
102773         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102774         Reported by Albert Chin.
102776 2007-07-13  Bruno Haible  <bruno@clisp.org>
102778         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102779         * modules/configmake (License): Likewise.
102780         * modules/gettext (License): Likewise.
102781         * modules/gettext-h (License): Likewise.
102782         * modules/include_next (License): Likewise.
102783         * modules/link-warning (License): Likewise.
102784         * modules/localcharset (License): Likewise.
102785         * modules/localename (License): Likewise.
102786         * modules/lock (License): Likewise.
102787         * modules/relocatable-lib-lgpl (License): Likewise.
102788         * modules/size_max (License): Likewise.
102789         * modules/vasnprintf (License): Likewise.
102790         * modules/wchar (License): Likewise.
102791         * modules/xsize (License): Likewise.
102793 2007-07-13  Bruno Haible  <bruno@clisp.org>
102795         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102796         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102798 2007-07-12  Bruno Haible  <bruno@clisp.org>
102800         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102801         in the modules files.
102803 2007-07-11  Karl Berry  <karl@gnu.org>
102805         * MODULES.html.sh (func_module): use
102806          sed -e '\|^'"${includefile}"'$|d'
102807          instead of /.../d, to avoid errors on $includefile's containing /.
102809 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102811         * gnulib-tool (func_import): Avoid duplication of --avoid
102812         statements
102813         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102814         names to `_' in variable names.
102816 2007-07-10  Eric Blake  <ebb9@byu.net>
102818         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102819         * NEWS: Document this change.
102821 2007-07-08  Bruno Haible  <bruno@clisp.org>
102823         Update to Unicode 5.0.
102824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102825         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102826         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102827         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102828         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102829         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102830         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102831         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102832         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102833         U+10A3F, U+1D242..U+1D244.
102834         (nonspacing_table_ind): Update.
102835         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102836         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102838 2007-07-08  Bruno Haible  <bruno@clisp.org>
102840         Update to Unicode 5.0.
102841         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102842         code transform. Extend the name index field of unicode_name_to_code and
102843         unicode_code_to_name from 16 to 24 bits.
102844         * lib/uniname/uniname.c (unicode_character_name,
102845         unicode_name_character): Add the range 0x12xxx to the code transform.
102846         * lib/uniname/uninames.h: Regenerated.
102847         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102849 2007-07-07  Bruno Haible  <bruno@clisp.org>
102851         * modules/wcwidth-tests: New file.
102852         * tests/test-wcwidth.c: New file.
102854         Work around MacOS X wcwidth() bug.
102855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102856         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102857         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102858         original wcwidth in non-UTF-8 locales.
102859         * modules/wcwidth (Depends-on): Add localcharset, streq,
102860         uniwidth/width.
102861         * doc/functions/wcwidth.texi: Update.
102863 2007-07-07  Bruno Haible  <bruno@clisp.org>
102865         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102866         (wcwidth): New declaration.
102867         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102868         macros.
102869         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102870         here. Prepare for creating <wchar.h> unconditionally.
102871         * modules/wchar (Depends-on): Add link-warning.
102872         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102873         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102874         * lib/wcwidth.h: Remove file.
102875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102876         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102877         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102878         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102879         (Include): Replace wcwidth.h with <wchar.h>.
102880         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102881         * lib/mbchar.h: Don't include wcwidth.h.
102882         * lib/mbswidth.c: Likewise.
102883         * NEWS: Mention the change.
102885 2007-07-07  Bruno Haible  <bruno@clisp.org>
102887         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102888         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102889         definition with an external declaration.
102890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102891         defined as a function. Remove AC_C_INLINE requirement.
102892         * modules/wcwidth (Files): Add lib/wcwidth.c.
102893         (Makefile.am): Remove redundant statement.
102895 2007-07-07  Bruno Haible  <bruno@clisp.org>
102897         * MODULES.html.sh (Unicode string functions): Add the new modules.
102899         * tests/uniwidth/test-u32-strwidth.c: New file.
102900         * modules/uniwidth/u32-strwidth-tests: New file.
102902         * lib/uniwidth/u32-strwidth.c: New file.
102903         * modules/uniwidth/u32-strwidth: New file.
102905         * tests/uniwidth/test-u16-strwidth.c: New file.
102906         * modules/uniwidth/u16-strwidth-tests: New file.
102908         * lib/uniwidth/u16-strwidth.c: New file.
102909         * modules/uniwidth/u16-strwidth: New file.
102911         * tests/uniwidth/test-u8-strwidth.c: New file.
102912         * modules/uniwidth/u8-strwidth-tests: New file.
102914         * lib/uniwidth/u8-strwidth.c: New file.
102915         * modules/uniwidth/u8-strwidth: New file.
102917         * tests/uniwidth/test-u32-width.c: New file.
102918         * modules/uniwidth/u32-width-tests: New file.
102920         * lib/uniwidth/u32-width.c: New file.
102921         * modules/uniwidth/u32-width: New file.
102923         * tests/uniwidth/test-u16-width.c: New file.
102924         * modules/uniwidth/u16-width-tests: New file.
102926         * lib/uniwidth/u16-width.c: New file.
102927         * modules/uniwidth/u16-width: New file.
102929         * tests/uniwidth/test-u8-width.c: New file.
102930         * modules/uniwidth/u8-width-tests: New file.
102932         * lib/uniwidth/u8-width.c: New file.
102933         * modules/uniwidth/u8-width: New file.
102935         * tests/uniwidth/test-uc_width.c: New file.
102936         * modules/uniwidth/width-tests: New file.
102938         * lib/uniwidth/width.c: New file, from GNU libiconv.
102939         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102940         * modules/uniwidth/width: New file.
102942         * lib/uniwidth.h: New file, from GNU libiconv.
102943         * modules/uniwidth/base: New file.
102945 2007-07-07  Bruno Haible  <bruno@clisp.org>
102947         * lib/uniname.h: New file, from GNU gettext.
102948         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102949         * lib/uniname/uninames.h: New file, from GNU gettext.
102950         * lib/uniname/uniname.c: New file, from GNU gettext.
102951         * tests/uniname/test-uninames.sh: New file.
102952         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102953         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102954         * modules/uniname/base: New file.
102955         * modules/uniname/uniname: New file.
102956         * modules/uniname/uniname-tests: New file.
102957         * MODULES.html.sh (Unicode string functions): Add the new modules.
102959 2007-07-06  Bruno Haible  <bruno@clisp.org>
102961         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102963 2007-07-06  Bruno Haible  <bruno@clisp.org>
102965         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102966         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102967         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102968         include <sys/time.h>.
102969         Reported by Eric Blake.
102971 2007-07-06  Eric Blake  <ebb9@byu.net>
102973         Fix testing canonicalize on cygwin.
102974         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102975         Revert patch from 2007-06-19.
102976         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102977         canonicalize module is also in use.
102978         * tests/test-canonicalize.c: New file.
102979         * tests/test-canonicalize.sh: Likewise.
102980         * modules/canonicalize-tests: Likewise.
102982 2007-07-06  Jim Meyering  <jim@meyering.net>
102984         * lib/getugroups.c (getugroups): Detect getgrent failure.
102985         Adjust comment to reflect reality: this function may return -1.
102987 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102989         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102990         the new TP address.
102991         (usage): Fix typo
102992         (gnulib_mk): New variable.
102994 2007-07-05  Jim Meyering  <jim@meyering.net>
102996         Don't let endgrent clobber errno, no matter how improbable.
102997         * lib/getugroups.c (getugroups): Save and restore errno around
102998         endgrent call.
103000         Close the group DB even when failing with 2^31 or more members.
103001         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103003 2007-07-04  Jim Meyering  <jim@meyering.net>
103005         * lib/getugroups.h: New file.
103006         * lib/getugroups.c: Include "getugroups.h".
103007         Remove uses of "register" keyword.
103008         Move local variable, "cp", down into scope where used.
103009         Give "username" parameter the "const" attribute.
103010         * modules/getugroups (Files): Add lib/getugroups.h
103012 2007-07-04  Karl Berry  <karl@gnu.org>
103014         * MODULES.html.sh (func_all_modules): Complete rename of
103015         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103017 2007-07-02  Bruno Haible  <bruno@clisp.org>
103019         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103020         mode, when inttypes.h comes from gnulib.
103021         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103023 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103025         * NEWS: Mention lgpl module name change.
103027         * modules/lgpl-2.1: Renamed from lgpl.
103029         * NEWS: Mention gpl module name change.
103031         * modules/gpl-3.0: New file, based on gpl-2.0.
103033         * modules/gpl-2.0: Renamed from gpl.
103035         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103036         doc/gpl-2.0.texi.
103038 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103040         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103041         #define __STDC_LIMIT_MACROS temporarily while including
103042         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103043         Problem reported by Joel E. Denny in
103044         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103046 2007-07-01  Bruno Haible  <bruno@clisp.org>
103048         * lib/unistdio.h: New file.
103049         * lib/unistdio/u-asnprintf.h: New file.
103050         * lib/unistdio/u-asprintf.h: New file.
103051         * lib/unistdio/u-printf-args.c: New file.
103052         * lib/unistdio/u-printf-args.h: New file.
103053         * lib/unistdio/u-printf-parse.h: New file.
103054         * lib/unistdio/u-snprintf.h: New file.
103055         * lib/unistdio/u-sprintf.h: New file.
103056         * lib/unistdio/u-vasprintf.h: New file.
103057         * lib/unistdio/u-vsnprintf.h: New file.
103058         * lib/unistdio/u-vsprintf.h: New file.
103059         * lib/unistdio/ulc-asnprintf.c: New file.
103060         * lib/unistdio/ulc-asprintf.c: New file.
103061         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103062         * lib/unistdio/ulc-printf-parse.c: New file.
103063         * lib/unistdio/ulc-snprintf.c: New file.
103064         * lib/unistdio/ulc-sprintf.c: New file.
103065         * lib/unistdio/ulc-vasnprintf.c: New file.
103066         * lib/unistdio/ulc-vasprintf.c: New file.
103067         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103068         * lib/unistdio/ulc-vsnprintf.c: New file.
103069         * lib/unistdio/ulc-vsprintf.c: New file.
103070         * lib/unistdio/u8-asnprintf.c: New file.
103071         * lib/unistdio/u8-asprintf.c: New file.
103072         * lib/unistdio/u8-printf-parse.c: New file.
103073         * lib/unistdio/u8-snprintf.c: New file.
103074         * lib/unistdio/u8-sprintf.c: New file.
103075         * lib/unistdio/u8-vasnprintf.c: New file.
103076         * lib/unistdio/u8-vasprintf.c: New file.
103077         * lib/unistdio/u8-vsnprintf.c: New file.
103078         * lib/unistdio/u8-vsprintf.c: New file.
103079         * lib/unistdio/u8-u8-asnprintf.c: New file.
103080         * lib/unistdio/u8-u8-asprintf.c: New file.
103081         * lib/unistdio/u8-u8-snprintf.c: New file.
103082         * lib/unistdio/u8-u8-sprintf.c: New file.
103083         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103084         * lib/unistdio/u8-u8-vasprintf.c: New file.
103085         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103086         * lib/unistdio/u8-u8-vsprintf.c: New file.
103087         * lib/unistdio/u16-asnprintf.c: New file.
103088         * lib/unistdio/u16-asprintf.c: New file.
103089         * lib/unistdio/u16-printf-parse.c: New file.
103090         * lib/unistdio/u16-snprintf.c: New file.
103091         * lib/unistdio/u16-sprintf.c: New file.
103092         * lib/unistdio/u16-vasnprintf.c: New file.
103093         * lib/unistdio/u16-vasprintf.c: New file.
103094         * lib/unistdio/u16-vsnprintf.c: New file.
103095         * lib/unistdio/u16-vsprintf.c: New file.
103096         * lib/unistdio/u16-u16-asnprintf.c: New file.
103097         * lib/unistdio/u16-u16-asprintf.c: New file.
103098         * lib/unistdio/u16-u16-snprintf.c: New file.
103099         * lib/unistdio/u16-u16-sprintf.c: New file.
103100         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103101         * lib/unistdio/u16-u16-vasprintf.c: New file.
103102         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103103         * lib/unistdio/u16-u16-vsprintf.c: New file.
103104         * lib/unistdio/u32-asnprintf.c: New file.
103105         * lib/unistdio/u32-asprintf.c: New file.
103106         * lib/unistdio/u32-printf-parse.c: New file.
103107         * lib/unistdio/u32-snprintf.c: New file.
103108         * lib/unistdio/u32-sprintf.c: New file.
103109         * lib/unistdio/u32-vasnprintf.c: New file.
103110         * lib/unistdio/u32-vasprintf.c: New file.
103111         * lib/unistdio/u32-vsnprintf.c: New file.
103112         * lib/unistdio/u32-vsprintf.c: New file.
103113         * lib/unistdio/u32-u32-asnprintf.c: New file.
103114         * lib/unistdio/u32-u32-asprintf.c: New file.
103115         * lib/unistdio/u32-u32-snprintf.c: New file.
103116         * lib/unistdio/u32-u32-sprintf.c: New file.
103117         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103118         * lib/unistdio/u32-u32-vasprintf.c: New file.
103119         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103120         * lib/unistdio/u32-u32-vsprintf.c: New file.
103121         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103122         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103123         * tests/unistdio/test-ulc-printf1.h: New file.
103124         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103125         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103126         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103127         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103128         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103129         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103130         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103131         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103132         * tests/unistdio/test-u8-asnprintf1.c: New file.
103133         * tests/unistdio/test-u8-asnprintf1.h: New file.
103134         * tests/unistdio/test-u8-printf1.h: New file.
103135         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103136         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103137         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103138         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103139         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103140         * tests/unistdio/test-u8-vasprintf1.c: New file.
103141         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103142         * tests/unistdio/test-u8-vsprintf1.c: New file.
103143         * tests/unistdio/test-u16-asnprintf1.c: New file.
103144         * tests/unistdio/test-u16-asnprintf1.h: New file.
103145         * tests/unistdio/test-u16-printf1.h: New file.
103146         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103147         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103148         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103149         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103150         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103151         * tests/unistdio/test-u16-vasprintf1.c: New file.
103152         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103153         * tests/unistdio/test-u16-vsprintf1.c: New file.
103154         * tests/unistdio/test-u32-asnprintf1.c: New file.
103155         * tests/unistdio/test-u32-asnprintf1.h: New file.
103156         * tests/unistdio/test-u32-printf1.h: New file.
103157         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103158         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103159         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103160         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103161         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103162         * tests/unistdio/test-u32-vasprintf1.c: New file.
103163         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103164         * tests/unistdio/test-u32-vsprintf1.c: New file.
103165         * modules/unistdio/base: New file.
103166         * modules/unistdio/u-printf-args: New file.
103167         * modules/unistdio/ulc-asnprintf: New file.
103168         * modules/unistdio/ulc-asprintf: New file.
103169         * modules/unistdio/ulc-fprintf: New file.
103170         * modules/unistdio/ulc-printf-parse: New file.
103171         * modules/unistdio/ulc-snprintf: New file.
103172         * modules/unistdio/ulc-sprintf: New file.
103173         * modules/unistdio/ulc-vasnprintf: New file.
103174         * modules/unistdio/ulc-vasprintf: New file.
103175         * modules/unistdio/ulc-vfprintf: New file.
103176         * modules/unistdio/ulc-vsnprintf: New file.
103177         * modules/unistdio/ulc-vsprintf: New file.
103178         * modules/unistdio/u8-asnprintf: New file.
103179         * modules/unistdio/u8-asprintf: New file.
103180         * modules/unistdio/u8-printf-parse: New file.
103181         * modules/unistdio/u8-snprintf: New file.
103182         * modules/unistdio/u8-sprintf: New file.
103183         * modules/unistdio/u8-vasnprintf: New file.
103184         * modules/unistdio/u8-vasprintf: New file.
103185         * modules/unistdio/u8-vsnprintf: New file.
103186         * modules/unistdio/u8-vsprintf: New file.
103187         * modules/unistdio/u8-u8-asnprintf: New file.
103188         * modules/unistdio/u8-u8-asprintf: New file.
103189         * modules/unistdio/u8-u8-snprintf: New file.
103190         * modules/unistdio/u8-u8-sprintf: New file.
103191         * modules/unistdio/u8-u8-vasnprintf: New file.
103192         * modules/unistdio/u8-u8-vasprintf: New file.
103193         * modules/unistdio/u8-u8-vsnprintf: New file.
103194         * modules/unistdio/u8-u8-vsprintf: New file.
103195         * modules/unistdio/u16-asnprintf: New file.
103196         * modules/unistdio/u16-asprintf: New file.
103197         * modules/unistdio/u16-printf-parse: New file.
103198         * modules/unistdio/u16-snprintf: New file.
103199         * modules/unistdio/u16-sprintf: New file.
103200         * modules/unistdio/u16-vasnprintf: New file.
103201         * modules/unistdio/u16-vasprintf: New file.
103202         * modules/unistdio/u16-vsnprintf: New file.
103203         * modules/unistdio/u16-vsprintf: New file.
103204         * modules/unistdio/u16-u16-asnprintf: New file.
103205         * modules/unistdio/u16-u16-asprintf: New file.
103206         * modules/unistdio/u16-u16-snprintf: New file.
103207         * modules/unistdio/u16-u16-sprintf: New file.
103208         * modules/unistdio/u16-u16-vasnprintf: New file.
103209         * modules/unistdio/u16-u16-vasprintf: New file.
103210         * modules/unistdio/u16-u16-vsnprintf: New file.
103211         * modules/unistdio/u16-u16-vsprintf: New file.
103212         * modules/unistdio/u32-asnprintf: New file.
103213         * modules/unistdio/u32-asprintf: New file.
103214         * modules/unistdio/u32-printf-parse: New file.
103215         * modules/unistdio/u32-snprintf: New file.
103216         * modules/unistdio/u32-sprintf: New file.
103217         * modules/unistdio/u32-vasnprintf: New file.
103218         * modules/unistdio/u32-vasprintf: New file.
103219         * modules/unistdio/u32-vsnprintf: New file.
103220         * modules/unistdio/u32-vsprintf: New file.
103221         * modules/unistdio/u32-u32-asnprintf: New file.
103222         * modules/unistdio/u32-u32-asprintf: New file.
103223         * modules/unistdio/u32-u32-snprintf: New file.
103224         * modules/unistdio/u32-u32-sprintf: New file.
103225         * modules/unistdio/u32-u32-vasnprintf: New file.
103226         * modules/unistdio/u32-u32-vasprintf: New file.
103227         * modules/unistdio/u32-u32-vsnprintf: New file.
103228         * modules/unistdio/u32-u32-vsprintf: New file.
103229         * modules/unistdio/ulc-asnprintf-tests: New file.
103230         * modules/unistdio/ulc-vasnprintf-tests: New file.
103231         * modules/unistdio/ulc-vasprintf-tests: New file.
103232         * modules/unistdio/ulc-vsnprintf-tests: New file.
103233         * modules/unistdio/ulc-vsprintf-tests: New file.
103234         * modules/unistdio/u8-asnprintf-tests: New file.
103235         * modules/unistdio/u8-vasnprintf-tests: New file.
103236         * modules/unistdio/u8-vasprintf-tests: New file.
103237         * modules/unistdio/u8-vsnprintf-tests: New file.
103238         * modules/unistdio/u8-vsprintf-tests: New file.
103239         * modules/unistdio/u16-asnprintf-tests: New file.
103240         * modules/unistdio/u16-vasnprintf-tests: New file.
103241         * modules/unistdio/u16-vasprintf-tests: New file.
103242         * modules/unistdio/u16-vsnprintf-tests: New file.
103243         * modules/unistdio/u16-vsprintf-tests: New file.
103244         * modules/unistdio/u32-asnprintf-tests: New file.
103245         * modules/unistdio/u32-vasnprintf-tests: New file.
103246         * modules/unistdio/u32-vasprintf-tests: New file.
103247         * modules/unistdio/u32-vsnprintf-tests: New file.
103248         * modules/unistdio/u32-vsprintf-tests: New file.
103249         * MODULES.html.sh (Unicode string functions): Add the new modules.
103251 2007-07-01  Bruno Haible  <bruno@clisp.org>
103253         * lib/sprintf.c (sprintf): Limit the available length estimation,
103254         to avoid address wraparound.
103255         * lib/vsprintf.c (vsprintf): Likewise.
103256         * modules/sprintf-posix (Dependencies): Add stdint.
103257         * modules/vsprintf-posix (Dependencies): Likewise.
103259 2007-07-01  Bruno Haible  <bruno@clisp.org>
103261         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103262         Windows PATH as well. Conservative double-quoting. Comments.
103264 2007-07-01  Bruno Haible  <bruno@clisp.org>
103265             Eric Blake  <ebb9@byu.net>
103266             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103268         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103269         empty components in $PATH, denoting '.'.
103271 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103273         * gnulib-tool: Fix indentation.
103274         (func_create_megatestdir): Likewise.
103275         Report by Bruno Haible.
103277 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103279         Sync from Automake.
103280         * build-aux/gnupload: Fix shell portability issues with for loops.
103281         Report by Karl Berry.
103283 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103285         * build-aux/maint.mk (POURL): Use translationproject.org.
103287 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103288             Bruno Haible  <bruno@clisp.org>
103290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103291         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103292         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103293         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103294         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103296 2007-06-27  Bruno Haible  <bruno@clisp.org>
103298         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103299         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103301 2007-06-26  Karl Berry  <karl@gnu.org>
103303         * MODULES.html.sh: remove xreadlink-with-size.
103305 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103307         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103308         method that I hope also handles the double-include problem noted
103309         by Bruno Haible in
103310         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103312 2007-06-23  Bruno Haible  <bruno@clisp.org>
103314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103315         Don't let the 'mostlyclean' target fail if the last subdirectory could
103316         not be removed.
103317         Reported by Karl Berry.
103319 2007-06-23  Bruno Haible  <bruno@clisp.org>
103321         * gnulib-tool (echo): Add a speedier workaround for ksh.
103322         * tests/test-echo.sh: Likewise.
103324 2007-06-23  Bruno Haible  <bruno@clisp.org>
103326         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103327         * tests/test-echo.sh: Likewise.
103329 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103331         * gnulib-tool (IFS): Initialize early, so we don't set it to
103332         empty later.
103333         (self_abspathname): Rewrite algorithm to set it, reindent.
103334         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103335         (func_create_megatestdir): Merge some sed scripts.
103337 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103339         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103340         exposed by Sun Studio 11 cc on Solaris 8.
103342 2007-06-22  Bruno Haible  <bruno@clisp.org>
103344         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103345         backslashes.
103346         * tests/test-echo.sh: New file.
103348 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103350         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103351         simplify `sed_replace_build_aux' scripts, they are portable but
103352         echoing them with `echo' is not.
103353         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103355 2007-06-21  Karl Berry  <karl@gnu.org>
103357         * config/srclist.txt: guess we can't handle the licenses via
103358         srclist at the moment.
103360 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103362         * MODULES.html.sh: Add include_next.
103363         * modules/include_next: New file.
103365 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103367         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103368         INCLUDE_NEXT.
103369         (gl_CHECK_NEXT_HEADERS): New macro.
103370         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103371         the obsolescent gl_ABSOLUTE_HEADER.
103372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103373         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103374         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103375         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103376         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103377         * m4/math_h.m4 (gl_MATH_H): Likewise.
103378         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103379         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103380         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103381         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103382         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103383         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103384         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103387         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103389         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103390         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103391         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103392         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103393         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103394         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103395         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103396         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103397         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103398         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103399         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103400         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103401         * lib/float_.h: Likewise.
103402         * lib/inttypes_.h: Likewise.
103403         * lib/math_.h: Likewise.
103404         * lib/search_.h: Likewise.
103405         * lib/signal_.h: Likewise.
103406         * lib/stdint_.h: Likewise.
103407         * lib/stdio_.h: Likewise.
103408         * lib/stdlib_.h: Likewise.
103409         * lib/string_.h: Likewise.
103410         * lib/sys_stat_.h: Likewise.
103411         * lib/sys_time_.h: Likewise.
103412         * lib/time_.h: Likewise.
103413         * lib/unistd_.h: Likewise.
103414         * lib/wchar_.h: Likewise.
103415         * lib/wctype_.h: Likewise.
103416         * lib/dirent_.h: Likewise.
103417         * lib/iconv_.h: Likewise.
103418         * lib/locale_.h: Likewise.
103419         * lib/netinet_in_.h: Likewise.
103420         * lib/sys_select_.h: Likewise.
103421         * lib/sys_socket_.h: Likewise.
103422         * lib/sysexits_.h: Likewise.
103423         * modules/fcntl (Depends-on): Depend on include_next, not
103424         absolute_header.
103425         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103426         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103427         * modules/fchdir: Likewise.
103428         * modules/float: Likewise.
103429         * modules/iconv_open: Likewise.
103430         * modules/inttypes: Likewise.
103431         * modules/locale: Likewise.
103432         * modules/math: Likewise.
103433         * modules/netinet_in: Likewise.
103434         * modules/search: Likewise.
103435         * modules/signal: Likewise.
103436         * modules/stdint: Likewise.
103437         * modules/stdio: Likewise.
103438         * modules/stdlib: Likewise.
103439         * modules/string: Likewise.
103440         * modules/sys_select: Likewise.
103441         * modules/sys_socket: Likewise.
103442         * modules/sys_stat: Likewise.
103443         * modules/sys_time: Likewise.
103444         * modules/sysexits: Likewise.
103445         * modules/time: Likewise.
103446         * modules/unistd: Likewise.
103447         * modules/wchar: Likewise.
103448         * modules/wctype: Likewise.
103449         * modules/sys_stat: Change maintainer to "all".
103450         * modules/unistd: Likewise.
103452 2007-06-20  Karl Berry  <karl@gnu.org>
103454         * config/srclist.txt: track www changes in license files.
103456 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103458         * build-aux/bootstrap: Remove stray dot.
103459         Make sure build_aux settings are honored when linking
103460         gnulib_extra_files.
103462 2007-06-19  Eric Blake  <ebb9@byu.net>
103464         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103465         Allow compilation on cygwin.
103467 2007-06-19  Jim Meyering  <jim@meyering.net>
103469         xreadlink-with-size: Remove module.  No longer used.
103470         Ex-callers now use xreadlink or mreadlink-with-size.
103471         * modules/xreadlink-with-size: Remove module.
103472         * lib/xreadlink-with-size.c: Remove file.
103473         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103474         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103475         just before the function definition *is* accurate.
103477         Eliminate one way canonicalize_filename_mode could exit.
103478         * lib/canonicalize.c (canonicalize_filename_mode):
103479         Use mreadlink_with_size, not xreadlink_with_size.
103481 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103483         Detect porting problems to FreeBSD/arm, which has time_t wider than
103484         long int.  Original problem reported for GNU diff by Xin Li in
103485         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103486         * modules/getdate (Depends-on): Add intprops, verify.
103487         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103488         is an integer type no wider than long int.
103490 2007-06-18  Jim Meyering  <jim@meyering.net>
103492         New module: mreadlink-with-size.
103493         * MODULES.html.sh: Add mreadlink-with-size.
103494         * modules/mreadlink-with-size: New module
103495         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103496         not xreadlink-with-size.
103497         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103499 2007-06-16  Bruno Haible  <bruno@clisp.org>
103501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103502         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103503         Reported by Gary V. Vaughan <gary@gnu.org>.
103505 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103507         Revamp lchown so that it lives in unistd.h where it belongs.
103508         * lib/lchown.h: Remove.
103509         * lib/dirchownmod.c: Don't include lib/lchown.h.
103510         * lib/fchownat.c: Likewise.
103511         * lib/openat.c: Likewise.
103512         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103513         does not follow symlinks.
103514         (EOPNOTSUPP): Define if not defined.
103515         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103516         is defined to 0.
103517         (lchown): New decl.
103518         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103519         Do not check for lchown decl.
103520         Set REPLACE_LCHOWN.
103521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103522         REPLACE_LCHOWN.
103523         * modules/chown: Make it clear it follows symlinks.
103524         * modules/lchown: Make it clear it doesn't follow symlinks.
103525         (Files): Remove lib/lchown.h
103526         (Depends-on): Add unistd.
103527         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103528         (Include): Include <unistd.h>, not "lchown.h".
103529         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103530         REPLACE_LCHOWN.
103532 2007-06-15  Jim Meyering  <jim@meyering.net>
103534         Change license (GPL to LGPL) of fsusage and dependents.
103535         * modules/fsusage (License): Change to LGPL.
103536         * modules/full-read (License): Likewise.
103537         * modules/full-write (License): Likewise.
103538         * modules/safe-read (License): Likewise.
103539         * modules/safe-write (License): Likewise.
103541 2007-06-14  Ben Pfaff  <blp@gnu.org>
103543         Missing part of allocsa -> malloca transition.
103544         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103545         gl_MALLOCA.
103547 2007-06-12  Bruno Haible  <bruno@clisp.org>
103549         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103550         to ia64, x86_64, i386.
103551         Reported by Eric Blake.
103553 2007-06-12  Bruno Haible  <bruno@clisp.org>
103555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103556         cross-compiling to x86_64.
103558 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103560         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103561         glitch reported by Ralf Wildenhues in
103562         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103564         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103565         Vin Shelton.
103567 2007-06-11  Bruno Haible  <bruno@clisp.org>
103569         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103570         replacement string.
103571         Reported by Eric Blake.
103573 2007-06-10  Bruno Haible  <bruno@clisp.org>
103575         Prepare vasnprintf code for use with Unicode strings.
103576         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103577         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103578         TYPE_U32_STRING.
103579         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103580         a_u32_string variants.
103581         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103582         * lib/printf-args.c: Don't include config.h and the specification
103583         header if PRINTF_FETCHARGS is already defined.
103584         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103585         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103586         TYPE_U16_STRING, TYPE_U32_STRING.
103587         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103588         u16_directive, u16_directives, u32_directive, u32_directives): New
103589         types.
103590         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103591         New declarations.
103592         * lib/printf-parse.c: Don't include config.h and the specification
103593         header if PRINTF_PARSE is already defined. Eliminate the set of
103594         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103595         them now. Include c-ctype.h.
103596         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103597         directive and CHAR_T_ONLY_ASCII.
103598         * lib/vasnprintf.c: Don't include config.h and the specification header
103599         if VASNPRINTF is already defined.
103600         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103601         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103602         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103603         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103604         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103605         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103606         code accordingly.
103607         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103608         pad_ourselves also in this case, with the 'c' and 's' directives, and
103609         with a different notion of "width".
103610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103612 2007-06-10  Bruno Haible  <bruno@clisp.org>
103614         * modules/unistr/u32-mbsnlen: New file.
103615         * lib/unistr/u32-mbsnlen.c: New file.
103617         * modules/unistr/u16-mbsnlen: New file.
103618         * lib/unistr/u16-mbsnlen.c: New file.
103620         * modules/unistr/u8-mbsnlen: New file.
103621         * lib/unistr/u8-mbsnlen.c: New file.
103623         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103624         declarations.
103626 2007-06-10  Bruno Haible  <bruno@clisp.org>
103628         * lib/string_.h (mbsnlen): New declaration.
103629         * lib/mbsnlen.c: New file.
103630         * m4/mbsnlen.m4: New file.
103631         * modules/mbsnlen: New file.
103632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103633         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103634         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103636 2007-06-10  Bruno Haible  <bruno@clisp.org>
103638         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103640 2007-06-10  Bruno Haible  <bruno@clisp.org>
103642         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103643         * lib/mbuiter.h: Likewise.
103645 2007-06-10  Bruno Haible  <bruno@clisp.org>
103647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103648         declaration.
103650 2007-06-10  Karl Berry  <karl@gnu.org>
103652         * config/srclist.txt: remove gettext entries, Bruno prefers
103653         to update individually.
103655 2007-06-10  Bruno Haible  <bruno@clisp.org>
103657         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103658         'maxlen'. Ensure only length + width bytes are allocated, not
103659         length + 1 + width.
103661 2007-06-09  Bruno Haible  <bruno@clisp.org>
103663         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103664         (CHAR_T): Remove macro.
103665         (VASNPRINTF): Update.
103667 2007-06-09  Bruno Haible  <bruno@clisp.org>
103669         * MODULES.html.sh (Unicode string functions): Add the new modules.
103671         * modules/uniconv/u32-conv-to-enc: New file.
103672         * lib/uniconv/u32-conv-to-enc.c: New file.
103673         * modules/uniconv/u32-conv-to-enc-tests: New file.
103674         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103676         * modules/uniconv/u16-conv-to-enc: New file.
103677         * lib/uniconv/u16-conv-to-enc.c: New file.
103678         * lib/uniconv/u-conv-to-enc.h: New file.
103679         * modules/uniconv/u16-conv-to-enc-tests: New file.
103680         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103682         * modules/uniconv/u8-conv-to-enc: New file.
103683         * lib/uniconv/u8-conv-to-enc.c: New file.
103684         * modules/uniconv/u8-conv-to-enc-tests: New file.
103685         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103687         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103688         u32_conv_to_encoding): New declarations.
103690 2007-06-09  Bruno Haible  <bruno@clisp.org>
103692         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103694 2007-06-09  Bruno Haible  <bruno@clisp.org>
103696         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103697         * modules/malloca: Renamed from modules/allocsa, updated.
103698         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103699         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103700         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103701         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103702         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103703         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103704         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103705         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103706         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103707         * modules/c-strcasestr (Depends-on): Update.
103708         * lib/c-strcasestr.c: Update.
103709         * modules/c-strstr (Depends-on): Update.
103710         * lib/c-strstr.c: Update.
103711         * modules/canonicalize-lgpl (Depends-on): Update.
103712         * lib/canonicalize-lgpl.c: Update.
103713         * modules/clean-temp (Depends-on): Update.
103714         * lib/clean-temp.c: Update.
103715         * modules/csharpcomp (Depends-on): Update.
103716         * lib/csharpcomp.c: Update.
103717         * modules/csharpexec (Depends-on): Update.
103718         * lib/csharpexec.c: Update.
103719         * modules/javacomp (Depends-on): Update.
103720         * lib/javacomp.c: Update.
103721         * modules/javaexec (Depends-on): Update.
103722         * lib/javaexec.c: Update.
103723         * modules/mbscasestr (Depends-on): Update.
103724         * lib/mbscasestr.c: Update.
103725         * modules/mbsstr (Depends-on): Update.
103726         * lib/mbsstr.c: Update.
103727         * modules/setenv (Depends-on): Update.
103728         * lib/setenv.c: Update.
103729         * modules/strcasestr (Depends-on): Update.
103730         * lib/strcasestr.c: Update.
103731         * modules/striconveha (Depends-on): Update.
103732         * lib/striconveha.c: Update.
103733         * modules/relocatable-prog-wrapper (Files): Update.
103734         * lib/relocwrapper.c: Update.
103735         * build-aux/install-reloc: Update.
103736         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103738 2007-06-08  Bruno Haible  <bruno@clisp.org>
103740         Port to uClibc.
103741         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103742         * lib/fpurge.c (fpurge): Likewise.
103743         * lib/freading.c (freading): Likewise.
103744         * lib/fseeko.c (rpl_fseeko): Likewise.
103745         * lib/fseterr.c (fseterr): Likewise.
103746         * lib/fwriting.c (fwriting): Likewise.
103747         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103749 2007-06-08  Bruno Haible  <bruno@clisp.org>
103751         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103752         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103753         * modules/gettext (Files): Add m4/intlmacosx.m4.
103755 2007-06-07  Bruno Haible  <bruno@clisp.org>
103757         * modules/localename-tests: New file.
103758         * tests/test-localename.c: New file.
103760         New module 'localename'.
103761         * lib/localename.h: New file.
103762         * lib/localename.c: New file, from GNU gettext.
103763         * m4/localename.m4: New file.
103764         * modules/localename: New file.
103766 2007-06-07  Bruno Haible  <bruno@clisp.org>
103768         Work around the lack of <wchar.h> on some builds of uClibc.
103769         * doc/headers/wchar.texi: Update.
103770         * lib/wchar_.h: Include <wchar.h> only if it exists.
103771         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103772         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103773         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103774         doesn't exist.
103775         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103776         * modules/mbfile (Depends-on): Add wchar.
103777         * modules/mbiter (Depends-on): Likewise.
103778         * modules/mbuiter (Depends-on): Likewise.
103779         Reported by Simon Josefsson.
103781 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103783         Work around problem reported by Steven M. Schweda in
103784         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103785         Tru64 5.1B with the Compaq compiler environment installed declares
103786         an 'isblank' function but does not define it in the C library.
103787         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103788         * lib/regex_internal.h (isblank): Likewise.
103789         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103790         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103792 2007-06-05  Bruno Haible  <bruno@clisp.org>
103794         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103795         ia64.
103796         * modules/printf-safe: New file.
103797         * modules/fprintf-posix (Depends-on): Add printf-safe.
103798         * modules/printf-posix (Depends-on): Likewise.
103799         * modules/snprintf-posix (Depends-on): Likewise.
103800         * modules/sprintf-posix (Depends-on): Likewise.
103801         * modules/vasnprintf-posix (Depends-on): Likewise.
103802         * modules/vasprintf-posix (Depends-on): Likewise.
103803         * modules/vfprintf-posix (Depends-on): Likewise.
103804         * modules/vprintf-posix (Depends-on): Likewise.
103805         * modules/vsnprintf-posix (Depends-on): Likewise.
103806         * modules/vsprintf-posix (Depends-on): Likewise.
103807         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103808         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103809         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103810         "no" on i386, x86_64, ia64.
103811         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103812         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103813         on i386, x86_64, ia64.
103814         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103815         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103816         on i386, x86_64, ia64.
103817         * tests/test-vasnprintf-posix.c: Include float.h.
103818         (LDBL80_WORDS): New macro.
103819         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103820         on i386, x86_64, ia64.
103821         * tests/test-vasprintf-posix.c: Include float.h.
103822         (LDBL80_WORDS): New macro.
103823         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103824         on i386, x86_64, ia64.
103825         * tests/test-snprintf-posix.c: Include float.h.
103826         * tests/test-sprintf-posix.c: Likewise.
103827         * tests/test-vsnprintf-posix.c: Likewise.
103828         * tests/test-vsprintf-posix.c: Likewise.
103830 2007-06-05  Bruno Haible  <bruno@clisp.org>
103832         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103834         non-IEEE numbers on i386, x86_64, ia64.
103835         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103836         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103837         * tests/test-isnanl.h: Include float.h.
103838         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103840 2007-06-05  Bruno Haible  <bruno@clisp.org>
103842         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103843         also the %a / %A. Handle the %a / %A code before this extra handling.
103845 2007-06-05  Bruno Haible  <bruno@clisp.org>
103847         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103848         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103850 2007-06-05  Bruno Haible  <bruno@clisp.org>
103852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103853         typo in variable name.
103855 2007-06-05  Eric Blake  <ebb9@byu.net>
103857         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103858         Reported by Simon Josefsson.
103860 2007-06-04  Bruno Haible  <bruno@clisp.org>
103862         Avoid test failures on some PowerPC platforms.
103863         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103864         Define differently for PowerPC.
103865         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103866         Reported by Gary V. Vaughan <gary@gnu.org>.
103868 2007-06-02  Bruno Haible  <bruno@clisp.org>
103870         Fix test-stdint failure on FreeBSD/ia64.
103871         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103872         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103873         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103874         * doc/headers/stdint.texi: Update.
103876 2007-06-01  Bruno Haible  <bruno@clisp.org>
103878         * tests/test-binary-io.c (main): Pass a third argument to open().
103879         Reported by Gary V. Vaughan <gary@gnu.org>.
103881 2007-06-01  Bruno Haible  <bruno@clisp.org>
103883         * doc/functions/frexpl.texi: Update for mingw.
103885 2007-06-01  Bruno Haible  <bruno@clisp.org>
103887         * tests/test-lseek.c (main): Disable test of errno for invalid third
103888         argument.
103889         * doc/functions/lseek.texi: Update.
103890         Reported by Gary V. Vaughan <gary@gnu.org>.
103892 2007-05-28  Bruno Haible  <bruno@clisp.org>
103894         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103896 2007-05-31  Eric Blake  <ebb9@byu.net>
103898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103899         cross compiling.
103901 2007-05-30  Eric Blake  <ebb9@byu.net>
103902         and Bruno Haible  <bruno@clisp.org>
103904         Work around mingw test failures exposed by m4-1.4.9b.
103905         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103906         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103907         moment.
103909 2007-05-30  Bruno Haible  <bruno@clisp.org>
103911         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103912         assuming that they are closed. Needed on HP-UX 11.
103914 2007-05-29  Bruno Haible  <bruno@clisp.org>
103916         Fix a problem with #include_next.
103917         * lib/dirent_.h: Split the double-inclusion guard.
103918         * lib/fcntl_.h: Likewise.
103919         * lib/float_.h: Likewise.
103920         * lib/iconv_.h: Likewise.
103921         * lib/inttypes_.h: Likewise.
103922         * lib/locale_.h: Likewise.
103923         * lib/math_.h: Likewise.
103924         * lib/netinet_in_.h: Likewise.
103925         * lib/search_.h: Likewise.
103926         * lib/signal_.h: Likewise.
103927         * lib/stdint_.h: Likewise.
103928         * lib/stdio_.h: Likewise.
103929         * lib/stdlib_.h: Likewise.
103930         * lib/string_.h: Likewise.
103931         * lib/sys_select_.h: Likewise.
103932         * lib/sys_socket_.h: Likewise.
103933         * lib/sys_stat_.h: Likewise.
103934         * lib/sys_time_.h: Likewise.
103935         * lib/sysexits_.h: Likewise.
103936         * lib/time_.h: Likewise.
103937         * lib/unistd_.h: Likewise.
103938         * lib/wchar_.h: Likewise.
103939         * lib/wctype_.h: Likewise.
103941 2007-05-29  Bruno Haible  <bruno@clisp.org>
103943         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103944         for the moment.
103946 2007-05-29  Bruno Haible  <bruno@clisp.org>
103948         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103949         invocation.
103950         Reported by Eric Blake.
103952 2007-05-29  Bruno Haible  <bruno@clisp.org>
103954         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103955         compiling case.
103957 2007-05-29  Eric Blake  <ebb9@byu.net>
103958             Bruno Haible  <bruno@clisp.org>
103960         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103961         cross compiles.
103963 2007-05-28  Eric Blake  <ebb9@byu.net>
103965         * modules/closein-tests (test_closein_LDADD): Support test on
103966         cygwin with libtool.
103968 2007-05-28  Bruno Haible  <bruno@clisp.org>
103970         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103971         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103972         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103973         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103974         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103975         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103976         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103977         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103978         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103980 2007-05-28  Eric Blake  <ebb9@byu.net>
103982         Unconditionally include <config.h> in unit tests.
103983         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103984         * tests/test-allocsa.c, tests/test-arcfour.c,
103985         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103986         tests/test-array_list.c, tests/test-array_oset.c,
103987         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103988         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103989         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103990         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103991         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103992         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103993         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103994         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103995         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103996         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103997         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103998         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103999         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104000         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104001         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104002         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104003         test-md5.c, test-memmem.c, test-printf-posix.c,
104004         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104005         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104006         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104007         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104008         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104009         test-vasnprintf-posix2.c, test-vasnprintf.c,
104010         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104011         test-vfprintf-posix.c, test-vprintf-posix.c,
104012         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104013         test-xvasprintf.c: Likewise.
104015 2007-05-28  Bruno Haible  <bruno@clisp.org>
104017         * gnulib-tool (func_import): Remember the --with-tests command-line
104018         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104019         Reported by Eric Blake.
104021 2007-05-28  Bruno Haible  <bruno@clisp.org>
104023         * modules/ftell-tests: New file.
104024         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104025         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104027         * lib/ftell.c: New file.
104028         * modules/ftell: New file.
104029         * m4/ftell.m4: New file.
104030         * doc/functions/ftell.texi: Update.
104031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104032         REPLACE_FTELL.
104033         * lib/stdio_.h (rpl_ftell): New declaration.
104034         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104035         REPLACE_FTELL.
104037 2007-05-28  Eric Blake  <ebb9@byu.net>
104039         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104041 2007-05-28  Bruno Haible  <bruno@clisp.org>
104043         * modules/fseek-tests: New file.
104044         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104045         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104047         * lib/fseek.c: New file.
104048         * modules/fseek: New file.
104049         * m4/fseek.m4: New file.
104050         * doc/functions/fseek.texi: Update.
104051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104052         REPLACE_FSEEK.
104053         * lib/stdio_.h (rpl_fseek): New declaration.
104054         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104055         REPLACE_FSEEK.
104057 2007-05-28  Bruno Haible  <bruno@clisp.org>
104059         * lib/stdio_.h (fflush): More comments.
104061 2007-05-28  Bruno Haible  <bruno@clisp.org>
104063         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104064         runtime test.
104066 2007-05-28  Eric Blake  <ebb9@byu.net>
104068         Improve lseek module.
104069         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104070         * lib/unistd_.h (lseek): Scale back link warning message.
104071         * tests/test-lseek.c: Beef up test.
104072         * tests/test-lseek.sh: Exercise more facets of lseek.
104073         Reported by Bruno Haible.
104075 2007-05-28  Bruno Haible  <bruno@clisp.org>
104077         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104078         to define.
104080 2007-05-27  Bruno Haible  <bruno@clisp.org>
104082         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104084 2007-05-27  Bruno Haible  <bruno@clisp.org>
104086         * modules/openmp: New file.
104087         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104088         Noah Misch.
104090 2007-05-26  Bruno Haible  <bruno@clisp.org>
104092         * modules/chdir-long (Depends-on): Add fchdir.
104093         * modules/chdir-safer (Depends-on): Likewise.
104094         * modules/fts (Depends-on): Likewise.
104095         * modules/fts-lgpl (Depends-on): Likewise.
104096         * modules/openat (Depends-on): Likewise.
104097         * modules/savewd (Depends-on): Likewise.
104099 2007-05-24  Eric Blake  <ebb9@byu.net>
104101         Fix lseek on mingw.
104102         * modules/lseek: New module.
104103         * m4/lseek.m4: New file.
104104         * lib/lseek.c: New file.
104105         * modules/lseek-tests: New file.
104106         * tests/test-lseek.c: New file.
104107         * tests/test-lseek.sh: New file.
104108         * MODULES.html.sh: Document lseek module.
104109         * modules/fflush (Depends-on): Add lseek, fseeko.
104110         * modules/fseeko (Depends-on): Likewise.
104111         * modules/ftello (Depends-on): Likewise.
104112         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104113         broken.
104114         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104115         broken.
104116         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104117         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104118         * lib/ftello.c (rpl_ftello): Likewise.
104119         * tests/test-fseeko.c (main): Test this.
104120         * tests/test-fseeko.sh: Likewise.
104121         * tests/test-ftello.c (main): Likewise.
104122         * tests/test-ftello.sh: Likewise.
104123         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104124         implies replacing fseek.
104125         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104126         HAVE_FTELLO.
104127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104128         * modules/unistd (Makefile.am): Likewise.
104129         * lib/unistd_.h (lseek): Declare a replacement.
104130         * doc/functions/lseek.texi (lseek): Document this fix.
104131         * doc/functions/fseek.texi (fseek): Likewise.
104132         * doc/functions/ftell.texi (ftell): Likewise.
104134 2007-05-24  Bruno Haible  <bruno@clisp.org>
104136         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104137         in the printed representation of a NaN.
104138         * tests/test-vasprintf-posix.c (test_function): Likewise.
104139         * tests/test-snprintf-posix.h (test_function): Likewise.
104140         * tests/test-sprintf-posix.h (test_function): Likewise.
104141         Reported by Eric Blake.
104143 2007-05-23  Eric Blake  <ebb9@byu.net>
104145         Fix fseeko/ftello on cygwin 1.5.24.
104146         * doc/functions/fseeko.texi (fseeko): Document the fix.
104147         * doc/functions/ftello.texi (ftello): Document the fix.
104148         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104149         * doc/functions/stdout.text (stdout): New file.
104150         * doc/functions/stderr.text (stderr): New file.
104151         * doc/gnulib.texi (Function Substitutes): Use new files.
104152         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104153         prior to 1.7.0.
104154         * tests/test-ftello.c (main): Likewise for ftello.
104155         * tests/test-fseeko.sh: New file.
104156         * tests/test-ftello.sh: New file.
104157         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104158         with seekable stdin.
104159         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104161         (gl_REPLACE_FSEEKO): New macro.
104162         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104163         * modules/fseeko (Files): Distribute fseeko.c.
104164         * modules/ftello (Files): Distribute ftello.c.
104165         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104166         mode.
104167         * lib/ftello.c (rpl_ftello): New file.
104168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104169         fseeko, ftello.
104170         (gl_STDIN_LARGE_OFFSET): New macro.
104171         * modules/stdio (Makefile.am): Perform the replacement.
104172         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104174 2007-05-23  Bruno Haible  <bruno@clisp.org>
104176         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104177         GNULIB_POSIXCHECK is defined.
104179 2007-05-21  Bruno Haible  <bruno@clisp.org>
104181         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104182         Check also the output for NaN arguments. When cross-compiling, guess
104183         no on IRIX.
104184         * lib/vasnprintf.c: Update comments.
104185         * tests/test-vasnprintf-posix.c (strisnan): New function.
104186         (test_function): Use it.
104187         * tests/test-vasprintf-posix.c (strisnan): New function.
104188         (test_function): Use it.
104189         * tests/test-snprintf-posix.h (strisnan): New function.
104190         (test_function): Use it.
104191         * tests/test-sprintf-posix.h (strisnan): New function.
104192         (test_function): Use it.
104193         Reported by Eric Blake.
104195 2007-05-20  Bruno Haible  <bruno@clisp.org>
104197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104198         numbers that fails on BeOS.
104199         * doc/functions/frexpl.texi: Update.
104201 2007-05-20  Jim Meyering  <jim@meyering.net>
104203         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104204         forced upon us by glibc-2.6.
104206 2007-05-20  Bruno Haible  <bruno@clisp.org>
104208         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104209         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104210         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104211         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104212         NEED_PRINTF_INFINITE.
104213         (is_infinitel): New function.
104214         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104216         gl_PREREQ_VASNPRINTF_INFINITE.
104217         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104219         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104220         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104221         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104222         gl_PREREQ_VASNPRINTF_INFINITE.
104223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104225         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104227         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104229         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104230         * doc/functions/fprintf.texi: Update.
104231         * doc/functions/printf.texi: Update.
104232         * doc/functions/snprintf.texi: Update.
104233         * doc/functions/sprintf.texi: Update.
104234         * doc/functions/vfprintf.texi: Update.
104235         * doc/functions/vprintf.texi: Update.
104236         * doc/functions/vsnprintf.texi: Update.
104237         * doc/functions/vsprintf.texi: Update.
104239 2007-05-20  Bruno Haible  <bruno@clisp.org>
104241         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104242         was not found in libc.
104243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104245 2007-05-20  Bruno Haible  <bruno@clisp.org>
104247         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104248         printed as "-nan" instead of "nan".
104249         * tests/test-vasprintf-posix.c (test_function): Likewise.
104250         * tests/test-snprintf-posix.h (test_function): Likewise.
104251         * tests/test-sprintf-posix.h (test_function): Likewise.
104252         Needed for HP-UX 11.
104254 2007-05-20  Jim Meyering  <jim@meyering.net>
104256         Fix buggy test for the fchownat-deref bug.
104257         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104258         symlink required for the run-test.  Without it, this test would
104259         always declare that fchownat doesn't work, and client code would
104260         unnecessarily use the replacement function with fixed libc.
104261         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104262         Reported by Greg Schafer.
104264 2007-05-19  Bruno Haible  <bruno@clisp.org>
104266         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104267         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104268         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104269         Needed for IRIX 6.5 and Solaris 2.5.1.
104271 2007-05-19  Bruno Haible  <bruno@clisp.org>
104273         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104274         (test_function): Skip tests involving -0.0 on platforms where
104275         -0.0 = 0.0.
104276         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104277         (test_function): Skip tests involving -0.0 on platforms where
104278         -0.0 = 0.0.
104279         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104280         (test_function): Skip tests involving -0.0 on platforms where
104281         -0.0 = 0.0.
104282         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104283         (test_function): Skip tests involving -0.0 on platforms where
104284         -0.0 = 0.0.
104285         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104286         tests.
104287         * tests/test-printf-posix.h (test_function): Likewise.
104288         * tests/test-printf-posix.output: Remove all -0.0 related results.
104289         Needed for IRIX 6.5.
104291 2007-05-19  Bruno Haible  <bruno@clisp.org>
104293         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104294         printed as "nan0x7fffffff" instead of "nan".
104295         * tests/test-vasprintf-posix.c (test_function): Likewise.
104296         * tests/test-snprintf-posix.h (test_function): Likewise.
104297         * tests/test-sprintf-posix.h (test_function): Likewise.
104298         * tests/test-fprintf-posix.h (NaN): Remove macro.
104299         (test_function): Remove all NaN related tests.
104300         * tests/test-printf-posix.h (NaN): Remove macro.
104301         (test_function): Remove all NaN related tests.
104302         * tests/test-printf-posix.output: Remove all NaN related results.
104303         Needed for IRIX 6.5.
104305 2007-05-19  Bruno Haible  <bruno@clisp.org>
104307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104310 2007-05-19  Bruno Haible  <bruno@clisp.org>
104312         * lib/float_.h: New file.
104313         * m4/float_h.m4: New file.
104314         * modules/float: New file.
104315         * modules/isnanl (Dependencies): Add float.
104316         * modules/isnanl-nolibm (Dependencies): Likewise.
104317         * modules/mathl (Dependencies): Likewise.
104318         * modules/printf-frexpl (Dependencies): Likewise.
104319         * modules/signbit (Dependencies): Likewise.
104320         * modules/vasnprintf (Dependencies): Likewise.
104321         * doc/headers/float.texi: Update.
104323 2007-05-19  Jim Meyering  <jim@meyering.net>
104325         * lib/utimens.c (gl_futimens): Rename from futimens,
104326         now that glibc-2.6 declares futimens.
104327         * lib/utimens.h: Likewise.
104329 2007-05-19  Bruno Haible  <bruno@clisp.org>
104331         Avoid test failures on mingw.
104332         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104333         * tests/test-printf-posix.sh: Likewise.
104334         * tests/test-vfprintf-posix.sh: Likewise.
104335         * tests/test-vprintf-posix.sh: Likewise.
104337 2007-05-19  Bruno Haible  <bruno@clisp.org>
104339         Fix *printf result for NaN, Inf, -0.0 on mingw.
104340         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104341         * lib/vasnprintf.c: Include math.h and isnan.h.
104342         (is_infinite_or_zero): New function.
104343         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104344         values in the %f, %F, %e, %E, %g, %G directives.
104345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104347         gl_PRINTF_INFINITE and test its result. Invoke
104348         gl_PREREQ_VASNPRINTF_INFINITE.
104349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104350         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104352         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104356         * doc/functions/fprintf.texi: Update.
104357         * doc/functions/printf.texi: Update.
104358         * doc/functions/snprintf.texi: Update.
104359         * doc/functions/sprintf.texi: Update.
104360         * doc/functions/vfprintf.texi: Update.
104361         * doc/functions/vprintf.texi: Update.
104362         * doc/functions/vsnprintf.texi: Update.
104363         * doc/functions/vsprintf.texi: Update.
104365 2007-05-19  Bruno Haible  <bruno@clisp.org>
104367         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104368         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104369         Instead of multiplying with 10^k, set extra_zeroes to k.
104370         (scale10_round_long_double): Remove function.
104372 2007-05-18  Bruno Haible  <bruno@clisp.org>
104374         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104375         introduced on 2007-05-06.
104377 2007-05-18  Bruno Haible  <bruno@clisp.org>
104379         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104380         %g directives.
104381         * tests/test-vasprintf-posix.c (test_function): Likewise.
104382         * tests/test-snprintf-posix.h (test_function): Likewise.
104383         * tests/test-sprintf-posix.h (test_function): Likewise.
104385 2007-05-18  Bruno Haible  <bruno@clisp.org>
104387         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104388         (strmatch): New function.
104389         (test_function): Test the %f directive on numbers of various exponents.
104390         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104391         (strmatch): New function.
104392         (test_function): Test the %f directive on numbers of various exponents.
104393         * tests/test-snprintf-posix.h (strmatch): New function.
104394         (test_function): Test the %f directive on numbers of various exponents.
104395         * tests/test-sprintf-posix.h (strmatch): New function.
104396         (test_function): Test the %f directive on numbers of various exponents.
104397         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104398         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104399         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104400         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104402 2007-05-18  Bruno Haible  <bruno@clisp.org>
104404         Add support for 'long double' number output.
104405         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104406         * lib/vasnprintf.c: Include math.h and float+.h.
104407         (mp_limb_t): New type.
104408         (GMP_LIMB_BITS): New macro.
104409         (mp_twolimb_t): New type.
104410         (GMP_TWOLIMB_BITS): New macro.
104411         (mpn_t): New type.
104412         (multiply, divide, convert_to_decimal, decode_long_double,
104413         scale10_round_long_double, scale10_round_decimal_long_double,
104414         floorlog10l): New functions.
104415         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104416         for the %f, %F, %e, %E, %g, %G directives.
104417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104418         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104419         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104420         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104422         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104428         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104429         * modules/snprintf-posix (Depends-on): Likewise.
104430         * modules/sprintf-posix (Depends-on): Likewise.
104431         * modules/vasnprintf-posix (Depends-on): Likewise.
104432         * modules/vasprintf-posix (Depends-on): Likewise.
104433         * modules/vfprintf-posix (Depends-on): Likewise.
104434         * modules/vsnprintf-posix (Depends-on): Likewise.
104435         * modules/vsprintf-posix (Depends-on): Likewise.
104436         * modules/vasnprintf (Files): Add lib/float+.h.
104437         * doc/functions/fprintf.texi: Update.
104438         * doc/functions/printf.texi: Update.
104439         * doc/functions/snprintf.texi: Update.
104440         * doc/functions/sprintf.texi: Update.
104441         * doc/functions/vfprintf.texi: Update.
104442         * doc/functions/vprintf.texi: Update.
104443         * doc/functions/vsnprintf.texi: Update.
104444         * doc/functions/vsprintf.texi: Update.
104446 2007-05-18  Bruno Haible  <bruno@clisp.org>
104448         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104450 2007-05-18  Bruno Haible  <bruno@clisp.org>
104452         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104453         for printing 64-bit integers. Needed for mingw.
104455 2007-05-18  Bruno Haible  <bruno@clisp.org>
104457         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104458         gl_FUNC_FREXPL_WORKS.
104459         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104461 2007-05-18  Bruno Haible  <bruno@clisp.org>
104463         * modules/frexpl-nolibm-tests: New file.
104465         * modules/frexpl-nolibm: New file.
104466         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104468 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104470         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104471         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104472         GCC 4.2, which otherwise issues a lot of warnings.
104473         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104474         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104475         Likewise.
104476         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104477         * modules/iconv_open (iconv.h): Likewise.
104478         * modules/locale (locale.h): Likewise.
104479         * modules/netinet_in (netinet/in.h): Likewise.
104480         * modules/sys_select (sys_select.h): Likewise.
104481         * modules/sys_socket (sys/socket.h): Likewise.
104482         * modules/sys_stat (sys/stat.h): Likewise.
104483         * modules/sysexits (sysexits.h): Likewise.
104484         * modules/unistd (unistd.h): Likewise.
104486 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104488         * modules/closein-tests (Makefile.am): Distribute
104489         `test-closein.sh'.
104491 2007-05-17  Bruno Haible  <bruno@clisp.org>
104493         * tests/test-printf-posix.output: Renamed from
104494         tests/test-fprintf-posix.out.
104495         * modules/fprintf-posix-tests: Update.
104496         * modules/printf-posix-tests: Update.
104497         * modules/vfprintf-posix-tests: Update.
104498         * modules/vprintf-posix-tests: Update.
104499         * tests/test-fprintf-posix.sh: Update.
104500         * tests/test-printf-posix.sh: Update.
104501         * tests/test-vfprintf-posix.sh: Update.
104502         * tests/test-vprintf-posix.sh: Update.
104503         Reported by Ralf Wildenhues.
104505 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104507         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104508         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104509         GCC 4.2, which otherwise issues a lot of warnings.
104510         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104511         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104512         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104513         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104514         it should no longer be needed.
104515         * lib/string_.h: Likewise.
104516         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104517         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104518         * modules/inttypes (inttypes.h): Likewise.
104519         * modules/math (math.h): Likewise.
104520         * modules/search (search.h): Likewise.
104521         * modules/signal (signal.h): Likewise.
104522         * modules/stdint (stdint.h): Likewise.
104523         * modules/stdio (stdio.h): Likewise.
104524         * modules/stdlib (stdlib.h): Likewise.
104525         * modules/string (string.h): Likewise.
104526         * modules/sys_time (sys/time.h): Likewise.
104527         * modules/time (time.h): Likewise.
104528         * modules/wchar (wchar.h): Likewise.
104529         * modules/wctype (wtype.h): Likewise.
104531 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104533         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104535 2007-05-13  Bruno Haible  <bruno@clisp.org>
104537         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104538         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104539         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104540         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104541         (gl_PREREQ_STRTOK_R): Don't require it here.
104543 2007-05-13  Bruno Haible  <bruno@clisp.org>
104545         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104546         when used in C++ mode.
104548 2007-05-12  Bruno Haible  <bruno@clisp.org>
104550         * lib/linebuffer.h: Tweak doc.
104551         * lib/linebuffer.c: Likewise.
104553 2007-05-12  James Youngman  <jay@gnu.org>
104555         * lib/linebuffer.c (readlinebuffer_delim): New function,
104556         like readlinebuffer, but use a caller-specified delimiter.
104557         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104558         as the delimiter.
104559         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104561 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104563         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104564         * modules/openat (Files): Remove openat-die.c.
104565         (Depends-on): Add openat-die.
104566         * modules/openat-die: New module.
104568 2007-05-06  Bruno Haible  <bruno@clisp.org>
104570         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104571         Update with info about Cygwin.
104572         * doc/functions/fprintf.texi: Update.
104573         * doc/functions/printf.texi: Update.
104574         * doc/functions/snprintf.texi: Update.
104575         * doc/functions/sprintf.texi: Update.
104576         * doc/functions/vfprintf.texi: Update.
104577         * doc/functions/vprintf.texi: Update.
104578         * doc/functions/vsnprintf.texi: Update.
104579         * doc/functions/vsprintf.texi: Update.
104580         Reported by Eric Blake.
104582 2007-05-06  Bruno Haible  <bruno@clisp.org>
104584         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104585         padding ourselves for the floating-point directives.
104586         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104589         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104590         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104591         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104598         * tests/test-snprintf-posix.h (test_function): Also check the width
104599         and some flags in the %f directive.
104600         * tests/test-sprintf-posix.h (test_function): Likewise.
104601         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104602         * tests/test-vasprintf-posix.c (test_function): Likewise.
104603         * doc/functions/fprintf.texi: Update.
104604         * doc/functions/printf.texi: Update.
104605         * doc/functions/snprintf.texi: Update.
104606         * doc/functions/sprintf.texi: Update.
104607         * doc/functions/vfprintf.texi: Update.
104608         * doc/functions/vprintf.texi: Update.
104609         * doc/functions/vsnprintf.texi: Update.
104610         * doc/functions/vsprintf.texi: Update.
104612 2007-05-06  Bruno Haible  <bruno@clisp.org>
104614         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104615         pass the ' flag character to sprintf or snprintf.
104616         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104619         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104620         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104628         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104629         flag.
104630         * tests/test-sprintf-posix.h (test_function): Likewise.
104631         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104632         * tests/test-vasprintf-posix.c (test_function): Likewise.
104633         * doc/functions/fprintf.texi: Update.
104634         * doc/functions/printf.texi: Update.
104635         * doc/functions/snprintf.texi: Update.
104636         * doc/functions/sprintf.texi: Update.
104637         * doc/functions/vfprintf.texi: Update.
104638         * doc/functions/vprintf.texi: Update.
104639         * doc/functions/vsnprintf.texi: Update.
104640         * doc/functions/vsprintf.texi: Update.
104642 2007-05-01  Bruno Haible  <bruno@clisp.org>
104644         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104646 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104648         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104649         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104651 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104653         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104654         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104655         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104657 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104659         * lib/argp-help.c (struct hol_entry): New member `ord'.
104660         (HOL_ENTRY_PTRCMP): Use ord for comparison
104661         (hol_sort): Initialize ord.
104663 2007-05-01  Bruno Haible  <bruno@clisp.org>
104665         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104666         Reported by Eric Blake.
104667         * doc/gnulib.texi (Function Substitutes): Update.
104669 2007-05-01  Bruno Haible  <bruno@clisp.org>
104671         * doc/functions.texi: Remove file, now redundant through
104672         doc/functions/*.texi.
104674 2007-05-01  Bruno Haible  <bruno@clisp.org>
104676         * modules/argp (Depends-on): Add sleep.
104678 2007-05-01  Bruno Haible  <bruno@clisp.org>
104680         * modules/sleep-tests: New file.
104681         * tests/test-sleep.c: New file.
104683         * modules/sleep: New file.
104684         * lib/sleep.c: New file.
104685         * m4/sleep.m4: New file.
104686         * lib/unistd_.h (sleep): New declaration.
104687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104688         HAVE_SLEEP.
104689         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104690         * doc/functions/sleep.texi: Document the sleep module.
104692 2007-05-01  Bruno Haible  <bruno@clisp.org>
104694         * lib/sigprocmask.h: Remove file.
104695         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104696         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104697         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104698         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104699         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104700         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104701         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104702         HAVE_SIGSET_T as a shell variable.
104703         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104704         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104705         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104706         (Depends-on): Add signal. Remove verify.
104707         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104708         (Include): Mention <signal.h> instead of sigprocmask.h.
104709         * NEWS: Mention the change.
104710         * lib/fatal-signal.c: Don't include sigprocmask.h.
104712 2007-05-01  Bruno Haible  <bruno@clisp.org>
104714         * modules/signal: New file.
104715         * lib/signal_.h: New file.
104716         * m4/signal_h.m4: New file.
104718 2007-05-01  Bruno Haible  <bruno@clisp.org>
104720         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104721         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104722         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104723         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104725 2007-05-01  Bruno Haible  <bruno@clisp.org>
104727         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104728         configure time.
104729         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104730         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104731         * modules/sys_stat (Makefile.am): Substitute their values into
104732         sys/stat.h.
104734 2007-05-01  Bruno Haible  <bruno@clisp.org>
104736         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104737         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104738         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104740 2007-05-01  Bruno Haible  <bruno@clisp.org>
104742         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104743         'assert' module here.
104745 2007-05-01  Bruno Haible  <bruno@clisp.org>
104747         * doc/functions/*.texi: New files.
104748         * doc/functions/google-ranking.txt: New file.
104749         * doc/gnulib.texi (Function Substitutes): New chapter.
104750         (ctime, inet_ntoa): Remove sections.
104751         * doc/ctime.texi: Remove file.
104752         * doc/inet_ntoa.texi: Remove file.
104753         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104754         dependencies.
104755         (%.info): New rule, specifying a --reference-limit.
104757 2007-05-01  Bruno Haible  <bruno@clisp.org>
104759         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104761 2007-05-01  Bruno Haible  <bruno@clisp.org>
104763         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104764         the portability of 'mkdir' to mingw systems.
104766 2007-05-01  Bruno Haible  <bruno@clisp.org>
104768         * doc/headers/google-ranking.txt: New file.
104770 2007-04-30  Eric Blake  <ebb9@byu.net>
104772         Prefer fseeko to fseek.
104773         * modules/getpass (Depends-on): Add fseeko.
104774         * lib/getpass.c (getpass): Use fseeko, not fseek.
104776 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104778         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104779         assumes the sorting is stable, while most qsort implementations
104780         are not.  Use argument addresses to ensure they never compare as
104781         equal.
104783         * tests/test-argp-2.sh (usage-indent test): Fix output
104784         (func_compare): Restore diff options
104785         * tests/test-argp.c: Restore #include "progname.h"
104787 2007-04-29  Bruno Haible  <bruno@clisp.org>
104789         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104791         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104793         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104794         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104795         (TESTS, check_PROGRAMS): Add test-snprintf.
104796         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104797         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104798         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104799         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104800         assertions that fail on HP-UX, OSF/1, or IRIX.
104801         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104803 2007-04-29  Bruno Haible  <bruno@clisp.org>
104805         * MODULES.html.sh (posix_functions): Remove 'contents'.
104807 2007-04-29  Karl Berry  <karl@gnu.org>
104809         * config/srclist.txt (gendocs_template_min): new entry.
104811 2007-04-29  Bruno Haible  <bruno@clisp.org>
104813         Work around fpurge bug on BSD systems.
104814         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104815         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104816         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104817         fpurge to rpl_fpurge if the system already has this function.
104818         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104819         the case where the system already has this function. Correct invariants
104820         on BSD systems.
104821         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104822         BSD systems.
104824 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104826         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104827         proposed by Sven Verdoolaege.
104829         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104830         options.
104831         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104832         (usage and help tests): Update
104834 2007-04-29  Bruno Haible  <bruno@clisp.org>
104836         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104837         Print more information in case of failure. Disable a test on BeOS.
104839 2007-04-29  Bruno Haible  <bruno@clisp.org>
104841         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104842         This helps debugging on systems on which no gdb is available.
104844 2007-04-29  Bruno Haible  <bruno@clisp.org>
104846         * lib/freading.h: Improve comments.
104847         * lib/fwriting.h: Likewise.
104848         * tests/test-freading.c (main): Don't check freading immediately after
104849         repositioning. Needed for glibc.
104851 2007-04-29  Bruno Haible  <bruno@clisp.org>
104853         * lib/freading.c (freading): Trivial simplification.
104855 2007-04-28  Bruno Haible  <bruno@clisp.org>
104857         * tests/test-fwriting.c (main): Also test the interaction between
104858         fflush and fwriting.
104859         * modules/fwriting-tests (Depends-on): Add fflush.
104861         * tests/test-freading.c (main): Also test the interaction between
104862         fflush and freading.
104863         * modules/freading-tests (Depends-on): Add fflush.
104865 2007-04-28  Bruno Haible  <bruno@clisp.org>
104867         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104868         fseeko and ftello.
104869         Suggested by Eric Blake.
104871 2007-04-28  Jim Meyering  <jim@meyering.net>
104873         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104874         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104875         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104877 2007-04-27  Eric Blake  <ebb9@byu.net>
104879         * doc/headers/assert.texi (assert.h): Document assert module use.
104881 2007-04-27  Bruno Haible  <bruno@clisp.org>
104883         * doc/headers/*.texi: New files.
104884         * doc/gnulib.texi (Header File Substitutes): New chapter.
104885         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104886         dependencies.
104887         (standards.info ,standards.html, standards.dvi): Update dependencies.
104888         (mostlyclean, clean): New targets.
104890 2007-04-27  Bruno Haible  <bruno@clisp.org>
104892         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104893         * modules/sysexits (Files, Makefile.am): Update.
104895         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104896         * modules/sys_socket (Files, Makefile.am): Update.
104898         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104899         * modules/sys_stat (Files, Makefile.am): Update.
104901 2007-04-27  Eric Blake  <ebb9@byu.net>
104903         * lib/freading.h: Improve comments.
104904         * lib/fwriting.h: Likewise.
104905         * lib/fflush.c: Likewise.
104907         Fix closein for mingw.
104908         * modules/closein-tests: Add tests for closein.
104909         * tests/test-closein.c: New file.
104910         * tests/test-closein.sh: Likewise.
104911         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104912         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104914 2007-04-27  Bruno Haible  <bruno@clisp.org>
104916         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104917         version is < 6.
104918         * lib/math_.h [__DECC]: Likewise.
104919         * lib/stdio_.h [__DECC]: Likewise.
104920         * lib/stdlib_.h [__DECC]: Likewise.
104921         * lib/string_.h [__DECC]: Likewise.
104922         * lib/time_.h [__DECC]: Likewise.
104923         * lib/wchar_.h [__DECC]: Likewise.
104924         * lib/wctype_.h [__DECC]: Likewise.
104926 2007-04-27  Bruno Haible  <bruno@clisp.org>
104928         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104930 2007-04-27  Bruno Haible  <bruno@clisp.org>
104932         * lib/fflush.c: Add comments.
104933         * modules/fpurge-tests (Depends-on): Add fflush.
104934         * modules/freadable-tests (Depends-on): Likewise.
104935         * modules/fwritable-tests (Depends-on): Likewise.
104937 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104939         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104940         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104941         Report by Bruno Haible <bruno@clisp.org>.
104943 2007-04-26  Eric Blake  <ebb9@byu.net>
104945         Fix fflush on mingw.
104946         * modules/fflush (Depends-on): Add freading.
104947         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104948         but unread data.
104950 2007-04-26  Eric Blake  <ebb9@byu.net>
104951         and Bruno Haible  <bruno@clisp.org>
104953         Implement freading and fwriting.
104954         * lib/freading.c: New file.
104955         * lib/freading.h: Likewise.
104956         * m4/freading.m4: Likewise.
104957         * modules/freading: Likewise.
104958         * modules/freading-tests: Likewise.
104959         * tests/test-freading.c: Likewise.
104960         * lib/fwriting.c: New file.
104961         * lib/fwriting.h: Likewise.
104962         * m4/fwriting.m4: Likewise.
104963         * modules/fwriting: Likewise.
104964         * modules/fwriting-tests: Likewise.
104965         * tests/test-fwriting.c: Likewise.
104966         * MODULES.html.sh (File stream based Input/Output): Mention them.
104968 2007-04-26  Bruno Haible  <bruno@clisp.org>
104970         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104971         'long' when we assume it.
104972         Suggested by Eric Blake.
104974 2007-04-26  Bruno Haible  <bruno@clisp.org>
104976         Ensure fseeko, ftello are declared on glibc systems.
104977         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104978         * modules/fseeko (configure.ac-early): Likewise.
104979         * modules/ftello (configure.ac-early): Likewise.
104980         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104981         AC_FUNC_FSEEKO for this.
104982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104983         (gl_CHECK_FSEEKO): Remove macro.
104985 2007-04-26  Bruno Haible  <bruno@clisp.org>
104987         * tests/test-fflush.c (main): Also check the ftell result after
104988         fflush and fseek/fseeko.
104989         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104990         file descriptor position cache in the stream.
104991         * lib/fseeko.c (rpl_fseeko): Likewise.
104993 2007-04-26  Bruno Haible  <bruno@clisp.org>
104995         * modules/fflush-tests (Depends-on): Add fseeko.
104997 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104998             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105000         * lib/argz_.h: ensure error_t definition is obtained in same
105001         mechanism system argz.h would have.
105002         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105003         argz facilities are known bad.  Err on the side of caution if
105004         cross-compiling.
105006 2007-04-25  Eric Blake  <ebb9@byu.net>
105008         * lib/fpurge.c (includes): Use stdlib.h for free.
105009         * tests/test-fflush.c (main): Also test fflush-fseeko.
105011 2007-04-25  Bruno Haible  <bruno@clisp.org>
105013         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105014         * lib/fseeko.c: New file.
105015         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105016         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105017         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105018         gl_FUNC_FSEEKO.
105019         (gl_FUNC_FSEEKO): Invoke it.
105020         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105021         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105022         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105024 2007-04-25  Bruno Haible  <bruno@clisp.org>
105026         * modules/fflush (Depends-on): Add ftello.
105028 2007-04-25  Bruno Haible  <bruno@clisp.org>
105030         * modules/ftello-tests: New file.
105031         * tests/test-ftello.c: New file.
105033         * modules/ftello: New file.
105034         * m4/ftello.m4: New file.
105035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105036         HAVE_FTELLO.
105037         * lib/stdio_.h (ftello): New declaration.
105038         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105039         HAVE_FTELLO.
105041 2007-04-25  Bruno Haible  <bruno@clisp.org>
105043         * modules/fseeko-tests: New file.
105044         * tests/test-fseeko.c: New file.
105046         * modules/fseeko: New file.
105047         * m4/fseeko.m4: New file.
105048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105049         HAVE_FSEEKO.
105050         * lib/stdio_.h (fseeko): New declaration.
105051         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105052         HAVE_FSEEKO.
105054 2007-04-25  Bruno Haible  <bruno@clisp.org>
105056         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105058 2007-04-25  Bruno Haible  <bruno@clisp.org>
105060         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105061         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105062         * tests/test-unistd.c: Likewise.
105063         * tests/test-fcntl.c: Likewise.
105065 2007-04-23  Eric Blake  <ebb9@byu.net>
105067         * lib/fflush.c: Fix missing include.
105068         Reported by Bruno Haible.
105070 2007-04-23  Bruno Haible  <bruno@clisp.org>
105072         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105073         Reported by Eric Blake.
105075 2007-04-23  Bruno Haible  <bruno@clisp.org>
105077         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105079 2007-04-23  Bruno Haible  <bruno@clisp.org>
105081         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105083 2007-04-23  Bruno Haible  <bruno@clisp.org>
105085         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105086         Needed on HP-UX 11.
105088 2007-04-16  Eric Blake  <ebb9@byu.net>
105090         Make fflush rely on fpurge.
105091         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105092         open coding all variants.
105093         * modules/fflush (Depends-on): Add fpurge and unistd.
105094         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105095         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105097         Fix --with-tests compilation on cygwin.
105098         * modules/argmatch-tests (Makefile.am): List gnulib library first
105099         in LDADD.
105100         * modules/argp-tests (Makefile.am): Likewise.
105101         * modules/array-list-tests (Makefile.am): Likewise.
105102         * modules/array-oset-tests (Makefile.am): Likewise.
105103         * modules/avltree-list-tests (Makefile.am): Likewise.
105104         * modules/avltree-oset-tests (Makefile.am): Likewise.
105105         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105106         * modules/carray-list-tests (Makefile.am): Likewise.
105107         * modules/dirname-tests (Makefile.am): Likewise.
105108         * modules/frexp-tests (Makefile.am): Likewise.
105109         * modules/isnanl-tests (Makefile.am): Likewise.
105110         * modules/linked-list-tests (Makefile.am): Likewise.
105111         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105112         * modules/lock-tests (Makefile.am): Likewise.
105113         * modules/rbtree-list-tests (Makefile.am): Likewise.
105114         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105115         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105116         * modules/tls-tests (Makefile.am): Likewise.
105117         * modules/tsearch-tests (Makefile.am): Likewise.
105118         * modules/xvasprintf-tests (Makefile.am): Likewise.
105120         Fix fpurge for cygwin.
105121         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105122         value.
105123         * modules/fpurge-tests (Depends-on): Clean up trash.
105125 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105127         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105129         * m4/autobuild.m4: Re-indent.
105131 2007-04-13  Bruno Haible  <bruno@clisp.org>
105133         * modules/fpurge-tests: New file.
105134         * tests/test-fpurge.c: New file.
105136         * modules/fpurge: New file.
105137         * lib/fpurge.h: New file.
105138         * lib/fpurge.c: New file.
105139         * m4/fpurge.m4: New file.
105141 2007-04-13  Bruno Haible  <bruno@clisp.org>
105143         * modules/fbufmode-tests: New file.
105144         * tests/test-fbufmode.c: New file.
105146         * modules/fbufmode: New file.
105147         * lib/fbufmode.h: New file.
105148         * lib/fbufmode.c: New file.
105149         * m4/fbufmode.m4: New file.
105151 2007-04-13  Bruno Haible  <bruno@clisp.org>
105153         * modules/fwritable-tests: New file.
105154         * tests/test-fwritable.c: New file.
105156         * modules/fwritable: New file.
105157         * lib/fwritable.h: New file.
105158         * lib/fwritable.c: New file.
105159         * m4/fwritable.m4: New file.
105161 2007-04-13  Bruno Haible  <bruno@clisp.org>
105163         * modules/freadable-tests: New file.
105164         * tests/test-freadable.c: New file.
105166         * modules/freadable: New file.
105167         * lib/freadable.h: New file.
105168         * lib/freadable.c: New file.
105169         * m4/freadable.m4: New file.
105171 2007-04-13  Bruno Haible  <bruno@clisp.org>
105173         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105174         MOSTLYCLEANFILES.
105176 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105178         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105179         gzip bootstrap.conf to avoid dragging in i18n machinery.
105180         (gnulib_tool_option): Use it.
105182 2007-04-13  Bruno Haible  <bruno@clisp.org>
105184         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105185         %F directives.
105186         * tests/test-vasprintf-posix.c (test_function): Likewise.
105187         * tests/test-snprintf-posix.h (test_function): Likewise.
105188         * tests/test-sprintf-posix.h (test_function): Likewise.
105189         * tests/test-fprintf-posix.h (test_function): Likewise.
105190         * tests/test-printf-posix.h (test_function): Likewise.
105191         * tests/test-fprintf-posix.out: Likewise.
105193 2007-04-13  Bruno Haible  <bruno@clisp.org>
105195         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105196         * modules/tls-tests (configure.ac): Likewise.
105197         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105199 2007-04-13  Bruno Haible  <bruno@clisp.org>
105201         * lib/tls.c (glthread_tls_get): Fix return type.
105202         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105204 2007-04-12  Eric Blake  <ebb9@byu.net>
105206         * modules/gettime (Depends-on): Remove gettime.
105207         Reported by Dmitry V. Levin.
105209 2007-04-12  Bruno Haible  <bruno@clisp.org>
105211         * modules/fflush (Include): Mention <stdio.h>.
105212         * modules/strtoimax (Include): Mention <inttypes.h>.
105213         * modules/strtoumax (Include): Likewise.
105215 2007-04-12  Eric Blake  <ebb9@byu.net>
105217         * .cvsignore: New file.
105218         * .gitignore: Likewise.
105220 2007-04-12  Bruno Haible  <bruno@clisp.org>
105222         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105223         not before, since $(LDADD) often contains libgnu.a.
105224         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105225         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105226         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105227         Needed on Cygwin.
105229 2007-04-12  Eric Blake  <ebb9@byu.net>
105231         Work around glibc's failure to flush stdin on fclose.
105232         * lib/closein.c (close_stdin): Flush stdin before closing.
105234         Work around glibc's failure to reset seekable stdin on exit.
105235         * modules/closein: New module.
105236         * lib/closein.c: New file.
105237         * lib/closein.h: Likewise.
105238         * m4/closein.m4: Likewise.
105239         * MODULES.html.sh (File stream based Input/Output): Document it.
105241 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105243         * gnulib-tool: Rename generated 'autobuild' script to
105244         'do-autobuild' in --create-megatestdir output.
105246         * doc/gnulib.texi (Build robot for gnulib): Fix.
105248 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105250         * modules/sysexits (Depends-on): Add absolute-header.
105252 2007-04-12  Eric Blake  <ebb9@byu.net>
105254         No need to preserve errno on success.
105255         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105256         Reported by Bruno Haible.
105258 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105260         * MODULES.html.sh (Support for maintaining and releasing
105261         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105263 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105265         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105267 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105269         * modules/autobuild: New module.
105271         * m4/autobuild.m4: New file.
105273 2007-04-11  Bruno Haible  <bruno@clisp.org>
105275         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105276         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105292         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105293         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105295         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105296         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105298         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105299         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105301         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105302         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105303         Reported by Eric Blake.
105305 2007-04-11  Bruno Haible  <bruno@clisp.org>
105307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105309 2007-04-10  Bruno Haible  <bruno@clisp.org>
105311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105312         for NaN and Infinity. Needed on FreeBSD 6.1.
105313         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105314         regarding results for "%010a" of Infinity and NaN.
105315         * tests/test-vasprintf-posix.c (test_function): Likewise.
105316         * tests/test-snprintf-posix.h (test_function): Likewise.
105317         * tests/test-sprintf-posix.h (test_function): Likewise.
105318         * tests/test-fprintf-posix.h (test_function): Likewise.
105319         * tests/test-printf-posix.h (test_function): Likewise.
105320         * tests/test-fprintf-posix.out: Likewise.
105322 2007-04-10  Bruno Haible  <bruno@clisp.org>
105324         * modules/locale-tests: New file.
105325         * tests/test-locale.c: New file.
105327         * modules/locale: New file.
105328         * lib/locale_.h: New file.
105329         * m4/locale_h.m4: New file.
105331 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105332             Bruno Haible  <bruno@clisp.org>
105334         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105335         be determined, test for availability of the copysignf, copysign,
105336         copysignl functions.
105337         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105338         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105339         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105341 2007-04-09  Eric Blake  <ebb9@byu.net>
105343         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105344         * modules/stdio (Makefile.am): Support fflush.
105345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105346         * modules/fflush: New file.
105347         * lib/fflush.c: Likewise.
105348         * m4/fflush.m4: Likewise.
105349         * modules/fflush-tests: New test.
105350         * tests/test-fflush.c: Likewise.
105351         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105353 2007-04-06  Bruno Haible  <bruno@clisp.org>
105355         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105356         (VASNPRINTF): Use signbit for faster determination whether to print a
105357         minus sign.
105358         * modules/vasnprintf (Files): Remove lib/float+.h.
105359         * modules/fprintf-posix (Depends-on): Add signbit.
105360         * modules/snprintf-posix (Depends-on): Likewise.
105361         * modules/sprintf-posix (Depends-on): Likewise.
105362         * modules/vasnprintf-posix (Depends-on): Likewise.
105363         * modules/vasprintf-posix (Depends-on): Likewise.
105364         * modules/vfprintf-posix (Depends-on): Likewise.
105365         * modules/vsnprintf-posix (Depends-on): Likewise.
105366         * modules/vsprintf-posix (Depends-on): Likewise.
105368 2007-04-06  Bruno Haible  <bruno@clisp.org>
105370         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105371         * tests/test-frexpl.c (main): Likewise.
105372         * tests/test-ldexpl.c (main): Likewise.
105373         * modules/frexp-tests (Depends-on): Add signbit.
105374         * modules/frexpl-tests (Depdends-on): Likewise.
105375         * modules/ldexpl-tests (Depdends-on): Likewise.
105377 2007-04-06  Bruno Haible  <bruno@clisp.org>
105379         * modules/signbit-tests: New file.
105380         * tests/test-signbit.c: New file.
105382         * modules/signbit: New file.
105383         * lib/signbitf.c: New file.
105384         * lib/signbitd.c: New file.
105385         * lib/signbitl.c: New file.
105386         * m4/signbit.m4: New file.
105387         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105388         (signbit): New macro.
105389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105390         REPLACE_SIGNBIT.
105391         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105392         REPLACE_FREXPL into math.h.
105394 2007-04-06  Bruno Haible  <bruno@clisp.org>
105396         * modules/isnanf-nolibm-tests: New file.
105397         * tests/test-isnanf.c: New file.
105399         * modules/isnanf-nolibm: New file.
105400         * lib/isnanf.h: New file.
105401         * lib/isnanf.c: New file.
105402         * lib/isnan.c: Consider the USE_FLOAT macro.
105403         * m4/isnanf.m4: New file.
105405 2007-04-06  Bruno Haible  <bruno@clisp.org>
105407         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105408         (Link): New section.
105410         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105412 2007-04-06  Bruno Haible  <bruno@clisp.org>
105414         Assume the 'long double' type.
105415         * m4/longdouble.m4: Remove file.
105416         * config/srclist.txt: Don't mention longdouble.m4.
105417         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105418         * lib/float+.h: Likewise.
105419         * lib/frexp.c: Likewise.
105420         * lib/printf-args.h: Likewise.
105421         * lib/printf-args.c: Likewise.
105422         * lib/printf-frexp.c: Likewise.
105423         * lib/printf-parse.c: Likewise.
105424         * lib/vasnprintf.c: Likewise.
105425         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105426         * m4/intl.m4: Likewise.
105427         * m4/isnanl.m4: Likewise.
105428         * m4/printf.m4: Likewise.
105429         * m4/printf-frexpl.m4: Likewise.
105430         * m4/vasnprintf.m4: Likewise.
105431         * modules/allocsa (Files): Remove m4/longdouble.m4.
105432         * modules/gettext (Files): Likewise.
105433         * modules/relocatable-prog-wrapper (Files): Likewise.
105434         * modules/vasnprintf (Files): Likewise.
105435         * modules/isnanl (Files): Likewise.
105436         (Include): Simplify.
105437         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105438         (Include): Simplify.
105439         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105440         (Include): Simplify.
105441         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105442         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105443         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105444         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105445         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105446         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105447         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105448         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105449         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105450         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105451         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105452         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105453         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105454         * tests/test-isnanl.c: Likewise.
105455         * tests/test-snprintf-posix.h: Likewise.
105456         * tests/test-sprintf-posix.h: Likewise.
105457         * tests/test-vasnprintf-posix.c: Likewise.
105458         * tests/test-vasnprintf-posix2.c: Likewise.
105459         * tests/test-vasprintf-posix.c: Likewise.
105461 2007-04-06  Bruno Haible  <bruno@clisp.org>
105463         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105464         * lib/math_.h [__DECC]: Include the overridden include file through
105465         #include_next, outside the double-inclusion guard.
105466         * lib/stdio_.h [__DECC]: Likewise.
105467         * lib/stdlib_.h [__DECC]: Likewise.
105468         * lib/string_.h [__DECC]: Likewise.
105469         * lib/time_.h [__DECC]: Likewise.
105470         * lib/wchar_.h [__DECC]: Likewise.
105471         * lib/wctype_.h [__DECC]: Likewise.
105472         * lib/inttypes_.h [__DECC]: Likewise.
105473         Reported by Albert Chin <china@thewrittenword.com> in
105474         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105476 2007-04-04  Eric Blake  <ebb9@byu.net>
105478         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105479         1.5.x.
105481 2007-04-04  Bruno Haible  <bruno@clisp.org>
105483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105484         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105486 2007-04-04  Bruno Haible  <bruno@clisp.org>
105488         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105489         results for "%010a" of Infinity and NaN.
105490         * tests/test-vasprintf-posix.c (test_function): Likewise.
105491         * tests/test-snprintf-posix.h (test_function): Likewise.
105492         * tests/test-sprintf-posix.h (test_function): Likewise.
105493         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105494         * tests/test-printf-posix.h (test_function): Likewise.
105495         * tests/test-fprintf-posix.out: Update.
105496         Needed for FreeBSD 6.1.
105498 2007-04-04  Bruno Haible  <bruno@clisp.org>
105500         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105501         directly used by the gnulib modules nor by gnulib-tool.
105503 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105505         * DEPENDENCIES: Give overall description of version dependency
105506         desirability.  Use more-typical names for apps.
105507         Add shell, coreutils, diffutils, grep, tar, gzip.
105509 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105511         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105513 2007-04-04  Karl Berry  <karl@gnu.org>
105515         * MODULES.html.sh (func_module): missing '.
105517 2007-04-03  Bruno Haible  <bruno@clisp.org>
105519         * modules/argmatch-tests (Makefile.am): New variable
105520         test_argmatch_LDADD.
105521         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105522         * modules/array-list-tests (Makefile.am): New variable
105523         test_array_list_LDADD.
105524         * modules/array-oset-tests (Makefile.am): New variable
105525         test_array_oset_LDADD.
105526         * modules/avltree-list-tests (Makefile.am): New variable
105527         test_avltree_list_LDADD.
105528         * modules/avltree-oset-tests (Makefile.am): New variable
105529         test_avltree_oset_LDADD.
105530         * modules/avltreehash-list-tests (Makefile.am): New variable
105531         test_avltreehash_list_LDADD.
105532         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105533         test_canonicalize_lgpl_LDADD.
105534         * modules/carray-list-tests (Makefile.am): New variable
105535         test_carray_list_LDADD.
105536         * modules/dirname-tests (Makefile.am): New variable
105537         test_dirname_LDADD.
105538         * modules/linked-list-tests (Makefile.am): New variable
105539         test_linked_list_LDADD.
105540         * modules/linkedhash-list-tests (Makefile.am): New variable
105541         test_linkedhash_list_LDADD.
105542         * modules/rbtree-list-tests (Makefile.am): New variable
105543         test_rbtree_list_LDADD.
105544         * modules/rbtree-oset-tests (Makefile.am): New variable
105545         test_rbtree_oset_LDADD.
105546         * modules/rbtreehash-list-tests (Makefile.am): New variable
105547         test_rbtreehash_list_LDADD.
105548         * modules/xvasprintf-tests (Makefile.am): New variable
105549         test_xvasprintf_LDADD.
105550         Reported by Eric Blake.
105552 2007-04-03  Eric Blake  <ebb9@byu.net>
105554         * DEPENDENCIES: Weaken m4 requirements.
105556 2007-04-03  Bruno Haible  <bruno@clisp.org>
105558         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105559         * modules/isnanl-tests (configure.ac): Likewise.
105561 2007-04-03  Ben Pfaff  <blp@gnu.org>
105563         * modules/iconv_open: Add $(srcdir)/ to source directory
105564         references in Makefile fragments that call gperf, to fix VPATH
105565         builds.
105567 2007-04-03  Bruno Haible  <bruno@clisp.org>
105569         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105570         * lib/ldexpl.c: Undo last change.
105572 2007-04-03  Bruno Haible  <bruno@clisp.org>
105574         * modules/printf-frexpl (Depends-on): Undo last change.
105575         (Files): Add m4/ldexpl.m4.
105577 2007-04-03  Bruno Haible  <bruno@clisp.org>
105579         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105580         * modules/isnanl (Link): New section.
105582         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105583         * modules/frexp (Link): New section.
105585         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105586         * modules/frexpl (Link): New section.
105588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105589         * modules/ldexpl (Link): New section.
105591 2007-04-03  Bruno Haible  <bruno@clisp.org>
105593         * modules/TEMPLATE-EXTENDED: New file.
105594         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105596 2007-04-03  Bruno Haible  <bruno@clisp.org>
105598         * DEPENDENCIES: New file.
105599         Suggested by Simon Josefsson.
105601 2007-04-03  Bruno Haible  <bruno@clisp.org>
105603         * doc/gnulib.texi: Escape @.
105605 2007-04-03  James Youngman  <jay@gnu.org>
105606         and Paul Eggert  <eggert@cs.ucla.edu>
105608         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105609         birthtime on all systems that have birthtime, not just those which
105610         use st_birthtimensec rather than st_birthtim.  Putting zero in
105611         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105612         that the birth time is not available for files on an NFS mount.
105614 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105616         * modules/memxor: Move back from crypto/, suggested by Bruno.
105617         * modules/crypto/hmac-sha1: Fix memxor dependency.
105619         * modules/crypto/gc: Moved from ../.
105621 2007-04-02  Eric Blake  <ebb9@byu.net>
105623         * lib/ldexpl.c (includes): Avoid libm.
105625         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105627 2007-04-02  Bruno Haible  <bruno@clisp.org>
105629         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105630         on IRIX.
105632 2007-04-02  Bruno Haible  <bruno@clisp.org>
105634         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105635         x86 or x86_64 platforms running MacOS X.
105636         Reported by Ryan Schmidt <@ryandesign.com>.
105638 2007-04-02  Bruno Haible  <bruno@clisp.org>
105640         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105641         i386.
105643 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105645         * modules/crypto/arcfour: Moved from ../.
105646         * modules/crypto/arcfour-tests: Moved from ../.
105647         * modules/crypto/arctwo: Moved from ../.
105648         * modules/crypto/arctwo-tests: Moved from ../.
105649         * modules/crypto/des: Moved from ../.
105650         * modules/crypto/des-tests: Moved from ../.
105651         * modules/crypto/gc-arcfour: Moved from ../.
105652         * modules/crypto/gc-arcfour-tests: Moved from ../.
105653         * modules/crypto/gc-arctwo: Moved from ../.
105654         * modules/crypto/gc-arctwo-tests: Moved from ../.
105655         * modules/crypto/gc-des: Moved from ../.
105656         * modules/crypto/gc-des-tests: Moved from ../.
105657         * modules/crypto/gc-hmac-md5: Moved from ../.
105658         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105659         * modules/crypto/gc-hmac-sha1: Moved from ../.
105660         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105661         * modules/crypto/gc-md2: Moved from ../.
105662         * modules/crypto/gc-md2-tests: Moved from ../.
105663         * modules/crypto/gc-md4: Moved from ../.
105664         * modules/crypto/gc-md4-tests: Moved from ../.
105665         * modules/crypto/gc-md5: Moved from ../.
105666         * modules/crypto/gc-md5-tests: Moved from ../.
105667         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105668         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105669         * modules/crypto/gc-random: Moved from ../.
105670         * modules/crypto/gc-rijndael: Moved from ../.
105671         * modules/crypto/gc-rijndael-tests: Moved from ../.
105672         * modules/crypto/gc-sha1: Moved from ../.
105673         * modules/crypto/gc-sha1-tests: Moved from ../.
105674         * modules/crypto/gc-tests: Moved from ../.
105675         * modules/crypto/hmac-md5: Moved from ../.
105676         * modules/crypto/hmac-md5-tests: Moved from ../.
105677         * modules/crypto/hmac-sha1: Moved from ../.
105678         * modules/crypto/hmac-sha1-tests: Moved from ../.
105679         * modules/crypto/md2: Moved from ../.
105680         * modules/crypto/md2-tests: Moved from ../.
105681         * modules/crypto/md4: Moved from ../.
105682         * modules/crypto/md4-tests: Moved from ../.
105683         * modules/crypto/md5: Moved from ../.
105684         * modules/crypto/md5-tests: Moved from ../.
105685         * modules/crypto/memxor: Moved from ../.
105686         * modules/crypto/rijndael: Moved from ../.
105687         * modules/crypto/rijndael-tests: Moved from ../.
105688         * modules/crypto/sha1: Moved from ../.
105690 2007-03-30  James Youngman  <jay@gnu.org>
105692         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105693         rename() to change the ctime of a file (because ctime is unaffected
105694         by rename on jfs2 on AIX 5.1).
105695         (main): Start by doing cleanup, in case a previous run failed leaving
105696         test files behind.
105698 2007-03-31  Bruno Haible  <bruno@clisp.org>
105700         Support old proprietary implementations of iconv.
105701         * modules/iconv_open: New file.
105702         * lib/iconv_.h: New file.
105703         * m4/iconv_h.m4: New file.
105704         * lib/iconv_open.c: New file.
105705         * lib/iconv_open-aix.gperf: New file.
105706         * lib/iconv_open-hpux.gperf: New file.
105707         * lib/iconv_open-irix.gperf: New file.
105708         * lib/iconv_open-osf.gperf: New file.
105709         * m4/iconv_open.m4: New file.
105710         * modules/linebreak (Depends-on): Add iconv_open.
105711         * modules/striconv (Depends-on): Likewise.
105712         * modules/striconveh (Depends-on): Likewise.
105713         * modules/unicodeio (Depends-on): Likewise.
105714         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105715         (iconv_t)(-1).
105716         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105717         conversion if cd is (iconv_t)(-1).
105718         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105719         is not possible.
105721 2007-03-31  Bruno Haible  <bruno@clisp.org>
105723         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105724         work on Solaris either. Protect also second use of "autodetect_jp".
105726 2007-03-31  Bruno Haible  <bruno@clisp.org>
105728         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105729         the function is not present.
105731 2007-03-31  Bruno Haible  <bruno@clisp.org>
105733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105734         the function is not present.
105736 2007-03-31  Bruno Haible  <bruno@clisp.org>
105738         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105739         a bug in HP-UX iconv_open().
105741 2007-03-31  Bruno Haible  <bruno@clisp.org>
105743         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105744         (Mathematics <math.h>): New section, add fpieee.
105745         (Input/output <stdio.h>): Add fseterr.
105746         (Mathematics <math.h>): New section, add printf-frexp.
105747         (Container data structures): Add sublist.
105748         (Core language properties): Add fpucw, inline.
105749         (Functions for greatest-width integer types <inttypes.h>): Add
105750         imaxabs, imaxdiv, inttypes.
105751         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105752         isnanl-nolibm, ldexp.
105753         (Mathematics <math.h>): New section, add printf-frexpl.
105754         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105755         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105756         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105757         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105758         (Unicode string functions): Add unistr/u*-mbtoucr.
105759         (Java): Add javacomp-script, javaexec-script.
105760         (C#): Add csharpcomp-script, csharpexec-script.
105761         (Support for building libraries and executables): Add havelib,
105762         relocatable-*.
105763         (Support for maintaining and releasing projects): Renamed from
105764         'Support for maintaining and release projects'. Add announce-gen.
105766 2007-03-31  Bruno Haible  <bruno@clisp.org>
105768         * README: Talk primarily about git.
105769         (git and CVS): Renamed from CVS.
105770         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105771         gnulib is available through git.
105772         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105774 2007-03-30  Bruno Haible  <bruno@clisp.org>
105776         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105777         * lib/poll_.h: Likewise.
105778         * lib/stat_.h: Likewise.
105779         * lib/sys_time_.h: Likewise.
105780         * lib/sysexit_.h: Likewise.
105781         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105782         * lib/stdbool_.h: Likewise.
105783         * lib/byteswap_.h: Add double-inclusion guard.
105785 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105787         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105789 2007-03-30  Karl Berry  <karl@gnu.org>
105791         * config/srclist-update: double space after USA in the license
105792         substitution, since that's how it's usually (?) written.
105794 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105796         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105797         reported by Bruno Haible.
105799 2007-03-29  Bruno Haible  <bruno@clisp.org>
105801         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105802         a bug in AIX iconv().
105804 2007-03-29  Bruno Haible  <bruno@clisp.org>
105806         * modules/ldexpl-tests: New file.
105807         * tests/test-ldexpl.c: New file.
105809 2007-03-29  Bruno Haible  <bruno@clisp.org>
105811         * lib/ldexpl.c: Include fpucw.h.
105812         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105813         multiplication.
105814         * modules/ldexpl (Depends-on): Add fpucw.
105816 2007-03-29  Bruno Haible  <bruno@clisp.org>
105818         * modules/ldexpl: New file.
105819         * m4/ldexpl.m4: New file.
105820         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105821         set.
105822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105823         REPLACE_LDEXPL.
105824         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105825         REPLACE_LDEXPL.
105826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105827         gl_FUNC_LDEXPL_WORKS.
105828         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105829         * modules/mathl (Files): Remove lib/ldexpl.c.
105830         (Depends-on): Add ldexpl.
105832 2007-03-29  Bruno Haible  <bruno@clisp.org>
105834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105836 2007-03-29  Bruno Haible  <bruno@clisp.org>
105838         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105839         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105840         and possibly also HP-UX.
105841         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105842         work on AIX, IRIX, HP-UX, OSF/1.
105843         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105844         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105845         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105846         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105847         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105848         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105850 2007-03-29  Bruno Haible  <bruno@clisp.org>
105852         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105854 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105856         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105857         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105859 2007-03-29  Eric Blake  <ebb9@byu.net>
105861         * lib/acl-internal.h: Remove redundant include.
105862         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105863         Cygwin when a file is locked.
105865 2007-03-29  Bruno Haible  <bruno@clisp.org>
105867         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105868         file.
105869         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105871 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105874         try to remove a parent directory if the child couldn't be removed
105875         (except for the first rmdir, which could fail because the child
105876         doesn't exist).  Problem reported by Jeff Blaine in
105877         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105879 2007-03-28  Bruno Haible  <bruno@clisp.org>
105881         * lib/striconveh.c (utf8conv_carefully): New function.
105882         (mem_cd_iconveh_internal): Invoke it.
105884 2007-03-28  Bruno Haible  <bruno@clisp.org>
105886         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105887         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105888         input.
105889         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105890         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105891         unistr/u8-uctomb.
105893 2007-03-28  Bruno Haible  <bruno@clisp.org>
105895         * modules/unistr/u8-mbtoucr: New file.
105896         * lib/unistr/u8-mbtoucr.c: New file.
105897         * modules/unistr/u16-mbtoucr: New file.
105898         * lib/unistr/u16-mbtoucr.c: New file.
105899         * modules/unistr/u16-mbtoucr: New file.
105900         * lib/unistr/u16-mbtoucr.c: New file.
105901         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105903 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105904             Bruno Haible  <bruno@clisp.org>
105906         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105907         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105908         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105910         * m4/stdio_h.m4: Add stubs for vasprintf too.
105912         * modules/stdio: Support vasprintf in sed command.
105914         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105915         vasprintf.h.  Add stdio module indicator.
105917         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105918         vasprintf.h.
105920         * lib/vasprintf.h: File removed.
105922         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105923         * lib/vasprintf.c: Ditto.
105924         * lib/xvasprintf.c: Ditto.
105925         * tests/test-vasprintf-posix.c: Ditto.
105926         * tests/test-vasprintf.c: Ditto.
105928 2007-03-27  Bruno Haible  <bruno@clisp.org>
105930         Make vasnprintf multithread-safe.
105931         * lib/vasnprintf.c (decimal_point_char): New function.
105932         (VASNPRINTF): Use it.
105933         Suggested by Simon Josefsson.
105935 2007-03-27  Eric Blake  <ebb9@byu.net>
105937         Support sub-second birthtime on cygwin.
105938         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105939         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105940         (get_stat_birthtime): Also work with st_birthtim.
105942 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105944         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105945         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105946         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105947         (get_stat_birthtime_ns): Simplify compile-time tests.
105948         (get_stat_birthtime): Change the API to look like
105949         get_stat_mtime etc., except return a negative tv_nsec on error.
105950         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105951         Don't check for "spare" fields.
105952         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105953         or for struct stat.st_birthtime, as these tests aren't used.
105954         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105956 2007-03-27  Bruno Haible  <bruno@clisp.org>
105958         * lib/stat-time.h: Include <sys/stat.h>.
105960 2007-03-27  James Youngman  <jay@gnu.org>
105962         * lib/stat-time.h (get_stat_birthtime): New function for
105963           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105964         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105965           and its variants.
105966         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105967         * modules/stat-time-test: New file.
105968         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105970 2007-03-26  Bruno Haible  <bruno@clisp.org>
105972         Better support of signalling NaNs.
105973         * lib/atanl.c: Include isnanl.h.
105974         (atanl): Perform test for NaN at the beginning of the function and
105975         through a call to isnanl.
105976         * lib/cosl.c: Include isnanl.h.
105977         (cosl): Perform test for NaN at the beginning of the function and
105978         through a call to isnanl.
105979         * lib/ldexpl.c: Include isnanl.h.
105980         (ldexpl): Perform test for NaN through a call to isnanl.
105981         * lib/logl.c: Include isnanl.h.
105982         (logl): Perform test for NaN at the beginning of the function and
105983         through a call to isnanl.
105984         * lib/sinl.c: Include isnanl.h.
105985         (sinl): Perform test for NaN at the beginning of the function and
105986         through a call to isnanl.
105987         * lib/sqrtl.c: Include isnanl.h.
105988         (sqrtl): Perform test for NaN at the beginning of the function and
105989         through a call to isnanl.
105990         * lib/tanl.c: Include isnanl.h.
105991         (tanl): Perform test for NaN at the beginning of the function and
105992         through a call to isnanl.
105993         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105994         * modules/mathl (Depends-on): Add isnanl.
105996 2007-03-26  Eric Blake  <ebb9@byu.net>
105998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105999         regression in logic sense of previous patch.
106001 2007-03-26  Bruno Haible  <bruno@clisp.org>
106003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106004         unportable shell command "if ! ...".
106005         Reported by Ralf Wildenhues.
106007 2007-03-25  Bruno Haible  <bruno@clisp.org>
106009         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106010         <sysexits.h> file, and only add EX_CONFIG.
106011         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106012         absolute file name and whether it is sufficient. Substitute also
106013         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106014         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106015         ABSOLUTE_SYSEXITS_H into sysexits.h.
106017 2007-03-25  Bruno Haible  <bruno@clisp.org>
106019         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106020         hints is NULL.
106022 2007-03-25  Bruno Haible  <bruno@clisp.org>
106024         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106025         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106027 2007-03-25  Bruno Haible  <bruno@clisp.org>
106029         * lib/vasnprintf.c: Include langinfo.h.
106030         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106031         multithread-safe.
106032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106041         Reported by Simon Josefsson.
106043 2007-03-25  Bruno Haible  <bruno@clisp.org>
106045         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106046         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106047         * modules/vasnprintf (Depends-on): Add stdint.
106049 2007-03-25  Bruno Haible  <bruno@clisp.org>
106051         * modules/fpieee: New file.
106052         * m4/fpieee.m4: New file.
106053         * modules/isnan-nolibm (Depends-on): Add fpieee.
106054         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106055         * modules/isnanl (Depends-on): Add fpieee.
106057 2007-03-25  Bruno Haible  <bruno@clisp.org>
106059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106061 2007-03-25  Bruno Haible  <bruno@clisp.org>
106063         Avoid test failures on IRIX 6.5.
106064         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106065         (main): Use it.
106066         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106067         macros.
106068         (main): Use them.
106070 2007-03-25  Bruno Haible  <bruno@clisp.org>
106072         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106073         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106074         exists but doesn't work.
106075         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106076         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106078         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106079         math.h.
106081 2007-03-25  Bruno Haible  <bruno@clisp.org>
106083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106084         returns inf. Needed on IRIX 6.5.
106086 2007-03-25  Bruno Haible  <bruno@clisp.org>
106088         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106089         (main): Use isnanl instead of x != x idiom.
106090         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106092         * tests/test-frexp.c: Include isnan.h.
106093         (main): Use isnan instead of x != x idiom.
106094         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106096 2007-03-25  Bruno Haible  <bruno@clisp.org>
106098         * tests/test-frexp.c (NaN): New function/macro.
106099         (main): Use it instead of 0.0 / 0.0.
106100         * tests/test-isnan.c (NaN): New function/macro.
106101         (main): Use it instead of 0.0 / 0.0.
106102         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106103         (test_function): Use it instead of 0.0 / 0.0.
106104         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106105         (test_function): Use it instead of 0.0 / 0.0.
106106         * tests/test-snprintf-posix.h (NaN): New function/macro.
106107         (test_function): Use it instead of 0.0 / 0.0.
106108         * tests/test-sprintf-posix.h (NaN): New function/macro.
106109         (test_function): Use it instead of 0.0 / 0.0.
106110         * tests/test-fprintf-posix.h (NaN): New function/macro.
106111         (test_function): Use it instead of 0.0 / 0.0.
106112         * tests/test-printf-posix.h (NaN): New function/macro.
106113         (test_function): Use it instead of 0.0 / 0.0.
106115         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106117 2007-03-25  Bruno Haible  <bruno@clisp.org>
106119         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106121 2007-03-25  Bruno Haible  <bruno@clisp.org>
106123         * lib/regexec.c (merge_state_with_log): Make static.
106125 2007-03-25  Bruno Haible  <bruno@clisp.org>
106127         * lib/trigl.c (kernel_rem_pio2): Make static.
106129 2007-03-25  Bruno Haible  <bruno@clisp.org>
106131         * lib/sincosl.c (sincosl_table): Make static.
106133 2007-03-25  Bruno Haible  <bruno@clisp.org>
106135         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106136         if the compiler does not support C99.
106138 2007-03-25  Bruno Haible  <bruno@clisp.org>
106140         * modules/time (Makefile.am): Ensure all rule action lines start with a
106141         tab.
106143 2007-03-24  Bruno Haible  <bruno@clisp.org>
106145         * modules/tsearch-tests: New file.
106146         * tests/test-tsearch.sh: New file.
106147         * tests/test-tsearch.c: New file, mostly copied from glibc.
106149         * modules/search-tests: New file.
106150         * tests/test-search.c: New file.
106152         * modules/search: New file.
106153         * lib/search_.h: New file, incorporating lib/tsearch.h.
106154         * m4/search_h.m4: New file.
106155         * lib/tsearch.h: Remove file.
106156         * lib/tsearch.c: Include search.h instead of tsearch.h.
106157         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106158         HAVE_TSEARCH.
106159         * modules/tsearch (Files): Remove lib/tsearch.h.
106160         (Depends-on): Add search.
106161         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106162         (Include): Change tsearch.h into search.h.
106164 2007-03-24  Bruno Haible  <bruno@clisp.org>
106166         * modules/fpucw: New file.
106167         * lib/fpucw.h: New file.
106168         * lib/frexp.c: Include fpucw.h.
106169         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106170         (FUNC): Use them.
106171         * lib/printf-frexp.c: Include fpucw.h.
106172         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106173         (FUNC): Use them.
106174         * lib/vasnprintf.c: Include fpucw.h.
106175         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106176         'long double' calculations.
106177         * tests/test-frexpl.c: Include fpucw.h.
106178         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106179         * tests/test-printf-frexpl.c: Include fpucw.h.
106180         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106181         * modules/frexpl (Depends-on): Add fpucw.
106182         * modules/printf-frexpl (Depends-on): Likewise.
106183         * modules/fprintf-posix (Depends-on): Likewise.
106184         * modules/snprintf-posix (Depends-on): Likewise.
106185         * modules/sprintf-posix (Depends-on): Likewise.
106186         * modules/vasnprintf-posix (Depends-on): Likewise.
106187         * modules/vasprintf-posix (Depends-on): Likewise.
106188         * modules/vfprintf-posix (Depends-on): Likewise.
106189         * modules/vsnprintf-posix (Depends-on): Likewise.
106190         * modules/vsprintf-posix (Depends-on): Likewise.
106191         * modules/frexpl-tests (Depends-on): Likewise.
106192         * modules/printf-frexpl-tests (Depends-on): Likewise.
106194 2007-03-24  Bruno Haible  <bruno@clisp.org>
106196         * lib/float+.h: New file.
106197         * lib/isnan.c: Include float+.h.
106198         (SIZE): New macro.
106199         (FUNC): Compare only SIZE bytes of the value.
106200         * lib/vasnprintf.c: Include float+.h.
106201         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106202         SIZEOF_LDBL or SIZEOF_DBL bytes.
106203         * modules/isnan-nolibm (Files): Add lib/float+.h.
106204         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106205         * modules/isnanl (Files): Add lib/float+.h.
106206         * modules/vasnprintf (Files): Add lib/float+.h.
106208 2007-03-24  Bruno Haible  <bruno@clisp.org>
106210         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106211         include isnanl-nolibm.h.
106213 2007-03-24  Bruno Haible  <bruno@clisp.org>
106215         * tests/test-read-file.c (main): Don't produce spurious output for
106216         expected situations. Make the test fail if it encountered unexpected
106217         results.
106219 2007-03-24  Bruno Haible  <bruno@clisp.org>
106221         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106222         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106224 2007-03-24  Bruno Haible  <bruno@clisp.org>
106226         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106228 2007-03-24  Bruno Haible  <bruno@clisp.org>
106230         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106231         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106233         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106234         * modules/utf8-ucs4: Turn into a symbolic link to module
106235         unistr/u8-mbtouc.
106237         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106238         utf8-ucs4-unsafe.
106239         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106240         unistr/u8-mbtouc-unsafe.
106242         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106243         * modules/utf16-ucs4: Turn into a symbolic link to module
106244         unistr/u16-mbtouc.
106246         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106247         utf16-ucs4-unsafe.
106248         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106249         unistr/u16-mbtouc-unsafe.
106251         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106252         * modules/ucs4-utf8: Turn into a symbolic link to module
106253         unistr/u8-ubtomb.
106255         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106256         * modules/ucs4-utf16: Turn into a symbolic link to module
106257         unistr/u16-ubtomb.
106259 2007-03-24  Bruno Haible  <bruno@clisp.org>
106261         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106262         Enable the function only if HAVE_INLINE.
106263         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106264         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106265         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106266         Enable the function only if HAVE_INLINE.
106267         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106268         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106269         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106270         Enable the function only if HAVE_INLINE.
106271         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106272         Enable the function only if HAVE_INLINE.
106273         * modules/utf8-ucs4: Update.
106274         * modules/utf8-ucs4-unsafe: Update.
106275         * modules/utf16-ucs4: Update.
106276         * modules/utf16-ucs4-unsafe: Update.
106277         * modules/ucs4-utf8: Update.
106278         * modules/ucs4-utf16: Update.
106280 2007-03-24  Bruno Haible  <bruno@clisp.org>
106282         * lib/utf8-ucs4.h: Remove file.
106283         * lib/utf8-ucs4-unsafe.h: Remove file.
106284         * lib/utf16-ucs4.h: Remove file.
106285         * lib/utf16-ucs4-unsafe.h: Remove file.
106286         * lib/ucs4-utf8.h: Remove file.
106287         * lib/ucs4-utf16.h: Remove file.
106288         * lib/unistr.h: Include their previous contents.
106289         * m4/utf-ucs4.m4: Remove file.
106290         * m4/ucs4-utf.m4: Remove file.
106291         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106292         (Depends-on): Add unistr/base.
106293         (configure.ac): Remove gl_UTF_UCS4.
106294         (Makefile.am): Update.
106295         (Include): Change to unistr.h.
106296         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106297         (Depends-on): Add unistr/base.
106298         (configure.ac): Remove gl_UTF_UCS4.
106299         (Makefile.am): Update.
106300         (Include): Change to unistr.h.
106301         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106302         (Depends-on): Add unistr/base.
106303         (configure.ac): Remove gl_UTF_UCS4.
106304         (Makefile.am): Update.
106305         (Include): Change to unistr.h.
106306         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106307         (Depends-on): Add unistr/base.
106308         (configure.ac): Remove gl_UTF_UCS4.
106309         (Makefile.am): Update.
106310         (Include): Change to unistr.h.
106311         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106312         (Depends-on): Add unistr/base.
106313         (configure.ac): Remove gl_UCS4_UTF.
106314         (Makefile.am): Update.
106315         (Include): Change to unistr.h.
106316         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106317         (Depends-on): Add unistr/base.
106318         (configure.ac): Remove gl_UCS4_UTF.
106319         (Makefile.am): Update.
106320         (Include): Change to unistr.h.
106321         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106322         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106323         utf8-ucs4-unsafe.h.
106324         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106325         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106326         utf16-ucs4-unsafe.h.
106327         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106328         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106329         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106330         * lib/unistr/u8-strchr.c: Likewise.
106331         * lib/unistr/u8-strrchr.c: Likewise.
106332         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106333         * lib/unistr/u16-strchr.c: Likewise.
106334         * lib/unistr/u16-strrchr.c: Likewise.
106335         * lib/striconveh.c: Update.
106336         * lib/linebreak.c: Update.
106338 2007-03-24  Bruno Haible  <bruno@clisp.org>
106340         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106341         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106343 2007-03-22  Bruno Haible  <bruno@clisp.org>
106345         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106347 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106349         * MODULES.html.sh (File system functions): New module write-any-file.
106350         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106351         * m4/write-any-file.m4: New files.
106353 2007-03-23  Eric Blake  <ebb9@byu.net>
106355         * gnulib-tool: Rearrange space-tab sequences, since some editors
106356         like to eat them.
106358 2007-03-23  Eric Blake  <ebb9@byu.net>
106360         * lib/version-etc.c (version_etc_va): Update license wording to
106361         be more concise.  Recommended by Richard Stallman.
106363 2007-03-22  Bruno Haible  <bruno@clisp.org>
106365         * lib/poll.c (MSG_PEEK): New fallback definition.
106367 2007-03-22  Bruno Haible  <bruno@clisp.org>
106369         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106370         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106371         (main): Update.
106372         Fixes a compilation error on BeOS.
106374 2007-03-22  Bruno Haible  <bruno@clisp.org>
106376         * modules/frexpl-tests: New file.
106377         * tests/test-frexpl.c: New file.
106379         * modules/frexpl: New file.
106380         * m4/frexpl.m4: New file.
106381         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106382         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106384         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106385         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106386         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106388 2007-03-22  Bruno Haible  <bruno@clisp.org>
106390         * lib/frexpl.c: Share code with lib/frexp.c.
106391         * modules/mathl (Files): Add lib/frexp.c.
106392         (Depends-on): Add isnanl-nolibm.
106394 2007-03-22  Bruno Haible  <bruno@clisp.org>
106396         * modules/printf-frexp (Files): Add m4/frexp.m4.
106397         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106398         only if the found frexp function actually works.
106400 2007-03-22  Bruno Haible  <bruno@clisp.org>
106402         * lib/frexp.c: Remove older implementation that uses divisions.
106404 2007-03-21  Bruno Haible  <bruno@clisp.org>
106406         * modules/frexp-tests: New file.
106407         * tests/test-frexp.c: New file.
106409         * modules/frexp: New file.
106410         * lib/frexp.c: New file.
106411         * m4/frexp.m4: New file.
106412         * lib/math_.h (frexp): New declaration.
106413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106414         REPLACE_FREXP.
106415         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106417 2007-03-21  Bruno Haible  <bruno@clisp.org>
106419         * modules/isnanl-tests: New file.
106420         * tests/test-isnanl.c: New file.
106422         * modules/isnanl: New file.
106423         * lib/isnanl.h: New file.
106424         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106425         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106426         gl_FUNC_ISNANL_WORKS.
106427         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106428         New macros.
106430 2007-03-21  Bruno Haible  <bruno@clisp.org>
106432         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106433         lib/isnanl.h.
106434         (Include): Update.
106435         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106436         * lib/vasnprintf.c: Update.
106437         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106438         tests/test-isnanl.h, remove tests/test-isnanl.c.
106439         (Makefile.am): Update.
106440         * tests/test-isnanl-nolibm.c: New file.
106441         * tests/test-isnanl.h: New file.
106442         * tests/test-isnanl.c: Remove file.
106444 2007-03-21  Jim Meyering  <jim@meyering.net>
106446         When trying to open ".", treat ESTALE like EACCES.
106447         * lib/savewd.c (savewd_save): Resort to forking not just upon
106448         failure with EACCES, but also when errno is ESTALE.
106450 2007-03-20  Bruno Haible  <bruno@clisp.org>
106452         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106453         Needed on AIX 5.1. Reported by Matthew Woehlke.
106455 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106457         Suggestions by Bruno Haible:
106458         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106459         our own.
106460         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106461         * modules/acl (Depends-on): Add gettext.
106463 2007-03-19  Bruno Haible  <bruno@clisp.org>
106465         * modules/iconvme: Remove file.
106466         * lib/iconvme.h: Remove file.
106467         * lib/iconvme.c: Remove file.
106468         * m4/iconvme.m4: Remove file.
106470 2007-03-19  Bruno Haible  <bruno@clisp.org>
106472         * doc/relocatable-maint.texi: Break long shell script line.
106473         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106475 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106477         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106478         handle file_has_acl.
106479         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106480         * lib/acl.c: Move header inclusions and related macro defns into
106481         lib/acl-internal.h.
106482         (S_ISLNK): Remove defn, since that's now done for us.
106483         (file_has_acl): Move to lib/file-has-acl.c.
106484         Call acl_trivial if available.  This is the crucial part of the fix.
106485         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106486         shared within the library.  Rewrite a bit, partly to make it compatible
106487         with the GNU coding style.
106488         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106489         Remove unnecessary double-quotes.
106490         Don't test for acl_to_text; the build will catch that.
106491         Replace acl_entries if it doesn't exist and it is needed.
106492         Check for -lsec and acl_trivial (as used on Solaris 10).
106493         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106494         lib/file-has-acl.c.
106495         (Depends-on): Add sys_stat, for S_ISLNK.
106497 2007-03-19  Ben Pfaff  <blp@gnu.org>
106499         * doc/gnulib.texi: Fix typos.
106500         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106502 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106504         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106505         If size is zero here, buf must be zero.
106507 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106509         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106510         <bruno@clisp.org>.
106512 2007-03-18  Bruno Haible  <bruno@clisp.org>
106514         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106515         Suggested by Eric Blake.
106517 2007-03-18  Ben Pfaff  <blp@gnu.org>
106519         * doc/relocatable.texi: Recommend using as prefix a directory
106520         that does not exist and will never be created.  Based on
106521         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106522         and others.
106524 2007-03-17  Bruno Haible  <bruno@clisp.org>
106526         * lib/fchownat.c: Include lchown.h.
106528 2007-03-17  Bruno Haible  <bruno@clisp.org>
106530         Fix endless loop when the given allocated size was > INT_MAX.
106531         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106532         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106533         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106534         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106535         * lib/sprintf.c (sprintf): Likewise.
106537 2007-03-17  Bruno Haible  <bruno@clisp.org>
106539         * tests/test-argp-2.sh (func_compare): Output a context diff.
106541 2007-03-17  Bruno Haible  <bruno@clisp.org>
106543         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106544         locale's decimal-point character.
106546 2007-03-17  Bruno Haible  <bruno@clisp.org>
106548         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106549         before comparing it. Needed because on some platforms (e.g. x86) a
106550         'long double' occupies less bytes than sizeof (long double).
106552 2007-03-17  Bruno Haible  <bruno@clisp.org>
106554         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106555         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106556         * tests/test-getaddrinfo.c (simple): Likewise.
106557         * tests/test-read-file.c (main): Likewise.
106559 2007-03-17  Bruno Haible  <bruno@clisp.org>
106561         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106563 2007-03-17  Bruno Haible  <bruno@clisp.org>
106565         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106566         unused variable.
106568 2007-03-17  Bruno Haible  <bruno@clisp.org>
106570         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106571         * tests/test-c-strncasecmp.c: Likewise.
106573 2007-03-17  Bruno Haible  <bruno@clisp.org>
106575         * modules/stdlib (Depends-on): Add unistd.
106576         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106577         Needed for MacOS X 10.3.
106579 2007-03-17  Bruno Haible  <bruno@clisp.org>
106581         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106583 2007-03-17  Bruno Haible  <bruno@clisp.org>
106585         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106587 2007-03-17  Bruno Haible  <bruno@clisp.org>
106589         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106590         to reflect files copied from gnulib (with or without modifications).
106591         Suggested by Jim Meyering.
106593 2007-03-17  Eric Blake  <ebb9@byu.net>
106595         * NEWS: Document stdlib change from 2007-02-18.
106597 2007-03-17  Jim Meyering  <jim@meyering.net>
106599         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106600         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106601         someone uses a name containing shell meta-characters.
106602         Reported by Alfred M. Szmidt.
106604         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106606 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106608         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106609         and copy gettext configuration files only if configure.ac contains
106610         a use of AM_GNU_GETTEXT_VERSION.
106612 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106614         * build-aux/bootstrap (gnulib_name): New variable.
106615         (gnulib_tool_options): Use it.
106617 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106619         * tests/test-des.c: Use new namespace.
106621 2007-03-15  Bruno Haible  <bruno@clisp.org>
106623         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106624         Reported by James Youngman <jay@gnu.org>.
106626 2007-03-15  Bruno Haible  <bruno@clisp.org>
106628         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106629         declared prototype. Needed with cc on OSF/1 5.1.
106631 2007-03-15  Bruno Haible  <bruno@clisp.org>
106633         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106634         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106635         (struct gl_list_implementation): Add dispose_fn argument to the
106636         'create_empty', 'create' methods.
106637         (struct gl_list_impl_base): Add field 'dispose_fn'.
106638         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106639         argument.
106640         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106641         dispose_fn argument.
106642         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106643         dispose_fn on the dropped values.
106644         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106645         dispose_fn argument.
106646         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106647         dropped values.
106648         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106649         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106650         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106651         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106652         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106653         argument.
106654         (gl_tree_list_free): Call dispose_fn on the dropped values.
106655         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106656         the dropped values.
106657         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106658         Add dispose_fn argument.
106659         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106660         Call dispose_fn on the dropped values.
106661         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106662         Add dispose_fn argument.
106663         (gl_sublist_create): Initialize the 'dispose_fn' field.
106664         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106665         * tests/test-array_list.c (main): Update.
106666         * tests/test-carray_list.c (main): Update.
106667         * tests/test-avltree_list.c (main): Update.
106668         * tests/test-rbtree_list.c (main): Update.
106669         * tests/test-avltreehash_list.c (main): Update.
106670         * tests/test-rbtreehash_list.c (main): Update.
106671         * tests/test-linked_list.c (main): Update.
106672         * tests/test-linkedhash_list.c (main): Update.
106673         * tests/test-array_oset.c (main): Update.
106675 2007-03-15  Bruno Haible  <bruno@clisp.org>
106677         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106678         (gl_oset_create_empty): Add dispose_fn argument.
106679         (struct gl_oset_implementation): Add dispose_fn argument to
106680         'create_empty' method.
106681         (struct gl_oset_impl_base): Add dispose_fn field.
106682         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106683         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106684         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106685         values.
106686         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106687         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106688         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106689         dropped value.
106690         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106691         dropped value.
106692         * tests/test-array_oset.c (main): Update.
106693         * tests/test-avltree_oset.c (main): Update.
106694         * tests/test-rbtree_oset.c (main): Update.
106695         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106697 2007-03-13  Bruno Haible  <bruno@clisp.org>
106699         * tests/test-stdbool.c (i): Update after last patch.
106701 2007-03-12  Bruno Haible  <bruno@clisp.org>
106703         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106704         the iswprint macro. Needed on Solaris 2.5.1.
106706 2007-03-12  Bruno Haible  <bruno@clisp.org>
106708         * tests/test-printf-frexp.c (main): Declare x as volatile.
106710 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106712         * doc/gnulib.texi (Build robot for gnulib): New section.
106714 2007-03-12  Jim Meyering  <jim@meyering.net>
106716         * build-aux/bootstrap: New file.
106717         * build-aux/bootstrap.conf: New file, from coreutils.
106719 2007-03-11  Bruno Haible  <bruno@clisp.org>
106721         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106723 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106725         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106726         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106727         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106729 2007-03-11  Bruno Haible  <bruno@clisp.org>
106731         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106732         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106734 2007-03-11  Bruno Haible  <bruno@clisp.org>
106736         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106737         formula. Needed for SunPRO C 5.0.
106739 2007-03-11  Bruno Haible  <bruno@clisp.org>
106741         * modules/long-options (Depends-on): Add getopt.
106743 2007-03-11  Bruno Haible  <bruno@clisp.org>
106745         * modules/modechange (Depends-on): Add stdbool.
106747 2007-03-11  Bruno Haible  <bruno@clisp.org>
106749         * modules/i-ring (Depends-on): Add stdbool.
106751 2007-03-11  Bruno Haible  <bruno@clisp.org>
106753         * modules/gc-des (Depends-on): Add stdbool.
106755 2007-03-11  Bruno Haible  <bruno@clisp.org>
106757         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106759 2007-03-11  Bruno Haible  <bruno@clisp.org>
106761         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106763 2007-03-11  Bruno Haible  <bruno@clisp.org>
106765         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106767 2007-03-11  Bruno Haible  <bruno@clisp.org>
106769         * lib/vasnprintf.c (sprintf): Undefine.
106771 2007-03-11  Bruno Haible  <bruno@clisp.org>
106773         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106774         initializers in SunPRO C and Compaq C compilers.
106776 2007-03-11  Bruno Haible  <bruno@clisp.org>
106778         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106779         decrementing code ANSI C compliant.
106781 2007-03-11  Bruno Haible  <bruno@clisp.org>
106783         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106784         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106786 2007-03-11  Bruno Haible  <bruno@clisp.org>
106788         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106789         <stdbool.h> substitute doesn't pass.
106791 2007-03-11  Bruno Haible  <bruno@clisp.org>
106793         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106795 2007-03-11  Bruno Haible  <bruno@clisp.org>
106797         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106798         script, for submission to autobuild.josefsson.org.
106800 2007-03-10  Bruno Haible  <bruno@clisp.org>
106802         * modules/canonicalize-lgpl-tests: New file.
106803         * tests/test-canonicalize-lgpl.sh: New file.
106804         * tests/test-canonicalize-lgpl.c: New file.
106806         * modules/c-strcase-tests: New file.
106807         * tests/test-c-strcase.sh: New file.
106808         * tests/test-c-strcasecmp.c: New file.
106809         * tests/test-c-strncasecmp.c: New file.
106811         * modules/atexit-tests: New file.
106812         * tests/test-atexit.sh: New file.
106813         * tests/test-atexit.c: New file.
106815 2007-03-10  Bruno Haible  <bruno@clisp.org>
106817         * tests/test-binary-io.sh: Use temporary filenames that are not so
106818         likely to clash with those of other tests (in a parallel make).
106819         * tests/test-binary-io.c: Likewise.
106821 2007-03-10  Bruno Haible  <bruno@clisp.org>
106823         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106824         fallback; use #error instead.
106825         Suggested by Simon Josefsson.
106827 2007-03-10  Bruno Haible  <bruno@clisp.org>
106829         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106830         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106831         first and the last.
106833 2007-03-10  Bruno Haible  <bruno@clisp.org>
106835         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106837 2007-03-10  Bruno Haible  <bruno@clisp.org>
106839         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106840         "make distcheck".
106841         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106842         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106843         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106845 2007-03-10  Bruno Haible  <bruno@clisp.org>
106847         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106848         variable.
106849         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106850         variable.
106852 2007-03-09  Eric Blake  <ebb9@byu.net>
106853         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106855         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106856         types are not being provided by gnulib.
106857         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106858         types are supported.
106860 2007-03-10  Bruno Haible  <bruno@clisp.org>
106862         * lib/stdio_.h (__attribute__): New macro.
106863         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106864         vsprintf): Specify __attribute__ __format__ for GCC.
106865         Suggested by Eric Blake.
106867 2007-03-09  Bruno Haible  <bruno@clisp.org>
106869         * modules/printf-posix-tests: New file.
106870         * tests/test-printf-posix.sh: New file.
106871         * tests/test-printf-posix.c: New file.
106873         * modules/printf-posix: New file.
106874         * lib/printf.c: New file.
106875         * m4/printf-posix-rpl.m4: New file.
106876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106877         REPLACE_PRINTF.
106878         * lib/stdio_.h (printf): New declaration.
106879         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106880         ____strfmon____): New macros.
106881         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106882         REPLACE_PRINTF.
106884 2007-03-09  Bruno Haible  <bruno@clisp.org>
106886         * tests/test-vasnprintf-posix2.sh: New file.
106887         * tests/test-vasnprintf-posix2.c: New file.
106888         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106889         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106890         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106892         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106893         a locale dependent decimal point, rather than always '.'.
106895 2007-03-09  Eric Blake  <ebb9@byu.net>
106897         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106898         spite of platforms like Tandem/NSK that define it to -1.
106900 2007-03-08  Bruno Haible  <bruno@clisp.org>
106902         * modules/vprintf-posix-tests: New file.
106903         * tests/test-vprintf-posix.sh: New file.
106904         * tests/test-vprintf-posix.c: New file.
106905         * tests/test-printf-posix.h: New file.
106907         * modules/vprintf-posix: New file.
106908         * lib/vprintf.c: New file.
106909         * m4/vprintf-posix.m4: New file.
106910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106911         REPLACE_VPRINTF.
106912         * lib/stdio_.h (vprintf): New declaration.
106913         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106914         REPLACE_VPRINTF.
106916 2007-03-08  Bruno Haible  <bruno@clisp.org>
106918         * modules/fprintf-posix-tests: New file.
106919         * tests/test-fprintf-posix.sh: New file.
106920         * tests/test-fprintf-posix.c: New file.
106922         * modules/fprintf-posix: New file.
106923         * lib/fprintf.c: New file.
106924         * m4/fprintf-posix.m4: New file.
106925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106926         REPLACE_FPRINTF.
106927         * lib/stdio_.h (fprintf): New declaration.
106928         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106929         REPLACE_FPRINTF.
106931 2007-03-08  Bruno Haible  <bruno@clisp.org>
106933         * modules/vfprintf-posix-tests: New file.
106934         * tests/test-vfprintf-posix.sh: New file.
106935         * tests/test-vfprintf-posix.c: New file.
106936         * tests/test-fprintf-posix.h: New file.
106937         * tests/test-fprintf-posix.out: New file.
106939         * modules/vfprintf-posix: New file.
106940         * lib/vfprintf.c: New file.
106941         * m4/vfprintf-posix.m4: New file.
106942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106943         REPLACE_VFPRINTF.
106944         * lib/stdio_.h (vfprintf): New declaration.
106945         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106946         REPLACE_VFPRINTF.
106948 2007-03-08  Bruno Haible  <bruno@clisp.org>
106950         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106952 2007-03-08  Bruno Haible  <bruno@clisp.org>
106954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106955         instead of 'expr' invocations.
106956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106961         Suggested by Paul Eggert.
106963 2007-03-08  Bruno Haible  <bruno@clisp.org>
106965         * modules/fseterr-tests: New file.
106966         * tests/test-fseterr.c: New file.
106968         * modules/fseterr: New file.
106969         * lib/fseterr.h: New file.
106970         * lib/fseterr.c: New file.
106972 2007-03-08  Bruno Haible  <bruno@clisp.org>
106974         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106975         * lib/getopt_.h: Likewise.
106976         * lib/mbswidth.h: Likewise.
106977         * lib/setenv.h: Likewise.
106978         * lib/vasnprintf.h: Likewise.
106979         * lib/vasprintf.h: Likewise.
106980         * lib/verror.h: Likewise.
106981         * lib/xsetenv.h: Likewise.
106982         * lib/xvasprintf.h: Likewise.
106984 2007-03-08  Jim Meyering  <jim@meyering.net>
106986         * users.txt: Add parted.
106988         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106990 2007-03-07  Bruno Haible  <bruno@clisp.org>
106992         * m4/printf.m4: Make the shell script snippets copy&pastable.
106994 2007-03-02  Bruno Haible  <bruno@clisp.org>
106996         * lib/netinet_in_.h: New file.
106997         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106998         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106999         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107000         (Depends-on): Add absolute-header.
107001         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107002         into netinet/in.h.
107004 2007-03-03  Bruno Haible  <bruno@clisp.org>
107006         * lib/sys_select_.h: New file.
107007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107008         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107009         * modules/sys_select (Files): Add lib/sys_select_.h.
107010         (Depends-on): Add absolute-header.
107011         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107012         into sys/select.h.
107014 2007-03-02  Bruno Haible  <bruno@clisp.org>
107016         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107017         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107018         values.
107019         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107020         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107021         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107022         * modules/sys_socket (Depends-on): Add absolute-header.
107023         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107024         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107025         (Include): Remove requirement of inclusion of <sys/types.h>.
107027 2007-03-02  Bruno Haible  <bruno@clisp.org>
107029         * lib/byteswap_.h (bswap_32): Fix formula.
107031 2007-03-06  Bruno Haible  <bruno@clisp.org>
107033         * modules/sprintf-posix-tests: New file.
107034         * tests/test-sprintf-posix.c: New file.
107036         * modules/sprintf-posix: New file.
107037         * lib/sprintf.c: New file.
107038         * m4/sprintf-posix.m4: New file.
107039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107040         REPLACE_SPRINTF.
107041         * lib/stdio_.h (sprintf): New declaration.
107042         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107043         REPLACE_SPRINTF.
107045 2007-03-06  Bruno Haible  <bruno@clisp.org>
107047         * modules/vsprintf-posix-tests: New file.
107048         * tests/test-vsprintf-posix.c: New file.
107049         * tests/test-sprintf-posix.h: New file.
107051         * modules/vsprintf-posix: New file.
107052         * lib/vsprintf.c: New file.
107053         * m4/vsprintf-posix.m4: New file.
107054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107055         REPLACE_VSPRINTF.
107056         * lib/stdio_.h (vsprintf): New declaration.
107057         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107058         REPLACE_VSPRINTF.
107060 2007-03-06  Bruno Haible  <bruno@clisp.org>
107062         * modules/vsnprintf (Depend-on): Remove minmax.
107064 2007-03-06  Bruno Haible  <bruno@clisp.org>
107066         * modules/snprintf-posix-tests: New file.
107067         * tests/test-snprintf-posix.c: New file.
107069         * modules/snprintf-posix: New file.
107070         * m4/snprintf-posix.m4: New file.
107071         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107072         gl_FUNC_SNPRINTF.
107073         (gl_FUNC_SNPRINTF): Invoke it.
107074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107075         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107076         is set.
107077         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107079 2007-03-06  Bruno Haible  <bruno@clisp.org>
107081         * modules/vsnprintf-posix-tests: New file.
107082         * tests/test-vsnprintf-posix.c: New file.
107083         * tests/test-snprintf-posix.h: New file.
107085         * modules/vsnprintf-posix: New file.
107086         * m4/vsnprintf-posix.m4: New file.
107087         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107088         gl_FUNC_VSNPRINTF.
107089         (gl_FUNC_VSNPRINTF): Invoke it.
107090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107091         * lib/stdio_.h (vsnprintf): Define as a replacement if
107092         REPLACE_VSNPRINTF is set.
107093         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107095 2007-03-06  Bruno Haible  <bruno@clisp.org>
107097         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107100 2007-03-06  Bruno Haible  <bruno@clisp.org>
107102         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107103         (asinl): Declare also if HAVE_DECL_ASINL is set.
107104         (atanl): Declare also if HAVE_DECL_ATANL is set.
107105         (ceill): Declare also if HAVE_DECL_CEILL is set.
107106         (cosl): Declare also if HAVE_DECL_COSL is set.
107107         (expl): Declare also if HAVE_DECL_EXPL is set.
107108         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107109         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107110         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107111         (logl): Declare also if HAVE_DECL_LOGL is set.
107112         (sinl): Declare also if HAVE_DECL_SINL is set.
107113         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107114         (tanl): Declare also if HAVE_DECL_TANL is set.
107115         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107117         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107118         declaration of frexpl, ldexpl.
107119         * modules/printf-frexpl (Depends-on): Add math.
107120         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107122 2007-03-05  Bruno Haible  <bruno@clisp.org>
107124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107125         frexpl and ldexpl are declared.
107126         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107128 2007-03-05  Bruno Haible  <bruno@clisp.org>
107130         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107131         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107133 2007-03-05  Bruno Haible  <bruno@clisp.org>
107135         * lib/stdio_.h: Include <stddef.h>.
107137 2007-03-05  Bruno Haible  <bruno@clisp.org>
107139         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107141 2007-03-05  Bruno Haible  <bruno@clisp.org>
107143         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107144         NetBSD 4, from Ralf Wildenhues.
107146 2007-03-04  Bruno Haible  <bruno@clisp.org>
107148         * lib/vasprintf.h: Update #if logic for the case when the functions
107149         exist but are overridden.
107151 2007-03-04  Bruno Haible  <bruno@clisp.org>
107153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107154         implementations: glibc-2.4 and MacOS X 10.3.
107155         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107156         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107157         * tests/test-vasprintf-posix.c (test_function): Likewise.
107159 2007-03-04  Bruno Haible  <bruno@clisp.org>
107161         * modules/vasprintf-posix-tests: New file.
107162         * tests/test-vasprintf-posix.c: New file.
107164         * modules/vasprintf-posix: New file.
107165         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107166         defined.
107167         * m4/vasprintf-posix.m4: New file.
107168         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107169         gl_FUNC_VASPRINTF.
107170         (gl_FUNC_VASPRINTF): Invoke it.
107171         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107172         here.
107173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107175 2007-03-04  Bruno Haible  <bruno@clisp.org>
107177         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107178         REPLACE_GETTIMEOFDAY.
107179         * modules/sys_time (Makefile.am): Likewise.
107180         * m4/sys_time_h.m4: Likewise.
107181         * m4/gettimeofday.m4: Likewise.
107183 2007-03-04  Bruno Haible  <bruno@clisp.org>
107185         * modules/vasnprintf-posix-tests: New file.
107186         * tests/test-vasnprintf-posix.c: New file.
107188         * modules/vasnprintf-posix: New file.
107189         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107190         printf-frexpl.h.
107191         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107192         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107193         REPLACE_VASNPRINTF is defined.
107194         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107195         gl_FUNC_VASNPRINTF.
107196         (gl_FUNC_VASNPRINTF): Invoke it.
107197         * m4/vasnprintf-posix.m4: New file.
107198         * m4/printf.m4: New file.
107200 2007-03-04  Bruno Haible  <bruno@clisp.org>
107202         Compile progreloc.c only if --enable-relocatable is specified.
107203         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107204         if --enable-relocatable was specified.
107205         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107206         lib_SOURCES.
107208 2007-03-04  Jim Meyering  <jim@meyering.net>
107210         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107211         Use it consistently, rather than enumerating errno constants.
107213 2007-03-04  Bruno Haible  <bruno@clisp.org>
107215         * modules/xvasprintf-tests: New file.
107216         * tests/test-xvasprintf.c: New file.
107218         * modules/vasprintf-tests: New file.
107219         * tests/test-vasprintf.c: New file.
107221         * modules/vasnprintf-tests: New file.
107222         * tests/test-vasnprintf.c: New file.
107224         * modules/vsnprintf-tests: New file.
107225         * tests/test-vsnprintf.c: New file.
107227         * modules/snprintf-tests: New file.
107228         * tests/test-snprintf.c: New file.
107230 2007-03-04  Bruno Haible  <bruno@clisp.org>
107232         Compile relocatable.c only if --enable-relocatable is specified.
107233         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107234         gl_RELOCATABLE_LIBRARY.
107235         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107236         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107237         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107238         gl_RELOCATABLE_LIBRARY.
107239         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107240         (Makefile.am): Remove lib_SOURCES.
107241         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107242         gl_RELOCATABLE_LIBRARY.
107243         (Makefile.am): Remove lib_SOURCES.
107244         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107245         always.
107246         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107247         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107249 2007-03-04  Bruno Haible  <bruno@clisp.org>
107251         * modules/argmatch-tests: New file.
107252         * tests/test-argmatch.c: New file.
107254         * tests/test-allocsa.c (main): Halve the number of loop runs.
107256         * modules/alloca-opt-tests: New file.
107257         * tests/test-alloca-opt.c: New file.
107259 2007-03-04  Jim Meyering  <jim@meyering.net>
107261         Work around difference between Linux ACLs and Solaris 10 ZFS.
107262         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107263         for EINVAL.
107265 2007-03-03  Bruno Haible  <bruno@clisp.org>
107267         * modules/relocatable-prog (Depends-on): Add back progreloc's
107268         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107270 2007-03-03  Bruno Haible  <bruno@clisp.org>
107272         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107273         * modules/relocatable-lib: New file.
107275 2007-03-03  Bruno Haible  <bruno@clisp.org>
107277         * modules/relocatable-prog: Renamed from modules/relocatable.
107278         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107280 2007-03-03  Bruno Haible  <bruno@clisp.org>
107282         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107283         m4/relocatable-lib.m4.
107284         (Depends-on): Remove 'relocatable'.
107285         (configure.ac): Add gl_RELOCATABLE_NOP.
107287 2007-03-03  Bruno Haible  <bruno@clisp.org>
107289         * modules/relocatable-prog-wrapper: New file.
107290         * modules/relocatable (Depends-on): Add it. Remove all other
107291         dependencies except progname.
107292         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107295         (gl_FUNC_STRERROR): Nop.
107296         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107298         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107299         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107301         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107302         (gl_FUNC_READLINK): Update.
107304         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107306 2007-03-03  Bruno Haible  <bruno@clisp.org>
107308         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107309         * modules/xreadlink (Depends-on): Add unistd.
107310         * modules/xreadlink-with-size (Depends-on): Likewise.
107312 2007-03-03  Bruno Haible  <bruno@clisp.org>
107314         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107315         extracted from gt_FUNC_SETENV.
107316         (gt_FUNC_SETENV): Remove macro.
107317         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107318         remove gt_FUNC_SETENV.
107320 2007-03-03  Bruno Haible  <bruno@clisp.org>
107322         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107323         ENABLE_RELOCATABLE here.
107324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107326 2007-03-03  Bruno Haible  <bruno@clisp.org>
107328         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107329         * tests/test-rbtreehash_list.c: Include progname.h.
107330         (main): Call set_program_name.
107332         * modules/rbtree-oset-tests (Depends-on): Add progname.
107333         * tests/test-rbtree_oset.c: Include progname.h.
107334         (main): Call set_program_name.
107336         * modules/rbtree-list-tests (Depends-on): Add progname.
107337         * tests/test-rbtree_list.c: Include progname.h.
107338         (main): Call set_program_name.
107340         * modules/linked-list-tests (Depends-on): Add progname.
107341         * tests/test-linked_list.c: Include progname.h.
107342         (main): Call set_program_name.
107344 2007-03-03  Bruno Haible  <bruno@clisp.org>
107346         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107347         All uses of __restrict changed to _Restrict_.
107348         * lib/glob_.h (__restrict): Remove macro.
107350 2007-03-02  Bruno Haible  <bruno@clisp.org>
107352         * modules/gettext (configure.ac): Require gettext infrastructure
107353         from version 0.16.1.
107355 2007-03-02  Bruno Haible  <bruno@clisp.org>
107357         * modules/linkedhash-list-tests (Depends-on): Add progname.
107358         * tests/test-linkedhash_list.c: Include progname.h.
107359         (main): Call set_program_name.
107361         * modules/carray-list-tests (Depends-on): Add progname.
107362         * tests/test-carray_list.c: Include progname.h.
107363         (main): Call set_program_name.
107365         * modules/avltreehash-list-tests (Depends-on): Add progname.
107366         * tests/test-avltreehash_list.c: Include progname.h.
107367         (main): Call set_program_name.
107369         * modules/avltree-oset-tests (Depends-on): Add progname.
107370         * tests/test-avltree_oset.c: Include progname.h.
107371         (main): Call set_program_name.
107373         * modules/avltree-list-tests (Depends-on): Add progname.
107374         * tests/test-avltree_list.c: Include progname.h.
107375         (main): Call set_program_name.
107377         * modules/array-oset-tests (Depends-on): Add progname.
107378         * tests/test-array_oset.c: Include progname.h.
107379         (main): Call set_program_name.
107381         * modules/array-list-tests (Depends-on): Add progname.
107382         * tests/test-array_list.c: Include progname.h.
107383         (main): Call set_program_name.
107385         * modules/argp-tests (Depends-on): Add progname.
107386         * tests/test-argp.c: Include argp.h first. Include progname.h.
107387         (main): Call set_program_name.
107389 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107391         * doc/gnulib-tool.texi (Initial import): Reword description of
107392         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107393         limited effect even if defined after the first system include.
107395 2007-03-01  Bruno Haible  <bruno@clisp.org>
107397         * build-aux/config.libpath: Update to libtool-1.5.22.
107398         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107400 2007-03-01  Bruno Haible  <bruno@clisp.org>
107402         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107403         foo_CFLAGS.
107404         Reported by Ralf Wildenhues.
107406 2007-03-01  Bruno Haible  <bruno@clisp.org>
107408         * build-aux/install-reloc: Remove object files left over by some
107409         compilers.
107410         Reported by Ralf Wildenhues.
107412 2007-03-01  Bruno Haible  <bruno@clisp.org>
107414         * build-aux/install-reloc: Break long lines.
107416 2007-03-01  Bruno Haible  <bruno@clisp.org>
107418         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107419         Reported by Ralf Wildenhues.
107421 2007-03-01  Bruno Haible  <bruno@clisp.org>
107423         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107424         include ordering constraints.
107426 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107428         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107429         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107430         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107431         as another example.
107432         * lib/time_.h: Fix misspelling.
107433         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107434         Require gl_HEADER_TIME_H_DEFAULTS.
107435         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107436         * m4/time_r.m4 (gl_TIME_R): Likewise.
107437         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107439 2007-03-01  Bruno Haible  <bruno@clisp.org>
107441         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107442         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107444 2007-03-01  Jim Meyering  <jim@meyering.net>
107446         * modules/xreadlink (Maintainer): Add my name.
107447         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107449 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107450             Bruno Haible  <bruno@clisp.org>
107452         * build-aux/install-reloc: Compile also c-ctype.c.
107453         * build-aux/relocatable.sh.in: New file.
107454         * doc/relocatable.texi: New file.
107455         * doc/relocatable-maint.texi: New file.
107456         * doc/gnulib.texi: Include relocatable-maint.texi.
107457         * lib/progreloc.c: Include unistd.h unconditionally.
107458         * lib/relocwrapper.c: Include unistd.h unconditionally.
107459         Include c-ctype.h.
107460         (add_dotbin): Use c_tolower.
107461         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107462         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107463         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107464         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107465         to m4/relocatable-lib.m4.
107466         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107467         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107468         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107469         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107470         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107471         * modules/relocatable: New file.
107472         * modules/relocatable-lib: New file.
107473         * modules/relocatable-script: New file.
107475 2007-02-28  Bruno Haible  <bruno@clisp.org>
107477         Import --enable-relocatable infrastructure.
107478         * build-aux/config.libpath: New file, from GNU gettext.
107479         * build-aux/install-reloc: New file, from GNU gettext.
107480         * build-aux/reloc-ldflags: New file, from GNU gettext.
107481         * lib/relocatable.h: New file, from GNU gettext.
107482         * lib/relocatable.c: New file, from GNU gettext.
107483         * lib/relocwrapper.c: New file, from GNU gettext.
107484         * m4/relocatable.m4: New file, from GNU gettext.
107486 2007-02-28  Bruno Haible  <bruno@clisp.org>
107488         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107490         * modules/xreadlink: New file, from GNU gettext with modifications.
107491         * lib/xreadlink.c: New file, from GNU gettext.
107492         * lib/xreadlink.h: Add comments.
107493         (xreadlink): New declaration.
107495         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107496         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107497         lib/xreadlink-with-size.c.
107498         (configure.ac): Remove gl_XREADLINK invocation.
107499         (Makefile.am): Augment lib_SOURCES.
107500         * m4/xreadlink.m4: Remove file.
107501         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107502         (xreadlink_with_size): Renamed from xreadink.
107503         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107504         * modules/canonicalize (Depends-on): Replace xreadlink with
107505         xreadlink-with-size.
107506         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107508 2007-02-25  Jim Meyering  <jim@meyering.net>
107510         * build-aux/announce-gen: When complaining about excess arguments,
107511         list them.
107513 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107515         * README: Document signed integer overflow situation more
107516         accurately.
107518 2007-02-25  Bruno Haible  <bruno@clisp.org>
107520         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107521         'a' or 'A' conversion.
107523 2007-02-25  Bruno Haible  <bruno@clisp.org>
107525         * modules/filename: Renamed from modules/pathname.
107526         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107527         lib/concatpath.c with lib/concat-filename.c.
107528         (Makefile.am): Update.
107529         (Include): Replace pathname.h with filename.h.
107530         * lib/filename.h: Renamed from lib/pathname.h.
107531         (concatenated_filename): Renamed from concatenated_pathname.
107532         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107533         (concatenated_filename): Renamed from concatenated_pathname.
107534         * lib/findprog.c: Include filename.h instead of pathname.h.
107535         (find_in_path): Update.
107536         * lib/javacomp.c: Include filename.h instead of pathname.h.
107537         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107538         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107539         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107540         is_oldgcj_14_13_usable, is_javac_usable): Update.
107541         * lib/javaexec.c: Include filename.h instead of pathname.h.
107542         (execute_java_class): Update.
107543         * modules/findprog: Update.
107544         * modules/javacomp: Update.
107545         * modules/javaexec: Update.
107546         * MODULES.html.sh (File system functions): Add 'filename', remove
107547         'pathname'.
107549 2007-02-25  Bruno Haible  <bruno@clisp.org>
107551         * modules/printf-frexpl-tests: New file.
107552         * tests/test-printf-frexpl.c: New file.
107554         * modules/printf-frexpl: New file.
107555         * lib/printf-frexpl.h: New file.
107556         * lib/printf-frexpl.c: New file.
107557         * m4/printf-frexpl.m4: New file.
107559 2007-02-25  Bruno Haible  <bruno@clisp.org>
107561         * modules/printf-frexp-tests: New file.
107562         * tests/test-printf-frexp.c: New file.
107564         * modules/printf-frexp: New file.
107565         * lib/printf-frexp.h: New file.
107566         * lib/printf-frexp.c: New file.
107567         * m4/printf-frexp.m4: New file.
107569 2007-02-25  Bruno Haible  <bruno@clisp.org>
107571         Assume automake >= 1.10 for the tests.
107572         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107573         * modules/arctwo-tests: Likewise.
107574         * modules/argp-tests: Likewise.
107575         * modules/avltree-list-tests: Likewise.
107576         * modules/avltree-oset-tests: Likewise.
107577         * modules/avltreehash-list-tests: Likewise.
107578         * modules/carray-list-tests: Likewise.
107579         * modules/crc-tests: Likewise.
107580         * modules/des-tests: Likewise.
107581         * modules/gc-arcfour-tests: Likewise.
107582         * modules/gc-arctwo-tests: Likewise.
107583         * modules/gc-des-tests: Likewise.
107584         * modules/gc-hmac-md5-tests: Likewise.
107585         * modules/gc-hmac-sha1-tests: Likewise.
107586         * modules/gc-md2-tests: Likewise.
107587         * modules/gc-md4-tests: Likewise.
107588         * modules/gc-md5-tests: Likewise.
107589         * modules/gc-pbkdf2-sha1-tests: Likewise.
107590         * modules/gc-rijndael-tests: Likewise.
107591         * modules/gc-sha1-tests: Likewise.
107592         * modules/gc-tests: Likewise.
107593         * modules/getaddrinfo-tests: Likewise.
107594         * modules/hmac-md5-tests: Likewise.
107595         * modules/hmac-sha1-tests: Likewise.
107596         * modules/linked-list-tests: Likewise.
107597         * modules/linkedhash-list-tests: Likewise.
107598         * modules/lock-tests: Likewise.
107599         * modules/md2-tests: Likewise.
107600         * modules/md4-tests: Likewise.
107601         * modules/md5-tests: Likewise.
107602         * modules/rbtree-list-tests: Likewise.
107603         * modules/rbtree-oset-tests: Likewise.
107604         * modules/rbtreehash-list-tests: Likewise.
107605         * modules/read-file-tests: Likewise.
107606         * modules/rijndael-tests: Likewise.
107607         * modules/stdint-tests: Likewise.
107608         * modules/tls-tests: Likewise.
107610 2007-02-24  Bruno Haible  <bruno@clisp.org>
107612         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107613         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107614         function; instead check whether isnan with a double argument links.
107615         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107616         function; instead check whether isnan with a 'long double' argument
107617         links.
107618         Reported by Eric Blake <ebb9@byu.net>.
107620 2007-02-24  Bruno Haible  <bruno@clisp.org>
107622         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107623         defined.
107624         * lib/isnanl.c: Remove all code. Just include isnan.c.
107625         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107627 2007-02-25  Jim Meyering  <jim@meyering.net>
107629         Avoid conflicting types for 'unsetenv' on FreeBSD.
107630         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107631         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107632         in stdlib.h.
107634 2007-02-24  Bruno Haible  <bruno@clisp.org>
107636         * modules/isnanl-nolibm-tests: New file.
107637         * tests/test-isnanl.c: New file.
107639         * modules/isnanl-nolibm: New file.
107640         * lib/isnanl.h: New file.
107641         * lib/isnanl.c: New file.
107642         * m4/isnanl.m4: New file.
107644 2007-02-24  Bruno Haible  <bruno@clisp.org>
107646         * modules/isnan-nolibm-tests: New file.
107647         * tests/test-isnan.c: New file.
107649         * modules/isnan-nolibm: New file.
107650         * lib/isnan.h: New file.
107651         * lib/isnan.c: New file.
107652         * m4/isnan.m4: New file.
107654 2007-02-24  Bruno Haible  <bruno@clisp.org>
107656         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107657         assume that an exponent fits in 20 bits.
107659 2007-02-24  Jim Meyering  <jim@meyering.net>
107661         * m4/regex.m4: Update the description of the configure-time option,
107662         --without-included-regex, to state accurately what the defaults are,
107663         and perhaps to give people an idea why using this option is risky.
107665 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107668         loops on small arguments.  This attempts to avoid the problem
107669         Bruno Haible reported for AIX 4.3.2 in
107670         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107672 2007-02-23  Bruno Haible  <bruno@clisp.org>
107674         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107675         Needed for help2man.
107677 2007-02-23  Karl Berry  <karl@gnu.org>
107679         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107680         exists, foo.h should be cvs-ignored, not committed.
107682 2007-02-23  Eric Blake  <ebb9@byu.net>
107684         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107685         * lib/stat-time.h (includes): Likewise.
107686         * lib/utimecmp.c (includes): Likewise.
107687         * lib/utimens.h (includes): Likewise.
107688         * lib/getdate.y (includes): Also include "timespec.h" for use
107689         internal to the module.
107690         * modules/utimens (Depends-on): Revert yesterday's patch.
107691         * modules/nanosleep (Depends-on): Add missing dependency.
107693 2007-02-22  Bruno Haible  <bruno@clisp.org>
107695         * lib/glob.c: Don't include getlogin_r.h.
107697 2007-02-22  Jim Meyering  <jim@meyering.net>
107699         * modules/utimens (Depends-on): Add timespec, required for
107700         utimens.h's inclusion of timespec.h.
107702 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107704         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107705         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107706         Schwab in
107707         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107708         I'll try to think of a better way to fix the Solaris problem.
107710         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107711         like glibc; on Solaris 10, it fails with errno == EINVAL.
107712         POSIX says the behavior is unspecified if the first argument is NULL,
107713         so play it safe and never pass NULL to the system getcwd.
107715 2007-02-21  Jim Meyering  <jim@meyering.net>
107717         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107718         of gettimeofday.  It would conflict with the one now always
107719         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107720         an IRIX 6.5 build failure.
107722 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107724         Minor fixups to port to Solaris 10 with Sun C 5.8.
107725         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107726         * modules/getcwd (Depends-on): Add dirfd.
107727         * lib/putenv.c (putenv): #undef it.
107728         (rpl_putenv): New decl.
107729         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107731 2007-02-20  Bruno Haible  <bruno@clisp.org>
107733         * modules/stdio-tests: New file.
107734         * tests/test-stdio.c: New file.
107736         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107737         (Depends-on): Add stdio.
107738         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107739         (Include): Use <stdio.h> instead of vsnprintf.h.
107740         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107741         HAVE_DECL_VSNPRINTF.
107742         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107744         * modules/snprintf (Files): Remove lib/snprintf.h.
107745         (Depends-on): Add stdio.
107746         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107747         (Include): Use <stdio.h> instead of snprintf.h.
107748         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107749         HAVE_DECL_SNPRINTF.
107750         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107751         * lib/getaddrinfo.c: Likewise.
107753         * modules/stdio: New file.
107754         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107755         * lib/snprintf.h: Remove file.
107756         * lib/vsnprintf.h: Remove file.
107757         * lib/.cppi-disable: Remove snprintf.h.
107758         * m4/stdio_h.m4: New file.
107759         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107761 2007-02-20  Jim Meyering  <jim@meyering.net>
107763         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107764         used by e.g., mingw.  From Bruno Haible.
107766 2007-02-19  Bruno Haible  <bruno@clisp.org>
107768         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107769         warnings.
107770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107772 2007-02-19  Bruno Haible  <bruno@clisp.org>
107774         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107775         from mingw users.
107777 2007-02-19  Bruno Haible  <bruno@clisp.org>
107779         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107780         warnings.
107781         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107783 2007-02-19  Jim Meyering  <jim@meyering.net>
107785         Don't use FD after a successful "fdopendir (fd)".
107786         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107787         Reset it by calling dirfd on the just-obtained DIR*.
107789         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107790         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107792 2007-02-18  Bruno Haible  <bruno@clisp.org>
107794         * lib/readlink.c: Include <unistd.h>.
107795         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107796         HAVE_READLINK.
107797         * modules/readlink (Depends-on): Add unistd.
107798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107799         (Include): Add <unistd.h>.
107801         * lib/getlogin_r.h: Remove file.
107802         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107803         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107804         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107805         HAVE_DECL_GETLOGIN_R.
107806         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107807         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107808         (Include): Use <unistd.h> instead of getlogin_r.h.
107810         * lib/getcwd.h: Remove file.
107811         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107812         * lib/xgetcwd.c: Likewise.
107813         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107814         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107815         * modules/getcwd (Files): Remove lib/getcwd.h.
107816         (Depends-on): Add unistd.
107817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107818         (Include): Use <unistd.h> instad of getcwd.h.
107820         * lib/ftruncate.c: Include <unistd.h> first.
107821         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107822         Set HAVE_FTRUNCATE.
107823         * modules/ftruncate (Depends-on): Add unistd.
107824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107826         * lib/fchdir.c: Include <unistd.h> first.
107827         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107829         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107830         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107831         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107833         * lib/dup2.c: Include <unistd.h> first.
107834         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107835         HAVE_DUP2.
107836         * modules/dup2 (Depends-on): Add unistd.
107837         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107839         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107840         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107841         REPLACE_CHOWN. Don't define chown as a macro here.
107842         * modules/chown (Depends-on): Add unistd.
107843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107845         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107846         Add definition for GL_LINK_WARNING.
107847         (chown, dup2): New declarations.
107848         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107849         link warning.
107850         (ftruncate): New declaration.
107851         (getcwd): New declaration, taken from old getcwd.h.
107852         (getlogin_r): New declaration, taken from old getlogin_r.h.
107853         (readlink): New declaration.
107854         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107855         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107856         (gl_PREREQ_UNISTD): Remove macro.
107857         (gl_UNISTD_MODULE_INDICATOR): New macro.
107858         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107859         many new variables. Don't set UNISTD_H.
107860         * modules/unistd (Description): Change.
107861         (Depends-on): Add link-warning.
107862         (configure.ac): Update.
107863         (Makefile.am): Create unistd.h always. Substitute many new variables
107864         into it.
107866 2007-02-18  Bruno Haible  <bruno@clisp.org>
107868         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107869         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107870         HAVE_GETSUBOPT.
107871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107872         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107873         * lib/getsubopt.h: Remove file.
107874         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107875         (Depends-on): Add stdlib.
107876         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107877         (Includes): Use <stdlib.h> instead of getsubopt.h.
107878         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107879         Set HAVE_GETSUBOPT.
107880         * lib/getsubopt.c: Don't include getsubopt.h.
107882 2007-02-18  Bruno Haible  <bruno@clisp.org>
107884         * modules/fchdir (Depends-on): Add dup2.
107886 2007-02-18  Bruno Haible  <bruno@clisp.org>
107888         * lib/stdlib_.h: Handle glibc's special invocation convention
107889         specially.
107891 2007-02-18  Bruno Haible  <bruno@clisp.org>
107893         * modules/stdlib-tests: New file.
107894         * tests/test-stdlib.c: New file.
107896         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107897         (Depends-on): Add stdlib.
107898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107899         (Includes): Use <stdlib.h> instead of mkstemp.h.
107900         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107901         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107902         * lib/mkstemp.c: Don't include mkstemp.h.
107903         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107904         * lib/stdlib--.h: Don't include mkstemp.h.
107906         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107907         (Depends-on): Add stdlib.
107908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107909         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107910         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107911         HAVE_MKDTEMP.
107912         * lib/mkdtemp.c: Don't include mkdtemp.h.
107913         * lib/clean-temp.c: Don't include mkdtemp.h.
107915         * modules/exit (Files): Remove lib/exit.h.
107916         (Depends-on): Add stdlib.
107917         (Makefile.am): Remove lib_SOURCES.
107918         (Include): Use <stdlib.h> instead of exit.h.
107919         * lib/argmatch.c: Don't include exit.h.
107920         * lib/execute.c: Likewise.
107921         * lib/pagealign_alloc.c: Likewise.
107922         * lib/pipe.c: Likewise.
107923         * lib/wait-process.c: Likewise.
107924         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107925         * lib/exitfail.c: Likewise.
107926         * lib/savewd.c: Likewise.
107927         * lib/xsetenv.c: Likewise.
107929         * modules/stdlib: New file.
107930         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107931         and extra comments about mkstemp().
107932         * lib/exit.h: Remove file.
107933         * lib/mkdtemp.h: Remove file.
107934         * lib/mkstemp.h: Remove file.
107935         * m4/stdlib_h.m4: New file.
107936         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107938 2007-02-18  Bruno Haible  <bruno@clisp.org>
107940         * modules/math-tests: New file.
107941         * tests/test-math.c: New file.
107943         * modules/math: New file.
107944         * modules/mathl (Files): Remove lib/mathl.h.
107945         (Depends-on): Add math.
107946         (Makefile.am): Don't mention mathl.h.
107947         (Include): Use <math.h> instead of mathl.h.
107948         * lib/math_.h: New file.
107949         * lib/mathl.h: Remove file.
107950         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107951         mathl.h.
107952         * lib/asinl.c: Likewise.
107953         * lib/atanl.c: Likewise.
107954         * lib/ceill.c: Likewise.
107955         * lib/cosl.c: Likewise.
107956         * lib/expl.c: Likewise.
107957         * lib/floorl.c: Likewise.
107958         * lib/frexpl.c: Likewise.
107959         * lib/ldexpl.c: Likewise.
107960         * lib/logl.c: Likewise.
107961         * lib/sincosl.c: Likewise.
107962         * lib/sinl.c: Likewise.
107963         * lib/sqrtl.c: Likewise.
107964         * lib/tanl.c: Likewise.
107965         * lib/trigl.c: Likewise.
107966         * m4/math_h.m4: New file.
107967         * MODULES.html.sh (Mathematics): Add math.
107969 2007-02-17  Bruno Haible  <bruno@clisp.org>
107971         * modules/wctype-tests: New file.
107972         * tests/test-wctype.c: New file.
107974         * modules/wchar-tests: New file.
107975         * tests/test-wchar.c: New file.
107977         * modules/unistd-tests: New file.
107978         * tests/test-unistd.c: New file.
107980         * modules/time-tests: New file.
107981         * tests/test-time.c: New file.
107983         * modules/sysexits-tests: New file.
107984         * tests/test-sysexits.c: New file.
107986         * modules/sys_time-tests: New file.
107987         * tests/test-sys_time.c: New file.
107989         * modules/sys_stat-tests: New file.
107990         * tests/test-sys_stat.c: New file.
107992         * modules/sys_socket-tests: New file.
107993         * tests/test-sys_socket.c: New file.
107995         * modules/sys_select-tests: New file.
107996         * tests/test-sys_select.c: New file.
107998         * modules/string-tests: New file.
107999         * tests/test-string.c: New file.
108001         * modules/stdbool-tests: New file.
108002         * tests/test-stdbool.c: New file.
108004         * modules/netinet_in-tests: New file.
108005         * tests/test-netinet_in.c: New file.
108007         * modules/inttypes-tests: New file.
108008         * tests/test-inttypes.c: New file.
108010         * modules/fcntl-tests: New file.
108011         * tests/test-fcntl.c: New file.
108013         * modules/byteswap-tests: New file.
108014         * tests/test-byteswap.c: New file.
108016         * modules/arpa_inet-tests: New file.
108017         * tests/test-arpa_inet.c: New file.
108019 2007-02-17  Bruno Haible  <bruno@clisp.org>
108021         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108022         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108023         if the corresponding module is not enabled. Emit link warnings if
108024         the function is used nevertheless.
108025         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108026         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108027         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108028         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108029         * modules/inttypes (Depends-on): Add link-warning.
108030         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108031         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108032         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108033         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108034         * modules/imaxdiv (configure.ac): Likewise.
108035         * modules/strtoimax (configure.ac): Likewise.
108036         * modules/strtoumax (configure.ac): Likewise.
108038 2007-02-17  Bruno Haible  <bruno@clisp.org>
108040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108041         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108042         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108043         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108045 2007-02-17  Bruno Haible  <bruno@clisp.org>
108047         * modules/link-warning: New file.
108048         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108049         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108050         * modules/string (Depends-on): Add link-warning.
108051         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108052         string.h.
108053         * MODULES.html.sh (Support for building libraries and executables): Add
108054         link-warning.
108056 2007-02-17  Bruno Haible  <bruno@clisp.org>
108058         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108059         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108060         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108061         long lines.
108063 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108064             Bruno Haible  <bruno@clisp.org>
108066         * modules/tmpfile: New file.
108067         * lib/tmpfile.c: New file.
108068         * m4/tmpfile.m4: New file.
108069         * MODULES.html.sh (func_all_modules): New section "Input/output".
108071 2007-02-15  Bruno Haible  <bruno@clisp.org>
108073         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108074         (supports_delete_on_close): New function.
108075         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108077 2007-02-14  Bruno Haible  <bruno@clisp.org>
108079         * modules/mbspcasecmp-tests: New file.
108080         * tests/test-mbspcasecmp.sh: New file.
108081         * tests/test-mbspcasecmp.c: New file.
108083         New module mbspcasecmp.
108084         * modules/mbspcasecmp: New file.
108085         * lib/mbspcasecmp.c: New file.
108086         * lib/string_.h (strncasecmp): Change warning message.
108087         (mbspcasecmp): New declaration.
108088         * m4/mbspcasecmp.m4: New file.
108089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108090         GNULIB_MBSPCASECMP.
108091         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108092         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108094 2007-02-14  Bruno Haible  <bruno@clisp.org>
108096         * modules/mbsncasecmp-tests: New file.
108097         * tests/test-mbsncasecmp.sh: New file.
108098         * tests/test-mbsncasecmp.c: New file.
108100         New module mbsncasecmp.
108101         * modules/mbsncasecmp: New file.
108102         * lib/mbsncasecmp.c: New file.
108103         * lib/string_.h (mbsncasecmp): New declaration.
108104         * m4/mbsncasecmp.m4: New file.
108105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108106         GNULIB_MBSNCASECMP.
108107         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108108         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108110 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108112         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108113         Verify that it doesn't overlap with our flags.
108114         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108115         do not have the desired effect in multibyte locales; instead, use
108116         mbscasecmp.
108117         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108118         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108119         we don't require GNU fnmatch ourselves (if our users require it, they
108120         should do so explicitly).
108122         Fix regex code so it doesn't rely on strcasecmp.
108123         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108124         Otherwise, include gnulib's langinfo.h.
108125         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108126         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108127         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108128         * modules/regex (FILES): Remove m4/codeset.m4.
108129         (Depends-on): Add localcharset.  Remove strcase.
108131 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108133         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108134         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108136 2007-02-13  Bruno Haible  <bruno@clisp.org>
108138         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108141 2007-02-12  Bruno Haible  <bruno@clisp.org>
108143         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108144         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108145         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108146         time warning rather than a link error.
108148 2007-02-12  Bruno Haible  <bruno@clisp.org>
108150         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108151         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108154 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108156         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108157         args, not 2.
108159 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108161         New module 'time', so that apps can include <time.h> as per
108162         POSIX and GNU instead of separate include files like time_r.h
108163         and timegm.h.  This implementation tries out a simpler approach
108164         for replacing decls in standard include files (as compared to
108165         the string module), somewhat as an experiment.
108167         * config/srclist.txt: Comment out mktime.c for now.
108168         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108169         since it doesn't apply any more.  Use generic wording instead.
108170         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108171         'time'.
108172         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108173         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108174         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108175         Don't include <sys/types.h>; no longer needed since we assume C89.
108176         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108177         * lib/strftime.c: Likewise.
108178         * lib/time_r.c: Likewise.
108179         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108180         * lib/nanosleep.c: Include <time.h> first, to check interface.
108181         * lib/strptime.c: Likewise.
108182         * lib/time_r.c: Likewise.
108183         * lib/timegm.c: Likewise.
108184         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108185         needed.
108186         * lib/timegm.c: Don't include timegm.h; no longer needed.
108187         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108188         time.h now handles any problems in that area.
108189         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108190         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108191         that time.h defines struct timespec.
108192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108193         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108194         handles that.
108195         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108196         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108197         needed.  Set REPLACE_LOCALTIME.
108198         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108199         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108200         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108201         nanosleep; time_h.m4 now does that.  Don't require
108202         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108203         module handles this now.
108204         * modules/getdate (Depends-on): Remove timespec.  Add time.
108205         * modules/nanosleep (Depends-on): Likewise.
108206         * modules/stat-time (Depends-on): Likewise.
108207         * modules/nanosleep (Include): Include time.h, not timespec.h.
108208         * modules/strptime (Files): Remove lib/strptime.h.
108209         (Depends-on): Add extensions, time.
108210         (Include): Include time.h, not strptime.h.
108211         * modules/time_r (Files): Remove lib/time_r.h.
108212         (Depends-on): Add time.
108213         (Include): Include time.h, not time_r.h.
108214         * modules/timegm: Likewise.
108215         * modules/timespec (Description): Now does timespec-related decls
108216         of our own, instead of struct timespec itself.
108217         (Depends-on): Add time; remove extensions.
108218         (Maintainer): Add self.
108219         * modules/utimecmp (Depends-on): Add time; remove timespec.
108220         * modules/utimens (Depends-on): Likewise.
108221         * modules/xnanosleep (Depends-on): Likewise.
108223 2007-02-11  Bruno Haible  <bruno@clisp.org>
108225         * lib/c-strstr.c: Include allocsa.h.
108226         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108227         * lib/c-strcasestr.c: Include allocsa.h.
108228         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108229         * lib/strcasestr.c: Include allocsa.h.
108230         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108231         * lib/mbsstr.c: Include allocsa.h.
108232         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108233         allocsa/freesa instead of malloc/free.
108234         * lib/mbscasestr.c: Include allocsa.h.
108235         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108236         allocsa/freesa instead of malloc/free.
108237         * modules/c-strstr (Depends-on): Add allocsa.
108238         * modules/c-strcasestr (Depends-on): Likewise.
108239         * modules/strcasestr (Depends-on): Likewise.
108240         * modules/mbsstr (Depends-on): Likewise.
108241         * modules/mbscasestr (Depends-on): Likewise.
108243 2007-02-11  Bruno Haible  <bruno@clisp.org>
108245         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108247         * modules/mbsspn-tests: New file.
108248         * tests/test-mbsspn.sh: New file.
108249         * tests/test-mbsspn.c: New file.
108251 2007-02-11  Bruno Haible  <bruno@clisp.org>
108253         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108255         * modules/mbspbrk-tests: New file.
108256         * tests/test-mbspbrk.sh: New file.
108257         * tests/test-mbspbrk.c: New file.
108259 2007-02-11  Bruno Haible  <bruno@clisp.org>
108261         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108262         unneeded cast.
108264         * modules/mbscspn-tests: New file.
108265         * tests/test-mbscspn.sh: New file.
108266         * tests/test-mbscspn.c: New file.
108268 2007-02-11  Bruno Haible  <bruno@clisp.org>
108270         * modules/mbscasecmp-tests: New file.
108271         * tests/test-mbscasecmp.sh: New file.
108272         * tests/test-mbscasecmp.c: New file.
108274 2007-02-11  Bruno Haible  <bruno@clisp.org>
108276         Ensure O(n) worst-case complexity of mbscasestr.
108277         * lib/mbscasestr.c: Include stdbool.h.
108278         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108279         functions.
108280         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108281         the bookkeeping indicates that it's worth it.
108282         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108284         * modules/mbscasestr-tests: New file.
108285         * tests/test-mbscasestr1.c: New file.
108286         * tests/test-mbscasestr2.sh: New file.
108287         * tests/test-mbscasestr2.c: New file.
108288         * tests/test-mbscasestr3.sh: New file.
108289         * tests/test-mbscasestr3.c: New file.
108290         * tests/test-mbscasestr4.sh: New file.
108291         * tests/test-mbscasestr4.c: New file.
108292         * m4/locale-tr.m4: New file.
108294 2007-02-11  Bruno Haible  <bruno@clisp.org>
108296         Ensure O(n) worst-case complexity of mbsstr.
108297         * lib/mbsstr.c: Include stdbool.h.
108298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108299         functions.
108300         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108301         bookkeeping indicates that it's worth it.
108302         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108304         * modules/mbsstr-tests: New file.
108305         * tests/test-mbsstr1.c: New file.
108306         * tests/test-mbsstr2.sh: New file.
108307         * tests/test-mbsstr2.c: New file.
108308         * tests/test-mbsstr3.sh: New file.
108309         * tests/test-mbsstr3.c: New file.
108310         * m4/locale-fr.m4: New file.
108312 2007-02-11  Bruno Haible  <bruno@clisp.org>
108314         * lib/mbsrchr.c (mbsrchr): Fix bug.
108316         * modules/mbsrchr-tests: New file.
108317         * tests/test-mbsrchr.sh: New file.
108318         * tests/test-mbsrchr.c: New file.
108320 2007-02-11  Bruno Haible  <bruno@clisp.org>
108322         * lib/mbschr.c (mbschr): Fix bug.
108324         * modules/mbschr-tests: New file.
108325         * tests/test-mbschr.sh: New file.
108326         * tests/test-mbschr.c: New file.
108327         * m4/locale-zh.m4: New file.
108329 2007-02-11  Bruno Haible  <bruno@clisp.org>
108331         Support for copying multibyte string iterators.
108332         * lib/mbiter.h: Include <string.h>.
108333         (mbiter_multi_copy): New function.
108334         (mbi_copy): New macro.
108335         * lib/mbuiter.h: Include <string.h>.
108336         (mbuiter_multi_copy): New function.
108337         (mbui_copy): New macro.
108339 2007-02-11  Bruno Haible  <bruno@clisp.org>
108341         New module mbslen.
108342         * modules/mbslen: New file.
108343         * lib/mbslen.c: New file.
108344         * lib/string_.h (mbslen): New declaration.
108345         * m4/mbslen.m4: New file.
108346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108347         GNULIB_MBSLEN.
108348         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108349         * MODULES.html.sh (Internationalization functions): Add mbslen.
108351 2007-02-11  Bruno Haible  <bruno@clisp.org>
108353         Ensure O(n) worst-case complexity of strcasestr substitute.
108354         * lib/strcasestr.c: Include stdbool.h.
108355         (knuth_morris_pratt): New function.
108356         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108357         bookkeeping indicates that it's worth it.
108358         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108360         * modules/strcasestr-tests: New file.
108361         * tests/test-strcasestr.c: New file.
108363 2007-02-11  Bruno Haible  <bruno@clisp.org>
108365         Ensure O(n) worst-case complexity of c_strcasestr.
108366         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108367         (knuth_morris_pratt): New function.
108368         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108369         the bookkeeping indicates that it's worth it.
108370         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108372         * modules/c-strcasestr-tests: New file.
108373         * tests/test-c-strcasestr.c: New file.
108375 2007-02-11  Bruno Haible  <bruno@clisp.org>
108377         Ensure O(n) worst-case complexity of c_strstr.
108378         * lib/c-strstr.c: Include stdbool.h, string.h.
108379         (knuth_morris_pratt): New function.
108380         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108381         bookkeeping indicates that it's worth it.
108382         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108384         * lib/c-strstr.c: Complete rewrite for maintainability.
108386         * modules/c-strstr-tests: New file.
108387         * tests/test-c-strstr.c: New file.
108389 2007-02-11  Bruno Haible  <bruno@clisp.org>
108391         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108392         5.2.1 and earlier, whereby \055 was treated just like the range
108393         delimiter '-'.
108394         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108396 2007-02-08  Bruno Haible  <bruno@clisp.org>
108398         * modules/regex (Depends-on): Add stdbool.
108399         Reported by Dalibor Topic <robilad@kaffe.org>.
108401 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108403         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108404         Prefer returning from main to exiting from it.
108405         Remove unnecessary parens after sizeof.
108407 2007-02-05  Bruno Haible  <bruno@clisp.org>
108409         New module mbssep.
108410         * modules/mbssep: New file.
108411         * lib/mbssep.c: New file.
108412         * lib/string_.h (strsep): Add a conditional link warning.
108413         (mbssep): New declaration.
108414         * m4/mbssep.m4: New file.
108415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108416         GNULIB_MBSSEP.
108417         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108418         * MODULES.html.sh (Internationalization functions): Add mbssep.
108420 2007-02-05  Bruno Haible  <bruno@clisp.org>
108422         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108423         Optimize search in case of 1 delimiter.
108425 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108427         * lib/acl.h: Include sys/types.h before sys/acl.h.
108429 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108431         Merge upstream fix for glibc bugzilla #3957:
108433         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108435         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108436         bit for RE_HAT_LISTS_NOT_NEWLINE.
108437         (build_charclass_op): Remove bogus comment.
108439 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108441         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108443 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108445         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108446         * lib/memmem.c [!defined _LIBC]: Include config.h.
108448 2007-02-04  Bruno Haible  <bruno@clisp.org>
108450         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108451         warning message.
108453 2007-02-04  Bruno Haible  <bruno@clisp.org>
108455         New module mbstok_r.
108456         * modules/mbstok_r: New file.
108457         * lib/mbstok_r.c: New file.
108458         * lib/string_.h (strtok_r): Change argument names to match the
108459         comments. Add a conditional link warning.
108460         (mbstok_r): New declaration.
108461         * m4/mbstok_r.m4: New file.
108462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108463         GNULIB_MBSTOK_R.
108464         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108465         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108467 2007-02-04  Bruno Haible  <bruno@clisp.org>
108469         New module mbsspn.
108470         * modules/mbsspn: New file.
108471         * lib/mbsspn.c: New file.
108472         * lib/string_.h (strspn): Add a conditional link warning.
108473         (mbsspn): New declaration.
108474         * m4/mbsspn.m4: New file.
108475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108476         GNULIB_MBSSPN.
108477         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108478         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108480 2007-02-04  Bruno Haible  <bruno@clisp.org>
108482         New module mbspbrk.
108483         * modules/mbspbrk: New file.
108484         * lib/mbspbrk.c: New file.
108485         * lib/string_.h (strpbrk): Add a conditional link warning.
108486         (mbspbrk): New declaration.
108487         * m4/mbspbrk.m4: New file.
108488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108489         GNULIB_MBSPBRK.
108490         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108491         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108493 2007-02-04  Bruno Haible  <bruno@clisp.org>
108495         New module mbscspn.
108496         * modules/mbscspn: New file.
108497         * lib/mbscspn.c: New file.
108498         * lib/string_.h (strcspn): Add a conditional link warning.
108499         (mbscspn): New declaration.
108500         * m4/mbscspn.m4: New file.
108501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108502         GNULIB_MBSCSPN.
108503         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108504         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108506 2007-02-04  Bruno Haible  <bruno@clisp.org>
108508         New module mbscasestr, reduced goal of strcasestr.
108509         * modules/mbscasestr: New file.
108510         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108511         (mbscasestr): Renamed from strcasestr.
108512         * lib/strcasestr.c: Don't include mbuiter.h.
108513         (strcasestr): Remove support for multibyte locales.
108514         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108515         Change the conditional link warning.
108516         (mbscasestr): New declaration.
108517         * m4/mbscasestr.m4: New file.
108518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108519         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108520         REPLACE_STRCASESTR.
108521         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108523         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108524         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108525         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108526         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108527         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108528         (Depends-on): Remove mbuiter.
108529         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108531 2007-02-04  Bruno Haible  <bruno@clisp.org>
108533         Simplify handling of strncasecmp.
108534         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108535         the conditional link warning.
108536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108537         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108539         * modules/strcase (configure.ac): Don't invoke
108540         gl_STRING_MODULE_INDICATOR.
108541         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108543 2007-02-04  Bruno Haible  <bruno@clisp.org>
108545         New module mbscasecmp, reduced goal of strcasecmp.
108546         * modules/mbscasecmp: New file.
108547         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108548         (mbscasecmp): Renamed from strcasecmp.
108549         * lib/strcasecmp.c: Don't include mbuiter.h.
108550         (strcasecmp): Remove support for multibyte locales.
108551         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108552         Change the conditional link warning.
108553         (mbscasecmp): New declaration.
108554         * m4/mbscasecmp.m4: New file.
108555         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108556         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108557         REPLACE_STRCASECMP.
108558         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108560         GNULIB_MBSCASECMP.
108561         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108562         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108563         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108564         (Depends-on): Remove mbuiter.
108565         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108567 2007-02-04  Bruno Haible  <bruno@clisp.org>
108569         New module mbsstr. Remove module strstr.
108570         * modules/mbsstr: New file.
108571         * modules/strstr: Remove file.
108572         * lib/mbsstr.c: Renamed from lib/strstr.c.
108573         (mbsstr): Renamed from strstr.
108574         * lib/string_.h (strstr): Remove declaration. Change the conditional
108575         link warning.
108576         (mbsstr): New declaration.
108577         * m4/mbsstr.m4: New file.
108578         * m4/strstr.m4: Remove file.
108579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108580         REPLACE_STRSTR.
108581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108582         Don't initialize GNULIB_STRSTR.
108583         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108584         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108585         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108586         (Support for systems lacking ANSI C 89): Remove strstr.
108588 2007-02-04  Bruno Haible  <bruno@clisp.org>
108590         New module mbsrchr.
108591         * modules/mbsrchr: New file.
108592         * lib/mbsrchr.c: New file.
108593         * lib/string_.h (strrchr): Add a conditional link warning.
108594         (mbsrchr): New declaration.
108595         * m4/mbsrchr.m4: New file.
108596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108597         GNULIB_MBSRCHR.
108598         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108599         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108601 2007-02-04  Bruno Haible  <bruno@clisp.org>
108603         New module mbschr.
108604         * modules/mbschr: New file.
108605         * lib/mbschr.c: New file.
108606         * lib/string_.h (strchr): Add a conditional link warning.
108607         (mbschr): New declaration.
108608         * m4/mbschr.m4: New file.
108609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108610         GNULIB_MBSCHR.
108611         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108612         * MODULES.html.sh (Internationalization functions): Add mbschr.
108614 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108616         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108618         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108620 2007-02-04  Bruno Haible  <bruno@clisp.org>
108622         New module description section 'configure.ac-early'.
108623         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108624         (func_get_autoconf_early_snippet): New function.
108625         (func_import, func_create_testdir): Use it. Remove special cases for
108626         modules 'extensions' and 'lock'.
108627         * modules/extensions (configure.ac-early): Require
108628         gl_USE_SYSTEM_EXTENSIONS.
108629         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108631 2007-02-04  Bruno Haible  <bruno@clisp.org>
108633         Make use of gcj-4.3's -fsource and -ftarget option.
108634         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108635         and if so try the options -fsource and -ftarget.
108636         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108637         source_version, ftarget_option, target_version arguments.
108638         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108639         (is_envjavac_oldgcj_14_14_usable): Renamed from
108640         is_envjavac_gcj_14_14_usable.
108641         (is_envjavac_oldgcj_14_13_usable): Renamed from
108642         is_envjavac_gcj_14_13_usable.
108643         (is_gcj_present): Update.
108644         (is_gcj_43, is_gcj43_usable): New functions.
108645         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108646         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108647         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108648         try the options -fsource and -ftarget.
108650 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108652         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108653         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108654         larger value.
108656 2007-02-03  Jim Meyering  <jim@meyering.net>
108658         Give tools a better chance to allocate space for very large buffers.
108659         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108661         Make pwd and readlink work also when run with an unreadable parent dir
108662         on systems with openat support.
108663         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108664         provided getcwd function, even when we have openat support.
108665         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108667 2007-02-02  Bruno Haible  <bruno@clisp.org>
108669         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108670         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108671         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108672         portability problems if one of these functions is only used on specific
108673         platforms.
108674         Reported by Paul Eggert.
108676 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108678         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108679         is causing more trouble than it's curing.
108680         * lib/regex_internal.h (__mempcpy): Remove.
108681         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108682         (and make the code a tad smaller to boot).
108683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108685 2007-02-02  Jim Meyering  <jim@meyering.net>
108687         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108688         section, not in the Makefile.am: one.
108690 2007-02-02  Eric Blake  <ebb9@byu.net>
108692         * lib/strchrnul.c: Always include config.h first.
108694         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108695         gnulib strstr is not necessary here.
108697 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108699         * m4/socklen.m4: Fix typo.
108701 2007-02-02  Eric Blake  <ebb9@byu.net>
108703         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108704         * modules/netinet_in (Makefile.am): Likewise.
108706 2007-02-01  Bruno Haible  <bruno@clisp.org>
108708         * lib/string_.h (GL_LINK_WARNING): New macro.
108709         (strcasecmp, strstr, strcasestr): If provided by the system,
108710         conditionally define as a macro that leads to a warning instead of to
108711         an error.
108712         (strncasecmp): Conditionally define as a macro that leads to a warning.
108714 2007-02-01  Karl Berry  <karl@gnu.org>
108716         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108718 2007-02-01  Bruno Haible  <bruno@clisp.org>
108720         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108721         renamings.
108723 2007-02-01  Eric Blake  <ebb9@byu.net>
108725         * modules/regex (Depends-on): Revert dependence on mempcpy.
108726         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108727         module's definition of mempcpy.
108728         Reported by Paul Eggert.
108730 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108732         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108733         the symbol XYZ before redefining it.  This fixes a problem with
108734         programs that don't use XYZ, when compiled on systems that define
108735         XYZ to something else.
108737 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108739         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108740         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108741         writeable to group or other and (2) is intended to have a special
108742         mode bit that is set or cleared.  In such a case, the directory
108743         should be neither group- nor other-writeable until the special
108744         mode bits are right.
108746 2007-01-31  Eric Blake  <ebb9@byu.net>
108748         * modules/mountlist (Depends-on): Add strstr.
108750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108751         bug.
108752         * modules/string (Makefile.am): Remove redundant replacement.
108753         * modules/regex (Depends-on): Add mempcpy.
108755 2007-01-31  Bruno Haible  <bruno@clisp.org>
108757         New module description field 'Link'.
108758         * gnulib-tool (func_usage): Document --extract-link-directive.
108759         (sed_extract_prog): Recognize 'Link' directive.
108760         (func_get_link_directive): New function.
108761         (func_import): Show summary of link directives.
108762         Handle --extract-link-directive option.
108763         * modules/acl (Link): New section.
108764         * modules/clock-time (Link): New section.
108765         * modules/euidaccess (Link): New section.
108766         * modules/gettext (Link): New section.
108767         * modules/iconv (Link): New section.
108768         * modules/lock (Link): New section.
108769         * modules/nanosleep (Link): New section.
108770         * modules/readline (Link): New section.
108772 2007-01-27  Bruno Haible  <bruno@clisp.org>
108774         Enforce the use of gnulib modules for unportable <string.h> functions.
108775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108776         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108777         (gl_HEADER_STRING_H_BODY): Require it.
108778         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108779         the symbol XYZ to one that gives a link error.
108780         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108781         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108782         * modules/mempcpy (configure.ac): Likewise.
108783         * modules/memrchr (configure.ac): Likewise.
108784         * modules/stpcpy (configure.ac): Likewise.
108785         * modules/stpncpy (configure.ac): Likewise.
108786         * modules/strcase (configure.ac): Likewise.
108787         * modules/strcasestr (configure.ac): Likewise.
108788         * modules/strchrnul (configure.ac): Likewise.
108789         * modules/strdup (configure.ac): Likewise.
108790         * modules/strndup (configure.ac): Likewise.
108791         * modules/strnlen (configure.ac): Likewise.
108792         * modules/strpbrk (configure.ac): Likewise.
108793         * modules/strsep (configure.ac): Likewise.
108794         * modules/strstr (configure.ac): Likewise.
108795         * modules/strtok_r (configure.ac): Likewise.
108797 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108799         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108801 2007-01-30  Jim Meyering  <jim@meyering.net>
108803         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108805 2007-01-29  Bruno Haible  <bruno@clisp.org>
108807         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108808         * lib/execute.c: Likewise.
108809         * lib/pipe.c: Likewise.
108810         * lib/printf-args.h: Likewise.
108811         * lib/printf-args.c: Likewise.
108812         * lib/printf-parse.c: Likewise.
108813         * lib/vasnprintf.c: Likewise.
108815 2007-01-29  Eric Blake  <ebb9@byu.net>
108817         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108818         declaration.
108820 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108822         * lib/strptime.h (strptime): Use 'restrict' for args where
108823         POSIX requires this.
108824         * lib/strptime.c (strptime): Likewise.
108825         Change license notice from LGPL to GPL, since gnulib-tool will
108826         change this as needed.
108827         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108828         defined.
108829         Include "strptime.h" first, to check interface.
108830         Do not #undef _LIBC and _NL_CURRENT.
108831         Do not include <stdlib.h>; no longer needed.
108832         Include "time_r.h" and declare ptime_locale_status
108833         only if _LIBC is not defined.
108834         (__P): Remove unused macro.
108835         (match_string): Bring back glibc version, but use it only if _LIBC
108836         is defined.
108837         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108838         Remove unnecessary assertion and abort() call.
108839         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108840         * m4/strptime.m4: Fix serial number comment.
108841         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108842         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108843         (Depends-on): Add time_r.
108845 2007-01-29  Bruno Haible  <bruno@clisp.org>
108847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108848         strptime.
108849         * modules/strptime (Depends-on): Add stdbool.
108850         * lib/strptime.h: Include <time.h> always. Add comments.
108852 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108854         * modules/strptime: New file.
108855         * lib/strptime.h: New file.
108856         * lib/strptime.c: New file.
108857         * m4/strptime.m4: New file.
108859 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108861         * MODULES.html.sh: New module mpsort.
108862         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108864         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108865         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108866         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108867         All uses changed.
108868         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108869         All uses changed.
108870         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108871         to _Restrict_.
108872         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108873         the parameter matches the prototype.
108875 2007-01-28  Jim Meyering  <jim@meyering.net>
108877         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108878         sys/time.h here, reverting that part of the previous patch:
108879         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108881 2007-01-28  Bruno Haible  <bruno@clisp.org>
108883         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108884         value of $(SYS_TIME_H).
108885         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108886         remove it conditionally, too. [added by Jim Meyering]
108887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108889         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108890         GETTIMEOFDAY_REPLACEMENT to 1.
108892 2007-01-28  Bruno Haible  <bruno@clisp.org>
108894         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108895         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108897         Set UNISTD_H instead of UNISTD_H2.
108898         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108900 2007-01-28  Bruno Haible  <bruno@clisp.org>
108902         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108903         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108905 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108907         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108908         (func_create_testdir): Ensure C locale for `grep' and `tr'
108909         character ranges.
108910         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108911         ACLOCAL_AMFLAGS parsing state machine.
108913 2007-01-27  Bruno Haible  <bruno@clisp.org>
108915         * modules/unistr/base: Update.
108917 2007-01-27  Bruno Haible  <bruno@clisp.org>
108919         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108920         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108921         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108922         modules/unistr/u32-mbtouc.
108923         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108924         * lib/unistr.h: Update.
108925         * lib/linebreak.c: Update.
108926         * modules/unistr/u32-mbtouc: Renamed from
108927         modules/unistr/u32-mbtouc-safe.
108928         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108929         * lib/unistr.h: Update.
108930         * lib/unistr/u32-to-u8.c: Update.
108931         * lib/unistr/u32-to-u16.c: Update.
108933 2007-01-27  Bruno Haible  <bruno@clisp.org>
108935         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108936         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108937         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108938         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108939         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108940         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108941         modules/unistr/u16-mbtouc.
108942         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108943         * lib/unistr.h: Update.
108944         * lib/linebreak.c: Update.
108945         * modules/linebreak: Update.
108946         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108947         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108948         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108949         * modules/unistr/u16-mbtouc: Renamed from
108950         modules/unistr/u16-mbtouc-safe.
108951         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108952         * lib/unistr.h: Update.
108953         * lib/unistr/u16-to-u8.c: Update.
108954         * modules/unistr/u16-to-u8: Update.
108955         * lib/unistr/u16-to-u32.c: Update.
108956         * modules/unistr/u16-to-u32: Update.
108958 2007-01-27  Bruno Haible  <bruno@clisp.org>
108960         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108961         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108962         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108963         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108964         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108965         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108966         modules/unistr/u8-mbtouc.
108967         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108968         * lib/unistr.h: Update.
108969         * lib/striconveh.c: Update.
108970         * modules/striconveh: Update.
108971         * lib/linebreak.c: Update.
108972         * modules/linebreak: Update.
108973         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108974         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108975         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108976         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108977         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108978         * lib/unistr.h: Update.
108979         * lib/striconveh.c: Update.
108980         * modules/striconveh: Update.
108981         * lib/unistr/u8-to-u16.c: Update.
108982         * modules/unistr/u8-to-u16: Update.
108983         * lib/unistr/u8-to-u32.c: Update.
108984         * modules/unistr/u8-to-u32: Update.
108986 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108988         Sync from Libtool.
108989         * lib/argz.c: Do not include strings.h nor memory.h, include
108990         string.h unconditionally.  Patch by Simon Josefsson.
108992 2007-01-27  Bruno Haible  <bruno@clisp.org>
108994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108995         from gl_HEADER_STRING_H_BODY.
108996         (gl_HEADER_STRING_H_BODY): Require it.
108997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108998         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108999         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109002         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109004         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109005         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109006         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109007         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109008         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109009         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109010         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109011         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109013 2007-01-27  Bruno Haible  <bruno@clisp.org>
109015         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109016         check_PROGRAMS into noinst_PROGRAMS.
109017         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109018         check_PROGRAMS in this case.
109019         (func_import): Set for_test to false.
109020         (func_create_testdir): Set for_test to true.
109022 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109023             Bruno Haible  <bruno@clisp.org>
109025         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109026         (Depends-on): Add string.
109027         (Includes): Use <string.h> instead of strcasestr.h.
109028         * modules/string (Makefile.am): Also substitute the value of
109029         REPLACE_STRCASESTR.
109030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109031         assume strcasestr is declared in <string.h> not <strings.h>. Also
109032         set REPLACE_STRCASESTR.
109033         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109034         REPLACE_STRCASESTR.
109035         * lib/strcasestr.h: Remove file.
109036         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109037         * lib/string_.h (strcasestr): New declaration.
109039 2007-01-27  Bruno Haible  <bruno@clisp.org>
109041         * lib/string_.h: Use 'extern'.
109043 2007-01-27  Jim Meyering  <jim@meyering.net>
109045         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109046         of set-but-not-used local, "q".
109048         * lib/mempcpy.c: Include <config.h> before <string.h>.
109049         This fixes a compilation error on HP-UX, due to the system's
109050         "restrict"-using mempcpy prototype.
109052 2007-01-26  Bruno Haible  <bruno@clisp.org>
109054         Small optimization.
109055         * lib/javacomp.c: Include c-strstr.h.
109056          (is_envjavac_gcj): Use c_strstr instead of strstr.
109057         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109059 2007-01-26  Bruno Haible  <bruno@clisp.org>
109061         * MODULES.html.sh (Unicode string functions): Add the new modules.
109063         * modules/uniconv/u32-strconv-to-locale: New file.
109064         * lib/uniconv/u32-strconv-to-locale.c: New file.
109066         * modules/uniconv/u16-strconv-to-locale: New file.
109067         * lib/uniconv/u16-strconv-to-locale.c: New file.
109069         * modules/uniconv/u8-strconv-to-locale: New file.
109070         * lib/uniconv/u8-strconv-to-locale.c: New file.
109072         * modules/uniconv/u32-strconv-from-locale: New file.
109073         * lib/uniconv/u32-strconv-from-locale.c: New file.
109075         * modules/uniconv/u16-strconv-from-locale: New file.
109076         * lib/uniconv/u16-strconv-from-locale.c: New file.
109078         * modules/uniconv/u8-strconv-from-locale: New file.
109079         * lib/uniconv/u8-strconv-from-locale.c: New file.
109081         * modules/uniconv/u32-strconv-to-enc: New file.
109082         * lib/uniconv/u32-strconv-to-enc.c: New file.
109083         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109084         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109086         * modules/uniconv/u16-strconv-to-enc: New file.
109087         * lib/uniconv/u16-strconv-to-enc.c: New file.
109088         * lib/uniconv/u-strconv-to-enc.h: New file.
109089         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109090         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109092         * modules/uniconv/u8-strconv-to-enc: New file.
109093         * lib/uniconv/u8-strconv-to-enc.c: New file.
109094         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109095         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109097         * modules/uniconv/u32-strconv-from-enc: New file.
109098         * lib/uniconv/u32-strconv-from-enc.c: New file.
109099         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109100         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109102         * modules/uniconv/u16-strconv-from-enc: New file.
109103         * lib/uniconv/u16-strconv-from-enc.c: New file.
109104         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109105         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109107         * modules/uniconv/u8-strconv-from-enc: New file.
109108         * lib/uniconv/u8-strconv-from-enc.c: New file.
109109         * lib/uniconv/u-strconv-from-enc.h: New file.
109110         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109111         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109113         * modules/uniconv/u32-conv-from-enc: New file.
109114         * lib/uniconv/u32-conv-from-enc.c: New file.
109115         * modules/uniconv/u32-conv-from-enc-tests: New file.
109116         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109118         * modules/uniconv/u16-conv-from-enc: New file.
109119         * lib/uniconv/u16-conv-from-enc.c: New file.
109120         * lib/uniconv/u-conv-from-enc.h: New file.
109121         * modules/uniconv/u16-conv-from-enc-tests: New file.
109122         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109124         * modules/uniconv/u8-conv-from-enc: New file.
109125         * lib/uniconv/u8-conv-from-enc.c: New file.
109126         * modules/uniconv/u8-conv-from-enc-tests: New file.
109127         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109129         * modules/uniconv/base: New file.
109130         * lib/uniconv.h: New file.
109132 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109134         * doc/gnulib-tool.texi (Initial import): Update to match current
109135         behavior with strdup module.
109136         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109137         * lib/memmem.h: Remove; all uses removed.  This is now done
109138         by <string.h>.
109139         * lib/mempcpy.h: Likewise.
109140         * lib/memrchr.h: Likewise.
109141         * lib/stpcpy.h: Likewise.
109142         * lib/stpncpy.h: Likewise.
109143         * lib/strcase.h: Likewise.
109144         * lib/strchrnul.h: Likewise.
109145         * lib/strdup.h: Likewise.
109146         * lib/strndup.h: Likewise.
109147         * lib/strnlen.h: Likewise.
109148         * lib/strpbrk.h: Likewise.
109149         * lib/strsep.h: Likewise.
109150         * lib/strstr.h: Likewise.
109151         * lib/strtok_r.h: Likewise.
109152         * lib/string_.h: New file.
109153         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109154         Rely on <string.h> instead.
109155         * lib/canon-host.c: Likewise.
109156         * lib/chdir-long.c: Likewise.
109157         * lib/concatpath.c: Likewise.
109158         * lib/exclude.c: Likewise.
109159         * lib/fchdir.c: Likewise.
109160         * lib/getaddrinfo.c: Likewise.
109161         * lib/getcwd.c: Likewise.
109162         * lib/getsubopt.c: Likewise.
109163         * lib/glob.c: Likewise.
109164         * lib/hard-locale.c: Likewise.
109165         * lib/iconvme.c: Likewise.
109166         * lib/javacomp.c: Likewise.
109167         * lib/mempcpy.c: Likewise.
109168         * lib/memrchr.c: Likewise.
109169         * lib/regex_internal.h: Likewise.
109170         * lib/stpncpy.c: Likewise.
109171         * lib/strcasecmp.c: Likewise.
109172         * lib/strchrnul.c: Likewise.
109173         * lib/strdup.c: Likewise.
109174         * lib/striconv.c: Likewise.
109175         * lib/striconveh.c: Likewise.
109176         * lib/striconveha.c: Likewise.
109177         * lib/strncasecmp.c: Likewise.
109178         * lib/strndup.c: Likewise.
109179         * lib/strnlen.c: Likewise.
109180         * lib/strsep.c: Likewise.
109181         * lib/strstr.c: Likewise.
109182         * lib/strtok_r.c: Likewise.
109183         * lib/userspec.c: Likewise.
109184         * lib/w32spawn.h: Likewise.
109185         * lib/xstrndup.c: Likewise.
109186         * lib/mountlist.c (strstr): Remove decl.
109187         * m4/string_h.m4: New file.
109188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109189         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109190         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109191         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109192         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109193         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109194         Set REPLACE_STRCASECMP if necessary.
109195         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109196         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109197         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109198         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109199         HAVE_DECL_STRDUP if necessary.
109200         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109201         since gl_FUNC_STRNDUP does that now.
109202         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109203         Check for decl here...
109204         (gl_PREREQ_STRNLEN): ... not here.
109205         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109206         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109207         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109208         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109209         necessary.
109210         * modules/string: New file.
109211         * modules/memmem (Files): Remove special-purpose include file.
109212         (Depends-on): Add string.
109213         (Include): Include <string.h>, not the removed file.
109214         * modules/mempcpy: Likewise.
109215         * modules/memrchr: Likewise.
109216         * modules/stpcpy: Likewise.
109217         * modules/stpncpy: Likewise.
109218         * modules/strcase: Likewise.
109219         * modules/strchrnul: Likewise.
109220         * modules/strdup: Likewise.
109221         * modules/strndup: Likewise.
109222         * modules/strnlen: Likewise.
109223         * modules/strpbrk: Likewise.
109224         * modules/strsep: Likewise.
109225         * modules/strstr: Likewise.
109226         * modules/strtok_r: Likewise.
109227         * tests/test-dirname.c: Don't include "strdup.h", since
109228         <string.h> now suffices.
109229         * tests/test-memmem.c: Don't include "memmem.h", since
109230         <string.h> now suffices.
109232 2007-01-25  Bruno Haible  <bruno@clisp.org>
109234         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109235         *resultp is 0.
109237         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109238         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109239         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109240         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109242         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109243         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109244         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109245         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109246         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109247         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109249 2007-01-24  Bruno Haible  <bruno@clisp.org>
109251         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109252         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109253         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109254         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109255         gl_FUNC_FTS_CORE.
109256         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109257         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109258         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109259         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109260         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109261         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109262         gl_FUNC_FCHOWNAT.
109263         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109264         gl_FUNC_STRFTIME.
109265         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109266         Reported by Ralf Wildenhues.
109268 2007-01-24  Bruno Haible  <bruno@clisp.org>
109270         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109271         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109272         gl_GETADDRINFO.
109273         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109274         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109275         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109277 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109279         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109280         Don't use 'exit'; just return from 'main'.
109281         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109283         * lib/fnmatch_.h: Readjust white space and comments to match
109284         glibc, to avoid spurious diffs.
109286 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109288         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109289         2004-12-01 change by Jakub Jelinek, since this code won't compile
109290         if !LIBC.  Problem reported by Bob Proulx.
109292 2007-01-23  Bruno Haible  <bruno@clisp.org>
109294         * lib/striconveh.c: Include c-strcaseeq.h.
109295         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109296         * modules/striconveh (Depends-on): Add c-strcaseeq.
109298 2007-01-23  Bruno Haible  <bruno@clisp.org>
109300         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109302         * modules/c-strcaseeq: New file.
109303         * lib/c-strcaseeq.h: New file.
109305         * modules/streq: New file.
109306         * lib/streq.h: New file.
109308 2007-01-23  Bruno Haible  <bruno@clisp.org>
109310         * modules/striconveha-tests: New file.
109311         * tests/test-striconveha.c: New file.
109313         * lib/striconveha.h: Include <stdbool.h>.
109314         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109315         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109316         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109317         (mem_iconveha): New function.
109318         (str_iconveha_notranslit): Renamed from str_iconveha.
109319         (str_iconveha): New function.
109320         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109321         c-strcase.
109323 2007-01-23  Bruno Haible  <bruno@clisp.org>
109325         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109326         encodings without forgiving before trying any encoding with handler.
109327         (str_iconveha): Try all encodings without forgiving before trying any
109328         encoding with handler.
109330 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109332         Import the following changes from libc.
109334         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109336         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109338         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109340         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109341         normal_bracket label.
109343         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109345         [BZ #361]
109346         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109347         to normal_bracket after fetching the next character.
109349 2007-01-22  Bruno Haible  <bruno@clisp.org>
109351         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109352         argument.
109353         * lib/striconveh.c (iconv_carefully_1): New function.
109354         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109355         argument.
109356         (str_cd_iconveh): Update.
109357         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109358         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109359         * tests/test-striconveh.c (MAGIC): New macro.
109360         (new_offsets): New function.
109361         (main): Test call with and without offsets.
109363 2007-01-22  Bruno Haible  <bruno@clisp.org>
109365         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109366         * modules/sys_select (Makefile.am): Likewise.
109367         * modules/sys_socket (Makefile.am): Likewise.
109368         * modules/sys_time (Makefile.am): Likewise.
109370 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109372         * modules/gettimeofday (License): Change from GPL to LGPL, since
109373         gettimeofday is a library function.
109375 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109377         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109379 2007-01-21  Bruno Haible  <bruno@clisp.org>
109381         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109383 2007-01-21  Bruno Haible  <bruno@clisp.org>
109385         * modules/striconveha: New file.
109386         * lib/striconveha.h: New file.
109387         * lib/striconveha.c: New file.
109388         * MODULES.html.sh (Internationalization functions): Add striconveha.
109389         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109390         string.
109391         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109393 2007-01-21  Bruno Haible  <bruno@clisp.org>
109395         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109396         * lib/striconveh.c (str_iconveh): Likewise.
109398 2007-01-21  Bruno Haible  <bruno@clisp.org>
109400         * lib/striconveh.h (mem_iconveh): New declaration.
109401         * lib/striconveh.c (mem_iconveh): New function.
109402         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109404 2007-01-21  Bruno Haible  <bruno@clisp.org>
109406         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109408         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109409         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109410         original result buffer.
109411         (str_cd_iconveh): Update.
109412         * tests/test-striconveh.c (main): Update.
109414         * lib/striconv.h (mem_cd_iconv): Change specification.
109415         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109416         result buffer.
109417         (str_cd_iconv): Update.
109418         * tests/test-striconv.c (main): Update.
109420 2007-01-21  Bruno Haible  <bruno@clisp.org>
109422         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109424 2007-01-20  Jim Meyering  <jim@meyering.net>
109426         * lib/userspec.c (parse_with_separator): If a user or group string
109427         starts with "+", skip the corresponding name-to-ID look-up, since
109428         such a look-up must fail: user and group names may not include "+".
109430 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109432         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109433         since we now assume the sys_time module.
109434         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109435         check for sys/time.h; no longer needed.
109436         * modules/poll (Depends-on): Depend on sys_time.
109438 2007-01-18  Bruno Haible  <bruno@clisp.org>
109440         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109441         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109443         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109444         gettimeofday.
109446         * tests/test-gettimeofday.c: Include <time.h>.
109447         (dummy): Remove variable.
109449         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109450         gl_HEADER_SYS_TIME_H.
109451         (gl_HEADER_SYS_TIME_H): New macro.
109453         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109454         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109456         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109457         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109458         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109459         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109460         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109461         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109462         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109463         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109465         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109466         last change; it caused a compilation error when cross-compiling to
109467         Cygwin.
109469 2007-01-18  Jim Meyering  <jim@meyering.net>
109471         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109472         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109473         than the race-prone "test -d sys || mkdir sys".
109474         (configure.ac): Use AC_PROG_MKDIR_P.
109475         * modules/sys_select: Likewise.
109476         * modules/sys_socket: Likewise.
109477         * modules/sys_time: Likewise.
109479 2007-01-18  Eric Blake  <ebb9@byu.net>
109481         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109482         replace gettimeofday.
109483         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109484         name, to avoid infinite recursion.
109486 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109488         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109489         module sys_time.
109490         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109491         assume timespec.h defines struct timeval.
109492         * lib/settime.c: Likewise.
109493         * lib/utimens.c: Likewise.
109494         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109495         since we now assume the gettimeofday module.
109496         * lib/tempname.c (__gen_tempname): Likewise.
109497         * lib/gettimeofday.h: Remove.
109498         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109499         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109500         Include <time.h>, for 'time()'.
109501         (localtime_buffer_addr): Also use this workaround if
109502         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109503         to simplify the uses.  All uses changed.
109504         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109505         that #undef is inside {}, and 'const' follows type name consistently.
109506         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109507         (gettimeofday): Do not use the maximum possible value for
109508         tv->tv_usec, since that might break usages other than ls.c.
109509         Instead, we'll leave ls.c alone.  This undoes today's patch
109510         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109511         we've never observed the problem but might as well keep the
109512         canary.
109513         * lib/nanosleep.c: Include timespec.h first, for interface check.
109514         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109515         now assume the sys_time module.
109516         * lib/tempname.c: Likewise.
109517         * lib/timespec.h: Likewise.
109518         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109519         needed.
109520         * lib/strftime.c: Likewise.
109521         * lib/timespec.h: Likewise.
109522         * lib/posixtm.c: Include posixtm.h first, for interface check.
109523         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109524         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109525         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109526         * lib/sys_time_.h: New file.
109527         * lib/timespec.h (struct timespec): Use long int, not long.
109528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109529         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109530         Remove obsolescent call to AC_HEADER_TIME.
109531         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109533         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109534         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109535         Likewise.
109536         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109537         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109538         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109539         into the sys_time module.  Check for gettimeofday just once.
109540         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109541         for gettimeofday signature to just check the signature.  Merely
109542         compile it, since linking doesn't test signature.  Improve test for
109543         whether gettimeofday.o is actually needed.
109544         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109545         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109546         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109547         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109548         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109549         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109550         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109551         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109552         than worrying about sys/time.h.
109553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109554         Don't bother worrying about TIME_WITH_SYS_TIME.
109555         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109556         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109557         * m4/sys_time_h.m4: New file.
109558         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109559         Don't include sys/time.h.  Return from main rather than exiting.
109560         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109561         all uses changed.
109562         * modules/gethrxtime (Depends-on): Add sys_time.
109563         * modules/gettime (Depends-on): Likewise.
109564         * modules/gettimeofday (Depends-on): Likewise.
109565         * modules/nanosleep (Depends-on): Likewise.
109566         * modules/settime (Depends-on): Likewise.
109567         * modules/tempname (Depends-on): Likewise.
109568         * modules/utimens (Depends-on): Likewise.
109569         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109570         (Include): Change back to <sys/time.h>.
109571         (Maintainer): Add self.
109572         * modules/sys_time: New file.
109573         * modules/tempname (Depends-on): Add gettimeofday.
109574         * tests/test-gettimeofday.c: Include <sys/time.h>
109575         rather than gettimeofday.h.
109577 2007-01-17  Bruno Haible  <bruno@clisp.org>
109579         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109580         the license default to GPL.
109581         (func_create_testdir): Don't complain if a module is LGPL and its
109582         tests module depends on GPLed modules.
109584 2007-01-17  Bruno Haible  <bruno@clisp.org>
109586         * lib/gettimeofday.c (gettimeofday): Add code for the case
109587         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109588         maximum possible value for tv->tv_usec, rather than the minimum one.
109590 2005-10-08  Martin Lambers  <marlam@marlam.de>
109591 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109592 2007-01-16  Bruno Haible  <bruno@clisp.org>
109594         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109595         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109596         gl_FUNC_GETTIMEOFDAY.
109597         (Include): Add gettimeofday.h.
109598         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109599         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109600         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109601         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109602         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109603         * lib/gettimeofday.h: New file.
109604         * lib/gettimeofday.c: Include <sys/timeb.h>.
109605         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109606         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109607         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109608         fall back on time().
109610         * tests/test-gettimeofday.c: New file.
109611         * modules/gettimeofday-tests: New file.
109613 2007-01-16  Eric Blake  <ebb9@byu.net>
109615         * modules/fnmatch (Depends-on): Depend on wchar.
109616         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109617         * m4/fnmatch.m4: Likewise.
109618         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109619         * m4/mbchar.m4: Likewise.
109620         * modules/mbswidth (Depends-on): Depend on wchar.
109621         * lib/mbswidth.c: Assume <wchar.h>.
109622         * m4/mbswidth.m4: Likewise.
109623         * modules/quotearg (Depends-on): Depend on wchar.
109624         * lib/quotearg.c: Assume <wchar.h>.
109625         * m4/quotearg.m4: Likewise.
109626         * modules/regex (Depends-on): Depend on wchar.
109627         * lib/regex_internal.h: Assume <wchar.h>.
109628         * m4/regex.m4: Likewise.
109629         * modules/stdint (Depends-on): Depend on wchar.
109630         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109631         * m4/stdint.m4: Likewise.
109632         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109633         * modules/strftime (Depends-on): Depend on wchar.
109634         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109635         * modules/strtol (Depends-on): Depend on wchar.
109636         * lib/strtol.c: Assume <wchar.h>.
109637         * modules/wcwidth (Depends-on): Depend on wchar.
109638         * lib/wcwidth.h: Assume <wchar.h>.
109639         * m4/wcwidth.m4: Likewise.
109641 2007-01-16  Bruno Haible  <bruno@clisp.org>
109643         * modules/csharpexec-script: New, created from...
109644         * modules/csharpexec: ... this.
109646 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109648         * modules/javaexec-script: New, created from...
109649         * modules/javaexec: ... this.
109651 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109653         * modules/poll (Dependencies): Add sys_select.
109655 2007-01-15  Jim Meyering  <jim@meyering.net>
109657         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109658         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109659         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109660         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109662 2007-01-15  Bruno Haible  <bruno@clisp.org>
109664         * modules/striconveh: New file.
109665         * lib/striconveh.h: New file.
109666         * lib/striconveh.c: New file.
109667         * MODULES.html.sh (Internationalization functions): Add striconveh.
109669         * modules/striconveh-tests: New file.
109670         * tests/test-striconveh.c: New file.
109672 2007-01-15  Bruno Haible  <bruno@clisp.org>
109674         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109675         not from GNU libiconv or GNU libc.
109677 2007-01-15  Bruno Haible  <bruno@clisp.org>
109679         * doc/gnulib-intro.texi (Copyright): Explain the different license
109680         terms for module descriptions, autoconf macros, tests, documentation.
109682 2007-01-14  Bruno Haible  <bruno@clisp.org>
109684         * modules/striconv-tests: New file.
109685         * tests/test-striconv.c: New file.
109687 2007-01-14  Bruno Haible  <bruno@clisp.org>
109689         * modules/iconv-tests: New file.
109690         * tests/test-iconv.c: New file.
109692 2007-01-14  Bruno Haible  <bruno@clisp.org>
109694         * gnulib-tool (func_get_license): For test modules, use the license of
109695         the main module.
109697 2007-01-14  Bruno Haible  <bruno@clisp.org>
109699         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109700         if iconv is found to exist.
109702 2007-01-14  Bruno Haible  <bruno@clisp.org>
109704         * modules/c-ctype-tests: New file.
109705         * tests/test-c-ctype.c: New file.
109707 2007-01-14  Bruno Haible  <bruno@clisp.org>
109709         * modules/binary-io-tests: New file.
109710         * tests/test-binary-io.sh: New file.
109711         * tests/test-binary-io.c: New file.
109713 2007-01-14  Bruno Haible  <bruno@clisp.org>
109715         * modules/array-oset-tests: New file.
109716         * tests/test-array_oset.c: New file.
109718 2007-01-14  Bruno Haible  <bruno@clisp.org>
109720         * modules/array-list-tests: New file.
109721         * tests/test-array_list.c: New file.
109723 2007-01-14  Bruno Haible  <bruno@clisp.org>
109725         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109726         and make.
109727         Reported by Simon Josefsson in
109728         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109730 2007-01-14  Bruno Haible  <bruno@clisp.org>
109732         * modules/allocsa-tests: New file.
109733         * tests/test-allocsa.c: New file.
109735 2007-01-14  Bruno Haible  <bruno@clisp.org>
109737         * modules/fchdir (Depends-on): Add absolute-header.
109738         * modules/unistd (Depends-on): Likewise.
109740 2006-12-30  Bruno Haible  <bruno@clisp.org>
109742         * modules/fchdir: New file.
109743         * modules/unistd (Files): Add lib/unistd_.h.
109744         (Makefile.am): Generate unistd.h from unistd_.h.
109745         * lib/fchdir.c: New file.
109746         * lib/dirent_.h: New file.
109747         * lib/unistd_.h: New file.
109748         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109749         * m4/fchdir.m4: New file.
109750         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109751         (gl_HEADER_UNISTD): Invoke it.
109752         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109753         function.
109754         * lib/backupfile.c (opendir, closedir): Undefine.
109755         * lib/chown.c (open, close): Undefine.
109756         * lib/clean-temp.c (open, close): Undefine.
109757         * lib/copy-file.c (open, close): Undefine.
109758         * lib/execute.c (open, close): Undefine.
109759         * lib/fsusage.c (open, close): Undefine.
109760         * lib/gc-gnulib.c (open, close): Undefine.
109761         * lib/getcwd.c (opendir, closedir): Undefine.
109762         * lib/glob.c (opendir, closedir): Undefine.
109763         * lib/javacomp.c (open, close): Undefine.
109764         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109765         * lib/openat-proc.c (open, close): Undefine.
109766         * lib/pagealign_alloc.c (open, close): Undefine.
109767         * lib/pipe.c (open, close): Undefine.
109768         * lib/progreloc.c (open, close): Undefine.
109769         * lib/savedir.c (opendir, closedir): Undefine.
109770         * lib/utime.c (open, close): Undefine.
109771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109773 2007-01-10  Bruno Haible  <bruno@clisp.org>
109775         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109777 2007-01-12  Eric Blake  <ebb9@byu.net>
109779         Provide a robust <wchar.h>.  Further simplifications are now
109780         possible in other modules, but not included here.
109781         * modules/wchar: New module.
109782         * m4/wchar.m4: New file.
109783         * lib/wchar_.h: Likewise.
109784         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109785         of the new module.
109786         * MODULES.html.sh (Extended multibyte and wide character utilities):
109787         New section.
109789 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109791         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109792         to a reasonable default for memory allocation.
109793         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109794         file system that reports garbage st_size values for symlinks.
109795         Problem reported by Liyang Hu.
109797 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109799         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109800         Emacs .#* auto-save files).
109802 2007-01-11  Bruno Haible  <bruno@clisp.org>
109804         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109805         directory.
109807 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109809         Use @...@ consistently in lib/wctype_.h.
109810         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109811         on it being set to 1 or 0.
109812         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109813         go back to AC_SUBSTing it.
109814         * modules/wctype (Makefile.am): Undo previous change.
109816 2007-01-10  Eric Blake  <ebb9@byu.net>
109818         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109819         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109820         * modules/wctype (Makefile.am): Likewise.
109821         Reported by Chris McGuire.
109823 2007-01-10  Jim Meyering  <jim@meyering.net>
109825         fts.c: a small readability/maintainability improvement
109826         * lib/fts.c (fts_read): Make this code slightly more readable and
109827         maintainable by hoisting the "sp->fts_cur = p" assignments to
109828         immediately follow the statements that set P.  Derived from
109829         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109831 2007-01-10  Eric Blake  <ebb9@byu.net>
109833         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109834         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109836         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109837         Reported by Chris McGuire.
109839 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109841         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109842         in sed script.
109844 2007-01-09  Bruno Haible  <bruno@clisp.org>
109846         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109847         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109848         variables.
109849         (func_module): Use them.
109851 2007-01-09  Bruno Haible  <bruno@clisp.org>
109853         * modules/unistr/base: New file.
109854         * lib/unistr.h: New file.
109856         * modules/unistr/u8-to-u16: New file.
109857         * lib/unistr/u8-to-u16.c: New file.
109859         * modules/unistr/u8-to-u32: New file.
109860         * lib/unistr/u8-to-u32.c: New file.
109862         * modules/unistr/u16-to-u8: New file.
109863         * lib/unistr/u16-to-u8.c: New file.
109865         * modules/unistr/u16-to-u32: New file.
109866         * lib/unistr/u16-to-u32.c: New file.
109868         * modules/unistr/u32-to-u8: New file.
109869         * lib/unistr/u32-to-u8.c: New file.
109871         * modules/unistr/u32-to-u16: New file.
109872         * lib/unistr/u32-to-u16.c: New file.
109874         * modules/unistr/u8-check: New file.
109875         * modules/unistr/u16-check: New file.
109876         * modules/unistr/u32-check: New file.
109877         * lib/unistr/u8-check.c: New file.
109878         * lib/unistr/u16-check.c: New file.
109879         * lib/unistr/u32-check.c: New file.
109881         * modules/unistr/u8-chr: New file.
109882         * modules/unistr/u16-chr: New file.
109883         * modules/unistr/u32-chr: New file.
109884         * lib/unistr/u8-chr.c: New file.
109885         * lib/unistr/u16-chr.c: New file.
109886         * lib/unistr/u32-chr.c: New file.
109888         * modules/unistr/u8-cmp: New file.
109889         * modules/unistr/u16-cmp: New file.
109890         * modules/unistr/u32-cmp: New file.
109891         * lib/unistr/u8-cmp.c: New file.
109892         * lib/unistr/u16-cmp.c: New file.
109893         * lib/unistr/u32-cmp.c: New file.
109895         * modules/unistr/u8-cpy: New file.
109896         * modules/unistr/u16-cpy: New file.
109897         * modules/unistr/u32-cpy: New file.
109898         * lib/unistr/u8-cpy.c: New file.
109899         * lib/unistr/u16-cpy.c: New file.
109900         * lib/unistr/u32-cpy.c: New file.
109901         * lib/unistr/u-cpy.h: New file.
109903         * modules/unistr/u8-cpy-alloc: New file.
109904         * modules/unistr/u16-cpy-alloc: New file.
109905         * modules/unistr/u32-cpy-alloc: New file.
109906         * lib/unistr/u8-cpy-alloc.c: New file.
109907         * lib/unistr/u16-cpy-alloc.c: New file.
109908         * lib/unistr/u32-cpy-alloc.c: New file.
109909         * lib/unistr/u-cpy-alloc.h: New file.
109911         * modules/unistr/u8-endswith: New file.
109912         * modules/unistr/u16-endswith: New file.
109913         * modules/unistr/u32-endswith: New file.
109914         * lib/unistr/u8-endswith.c: New file.
109915         * lib/unistr/u16-endswith.c: New file.
109916         * lib/unistr/u32-endswith.c: New file.
109917         * lib/unistr/u-endswith.h: New file.
109919         * modules/unistr/u8-mblen: New file.
109920         * modules/unistr/u16-mblen: New file.
109921         * modules/unistr/u32-mblen: New file.
109922         * lib/unistr/u8-mblen.c: New file.
109923         * lib/unistr/u16-mblen.c: New file.
109924         * lib/unistr/u32-mblen.c: New file.
109926         * modules/unistr/u8-mbtouc: New file.
109927         * modules/unistr/u16-mbtouc: New file.
109928         * modules/unistr/u32-mbtouc: New file.
109929         * lib/unistr/u8-mbtouc.c: New file.
109930         * lib/unistr/u16-mbtouc.c: New file.
109931         * lib/unistr/u32-mbtouc.c: New file.
109933         * modules/unistr/u8-mbtouc-safe: New file.
109934         * modules/unistr/u16-mbtouc-safe: New file.
109935         * modules/unistr/u32-mbtouc-safe: New file.
109936         * lib/unistr/u8-mbtouc-safe.c: New file.
109937         * lib/unistr/u16-mbtouc-safe.c: New file.
109938         * lib/unistr/u32-mbtouc-safe.c: New file.
109940         * modules/unistr/u8-move: New file.
109941         * modules/unistr/u16-move: New file.
109942         * modules/unistr/u32-move: New file.
109943         * lib/unistr/u8-move.c: New file.
109944         * lib/unistr/u16-move.c: New file.
109945         * lib/unistr/u32-move.c: New file.
109946         * lib/unistr/u-move.h: New file.
109948         * modules/unistr/u8-next: New file.
109949         * modules/unistr/u16-next: New file.
109950         * modules/unistr/u32-next: New file.
109951         * lib/unistr/u8-next.c: New file.
109952         * lib/unistr/u16-next.c: New file.
109953         * lib/unistr/u32-next.c: New file.
109955         * modules/unistr/u8-prev: New file.
109956         * modules/unistr/u16-prev: New file.
109957         * modules/unistr/u32-prev: New file.
109958         * lib/unistr/u8-prev.c: New file.
109959         * lib/unistr/u16-prev.c: New file.
109960         * lib/unistr/u32-prev.c: New file.
109962         * modules/unistr/u8-set: New file.
109963         * modules/unistr/u16-set: New file.
109964         * modules/unistr/u32-set: New file.
109965         * lib/unistr/u8-set.c: New file.
109966         * lib/unistr/u16-set.c: New file.
109967         * lib/unistr/u32-set.c: New file.
109968         * lib/unistr/u-set.h: New file.
109970         * modules/unistr/u8-startswith: New file.
109971         * modules/unistr/u16-startswith: New file.
109972         * modules/unistr/u32-startswith: New file.
109973         * lib/unistr/u8-startswith.c: New file.
109974         * lib/unistr/u16-startswith.c: New file.
109975         * lib/unistr/u32-startswith.c: New file.
109976         * lib/unistr/u-startswith.h: New file.
109978         * modules/unistr/u8-stpcpy: New file.
109979         * modules/unistr/u16-stpcpy: New file.
109980         * modules/unistr/u32-stpcpy: New file.
109981         * lib/unistr/u8-stpcpy.c: New file.
109982         * lib/unistr/u16-stpcpy.c: New file.
109983         * lib/unistr/u32-stpcpy.c: New file.
109984         * lib/unistr/u-stpcpy.h: New file.
109986         * modules/unistr/u8-stpncpy: New file.
109987         * modules/unistr/u16-stpncpy: New file.
109988         * modules/unistr/u32-stpncpy: New file.
109989         * lib/unistr/u8-stpncpy.c: New file.
109990         * lib/unistr/u16-stpncpy.c: New file.
109991         * lib/unistr/u32-stpncpy.c: New file.
109992         * lib/unistr/u-stpncpy.h: New file.
109994         * modules/unistr/u8-strcat: New file.
109995         * modules/unistr/u16-strcat: New file.
109996         * modules/unistr/u32-strcat: New file.
109997         * lib/unistr/u8-strcat.c: New file.
109998         * lib/unistr/u16-strcat.c: New file.
109999         * lib/unistr/u32-strcat.c: New file.
110000         * lib/unistr/u-strcat.h: New file.
110002         * modules/unistr/u8-strchr: New file.
110003         * modules/unistr/u16-strchr: New file.
110004         * modules/unistr/u32-strchr: New file.
110005         * lib/unistr/u8-strchr.c: New file.
110006         * lib/unistr/u16-strchr.c: New file.
110007         * lib/unistr/u32-strchr.c: New file.
110009         * modules/unistr/u8-strcmp: New file.
110010         * modules/unistr/u16-strcmp: New file.
110011         * modules/unistr/u32-strcmp: New file.
110012         * lib/unistr/u8-strcmp.c: New file.
110013         * lib/unistr/u16-strcmp.c: New file.
110014         * lib/unistr/u32-strcmp.c: New file.
110016         * modules/unistr/u8-strcpy: New file.
110017         * modules/unistr/u16-strcpy: New file.
110018         * modules/unistr/u32-strcpy: New file.
110019         * lib/unistr/u8-strcpy.c: New file.
110020         * lib/unistr/u16-strcpy.c: New file.
110021         * lib/unistr/u32-strcpy.c: New file.
110022         * lib/unistr/u-strcpy.h: New file.
110024         * modules/unistr/u8-strcspn: New file.
110025         * modules/unistr/u16-strcspn: New file.
110026         * modules/unistr/u32-strcspn: New file.
110027         * lib/unistr/u8-strcspn.c: New file.
110028         * lib/unistr/u16-strcspn.c: New file.
110029         * lib/unistr/u32-strcspn.c: New file.
110030         * lib/unistr/u-strcspn.h: New file.
110032         * modules/unistr/u8-strdup: New file.
110033         * modules/unistr/u16-strdup: New file.
110034         * modules/unistr/u32-strdup: New file.
110035         * lib/unistr/u8-strdup.c: New file.
110036         * lib/unistr/u16-strdup.c: New file.
110037         * lib/unistr/u32-strdup.c: New file.
110038         * lib/unistr/u-strdup.h: New file.
110040         * modules/unistr/u8-strlen: New file.
110041         * modules/unistr/u16-strlen: New file.
110042         * modules/unistr/u32-strlen: New file.
110043         * lib/unistr/u8-strlen.c: New file.
110044         * lib/unistr/u16-strlen.c: New file.
110045         * lib/unistr/u32-strlen.c: New file.
110046         * lib/unistr/u-strlen.h: New file.
110048         * modules/unistr/u8-strmblen: New file.
110049         * modules/unistr/u16-strmblen: New file.
110050         * modules/unistr/u32-strmblen: New file.
110051         * lib/unistr/u8-strmblen.c: New file.
110052         * lib/unistr/u16-strmblen.c: New file.
110053         * lib/unistr/u32-strmblen.c: New file.
110055         * modules/unistr/u8-strmbtouc: New file.
110056         * modules/unistr/u16-strmbtouc: New file.
110057         * modules/unistr/u32-strmbtouc: New file.
110058         * lib/unistr/u8-strmbtouc.c: New file.
110059         * lib/unistr/u16-strmbtouc.c: New file.
110060         * lib/unistr/u32-strmbtouc.c: New file.
110062         * modules/unistr/u8-strncat: New file.
110063         * modules/unistr/u16-strncat: New file.
110064         * modules/unistr/u32-strncat: New file.
110065         * lib/unistr/u8-strncat.c: New file.
110066         * lib/unistr/u16-strncat.c: New file.
110067         * lib/unistr/u32-strncat.c: New file.
110068         * lib/unistr/u-strncat.h: New file.
110070         * modules/unistr/u8-strncmp: New file.
110071         * modules/unistr/u16-strncmp: New file.
110072         * modules/unistr/u32-strncmp: New file.
110073         * lib/unistr/u8-strncmp.c: New file.
110074         * lib/unistr/u16-strncmp.c: New file.
110075         * lib/unistr/u32-strncmp.c: New file.
110077         * modules/unistr/u8-strncpy: New file.
110078         * modules/unistr/u16-strncpy: New file.
110079         * modules/unistr/u32-strncpy: New file.
110080         * lib/unistr/u8-strncpy.c: New file.
110081         * lib/unistr/u16-strncpy.c: New file.
110082         * lib/unistr/u32-strncpy.c: New file.
110083         * lib/unistr/u-strncpy.h: New file.
110085         * modules/unistr/u8-strnlen: New file.
110086         * modules/unistr/u16-strnlen: New file.
110087         * modules/unistr/u32-strnlen: New file.
110088         * lib/unistr/u8-strnlen.c: New file.
110089         * lib/unistr/u16-strnlen.c: New file.
110090         * lib/unistr/u32-strnlen.c: New file.
110091         * lib/unistr/u-strnlen.h: New file.
110093         * modules/unistr/u8-strpbrk: New file.
110094         * modules/unistr/u16-strpbrk: New file.
110095         * modules/unistr/u32-strpbrk: New file.
110096         * lib/unistr/u8-strpbrk.c: New file.
110097         * lib/unistr/u16-strpbrk.c: New file.
110098         * lib/unistr/u32-strpbrk.c: New file.
110099         * lib/unistr/u-strpbrk.h: New file.
110101         * modules/unistr/u8-strrchr: New file.
110102         * modules/unistr/u16-strrchr: New file.
110103         * modules/unistr/u32-strrchr: New file.
110104         * lib/unistr/u8-strrchr.c: New file.
110105         * lib/unistr/u16-strrchr.c: New file.
110106         * lib/unistr/u32-strrchr.c: New file.
110108         * modules/unistr/u8-strspn: New file.
110109         * modules/unistr/u16-strspn: New file.
110110         * modules/unistr/u32-strspn: New file.
110111         * lib/unistr/u8-strspn.c: New file.
110112         * lib/unistr/u16-strspn.c: New file.
110113         * lib/unistr/u32-strspn.c: New file.
110114         * lib/unistr/u-strspn.h: New file.
110116         * modules/unistr/u8-strstr: New file.
110117         * modules/unistr/u16-strstr: New file.
110118         * modules/unistr/u32-strstr: New file.
110119         * lib/unistr/u8-strstr.c: New file.
110120         * lib/unistr/u16-strstr.c: New file.
110121         * lib/unistr/u32-strstr.c: New file.
110122         * lib/unistr/u-strstr.h: New file.
110124         * modules/unistr/u8-strtok: New file.
110125         * modules/unistr/u16-strtok: New file.
110126         * modules/unistr/u32-strtok: New file.
110127         * lib/unistr/u8-strtok.c: New file.
110128         * lib/unistr/u16-strtok.c: New file.
110129         * lib/unistr/u32-strtok.c: New file.
110130         * lib/unistr/u-strtok.h: New file.
110132         * modules/unistr/u8-uctomb: New file.
110133         * modules/unistr/u16-uctomb: New file.
110134         * modules/unistr/u32-uctomb: New file.
110135         * lib/unistr/u8-uctomb.c: New file.
110136         * lib/unistr/u16-uctomb.c: New file.
110137         * lib/unistr/u32-uctomb.c: New file.
110139         * MODULES.html.sh (Unicode string functions): Add the new modules.
110141 2007-01-08  Bruno Haible  <bruno@clisp.org>
110143         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110144         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110145         subdirectories.
110147 2007-01-08  Karl Berry  <karl@gnu.org>
110149         * doc/error.texi: mention that main() fns must set program_name
110150         when progname is used.
110152 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110154         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110155         WCTYPE_H is empty, for the benefit of builds from non-distclean
110156         directories.  Problem reported by Eric Blake in
110157         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110159 2007-01-08  Bruno Haible  <bruno@clisp.org>
110161         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110162         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110163         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110164         PROVIDE_CANONICALIZE_FILENAME_MODE.
110165         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110167 2007-01-08  Bruno Haible  <bruno@clisp.org>
110169         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110170         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110171         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110172         * lib/fts.c: Likewise.
110173         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110175 2006-12-25  Bruno Haible  <bruno@clisp.org>
110177         * modules/utf8-ucs4-safe: New file.
110178         * lib/utf8-ucs4-safe.h: New file.
110179         * lib/unistr/utf8-ucs4-safe.c: New file.
110181         * modules/utf16-ucs4-safe: New file.
110182         * lib/utf16-ucs4-safe.h: New file.
110183         * lib/unistr/utf16-ucs4-safe.c: New file.
110185         * MODULES.html.sh (Unicode string functions): Add the new modules.
110187 2007-01-08  Bruno Haible  <bruno@clisp.org>
110189         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110190         (Depends-on): Add unitypes.
110191         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110192         (u8_mbtouc_aux): Move out to separate file.
110193         (u8_mbtouc): Use ucs4_t, uint8_t types.
110194         * lib/unistr/utf8-ucs4.c: New file.
110196         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110197         (Depends-on): Add unitypes.
110198         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110199         (u16_mbtouc_aux): Move out to separate file.
110200         (u16_mbtouc): Use ucs4_t, uint16_t types.
110201         * lib/unistr/utf16-ucs4.c: New file.
110203         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110204         (Depends-on): Add unitypes.
110205         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110206         (u8_uctomb_aux): Move out to separate file.
110207         (u8_uctomb): Use ucs4_t, uint8_t types.
110208         * lib/unistr/ucs4-utf8.c: New file.
110210         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110211         (Depends-on): Add unitypes.
110212         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110213         (u16_uctomb_aux): Move out to separate file.
110214         (u16_uctomb): Use ucs4_t, uint16_t types.
110215         * lib/unistr/ucs4-utf16.c: New file.
110217 2006-12-25  Bruno Haible  <bruno@clisp.org>
110219         * modules/unitypes: New file.
110220         * lib/unitypes.h: New file.
110221         * MODULES.html.sh (func_all_modules): New section "Unicode string
110222         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110223         this section. Add unitypes.
110225 2007-01-08  Bruno Haible  <bruno@clisp.org>
110227         Avoid variable names that conflict with those from libtool.
110228         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110229         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110230         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110231         library_names_spec to acl_library_names_spec, hardcode_* to
110232         acl_hardcode_*.
110233         Reported by Ralf Wildenhues.
110235 2007-01-08  Bruno Haible  <bruno@clisp.org>
110237         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110238         definition.
110239         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110240         definition.
110241         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110242         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110243         definition.
110244         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110245         definition.
110246         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110247         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110248         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110249         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110250         definition.
110251         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110252         definition.
110253         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110254         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110255         GC_USE_<algorithm>.
110256         * lib/gc-libgcrypt.c: Likewise.
110257         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110258         * modules/gc-arctwo (configure.ac): Likewise.
110259         * modules/gc-des (configure.ac): Likewise.
110260         * modules/gc-hmac-md5 (configure.ac): Likewise.
110261         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110262         * modules/gc-md2 (configure.ac): Likewise.
110263         * modules/gc-md4 (configure.ac): Likewise.
110264         * modules/gc-md5 (configure.ac): Likewise.
110265         * modules/gc-random (configure.ac): Likewise.
110266         * modules/gc-rijndael (configure.ac): Likewise.
110267         * modules/gc-sha1 (configure.ac): Likewise.
110269 2007-01-08  Bruno Haible  <bruno@clisp.org>
110271         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110272         macro definition.
110273         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110274         definition.
110275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110276         definition.
110277         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110278         * modules/fcntl-safer (configure.ac): Likewise.
110279         * modules/fopen-safer (configure.ac): Likewise.
110280         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110281         GNULIB_FWRITEERROR macro definition.
110283 2007-01-08  Bruno Haible  <bruno@clisp.org>
110285         * m4/gnulib-common.m4: New file.
110286         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110287         (func_get_filelist): Add m4/gnulib-common.m4.
110289 2007-01-08  Bruno Haible  <bruno@clisp.org>
110291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110292         command.
110294 2007-01-08  Jim Meyering  <jim@meyering.net>
110296         Use a more robust test for a "can't happen" condition.
110297         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110298         narrowed the st_size value.  Presuming the "can't happen" condition
110299         is true, that narrowing could conceivably convert an invalid st_size
110300         value into a valid one.  Instead, use a change based on Matthew
110301         Woehlke's original patch.
110303         Slight readability improvement: use an assert-like macro
110304         in place of literal "abort ()" uses.
110305         * lib/fts.c (fts_assert): Define.
110306         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110307         Use this macro instead of a bare 'abort'.
110309 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110311         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110312         simply work around them.
110313         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110314         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110315         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110316         declaring.
110317         Don't bother to define as macros, since the standard doesn't require it.
110318         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110319         longer worry about IRIX 5.3.
110320         (HAVE_WCTYPE_CTMP_BUG): Remove.
110322 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110324         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110325         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110326         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110327         Problems reported by Georg Schwarz for IRIX 5.3.
110329         * gnulib-tool (autoconf_minversion): Take the maximum version number
110330         found, not the minimum.  Problem reported by James Youngman.
110332 2007-01-03  Karl Berry  <karl@gnu.org>
110334         * doc/error.texi: new file, explaining interaction with progname.
110335         * doc/gnulib.texi: include it.  Update copyright.
110337 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110339         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110340         AC_CANONICAL_HOST, to improve autobuild outputs.
110342 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110343             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110345         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110346         sockets, server sockets, and other file descriptors.  Count errors
110347         to compute the return value.  Reorder the code a bit to be easier
110348         to follow.  Don't set event bits that were not requested (except
110349         POLLERR and POLLHUP).
110351 2007-01-01  Bruno Haible  <bruno@clisp.org>
110353         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110355 2007-01-03  Jim Meyering  <jim@meyering.net>
110357         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110359 2007-01-02  Bruno Haible  <bruno@clisp.org>
110361         * modules/settime (Include): Require timespec.h.
110362         * modules/nanosleep (Include): Likewise.
110364 2007-01-01  Bruno Haible  <bruno@clisp.org>
110366         * gnulib-tool (func_emit_copyright_notice): Bump year.
110367         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110369 2007-01-01  Bruno Haible  <bruno@clisp.org>
110371         Improve support for OpenBSD.
110372         * build-aux/config.rpath (libname_spec): Export.
110373         (library_names_spec): New variable. Export.
110374         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110375         library_names_spec from the config.rpath output. Locate shared library
110376         through the name pattern in library_names_spec.
110378 2007-01-01  Eric Blake  <ebb9@byu.net>
110380         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110382 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110384         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110385         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110386         assume the C locale, and avoid an "eval" that could cause trouble.
110387         Problem with SORT reported by Bob Proulx.
110389         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110390         Define.  Trivial patch from Henning Nielsen Lund, originally
110391         sent to bug-grep@gnu.org today.
110393 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110395         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110396         struct stat.  Problem reported by Henning Nielsen Lund.
110397         * lib/acl.c: Include acl.h first, to check interface.  Don't
110398         bother to include sys/types.h and sys/stat.h again.
110400 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110402         Import the following change from libc; problem reported by
110403         Sven Verdoolaege.
110405         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110407         [BZ #1373]
110408         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110410 2006-12-28  Jim Meyering  <jim@meyering.net>
110412         * build-aux/announce-gen: Do not assume that the package
110413         builds any of tar.gz, tar.bz2, and .xdelta files.
110414         Suggestion from Simon Josefsson.
110416 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110418         * modules/announce-gen: New file.
110420 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110422         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110423         handles its gotchas now.
110424         * lib/mbswidth.c: Likewise.
110425         * lib/wcwidth.h: Likewise.
110426         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110427         and iswcntrl; the wctype module does this stuff now.
110428         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110430         * modules/mbchar (Depends-on): Add wctype.
110431         * modules/mbswidth (Depends-on): Likewise.
110432         * modules/wcwidth (Depends-on): Likewise.
110434 2006-12-27  Eric Blake  <ebb9@byu.net>
110436         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110437         module uses more than what <wctype.h> is required to provide.
110439 2006-12-26  Eric Blake  <ebb9@byu.net>
110441         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110443 2006-12-26  Eric Blake  <ebb9@byu.net>
110445         * modules/absolute-header: New module.
110446         * modules/fcntl (Depends-on): Depend on it.
110447         * modules/inttypes (Depends-on): Likewise.
110448         * modules/stdint (Depends-on): Likewise.
110449         * modules/sys_stat (Depends-on): Likewise.
110450         * modules/wctype (Depends-on): Likewise.
110451         * MODULES.html.sh (Support for building libraries and
110452         executables): Document it.
110454 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110456         * gnulib-tool (SED): Remove, undoing previous change.
110457         The problem was that it broke coreutils on Solaris, because
110458         "sed --posix" leaked into a makefile.
110459         (sed): New alias, if 'alias' and GNU sed.
110461 2006-12-24  Jim Meyering  <jim@meyering.net>
110463         Work around an fchownat bug in glibc-2.4:
110464         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110465         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110466         in spite of the -P option.
110467         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110468         New macros.
110469         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110470         * modules/openat (Files): Add lib/fchownat.c.
110471         * lib/openat.c (fchownat): Don't define here.  Move to...
110472         * lib/fchownat.c: ...this new file.
110474 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110476         Fix bug reported by Bruno Haible in
110477         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110478         where quotearg.c didn't compile on Mac OS X 10.2 because it
110479         lacks <wchar.h> and wint_t.
110480         * lib/wctype_.h (__wctype_wint_t): New type.
110481         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110482         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110483         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110484         Arg is now of type __wctype_wint_t, not wint_t.
110485         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110486         substitute HAVE_WINT_T.
110487         * modules/wctype (Files): Add m4/wint_t.m4.
110488         (wctype.h): Substitute HAVE_WINT_T.
110490 2006-12-23  Bruno Haible  <bruno@clisp.org>
110492         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110494 2006-12-23  Bruno Haible  <bruno@clisp.org>
110496         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110497         S_ISLNK.
110498         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110499         mingw.
110501 2006-12-22  Bruno Haible  <bruno@clisp.org>
110503         * lib/copy-file.c: Include acl.h.
110504         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110505         Close the file descriptors only after being done with copy_acl.
110506         * modules/copy-file (Depends-on): Add acl.
110508 2006-12-22  Bruno Haible  <bruno@clisp.org>
110510         * gnulib-tool (SED): New variable.
110511         Use $SED instead of sed everywhere.
110513 2006-12-22  Bruno Haible  <bruno@clisp.org>
110515         * modules/no-c++: New file.
110516         * m4/no-c++.m4: New file.
110517         * MODULES.html.sh (Support for building libraries and executables):
110518         Add no-c++.
110520 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110522         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110523         Include <limits.h>, and use its INT_MAX to rewrite the
110524         j loop so that it does not overflow 'int'.  Problem reported by
110525         Ralf Wildenhues in
110526         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110527         Play it safe by shifting left by 1 rather than multiplying by 2,
110528         as GCC is less likely to optimize this away when the value
110529         is signed (when it assumes overflow leads to undefined behavior).
110530         Also, don't assume time_t uses two's complement.
110532 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110534         * MODULES.html.sh: New module wctype.
110535         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110536         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110537         <wctype.h>, since the new wctype module should fix this.
110538         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110539         the wctype module should arrange for it.
110540         * lib/regex_internal.h: Likewise.
110541         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110542         since the wctype module should handle this now.
110543         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110544         * modules/fnmatch (Depends-on): Add wctype.
110545         * modules/quotearg (Depends-on): Likewise.
110546         * modules/regex (Depends-on): Likewise.
110548 2006-12-19  Bruno Haible  <bruno@clisp.org>
110550         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110551         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110553 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110555         * modules/savewd (Depends-on): Fix dependency on fcntl.
110557 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110559         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110560         conforms to C99, rather than relying on the user's environment
110561         setting of STDINT_H.
110563 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110564         and Eric Blake  <ebb9@byu.net>
110566         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110567         This is more consistent with the other defines here.
110568         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110569         Port to z/OS.  Problem reported by Paul Gilmartin.
110570         Change local vars to use gl_ prefix rather than ac_.
110571         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110572         with other defines.
110573         * modules/double-slash-root: New module.
110574         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110575         (Depends-on): Add double-slash-root.
110576         * MODULES.html.sh (File system functions): Mention new module.
110578 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110580         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110581         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110582         This is for the benefit of gzip, which doesn't do i18n.
110584 2006-12-12  Jim Meyering  <jim@meyering.net>
110586         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110587         Reported by Andreas Schwab <schwab@suse.de>.
110589 2006-12-12  Bruno Haible  <bruno@clisp.org>
110591         Merge these changes.
110592         2006-09-05  Bruno Haible  <bruno@clisp.org>
110593         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110594         iconv_alloc succeeded.
110595         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110596         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110597         test for " && dest " at the end - dest is always != NULL there. Call
110598         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110599         with 2xNULL arguments, also to flush the state storage. Handle the
110600         IRIX iconv behaviour. Realloc the final result, to throw away unused
110601         memory.
110603 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110605         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110606         and fchmodat unconditionally, since glibc 2.4 has them.
110607         Problem reported by Arkadiusz Miskiewicz.
110609 2006-12-10  Bruno Haible  <bruno@clisp.org>
110611         * gnulib-tool (func_import): Show the include files only for those
110612         modules that are copied and specified.
110613         Reported by Karl Berry.
110615 2006-12-08  Jim Meyering  <jim@meyering.net>
110617         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110618         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110620         * build-aux/announce-gen: Add two new options, both optional:
110621         --bootstrap-tools=TOOL_LIST
110622               a comma-separated list of tools, e.g.,
110623               autoconf,automake,bison,gnulib
110624         --gnulib-snapshot-date=DATE
110625               if gnulib is in the bootstrap tool list,
110626               then report this as the snapshot date.
110627               If not specified, use the current date/time.
110628               If you specify a date here, be sure it's UTC.
110630 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110632         * tests/test-argp-2.sh: Fix test to match actual output.
110633         (func_compare): Fix sed script to be portable.
110635 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110637         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110638         workaround for this case.  It is not autoconfigured now; offhand
110639         it's hard to see how to autoconfigure it.
110641 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110643         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110644         a directory that is about to be chowned.  Such a directory's
110645         initial file permissions should permit the owner only and this
110646         should not be changed until after the chown, since the group and
110647         other bits would be incorrect if they granted permission before
110648         the chown.
110650         Fix porting problem for iswctype reported by Georg Schwarz in:
110651         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110652         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110653         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110655         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110657 2006-12-03  Jim Meyering  <jim@meyering.net>
110659         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110660         p->fts_statp may not yet be defined.
110661         (fts_read): Instead, set it in the caller, once p->fts_statp is
110662         sure to be defined, and corresponds to a top-level directory.
110663         This bug made du -x fail.  Here's the coreutils test case:
110664         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110665         Reported by Mike Frysinger.
110667 2006-12-01  Jim Meyering  <jim@meyering.net>
110669         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110670         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110671         Reported by Simon Josefsson.
110673 2006-11-30  Jim Meyering  <jim@meyering.net>
110675         * m4/warning.m4: Use the all-permissive copyright notice
110676         recommended by RMS (rather than LGPL).
110677         * m4/vararrays.m4: Likewise.
110678         * m4/flexmember.m4: Likewise.
110680 2006-11-29  Bruno Haible  <bruno@clisp.org>
110682         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110683         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110684         using +=.
110685         Reported by Simon Josefsson <simon@josefsson.org>.
110687 2006-11-28  James Youngman  <jay@gnu.org>
110689         * README: Advise users that they might find the bug-gnulib@gnu.org
110690         and autotools-announce@gnu.org mailing lists useful.
110692 2006-11-28  Bruno Haible  <bruno@clisp.org>
110694         * m4/ptrdiff_max.m4: Remove file.
110696 2006-11-21  Bruno Haible  <bruno@clisp.org>
110698         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110699         _AC_COMPUTE_INT.
110700         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110701         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110702         _AC_COMPUTE_INT.
110703         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110704         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110705         _AC_COMPUTE_INT.
110706         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110708 2006-11-28  Jim Meyering  <jim@meyering.net>
110710         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110711         warning from "gcc -Wshadow" about shadowing the builtin.
110713 2006-11-27  Bruno Haible  <bruno@clisp.org>
110715         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110716         _AC_COMPUTE_INT.
110717         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110719 2006-11-27  Bruno Haible  <bruno@clisp.org>
110720             Paul Eggert  <eggert@cs.ucla.edu>
110722         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110724 2006-11-26  Bruno Haible  <bruno@clisp.org>
110726         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110727         noinst_LTLIBRARIES.
110729 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110730             Bruno Haible  <bruno@clisp.org>
110732         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110733         if compiling with "gcc -ansi".
110735 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110737         Fix some incompatibilities with gcc -ansi -pedantic.
110738         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110739         if compiling pedantically with GCC, unless it's C99 or later.
110740         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110741         it mishandles gcc -ansi -pedantic as well.
110742         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110743         if gcc -pedantic.
110744         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110745         initializers for struct if -pedantic, unless it's C99 or later.
110747 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110749         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110750         Don't close an fd more than once. Identical atimes indicate
110751         success, not failure.
110753 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110755         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110757 2006-11-23  Jim Meyering  <jim@meyering.net>
110759         * build-aux/announce-gen: New file.  From coreutils.
110761 2006-11-22  Jim Meyering  <jim@meyering.net>
110763         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110764         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110765         (fts_read): Use a temporary to narrow the overused st_size member
110766         before using it in a switch statement.  Reported by Matthew Woehlke.
110768         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110769         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110771 2006-11-20  Bruno Haible  <bruno@clisp.org>
110773         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110774         changequote instead of pairs of brackets.
110775         Reported by Andreas Schwab <schwab@suse.de>.
110777 2006-11-21  Jim Meyering  <jim@meyering.net>
110779         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110780         so as to remain compatible with older compilers.
110781         Patch from Michael Deutschmann.
110783 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110785         * MODULES.html.sh (File system functions): Add openat.
110787         * lib/openat.h (rpl_fstatat): New macro, if
110788         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110789         (fstatat): Define to rpl_fstatat under the same conditions,
110790         unless COMPILING_FSTATAT.
110791         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110792         seems to have the bug.
110793         * lib/fstatat.c: New file.
110794         * modules/openat (Files): Add it.
110796 2006-11-20  Bruno Haible  <bruno@clisp.org>
110798         * Makefile: New file.
110800 2006-11-20  Jim Meyering  <jim@meyering.net>
110802         The beginnings of syntax-related checks for gnulib.
110803         * lib/Makefile: New file.
110804         * lib/t-idcache: New script.  Ensure that the two halves of
110805         idcache.c stay in sync.
110807         * lib/idcache.c: Adjust comments in user- and group- portions to
110808         be more accurate, and to be consistent with one another.
110810 2006-11-20  Jim Meyering  <jim@meyering.net>
110812         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110813         continue using the flexible array member (thus, this module performs
110814         half as many malloc calls), with the addition that...
110815         (getgroup, getuser): Consistently record a non-match via an empty
110816         "name" string, and map an empty string match to a NULL return value.
110817         * modules/idcache (Depends-on): Re-add flexmember.
110819         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110820         (getuidbyname, getgroup, getgidbyname): Likewise.
110822         Use cleaner syntax: NULL rather than 0.
110823         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110825 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110827         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110828         It mishandled the case where the group was missing.
110829         Problem reported by Greg Schafer.
110830         * modules/idcache: Likewise.
110832 2006-11-18  Jim Meyering  <jim@meyering.net>
110834         * check-module (%exempt_header): Add exception for some
110835         conditionally-included headers.
110837         * modules/i-ring (Depends-on): Add verify.
110838         (License): Change to LGPL.
110840 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110842         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110843         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110844         and inttostr.h.  Use snprintf rather than uinttostr, so that
110845         LGPLed code doesn't depend on GPLed.
110847 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110849         * modules/inline (License): Change from GPL to LGPL.
110851 2006-11-17  Jim Meyering  <jim@meyering.net>
110853         * modules/d-type (License): Switch to LGPL.
110855 2006-11-15  Bruno Haible  <bruno@clisp.org>
110857         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110859 2006-11-15  Eric Blake  <ebb9@byu.net>
110861         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110862         the module dependency.
110864 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110865             Bruno Haible  <bruno@clisp.org>
110867         * gnulib-tool (func_create_testdir): Add license consistency check.
110869 2006-11-15  Eric Blake  <ebb9@byu.net>
110871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110872         random "(cached)" in configure output.
110874 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110876         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110877         test for conforming inttypes.h is both announced and cached.
110879         * MODULES.html.sh (seen_modules, seen_files): New variables.
110880         (func_module): Rewrite to use a few less gnulib-tool and sed
110881         invocations.  Avoid a couple of quadratic algorithms for ...
110882         (missed_modules, missed_files): ... these, with ...
110883         (func_append, func_tmpdir): ... these new functions, from
110884         gnulib-tool.  Analogously, install traps for cleanup.
110886         * tests/test-gc.c (main): Remove unused variables.
110887         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110889 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110891         * modules/inttostr (License): Change to LGPL.
110893 2006-11-14  Eric Blake  <ebb9@byu.net>
110895         * modules/tempname (License): Change to LGPL.
110897 2006-11-14  Eric Blake  <ebb9@byu.net>
110899         * doc/functions.texi (Function Portability): *printf functions on
110900         Cygwin now understand all POSIX size specifiers.
110902 2006-11-14  Bruno Haible  <bruno@clisp.org>
110904         * modules/c-ctype (License): Change to LGPL.
110906 2006-11-12  Bruno Haible  <bruno@clisp.org>
110908         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110909         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110910         for GNOME libraries, for which the include files are installed in
110911         subdirectories of $prefix/include.
110913 2006-11-12  Bruno Haible  <bruno@clisp.org>
110915         * m4/lib-link.m4: Require at least autoconf-2.54.
110916         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110917         name to underscores for the --with option.
110919 2006-11-13  Bruno Haible  <bruno@clisp.org>
110921         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110922         the tests directory.
110923         Reported by Ralf Wildenhues.
110925 2006-11-13  Bruno Haible  <bruno@clisp.org>
110927         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110928         (func_emit_initmacro_end): Undo the override here.
110929         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110930         Works around the famous automake error in coreutils.
110932 2006-11-13  Eric Blake  <ebb9@byu.net>
110934         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110935         element, not its node.
110937 2006-11-12  Bruno Haible  <bruno@clisp.org>
110939         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110940         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110942 2006-11-12  Bruno Haible  <bruno@clisp.org>
110944         * gnulib-tool: New option --local-symlink.
110945         (func_usage): Document it.
110946         (lsymbolic): New variable.
110947         (func_import, func_create_testdir): If --symlink was not specified,
110948         test whether --local-symlink was specified and the file comes from
110949         the local_gnulib_dir.
110951 2006-11-12  Bruno Haible  <bruno@clisp.org>
110953         * gnulib-tool (func_ln): New function.
110954         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110956 2006-11-12  Bruno Haible  <bruno@clisp.org>
110958         Finish support for source files in subdirectories.
110959         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110960         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110961         AUTOMAKE_OPTIONS.
110962         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110964 2006-11-12  Bruno Haible  <bruno@clisp.org>
110966         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110967         EXTRA_lib_SOURCES augmentation.
110968         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110970 2006-11-12  Jim Meyering  <jim@meyering.net>
110972         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110973         file descriptors.  This also averts a failure on systems with
110974         native openat support when a traversed directory lacks "x" access.
110975         * lib/fts_.h: Include "i-ring.h"
110976         (struct FTS) [fts_fd_ring]: New member.
110977         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110978         (FCHDIR): Add parentheses.
110979         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110980         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110981         When descending, rather than simply closing the previous
110982         fts_cwd_fd value, push that file descriptor onto the ring.
110983         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110984         (fts_open): Initialize the new fd_ring member.
110985         (fts_close): Clear the ring.
110986         (fts_safe_changedir): When possible, use our new fd_ring to skip
110987         the diropen and fstat and dev/ino comparison that would normally
110988         accompany a virtual `chdir ("..")'.
110990         * modules/fts (Depends-on): Add i-ring.
110991         * modules/i-ring: New module.
110992         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110993         * m4/i-ring.m4: New file.
110995 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110997         * gnulib-tool (func_create_testdir): Fix replacement of
110998         `build-aux' in configure.ac.  Run autotools in gltests
110999         subdirectory.
111000         (func_create_testdir, func_create_megatestdir, test): There is
111001         no need for '--force' in most autotool invocations in a new
111002         tree.  Actually fail the whole test if any of the tools, or the
111003         configure or make stages fail.
111005         Sync from Automake.
111006         * build-aux/gnupload: Revert last change.  Add pointer to upload
111007         instructions of the GNU Maintenance Instructions.
111008         Suggestion by Karl Berry.
111010 2006-11-10  Jim Meyering  <jim@meyering.net>
111012         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111014 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111016         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111017         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111018         (bind_textdomain_codeset) [! ENABLE_NLS]:
111019         Evaluate all the arguments.  That way, callers get compatible behavior
111020         if the arguments have side effects.  Also, it avoids some GCC
111021         diagnostics in some cases; Joel E. Denny reported problems when Bison
111022         was configured with --enable-gcc-warnigs.
111024 2006-11-10  Jim Meyering  <jim@meyering.net>
111026         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111027         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111028         account.
111030 2006-11-10  Jim Meyering  <jim@meyering.net>
111032         * modules/inline: New file/module.
111033         * modules/xalloc (Files): Remove m4/inline.m4.
111034         (Depends-on): Add inline, instead.
111035         * modules/oset: Likewise.
111036         * modules/list: Likewise.
111038 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111040         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111041         Problem reported by Matthew Woehlke.
111043 2006-11-09  Bruno Haible  <bruno@clisp.org>
111045         * lib/tempname.c (gen_tempname): Remove variant that invokes
111046         __gen_tempname.
111047         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111048         __gen_tempname.
111050 2006-11-08  Bruno Haible  <bruno@clisp.org>
111052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111053         to 'yes' instead of 'cross-compiling'.
111055 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111057         * lib/quotearg.h (quotearg_free): New decl.
111058         * lib/quotearg.c (quotearg_free): New function.
111059         (slot0, nslots, slotvec0, slotvec):
111060         Now file-scope so that quotearg_free can get at them.
111062 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111064         Sync from Automake.
111065         * build-aux/gnupload: Add missing 'gnu' to example URL.
111066         Report by Karl Berry.
111068 2006-11-08  Bruno Haible  <bruno@clisp.org>
111070         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111071         Suggested by Paul Eggert.
111073 2006-11-08  Jim Meyering  <jim@meyering.net>
111075         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111076         It's already included if !_LIBC.
111077         (fts_safe_changedir): Add a comment.
111079 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111082         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111083         Matthew Woehlke.
111085         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111086         definitions up, to avoid colliding with change below.
111087         (static_inline) [HAVE_INLINE]: New macro.
111088         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111089         Provide extern decls when !HAVE_INLINE.  Do not define unless
111090         static_inline is defined, either by us or by xmalloc.c.  Use
111091         static_inline rather than static inline.
111092         (XCALLOC): Optimize sizeof(T) = 1 case.
111093         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111095 2006-11-07  Bruno Haible  <bruno@clisp.org>
111097         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111098         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111099         AC_C_INLINE.
111100         * modules/xalloc (Files): Add m4/inline.m4.
111102 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111104         * README: Fix typo.
111105         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111106         (Miscellanous Notes): ...from this.
111108 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111110         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111111         Mention that offsetof should be used instead of sizeof.
111112         From Bruno Haible.
111114 2006-11-07  Bruno Haible  <bruno@clisp.org>
111116         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111118 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111120         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111121         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111122         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111123         (gl_tree_add_before, gl_tree_add_after):
111124         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111125         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111126         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111127         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111128         (gl_linked_add_after, gl_linked_add_at): Likewise.
111129         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111130         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111131         (gl_tree_add_before, gl_tree_add_after): Likewise.
111132         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111133         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111134         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111136 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111138         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111140 2006-11-06  Bruno Haible  <bruno@clisp.org>
111142         * m4/inline.m4: New file.
111143         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111144         * modules/list (Files): Add m4/inline.m4.
111145         * modules/oset (Files): Likewise.
111147 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111149         * lib/idcache.c: Include <stddef.h>, for offsetof.
111150         (struct userid.name): Change from char * to a flexible array member.
111151         All uses changed.
111152         * modules/idcache (Depends-on): Add flexmember.
111154         * MODULES.html.sh (Core language properties): New module flexmember.
111155         * modules/flexmember, m4/flexmember.m4: New files.
111157         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111158         inline functions that are identical with the old xnmalloc_inline,
111159         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111160         that we can avoid some unnecessary integer multiplications and
111161         divisions in the common case where the element size is known at
111162         compile time.
111163         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111164         needed.
111165         (xnboundedmalloc): Remove.
111166         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111167         arguments, for consistency with rest of this header.
111168         (xcharalloc): Rewrite using XNMALLOC.
111169         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111170         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111171         versions have been moved to lib/xalloc.h and renamed to be the
111172         non-*_inline versions.
111173         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111174         and xnrealloc functions, since those functions are now inline and
111175         now call us.
111176         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111177         renaming described above.
111178         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111179         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111180         captures the dependency in AC_C_INLINE.
111182         New module canonicalize-lgpl, proposed by Charles Wilson in
111183         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111184         with a few small changes afterwards.
111185         * MODULES.html.sh (File system functions): New module
111186         canonicalize-lgpl.
111187         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111188         and canonicalize_file_name.
111189         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111190         * modules/canonicalize-lgpl: New files.
111192 2006-11-05  Bruno Haible  <bruno@clisp.org>
111194         * gnulib-tool (func_import, func_create_testdir): Create directories
111195         also for files in subdirectories of lib/.
111197 2006-11-05  Bruno Haible  <bruno@clisp.org>
111199         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111200         ANSI C compliant.
111202 2006-11-03  Bruno Haible  <bruno@clisp.org>
111204         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111205         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111206         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111207         (xnboundedmalloc): New inline function.
111208         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111209         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111210         xmalloc.
111211         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111212         xmalloc.
111213         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111214         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111215         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111216         xmalloc.
111217         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111218         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111219         xmalloc.
111220         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111221         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111222         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111223         xmalloc.
111224         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111225         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111226         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111227         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111228         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111229         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111230         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111232 2006-11-03  Bruno Haible  <bruno@clisp.org>
111234         * lib/c-ctype.h [C++]: Define functions without name mangling.
111235         * lib/fwriteerror.h [C++]: Likewise.
111236         * lib/gcd.h [C++]: Likewise.
111237         * lib/linebreak.h [C++]: Likewise.
111239 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111241         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111242         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111243         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111244         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111245         Check for functions and headers just once.
111246         Check for declaration of canonicalize_file_name.
111247         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111249 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111251         * gnulib-tool (func_import): Fix typo in actioncmd.
111253 2006-11-02  Bruno Haible  <bruno@clisp.org>
111255         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111256         newline sequence in the Makefile.am snippet as a space, like "make"
111257         does.
111258         Reported by Roger Persson <perrog@gmail.com>.
111260 2006-11-01  Bruno Haible  <bruno@clisp.org>
111262         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111263         already declared in <string.h>.
111264         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111266 2006-11-01  Bruno Haible  <bruno@clisp.org>
111268         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111269         * lib/strcase.h: Include <string.h>.
111270         (strcasecmp): Define to rpl_strcasecmp here.
111272 2006-11-01  Bruno Haible  <bruno@clisp.org>
111274         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111276 2006-11-01  Eric Blake  <ebb9@byu.net>
111278         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111282 2006-10-29  Bruno Haible  <bruno@clisp.org>
111284         Make it compile in C++ mode.
111285         * lib/full-write.c (full_rw): Add a cast.
111287 2006-11-01  Bruno Haible  <bruno@clisp.org>
111289         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111290         be POSIX compliant.
111291         Reported by Roger Persson <perrog@gmail.com>.
111293 2006-11-01  Eric Blake  <ebb9@byu.net>
111295         * lib/getopt_.h: Fix comments.
111297 2006-10-31  Eric Blake  <ebb9@byu.net>
111299         * modules/tmpdir (Depends-on): Add sys_stat.
111300         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111301         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111302         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111303         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111304         tempname.
111306 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111308         Avoid some C++ diagnostics reported by Bruno Haible.
111309         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111310         xmalloc.
111311         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111312         (struct slotvec): Move to top level.
111313         (quotearg_n_options): Rewrite to avoid xmalloc.
111314         * lib/xalloc.h (xcharalloc): New function.
111315         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111316         [defined __cplusplus]: Add function template that provides result
111317         type propagation.  This part of the change is from Bruno Haible.
111319 2006-10-29  Bruno Haible  <bruno@clisp.org>
111321         Make it compile in C++ mode.
111322         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111323         * lib/strnlen1.c (strnlen1): Cast memchr result.
111324         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111325         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111326         (create_temp_dir): Rename local variable 'template'.
111327         (compile_csharp_using_sscli): Add cast.
111328         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111329         * lib/findprog.c (find_in_path): Likewise.
111330         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111331         * lib/wait-process.c (register_slave_subprocess): Likewise.
111333 2006-10-22  Bruno Haible  <bruno@clisp.org>
111335         * modules/tsearch: New file.
111336         * lib/tsearch.h: New file.
111337         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111338         * m4/tsearch.m4: New file.
111339         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111341 2006-10-29  Eric Blake  <ebb9@byu.net>
111343         * lib/arcfour.c: Assume config.h.
111344         * lib/arctwo.c: Likewise.
111345         * lib/base64.c: Likewise.
111346         * lib/check-version.c: Likewise.
111347         * lib/crc.c: Likewise.
111348         * lib/des.c: Likewise.
111349         * lib/gc-gnulib.c: Likewise.
111350         * lib/gc-libgcrypt.c: Likewise.
111351         * lib/gc-pbkdf2-sha1.c: Likewise.
111352         * lib/getaddrinfo.c: Likewise.
111353         * lib/getdelim.c: Likewise.
111354         * lib/getline.c: Likewise.
111355         * lib/hmac-md5.c: Likewise.
111356         * lib/hmac-sha1.c: Likewise.
111357         * lib/iconvme.c: Likewise.
111358         * lib/md2.c: Likewise.
111359         * lib/md4.c: Likewise.
111360         * lib/memxor.c: Likewise.
111361         * lib/read-file.c: Likewise.
111362         * lib/readline.c: Likewise.
111363         * lib/rijndael-alg-fst.c: Likewise.
111364         * lib/rijndael-api-fst.c: Likewise.
111365         * lib/xgetdomainname.c: Likewise.
111367 2006-10-28  Eric Blake  <ebb9@byu.net>
111369         * lib/xstrndup.c: Assume config.h.
111371 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111373         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111374         stat-macros.h is now for our own macros, whereas stat_h is for
111375         macros in the <sys/stat.h> name space.
111376         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111377         (STAT_MACROS_H): Remove.
111378         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111379         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111380         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111381         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111382         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111383         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111384         Move these macros to ...
111385         * lib/stat_.h: here.  Don't include stat-macros.h.
111386         * lib/canonicalize.c: Don't include stat-macros.h.
111387         * lib/chown.c: Likewise.
111388         * lib/euidaccess.c: Likewise.
111389         * lib/file-type.c: Likewise.
111390         * lib/filemode.c: Likewise.
111391         * lib/glob.c: Likewise.
111392         * lib/isapipe.c: Likewise.
111393         * lib/lchown.c: Likewise.
111394         * lib/lstat.c: Likewise.
111395         * lib/mkdir-p.c: Likewise.
111396         * lib/rmdir.c: Likewise.
111397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111398         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111399         unless mkdir isn't declared, to speed up 'configure'.
111400         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111401         would define all the S_* symbols.
111402         * modules/canonicalize (Depends-on):
111403         Depend on sys_stat, not stat-macros.
111404         * modules/chown: Likewise.
111405         * modules/euidaccess: Likewise.
111406         * modules/filemode: Likewise.
111407         * modules/file-type: Likewise.
111408         * modules/glob: Likewise.
111409         * modules/isapipe: Likewise.
111410         * modules/lchown: Likewise.
111411         * modules/lstat: Likewise.
111412         * modules/mkancesdirs: Likewise.
111413         * modules/rmdir: Likewise.
111414         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111415         * modules/modechange: Likewise.
111416         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111417         (configure.ac): Remove gl_STAT_MACROS.
111418         * modules/sys_stat (Depends-on): Remove stat-macros.
111420 2006-10-27  Bruno Haible  <bruno@clisp.org>
111422         * m4/signed.m4: Remove file.
111423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111424         invocation.
111425         * modules/vasnprintf (Files): Remove m4/signed.m4.
111427 2006-10-27  Bruno Haible  <bruno@clisp.org>
111429         Update to GNU gettext 0.16.
111430         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111431         m4/inttypes-h.m4, m4/signed.m4.
111432         * m4/gettext.m4: Update to GNU gettext 0.16.
111433         * m4/intl.m4: New file, from GNU gettext.
111434         * m4/intldir.m4: New file, from GNU gettext.
111435         * config/srclist.txt: Update
111437 2006-10-27  Eric Blake  <ebb9@byu.net>
111439         * MODULES.html.sh: Document tempname.
111440         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111441         dependencies.
111442         (Files): Move lib/tempname.c...
111443         * modules/tempname: ...to this new module.
111444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111445         (gl_PREREQ_TEMPNAME): Move...
111446         * m4/tempname.m4: ...to this new file.
111447         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111448         * modules/sys_stat (Depends-on): Add stat-macros.
111449         * lib/stat_.h (includes): Pick up stat macros.
111450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111451         if stat macros are broken.
111452         * lib/tempname.c (includes): No need to include "stat-macros.h".
111453         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111454         (direxists, __path_search) [!_LIBC]: Don't compile these in
111455         gnulib; the tmpdir module covers that.
111456         * lib/tempname.h: New file.
111458 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111460         * COPYING: Explain how gnulib-tool converts licence headers.
111461         Almost all wording by Eric Blake.
111463 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111465         * lib/mbchar.h (is_basic_table): Make read-only.
111466         * lib/mbchar.c (is_basic_table): Likewise.
111467         Reported by John Darrington.
111469 2006-10-25  Bruno Haible  <bruno@clisp.org>
111471         * lib/progname.h (set_program_name): Undefine before defining.
111473 2006-10-25  Bruno Haible  <bruno@clisp.org>
111475         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111476         false for non-gcc C++ compilers.
111477         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111479 2006-10-24  Bruno Haible  <bruno@clisp.org>
111481         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111482         iconv implementations like Irix iconv.
111484 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111486         * modules/vararrays: New file.
111487         * m4/vararrays.m4: New file, taken from diffutils.
111488         * MODULES.html.sh: New module vararrays.
111490 2006-10-24  Karl Berry  <karl@gnu.org>
111492         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111493         Don't call GNU Unix.
111495 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111497         * users.txt: Add Libtool.
111499         Sync from Libtool:
111501         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111503         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111504         to gnulib's policy of including config.h unconditionally.
111506 2006-10-24  Bruno Haible  <bruno@clisp.org>
111508         * modules/wcwidth (Files): Add m4/wint_t.m4.
111509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111510         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111512 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111514         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111515         to pacify GCC with some -W flags enabled.  Problem reported by
111516         Bruno Haible.
111518 2006-10-24  Jim Meyering  <jim@meyering.net>
111520         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111521         Reported by Karl Berry.
111523 2006-10-23  Bruno Haible  <bruno@clisp.org>
111525         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111527 2006-10-24  Bruno Haible  <bruno@clisp.org>
111529         * lib/gl_list.h: Use C comment style, not C++ comment style.
111531 2006-10-23  Eric Blake  <ebb9@byu.net>
111533         * lib/getaddrinfo.c (includes): Add missing include.
111535 2006-10-23  Bruno Haible  <bruno@clisp.org>
111536             Paul Eggert  <eggert@cs.ucla.edu>
111538         Ability to rename obstack_free.
111539         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111540         obstack_free.
111541         (obstack_free): Invoke the __obstack_free macro.
111542         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111544 2006-10-23  Bruno Haible  <bruno@clisp.org>
111545             Paul Eggert  <eggert@cs.ucla.edu>
111547         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111548         __argc, __argv from the declaration. (They are defined as macros on
111549         mingw.)
111551 2006-10-22  Bruno Haible  <bruno@clisp.org>
111553         * doc/gnulib-intro.texi: New file.
111554         * doc/gnulib.texi: Include it.
111556 2006-10-21  Bruno Haible  <bruno@clisp.org>
111558         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111559         "Introduction", "Miscellanous Notes", "Particular Modules".
111561 2006-10-21  Bruno Haible  <bruno@clisp.org>
111563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111564         Change mostlyclean-local rule to avoid sh syntax error from bash
111565         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111567 2006-10-23  Jim Meyering  <jim@meyering.net>
111569         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111570         in place of snprintf.
111572         * modules/inttostr (Files): Add lib/uinttostr.c.
111573         * lib/uinttostr.c (inttostr): New file/function.
111574         * lib/inttostr.h (uinttostr): Declare.
111575         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111576         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111577         Add uinttostr.
111578         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111580 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111582         * lib/canonicalize.c (ELOOP): Define if not already defined.
111583         Problem reported by Bruno Haible in
111584         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111586 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111588         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111589         Problem reported by Perry Smith and Ville Laurikari.
111591         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111592         uses.
111594 2006-10-19  Bruno Haible  <bruno@clisp.org>
111596         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111597         for mingw.
111599 2006-10-19  Bruno Haible  <bruno@clisp.org>
111601         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111602         Needed for mingw.
111604 2006-10-19  Bruno Haible  <bruno@clisp.org>
111606         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111608 2006-10-19  Bruno Haible  <bruno@clisp.org>
111610         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111611         it.
111613 2006-10-19  Bruno Haible  <bruno@clisp.org>
111615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111616         invocation.
111618 2006-10-19  Bruno Haible  <bruno@clisp.org>
111620         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111621         mountlist by default.
111623 2006-10-16  Bruno Haible  <bruno@clisp.org>
111625         * lib/c-strstr.c: Include c-strstr.h.
111627 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111629         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111630         in a slash.
111632 2006-10-18  Bruno Haible  <bruno@clisp.org>
111634         * lib/lock.h [C++]: Wrap definitions in extern "C".
111636 2006-10-18  Bruno Haible  <bruno@clisp.org>
111638         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111639         gl_LIBOBJS list.
111641 2006-10-18  Bruno Haible  <bruno@clisp.org>
111643         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111645 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111647         * lib/xstrtol.h: Include gettext.h.
111648         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111649         Problem reported by Eric Blake.
111650         * modules/xstrtol (Depends-on): Add gettext-h.
111652 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111654         * lib/strftime.c (advance): New macro.
111655         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111656         incomplete type, so you can't add 0 to it.  Problem and patch
111657         reported by Eelco Dolstra for dietlibc.
111659 2006-10-18  Jim Meyering  <jim@meyering.net>
111661         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111662         type for a local, and rename it: s/up/user_proc/.
111664 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111666         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111667         READ_UTMP_USER_PROCESS.
111668         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111670 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111672         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111673         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111675 2006-10-17  Eric Blake  <ebb9@byu.net>
111677         * lib/sigprocmask.c (sigprocmask): Fix typo.
111679         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111681         * modules/clean-temp (Makefile.am): Don't add to make output...
111682         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111683         config.h.
111685 2006-10-17  Bruno Haible  <bruno@clisp.org>
111687         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111688         differently if DEFAULT_TEXT_DOMAIN is set.
111690 2006-10-16  Bruno Haible  <bruno@clisp.org>
111692         * lib/clean-temp.c: Include fwriteerror.h.
111694 2006-10-16  Bruno Haible  <bruno@clisp.org>
111696         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111698 2006-10-16  Bruno Haible  <bruno@clisp.org>
111700         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111701         * lib/sigprocmask.h: Include <sys/types.h>.
111702         (sigset_t): Use the system's definition if present.
111704 2006-10-17  Eric Blake  <ebb9@byu.net>
111706         * lib/xvasprintf.c (includes): Assume config.h.
111707         * lib/xasprintf.c (includes): Likewise.
111709 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111711         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111712         at least as wide as intmax_t.
111714 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111716         (Imported from Automake.)
111717         * build-aux/gnupload: Update to version 1.1 of directive file.
111719 2006-10-16  Eric Blake  <ebb9@byu.net>
111721         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111722         match Automake 1.10a.
111724 2006-10-14  Bruno Haible  <bruno@clisp.org>
111726         * modules/sigprocmask: New file.
111727         * lib/sigprocmask.h: New file.
111728         * lib/sigprocmask.c: New file.
111729         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111730         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111731         request sigprocmask.o.
111732         (gl_PREREQ_SIGPROCMASK): New macro.
111733         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111734         (Depends-on): Add sigprocmask.
111735         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111736         gt_SIGNALBLOCKING. Test for 'raise' only once.
111737         * lib/fatal-signal.c: Include sigprocmask.h.
111738         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111739         unblock_fatal_signals): Define always.
111740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111741         sigprocmask.
111743 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111745         Sync from Automake.
111746         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111747         which incorrectly sets the mode of an existing destination
111748         directory.  In some cases the unpatched install-sh could do the
111749         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111750         system.  We hope this is rare in practice, but it's clearly worth
111751         fixing.  Problem reported by Alex Unleashed in
111752         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111753         Also, don't bother to check for -m bugs unless we're using -m;
111754         suggested by Stepan Kasal.
111756 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111758         Sync from Automake.
111759         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111760         `-c' flag, so they appear at the same position as in %FASTDEP%
111761         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111762         which ignores unknown options only after the first non-option.
111763         Bug report against M4 by Nelson H. F. Beebe.
111765 2006-10-13  Jim Meyering  <jim@meyering.net>
111767         Fix a bug in yesterday's change.
111768         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111769         p->fts_statp->st_dev would be used uninitialized.
111770         Ensures that we always call fts_stat on the very first entry.
111771         Miklos Szeredi reported that find -xdev stopped working.
111773 2006-10-12  Bruno Haible  <bruno@clisp.org>
111775         * gnulib-tool (func_get_automake_snippet): Append an automatically
111776         computed EXTRA_DIST augmentation.
111777         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111778         * modules/alloca-opt (Makefile.am): Likewise.
111779         * modules/allocsa (Makefile.am): Likewise.
111780         * modules/arcfour (Makefile.am): Likewise.
111781         * modules/arctwo (Makefile.am): Likewise.
111782         * modules/argmatch (Makefile.am): Likewise.
111783         * modules/argz (Makefile.am): Likewise.
111784         * modules/atexit (Makefile.am): Likewise.
111785         * modules/backupfile (Makefile.am): Likewise.
111786         * modules/byteswap (Makefile.am): Likewise.
111787         * modules/c-strtod (Makefile.am): Likewise.
111788         * modules/c-strtold (Makefile.am): Likewise.
111789         * modules/calloc (Makefile.am): Likewise.
111790         * modules/canon-host (Makefile.am): Likewise.
111791         * modules/canonicalize (Makefile.am): Likewise.
111792         * modules/chdir-long (Makefile.am): Likewise.
111793         * modules/chdir-safer (Makefile.am): Likewise.
111794         * modules/check-version (Makefile.am): Likewise.
111795         * modules/chown (Makefile.am): Likewise.
111796         * modules/cloexec (Makefile.am): Likewise.
111797         * modules/close-stream (Makefile.am): Likewise.
111798         * modules/closeout (Makefile.am): Likewise.
111799         * modules/crc (Makefile.am): Likewise.
111800         * modules/csharpexec (Makefile.am): Likewise.
111801         * modules/cycle-check (Makefile.am): Likewise.
111802         * modules/des (Makefile.am): Likewise.
111803         * modules/dev-ino (Makefile.am): Likewise.
111804         * modules/dirfd (Makefile.am): Likewise.
111805         * modules/dirname (Makefile.am): Likewise.
111806         * modules/dup2 (Makefile.am): Likewise.
111807         * modules/eealloc (Makefile.am): Likewise.
111808         * modules/error (Makefile.am): Likewise.
111809         * modules/euidaccess (Makefile.am): Likewise.
111810         * modules/exclude (Makefile.am): Likewise.
111811         * modules/exitfail (Makefile.am): Likewise.
111812         * modules/fcntl-safer (Makefile.am): Likewise.
111813         * modules/fcntl (Makefile.am): Likewise.
111814         * modules/file-type (Makefile.am): Likewise.
111815         * modules/fileblocks (Makefile.am): Likewise.
111816         * modules/filemode (Makefile.am): Likewise.
111817         * modules/filenamecat (Makefile.am): Likewise.
111818         * modules/fnmatch (Makefile.am): Likewise.
111819         * modules/fopen-safer (Makefile.am): Likewise.
111820         * modules/fpending (Makefile.am): Likewise.
111821         * modules/fprintftime (Makefile.am): Likewise.
111822         * modules/free (Makefile.am): Likewise.
111823         * modules/fsusage (Makefile.am): Likewise.
111824         * modules/ftruncate (Makefile.am): Likewise.
111825         * modules/fts (Makefile.am): Likewise.
111826         * modules/gc-arcfour (Makefile.am): Likewise.
111827         * modules/gc-des (Makefile.am): Likewise.
111828         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111829         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111830         * modules/gc-md4 (Makefile.am): Likewise.
111831         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111832         * modules/gc-sha1 (Makefile.am): Likewise.
111833         * modules/gc (Makefile.am): Likewise.
111834         * modules/getaddrinfo (Makefile.am): Likewise.
111835         * modules/getcwd (Makefile.am): Likewise.
111836         * modules/getdelim (Makefile.am): Likewise.
111837         * modules/getdomainname (Makefile.am): Likewise.
111838         * modules/getgroups (Makefile.am): Likewise.
111839         * modules/gethostname (Makefile.am): Likewise.
111840         * modules/gethrxtime (Makefile.am): Likewise.
111841         * modules/getline (Makefile.am): Likewise.
111842         * modules/getloadavg (Makefile.am): Likewise.
111843         * modules/getlogin_r (Makefile.am): Likewise.
111844         * modules/getndelim2 (Makefile.am): Likewise.
111845         * modules/getopt (Makefile.am): Likewise.
111846         * modules/getpagesize (Makefile.am): Likewise.
111847         * modules/getpass-gnu (Makefile.am): Likewise.
111848         * modules/getpass (Makefile.am): Likewise.
111849         * modules/getsubopt (Makefile.am): Likewise.
111850         * modules/gettime (Makefile.am): Likewise.
111851         * modules/gettimeofday (Makefile.am): Likewise.
111852         * modules/getugroups (Makefile.am): Likewise.
111853         * modules/getusershell (Makefile.am): Likewise.
111854         * modules/glob (Makefile.am): Likewise.
111855         * modules/group-member (Makefile.am): Likewise.
111856         * modules/hard-locale (Makefile.am): Likewise.
111857         * modules/hash (Makefile.am): Likewise.
111858         * modules/hmac-md5 (Makefile.am): Likewise.
111859         * modules/hmac-sha1 (Makefile.am): Likewise.
111860         * modules/human (Makefile.am): Likewise.
111861         * modules/idcache (Makefile.am): Likewise.
111862         * modules/imaxabs (Makefile.am): Likewise.
111863         * modules/imaxdiv (Makefile.am): Likewise.
111864         * modules/inet_ntop (Makefile.am): Likewise.
111865         * modules/inet_pton (Makefile.am): Likewise.
111866         * modules/intprops (Makefile.am): Likewise.
111867         * modules/inttostr (Makefile.am): Likewise.
111868         * modules/inttypes (Makefile.am): Likewise.
111869         * modules/isapipe (Makefile.am): Likewise.
111870         * modules/javaversion (Makefile.am): Likewise.
111871         * modules/lchmod (Makefile.am): Likewise.
111872         * modules/lchown (Makefile.am): Likewise.
111873         * modules/localcharset (Makefile.am): Likewise.
111874         * modules/long-options (Makefile.am): Likewise.
111875         * modules/lstat (Makefile.am): Likewise.
111876         * modules/malloc (Makefile.am): Likewise.
111877         * modules/mathl (Makefile.am): Likewise.
111878         * modules/mbchar (Makefile.am): Likewise.
111879         * modules/md2 (Makefile.am): Likewise.
111880         * modules/md4 (Makefile.am): Likewise.
111881         * modules/md5 (Makefile.am): Likewise.
111882         * modules/memcasecmp (Makefile.am): Likewise.
111883         * modules/memchr (Makefile.am): Likewise.
111884         * modules/memcmp (Makefile.am): Likewise.
111885         * modules/memcoll (Makefile.am): Likewise.
111886         * modules/memcpy (Makefile.am): Likewise.
111887         * modules/memmem (Makefile.am): Likewise.
111888         * modules/memmove (Makefile.am): Likewise.
111889         * modules/mempcpy (Makefile.am): Likewise.
111890         * modules/memrchr (Makefile.am): Likewise.
111891         * modules/memset (Makefile.am): Likewise.
111892         * modules/memxor (Makefile.am): Likewise.
111893         * modules/mkancesdirs (Makefile.am): Likewise.
111894         * modules/mkdir-p (Makefile.am): Likewise.
111895         * modules/mkdir (Makefile.am): Likewise.
111896         * modules/mkdtemp (Makefile.am): Likewise.
111897         * modules/mkstemp (Makefile.am): Likewise.
111898         * modules/mktime (Makefile.am): Likewise.
111899         * modules/modechange (Makefile.am): Likewise.
111900         * modules/mountlist (Makefile.am): Likewise.
111901         * modules/nanosleep (Makefile.am): Likewise.
111902         * modules/obstack (Makefile.am): Likewise.
111903         * modules/openat (Makefile.am): Likewise.
111904         * modules/pagealign_alloc (Makefile.am): Likewise.
111905         * modules/pathmax (Makefile.am): Likewise.
111906         * modules/physmem (Makefile.am): Likewise.
111907         * modules/poll (Makefile.am): Likewise.
111908         * modules/posixtm (Makefile.am): Likewise.
111909         * modules/posixver (Makefile.am): Likewise.
111910         * modules/putenv (Makefile.am): Likewise.
111911         * modules/quote (Makefile.am): Likewise.
111912         * modules/quotearg (Makefile.am): Likewise.
111913         * modules/raise (Makefile.am): Likewise.
111914         * modules/read-file (Makefile.am): Likewise.
111915         * modules/readline (Makefile.am): Likewise.
111916         * modules/readlink (Makefile.am): Likewise.
111917         * modules/readtokens (Makefile.am): Likewise.
111918         * modules/readutmp (Makefile.am): Likewise.
111919         * modules/realloc (Makefile.am): Likewise.
111920         * modules/regex (Makefile.am): Likewise.
111921         * modules/rename-dest-slash (Makefile.am): Likewise.
111922         * modules/rename (Makefile.am): Likewise.
111923         * modules/rijndael (Makefile.am): Likewise.
111924         * modules/rmdir (Makefile.am): Likewise.
111925         * modules/rpmatch (Makefile.am): Likewise.
111926         * modules/safe-read (Makefile.am): Likewise.
111927         * modules/safe-write (Makefile.am): Likewise.
111928         * modules/same-inode (Makefile.am): Likewise.
111929         * modules/same (Makefile.am): Likewise.
111930         * modules/save-cwd (Makefile.am): Likewise.
111931         * modules/savedir (Makefile.am): Likewise.
111932         * modules/setenv (Makefile.am): Likewise.
111933         * modules/settime (Makefile.am): Likewise.
111934         * modules/sha1 (Makefile.am): Likewise.
111935         * modules/sig2str (Makefile.am): Likewise.
111936         * modules/snprintf (Makefile.am): Likewise.
111937         * modules/stat-macros (Makefile.am): Likewise.
111938         * modules/stat-time (Makefile.am): Likewise.
111939         * modules/stdbool (Makefile.am): Likewise.
111940         * modules/stdint (Makefile.am): Likewise.
111941         * modules/stdlib-safer (Makefile.am): Likewise.
111942         * modules/stpcpy (Makefile.am): Likewise.
111943         * modules/stpncpy (Makefile.am): Likewise.
111944         * modules/strcase (Makefile.am): Likewise.
111945         * modules/strcasestr (Makefile.am): Likewise.
111946         * modules/strchrnul (Makefile.am): Likewise.
111947         * modules/strcspn (Makefile.am): Likewise.
111948         * modules/strdup (Makefile.am): Likewise.
111949         * modules/strerror (Makefile.am): Likewise.
111950         * modules/strftime (Makefile.am): Likewise.
111951         * modules/strndup (Makefile.am): Likewise.
111952         * modules/strnlen (Makefile.am): Likewise.
111953         * modules/strpbrk (Makefile.am): Likewise.
111954         * modules/strsep (Makefile.am): Likewise.
111955         * modules/strstr (Makefile.am): Likewise.
111956         * modules/strtod (Makefile.am): Likewise.
111957         * modules/strtoimax (Makefile.am): Likewise.
111958         * modules/strtok_r (Makefile.am): Likewise.
111959         * modules/strtol (Makefile.am): Likewise.
111960         * modules/strtoll (Makefile.am): Likewise.
111961         * modules/strtoul (Makefile.am): Likewise.
111962         * modules/strtoull (Makefile.am): Likewise.
111963         * modules/strtoumax (Makefile.am): Likewise.
111964         * modules/strverscmp (Makefile.am): Likewise.
111965         * modules/sys_socket (Makefile.am): Likewise.
111966         * modules/sys_stat (Makefile.am): Likewise.
111967         * modules/sysexits (Makefile.am): Likewise.
111968         * modules/time_r (Makefile.am): Likewise.
111969         * modules/timegm (Makefile.am): Likewise.
111970         * modules/timespec (Makefile.am): Likewise.
111971         * modules/tmpfile-safer (Makefile.am): Likewise.
111972         * modules/trim (Makefile.am): Likewise.
111973         * modules/unistd-safer (Makefile.am): Likewise.
111974         * modules/unlinkdir (Makefile.am): Likewise.
111975         * modules/unlocked-io (Makefile.am): Likewise.
111976         * modules/userspec (Makefile.am): Likewise.
111977         * modules/utime (Makefile.am): Likewise.
111978         * modules/utimecmp (Makefile.am): Likewise.
111979         * modules/utimens (Makefile.am): Likewise.
111980         * modules/vasnprintf (Makefile.am): Likewise.
111981         * modules/vasprintf (Makefile.am): Likewise.
111982         * modules/vsnprintf (Makefile.am): Likewise.
111983         * modules/xalloc (Makefile.am): Likewise.
111984         * modules/xgetcwd (Makefile.am): Likewise.
111985         * modules/xnanosleep (Makefile.am): Likewise.
111986         * modules/xreadlink (Makefile.am): Likewise.
111987         * modules/xstrtod (Makefile.am): Likewise.
111988         * modules/xstrtol (Makefile.am): Likewise.
111989         * modules/xstrtold (Makefile.am): Likewise.
111990         * modules/yesno (Makefile.am): Likewise.
111991         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111993 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111995         * modules/error (Makefile.am): Distribute files through
111996         EXTRA_DIST, not lib_SOURCES.
111998 2006-10-12  Eric Blake  <ebb9@byu.net>
112000         * modules/error (Makefile.am): Distribute files in /lib.
112001         * modules/obstack (Makefile.am): Likewise.
112003 2006-10-12  Bruno Haible  <bruno@clisp.org>
112005         * modules/acl (Makefile.am): Distribute all files in lib/ through
112006         EXTRA_DIST.
112007         * modules/arcfour (Makefile.am): Likewise.
112008         * modules/arctwo (Makefile.am): Likewise.
112009         * modules/argmatch (Makefile.am): Likewise.
112010         * modules/argz (Makefile.am): Likewise.
112011         * modules/atexit (Makefile.am): Likewise.
112012         * modules/backupfile (Makefile.am): Likewise.
112013         * modules/c-strtod (Makefile.am): Likewise.
112014         * modules/c-strtold (Makefile.am): Likewise.
112015         * modules/calloc (Makefile.am): Likewise.
112016         * modules/canon-host (Makefile.am): Likewise.
112017         * modules/canonicalize (Makefile.am): Likewise.
112018         * modules/chdir-long (Makefile.am): Likewise.
112019         * modules/chdir-safer (Makefile.am): Likewise.
112020         * modules/check-version (Makefile.am): Likewise.
112021         * modules/chown (Makefile.am): Likewise.
112022         * modules/cloexec (Makefile.am): Likewise.
112023         * modules/close-stream (Makefile.am): Likewise.
112024         * modules/closeout (Makefile.am): Likewise.
112025         * modules/crc (Makefile.am): Likewise.
112026         * modules/cycle-check (Makefile.am): Likewise.
112027         * modules/des (Makefile.am): Likewise.
112028         * modules/dirfd (Makefile.am): Likewise.
112029         * modules/dirname (Makefile.am): Likewise.
112030         * modules/dup2 (Makefile.am): Likewise.
112031         * modules/euidaccess (Makefile.am): Likewise.
112032         * modules/exclude (Makefile.am): Likewise.
112033         * modules/exitfail (Makefile.am): Likewise.
112034         * modules/fcntl-safer (Makefile.am): Likewise.
112035         * modules/file-type (Makefile.am): Likewise.
112036         * modules/fileblocks (Makefile.am): Likewise.
112037         * modules/filemode (Makefile.am): Likewise.
112038         * modules/filenamecat (Makefile.am): Likewise.
112039         * modules/fnmatch (Makefile.am): Likewise.
112040         * modules/fopen-safer (Makefile.am): Likewise.
112041         * modules/fpending (Makefile.am): Likewise.
112042         * modules/fprintftime (Makefile.am): Likewise.
112043         * modules/free (Makefile.am): Likewise.
112044         * modules/fsusage (Makefile.am): Likewise.
112045         * modules/ftruncate (Makefile.am): Likewise.
112046         * modules/fts (Makefile.am): Likewise.
112047         * modules/gc (Makefile.am): Likewise.
112048         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112049         * modules/getaddrinfo (Makefile.am): Likewise.
112050         * modules/getcwd (Makefile.am): Likewise.
112051         * modules/getdelim (Makefile.am): Likewise.
112052         * modules/getdomainname (Makefile.am): Likewise.
112053         * modules/getgroups (Makefile.am): Likewise.
112054         * modules/gethostname (Makefile.am): Likewise.
112055         * modules/gethrxtime (Makefile.am): Likewise.
112056         * modules/getline (Makefile.am): Likewise.
112057         * modules/getloadavg (Makefile.am): Likewise.
112058         * modules/getlogin_r (Makefile.am): Likewise.
112059         * modules/getopt (Makefile.am): Likewise.
112060         * modules/getpass (Makefile.am): Likewise.
112061         * modules/getpass-gnu (Makefile.am): Likewise.
112062         * modules/getsubopt (Makefile.am): Likewise.
112063         * modules/gettime (Makefile.am): Likewise.
112064         * modules/gettimeofday (Makefile.am): Likewise.
112065         * modules/getugroups (Makefile.am): Likewise.
112066         * modules/getusershell (Makefile.am): Likewise.
112067         * modules/glob (Makefile.am): Likewise.
112068         * modules/group-member (Makefile.am): Likewise.
112069         * modules/hard-locale (Makefile.am): Likewise.
112070         * modules/hash (Makefile.am): Likewise.
112071         * modules/hmac-md5 (Makefile.am): Likewise.
112072         * modules/hmac-sha1 (Makefile.am): Likewise.
112073         * modules/human (Makefile.am): Likewise.
112074         * modules/idcache (Makefile.am): Likewise.
112075         * modules/imaxabs (Makefile.am): Likewise.
112076         * modules/imaxdiv (Makefile.am): Likewise.
112077         * modules/inet_ntop (Makefile.am): Likewise.
112078         * modules/inet_pton (Makefile.am): Likewise.
112079         * modules/inttostr (Makefile.am): Likewise.
112080         * modules/isapipe (Makefile.am): Likewise.
112081         * modules/lchown (Makefile.am): Likewise.
112082         * modules/long-options (Makefile.am): Likewise.
112083         * modules/lstat (Makefile.am): Likewise.
112084         * modules/malloc (Makefile.am): Likewise.
112085         * modules/mathl (Makefile.am): Likewise.
112086         * modules/mbchar (Makefile.am): Likewise.
112087         * modules/md2 (Makefile.am): Likewise.
112088         * modules/md4 (Makefile.am): Likewise.
112089         * modules/md5 (Makefile.am): Likewise.
112090         * modules/memcasecmp (Makefile.am): Likewise.
112091         * modules/memchr (Makefile.am): Likewise.
112092         * modules/memcmp (Makefile.am): Likewise.
112093         * modules/memcoll (Makefile.am): Likewise.
112094         * modules/memcpy (Makefile.am): Likewise.
112095         * modules/memmem (Makefile.am): Likewise.
112096         * modules/memmove (Makefile.am): Likewise.
112097         * modules/mempcpy (Makefile.am): Likewise.
112098         * modules/memrchr (Makefile.am): Likewise.
112099         * modules/memset (Makefile.am): Likewise.
112100         * modules/memxor (Makefile.am): Likewise.
112101         * modules/mkancesdirs (Makefile.am): Likewise.
112102         * modules/mkdir (Makefile.am): Likewise.
112103         * modules/mkdir-p (Makefile.am): Likewise.
112104         * modules/mkdtemp (Makefile.am): Likewise.
112105         * modules/mkstemp (Makefile.am): Likewise.
112106         * modules/mktime (Makefile.am): Likewise.
112107         * modules/modechange (Makefile.am): Likewise.
112108         * modules/mountlist (Makefile.am): Likewise.
112109         * modules/nanosleep (Makefile.am): Likewise.
112110         * modules/openat (Makefile.am): Likewise.
112111         * modules/pagealign_alloc (Makefile.am): Likewise.
112112         * modules/physmem (Makefile.am): Likewise.
112113         * modules/poll (Makefile.am): Likewise.
112114         * modules/posixtm (Makefile.am): Likewise.
112115         * modules/posixver (Makefile.am): Likewise.
112116         * modules/putenv (Makefile.am): Likewise.
112117         * modules/quote (Makefile.am): Likewise.
112118         * modules/quotearg (Makefile.am): Likewise.
112119         * modules/raise (Makefile.am): Likewise.
112120         * modules/read-file (Makefile.am): Likewise.
112121         * modules/readline (Makefile.am): Likewise.
112122         * modules/readlink (Makefile.am): Likewise.
112123         * modules/readtokens (Makefile.am): Likewise.
112124         * modules/readutmp (Makefile.am): Likewise.
112125         * modules/realloc (Makefile.am): Likewise.
112126         * modules/regex (Makefile.am): Likewise.
112127         * modules/rename (Makefile.am): Likewise.
112128         * modules/rename-dest-slash (Makefile.am): Likewise.
112129         * modules/rijndael (Makefile.am): Likewise.
112130         * modules/rmdir (Makefile.am): Likewise.
112131         * modules/rpmatch (Makefile.am): Likewise.
112132         * modules/safe-read (Makefile.am): Likewise.
112133         * modules/safe-write (Makefile.am): Likewise.
112134         * modules/same (Makefile.am): Likewise.
112135         * modules/save-cwd (Makefile.am): Likewise.
112136         * modules/savedir (Makefile.am): Likewise.
112137         * modules/setenv (Makefile.am): Likewise.
112138         * modules/settime (Makefile.am): Likewise.
112139         * modules/sha1 (Makefile.am): Likewise.
112140         * modules/sig2str (Makefile.am): Likewise.
112141         * modules/snprintf (Makefile.am): Likewise.
112142         * modules/stdlib-safer (Makefile.am): Likewise.
112143         * modules/stpcpy (Makefile.am): Likewise.
112144         * modules/stpncpy (Makefile.am): Likewise.
112145         * modules/strcase (Makefile.am): Likewise.
112146         * modules/strcasestr (Makefile.am): Likewise.
112147         * modules/strchrnul (Makefile.am): Likewise.
112148         * modules/strcspn (Makefile.am): Likewise.
112149         * modules/strdup (Makefile.am): Likewise.
112150         * modules/strerror (Makefile.am): Likewise.
112151         * modules/strftime (Makefile.am): Likewise.
112152         * modules/strndup (Makefile.am): Likewise.
112153         * modules/strnlen (Makefile.am): Likewise.
112154         * modules/strpbrk (Makefile.am): Likewise.
112155         * modules/strsep (Makefile.am): Likewise.
112156         * modules/strstr (Makefile.am): Likewise.
112157         * modules/strtod (Makefile.am): Likewise.
112158         * modules/strtoimax (Makefile.am): Likewise.
112159         * modules/strtok_r (Makefile.am): Likewise.
112160         * modules/strtol (Makefile.am): Likewise.
112161         * modules/strtoll (Makefile.am): Likewise.
112162         * modules/strtoul (Makefile.am): Likewise.
112163         * modules/strtoull (Makefile.am): Likewise.
112164         * modules/strtoumax (Makefile.am): Likewise.
112165         * modules/strverscmp (Makefile.am): Likewise.
112166         * modules/time_r (Makefile.am): Likewise.
112167         * modules/timegm (Makefile.am): Likewise.
112168         * modules/tmpfile-safer (Makefile.am): Likewise.
112169         * modules/unistd-safer (Makefile.am): Likewise.
112170         * modules/unlinkdir (Makefile.am): Likewise.
112171         * modules/userspec (Makefile.am): Likewise.
112172         * modules/utime (Makefile.am): Likewise.
112173         * modules/utimecmp (Makefile.am): Likewise.
112174         * modules/utimens (Makefile.am): Likewise.
112175         * modules/vasnprintf (Makefile.am): Likewise.
112176         * modules/vasprintf (Makefile.am): Likewise.
112177         * modules/vsnprintf (Makefile.am): Likewise.
112178         * modules/xalloc (Makefile.am): Likewise.
112179         * modules/xgetcwd (Makefile.am): Likewise.
112180         * modules/xnanosleep (Makefile.am): Likewise.
112181         * modules/xreadlink (Makefile.am): Likewise.
112182         * modules/xstrtod (Makefile.am): Likewise.
112183         * modules/xstrtol (Makefile.am): Likewise.
112184         * modules/xstrtold (Makefile.am): Likewise.
112185         * modules/yesno (Makefile.am): Likewise.
112187 2006-10-12  Jim Meyering  <jim@meyering.net>
112189         * m4/getloadavg.m4: Revert the change below.
112191         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112192         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112193         fail with a symlink, which is what coreutils' ./bootstrap now
112194         creates by default.
112196 2006-10-12  Bruno Haible  <bruno@clisp.org>
112198         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112199         mingw.
112200         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112201         MSVC and mingw explicitly.
112203 2006-10-11  Simon Josefsson  <jas@extundo.com>
112204             Bruno Haible  <bruno@clisp.org>
112206         Add support for multiple gnulib-tool invocations in the scope of a
112207         single configure.ac file.
112208         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112209         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112210         with the same contents as the _LIBADD variable.
112211         (func_emit_initmacro_start, func_emit_initmacro_end,
112212         func_emit_initmacro_done): New functions.
112213         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112214         gl_LIBOBJS and gl_LTLIBOBJS.
112216 2006-10-11  Bruno Haible  <bruno@clisp.org>
112218         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112219         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112220         autoreconf. Instead, invoke autopoint explicitly but move back the
112221         *.m4 files from gnulib.
112223 2006-10-11  Bruno Haible  <bruno@clisp.org>
112225         * gnulib-tool (func_usage): Make module names after --create-testdir
112226         optional.
112227         (func_create_testdir): If no module was specified, use nearly all
112228         modules.
112230 2006-10-12  Jim Meyering  <jim@meyering.net>
112232         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112233         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112234         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112235         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112236         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112237         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112238         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112239         (fts_set_stat_required): New function.
112240         (fts_open): Defer the calls to fts_stat, if possible or requested.
112241         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112242         into fts_stat itself.
112243         (fts_read): Perform any required (deferred) fts_stat call.
112244         (fts_build): Likewise, for the directory we're about to open and read.
112245         In the readdir loop, carefully decide whether each entry will require
112246         an eventual call to fts_stat, using dirent.d_type info if available.
112247         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112248         a command line argument into this function.  Update all callers.
112249         Map a return value of FTS_DOT to FTS_D for a command line argument.
112250         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112251         Thanks to Miklos Szeredi for his tenacity and for the initial
112252         bug report about "find" failing on a FUSE-based file system.
112254         * lib/fts.c (fts_open): Use consistent indentation.
112256 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112258         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112259         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112260         reported by Jim Meyering.  All uses of cache variables renamed
112261         to match Autoconf's.
112262         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112263         the other one.
112265         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112266         Fix misspelling in diagnostic.
112268 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112270         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112271         defined.  Problem reported by Matthew Woehlke.
112273         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112274         Add support for Tandem NonStop R series.
112275         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112276         Use new macro.
112278         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112279         (has_trailing_slash): Omit size arg; all callers changed.
112280         Omit 'inline', since it doesn't help performance and we'd
112281         need to configure it.
112282         Don't count //, ///, etc. as having a trailing slash.
112283         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112284         (rpl_rename_dest_slash): On failure, use rename's errno rather
112285         than (in some cases) an incorrect or junk errno.
112286         Simplify code by removing need to compute length; this does
112287         cause it to make two passes instead of one over the file name,
112288         but it's worth it.
112290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112291         change, since Autoconf's version may no longer be appropriate now
112292         that we are using CVS Autoconf's version.  Add support for Tandem.
112294 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112295             Bruno Haible  <bruno@clisp.org>
112297         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112298         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112299         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112300         gl_AC_TYPE_LONG_LONG.
112302         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112303         instead of HAVE_LONG_LONG.
112304         * lib/printf-args.c (printf_fetchargs): Likewise.
112305         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112306         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112307         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112308         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112309         gl_AC_TYPE_LONG_LONG.
112311 2006-10-11  Bruno Haible  <bruno@clisp.org>
112313         * m4/longlong.m4: Add comments.
112314         * m4/ulonglong.m4: Likewise.
112316 2006-10-10  Bruno Haible  <bruno@clisp.org>
112318         Make it possible to #define stpcpy, strdup to aliases.
112319         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112320         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112322 2006-10-10  Bruno Haible  <bruno@clisp.org>
112324         Make it possible to #define gcd to an alias.
112325         * lib/gcd.c: Include config.h.
112327 2006-10-10  Bruno Haible  <bruno@clisp.org>
112329         Make it possible to #define c_isascii to an alias.
112330         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112331         defined. Undefine the macros before defining them, to avoid gcc
112332         warnings.
112333         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112334         define NO_C_CTYPE_MACROS early.
112336 2006-10-10  Bruno Haible  <bruno@clisp.org>
112338         Make it possible to #define set_program_name to an alias.
112339         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112340         ENABLE_RELOCATABLE early.
112342 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112344         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112345         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112346         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112347         More generally, don't assume that 64-bit signed int is available
112348         if unsigned int is, and vice versa.
112349         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112350         unsigned symbols, not on their signed counterparts.
112351         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112352         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112353         (UINT64_C, UINTMAX_C):
112354         Likewise.
112355         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112356         unsigned counterparts.
112357         (Have_long_long, Unsigned): New macros.
112358         (Int): Renamed from INT.
112359         (strtoimax): Use the new macros.
112360         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112361         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112362         * modules/inttypes (inttypes.h): Substitute
112363         HAVE_UNSIGNED_LONG_LONG_INT.
112364         * modules/stdint (stdint.h): Likewise.
112365         (Files): Add m4/ulonglong.m4.
112367 2006-10-10  Bruno Haible  <bruno@clisp.org>
112369         Fix a gcc -Wshadow warning.
112370         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112371         to 'bucket'.
112372         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112373         gl_linked_indexof_from_to): Likewise.
112374         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112375         Likewise.
112376         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112377         Likewise.
112378         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112379         Reported by Eric Blake.
112381 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112383         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112384         for NetBSD.  Problem reported by Bruno Haible.
112386 2006-10-09  Jim Meyering  <jim@meyering.net>
112388         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112389         Patch from Bruno Haible.
112391 2006-10-09  Jim Meyering  <jim@meyering.net>
112393         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112394         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112395         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112397 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112399         Don't include <config.h> twice; this doesn't work in some cases,
112400         e.g., when config.h has "#define intmax_t long long int" and
112401         we include <config.h>, <inttypes.h>, <config.h> in that order.
112402         Problem reported by Matthew Woehlke in:
112403         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112404         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112405         * lib/fts-cycle.c: Don't include config.h.
112406         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112407         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112408         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112409         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112410         inttypes.h.
112411         * lib/xstrtoumax.c: Likewise.
112412         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112413         __strtol and the like, so that this module is more like its siblings.
112414         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112415         Remove; no longer needed now that we assume gnulib inttypes.h.
112417 2006-10-08  Bruno Haible  <bruno@clisp.org>
112419         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112420         option.
112422 2006-10-07  Jim Meyering  <jim@meyering.net>
112424         * modules/inttypes (inttypes.h): Revert what seems to have been
112425         an inadvertent part of today's change: use "|", not "/" in the
112426         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112428 2006-10-07  Bruno Haible  <bruno@clisp.org>
112430         * modules/sublist: New file.
112432 2006-10-07  Bruno Haible  <bruno@clisp.org>
112434         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112435         * modules/argz (argz.h): Likewise.
112436         * modules/arpa_inet (arpa/inet.h): Likewise.
112437         * modules/byteswap (byteswap.h): Likewise.
112438         * modules/configmake (configmake.h): Likewise.
112439         * modules/fcntl (fcntl.h): Likewise.
112440         * modules/fnmatch (fnmatch.h): Likewise.
112441         * modules/getopt (getopt.h): Likewise.
112442         * modules/glob (glob.h): Likewise.
112443         * modules/inttypes (inttypes.h): Likewise.
112444         * modules/netinet_in (netinet/in.h): Likewise.
112445         * modules/poll (poll.h): Likewise.
112446         * modules/stdbool (stdbool.h): Likewise.
112447         * modules/stdint (stdint.h): Likewise.
112448         * modules/sys_select (sys/select.h): Likewise.
112449         * modules/sys_socket (sys/socket.h): Likewise.
112450         * modules/sys_stat (sys/stat.h): Likewise.
112451         * modules/sysexits (sysexits.h): Likewise.
112452         * modules/unistd (unistd.h): Likewise.
112453         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112454         Add a "DO NOT EDIT" comment to the generated file.
112455         (func_import): Likewise for gnulib-comp.m4.
112457 2006-10-07  Bruno Haible  <bruno@clisp.org>
112459         * lib/gl_sublist.h: New file.
112460         * lib/gl_sublist.c: New file.
112462 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112464         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112465         name (relative to the original working directory) and the file
112466         name component (relative to the temporary working directory).  All
112467         callers changed.
112468         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112469         * lib/mkdir-p.c (make_dir_parents): Likewise.
112470         * lib/mkdir-p.h (make_dir_parents): Likewise.
112472 2006-10-06  Eric Blake  <ebb9@byu.net>
112474         Define several macros for use by the clean-temp module.
112475         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112476         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112477         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112479         * lib/clean-temp.h (close_stream_temp): New declaration.
112480         * lib/clean-temp.c (includes): Pull in headers according to what
112481         other modules are in use.
112482         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112484 2006-10-06  Bruno Haible  <bruno@clisp.org>
112486         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112487         instead of fopen, fwriteerror.
112489 2006-10-06  Bruno Haible  <bruno@clisp.org>
112491         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112492         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112493         int.
112494         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112495         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112496         Return an error indicator.
112497         Suggested by Eric Blake.
112499 2006-10-06  Bruno Haible  <bruno@clisp.org>
112501         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112502         Reported by Eric Blake.
112504 2006-10-06  Bruno Haible  <bruno@clisp.org>
112506         * modules/closeout (Description): Mention stderr too.
112508 2006-10-06  Bruno Haible  <bruno@clisp.org>
112509         and Paul Eggert  <eggert@cs.ucla.edu>
112511         * lib/closeout.c (close_stdout): Also close stderr.
112512         * lib/closeout.h: Update comment.
112514 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112516         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112517         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112518         * lib/dirchownmod.c: Include lchown.h.
112519         * lib/lchown.c: Don't include files that lchown.h now includes.
112520         Don't declare chown, since lchown.h now does that.
112521         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112522         (lchown): Define to rpl_chown if lchown is declared but
112523         does not exist.  Declare using a prototype if lchown is not
112524         declared.  Add a copyright notice.
112525         * lib/mkstemp.h: Include <unistd.h>.
112526         * lib/openat.c: Include lchown.h.
112528         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112529         we now test for that separately.
112530         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112531         rather than O_NOFOLLOW, when testing whether it's possible to
112532         avoid a race condition reliably.
112533         * lib/savewd.c (savewd_chdir): Likewise.
112535         Remove macros that are no longer needed now that stdint.h is
112536         reliable.
112537         * lib/fsusage.c (UINTMAX_MAX): Remove.
112538         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112539         * lib/utimecmp.c (SIZE_MAX): Remove.
112541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112543         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112544         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112545         O_NOATIME works.
112547 2006-10-05  Bruno Haible  <bruno@clisp.org>
112549         * lib/gl_list.h (gl_sortedlist_search_from_to,
112550         gl_sortedlist_indexof_from_to): New declarations.
112551         (gl_list_implementation): New fields sortedlist_search_from_to,
112552         sortedlist_indexof_from_to.
112553         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112554         inline functions.
112555         * lib/gl_list.c (gl_sortedlist_search_from_to,
112556         gl_sortedlist_indexof_from_to): New functions.
112557         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112558         function.
112559         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112560         (gl_array_sortedlist_search_from_to): New function.
112561         (gl_array_list_implementation): Update.
112562         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112563         function.
112564         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112565         (gl_carray_sortedlist_search_from_to): New function.
112566         (gl_carray_list_implementation): Update.
112567         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112568         gl_linked_sortedlist_indexof_from_to): New functions.
112569         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112570         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112571         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112572         gl_tree_sortedlist_indexof_from_to): New functions.
112573         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112574         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112575         Update.
112576         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112577         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112578         Update.
112580 2006-10-05  Bruno Haible  <bruno@clisp.org>
112582         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112583         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112584         (struct gl_list_implementation): Add fields search_from_to,
112585         indexof_from_to. Remove fields search, indexof.
112586         (gl_list_search): Use the search_from_to method.
112587         (gl_list_search_from, gl_list_search_from_to): New functions.
112588         (gl_list_indexof): Use the indexof_from_to method.
112589         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112590         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112591         (gl_list_search_from, gl_list_search_from_to): New functions.
112592         (gl_list_indexof): Use the indexof_from_to method.
112593         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112594         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112595         gl_array_indexof. Add start_index, end_index arguments.
112596         (gl_array_search_from_to): Renamed from gl_array_search. Add
112597         start_index, end_index arguments.
112598         (gl_array_remove, gl_array_list_implementation): Update.
112599         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112600         gl_carray_indexof. Add start_index, end_index arguments.
112601         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112602         start_index, end_index arguments.
112603         (gl_carray_remove, gl_carray_list_implementation): Update.
112604         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112605         gl_linked_search. Add start_index, end_index arguments.
112606         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112607         start_index, end_index arguments.
112608         (gl_linked_remove): Update.
112609         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112610         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112611         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112612         field to 'size_t'.
112613         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112614         gl_tree_search. Add start_index, end_index arguments.
112615         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112616         start_index, end_index arguments.
112617         (gl_tree_remove): Update.
112618         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112619         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112620         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112621         function.
112622         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112623         gl_tree_search. Add start_index, end_index arguments.
112624         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112625         start_index, end_index arguments.
112626         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112627         Update.
112628         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112630 2006-10-05  Bruno Haible  <bruno@clisp.org>
112632         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112634         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112635         fwriteerror_temp): New declarations.
112636         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112637         (descriptors): New variable.
112638         (cleanup): First, close the descriptors.
112639         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112640         fclose_temp, fwriteerror_temp): New functions.
112642 2006-10-04  Jim Meyering  <jim@meyering.net>
112644         * lib/fts.c (fts_open): Tiny comment change.
112646 2006-10-04  Bruno Haible  <bruno@clisp.org>
112648         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112649         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112650         gl_LOCK_BODY.
112651         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112652         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112653         gl_LOCK_EARLY_BODY.
112654         (gl_LOCK): Require gl_LOCK_BODY.
112656 2006-10-04  Bruno Haible  <bruno@clisp.org>
112658         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112659         (gl_oset_search_atleast): New declaration.
112660         (struct gl_oset_implementation): Add field 'search_atleast'.
112661         (gl_oset_search_atleast): New inline function.
112662         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112663         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112664         (gl_array_oset_implementation): Update.
112665         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112666         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112667         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112669 2006-10-04  Bruno Haible  <bruno@clisp.org>
112671         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112673 2006-10-03  Bruno Haible  <bruno@clisp.org>
112675         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112676         from gl_avltreehash_list_implementation.
112678 2006-10-03  Bruno Haible  <bruno@clisp.org>
112680         * lib/gl_oset.c (gl_oset_add): Fix return type.
112682 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112684         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112686 2006-10-02  Eric Blake  <ebb9@byu.net>
112688         * modules/strnlen (Depends-on): Add extensions.
112690 2006-10-02  Eric Blake  <ebb9@byu.net>
112692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112693         definition in 2.60+.
112695 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112697         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112698         checks.
112700 2006-10-02  Bruno Haible  <bruno@clisp.org>
112702         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112703         to the AUTOMAKE_OPTIONS.
112704         Reported by Jim Meyering.
112706 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112708         Work around bug in Solaris 10 /proc file system:
112709         /proc/self/fd/NNN/.. isn't the parent directory of
112710         the directory whose file descriptor is NNN.  This needs to
112711         be worked around at run time, not compile time, since a
112712         program might be built on Solaris 8, where things work, and
112713         run on Solaris 10.
112714         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112715         to use the following interface instead:
112716         (OPENAT_BUFFER_SIZE): New macro.
112717         (openat_proc_name): New function.
112718         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112719         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112720         Likewise.
112721         * lib/openat-proc.c: New file.
112722         * modules/openat (Files): Add lib/openat-proc.c.
112723         (Depends-on): Add same-inode, stdbool.
112724         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112726 2006-09-29  Bruno Haible  <bruno@clisp.org>
112728         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112729         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112730         argument. Set stdout_closed before testing for ferror, not after.
112731         (fwriteerror, fwriteerror_no_ebadf): New functions.
112733 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112735         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112737 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112739         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112740         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112742 2006-09-28  Jim Meyering  <jim@meyering.net>
112744         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112745         Include <unistd.h>.
112747 2006-09-28  Bruno Haible  <bruno@clisp.org>
112749         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112750         * modules/linkedhash-list (Depends-on): Likewise.
112751         * modules/rbtreehash-list (Depends-on): Likewise.
112753 2006-09-28  Bruno Haible  <bruno@clisp.org>
112755         * lib/strndup.h: Simplify the redefinition of strndup.
112756         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112759 2006-09-28  Bruno Haible  <bruno@clisp.org>
112761         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112762         * lib/gl_linkedhash_list.c: Likewise.
112763         * lib/gl_rbtreehash_list.c: Likewise.
112765 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112767         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112768         getaddrinfo.
112770         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112771         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112772         it causes <stdio_ext.h> to cause a compile-time error.
112773         Problem reported by Nelson H. F. Beebe.
112774         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112775         of HAVE_DECL___PENDING.
112777         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112778         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112779         declaration.
112781 2006-09-27  Jim Meyering  <jim@meyering.net>
112783         This file could end up with a definition for a function
112784         named __strndup, rather than rpl_strndup on a system with
112785         incomplete weak_alias support.
112786         * lib/strndup.c (strndup): Rename from __strndup.
112787         Remove #defines that used to map __strndup to strndup.
112788         Don't use K&R prototypes.
112789         Remove LIBC-related code, since this file is not sync'd with glibc.
112790         * lib/strndup.h: Revamp, accordingly.
112791         * m4/strndup.m4: Modernize.
112793 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112795         * modules/savewd (Depends-on): Add 'raise'.
112796         * lib/savewd.c: Include <signal.h>, for 'raise'.
112798 2006-09-26  Jim Meyering  <jim@meyering.net>
112800         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112801         when we detect Darwin 8.7.0's acl_get_file bug.
112802         Rearrange to perform the new (below) run-test while $LIBS
112803         contains any acl-related library.  Set USE_ACL at the end.
112804         (gl_ACL_GET_FILE): New function.
112806 2006-09-26  Eric Blake  <ebb9@byu.net>
112808         * lib/verror.c: Include <config.h> unconditionally.
112810 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112812         * modules/clock-time (Maintainer): Add self.
112813         * modules/getlogin_r (Depends-on): Add extensions.
112815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112817         * modules/clock-time: New module.
112818         * modules/nanosleep (Depends-on): Add clock-time.
112819         * modules/gethrxtime (Depends-on): Likewise.
112820         * modules/gettime (Depends-on): Likewise.
112821         * modules/settime (Depends-on): Likewise.
112823         * modules/fts-lgpl: Depend on openat.
112824         * modules/mkancesdirs: Depend on savewd.
112825         * modules/mkdir-p: Likewise.
112827 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112829         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112831         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112832         `gl_have_arbitrary_file_name_length_limit' to
112833         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112834         actually works between configure runs.
112836 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112837             Bruno Haible  <bruno@clisp.org>
112839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112841 2006-09-25  Jim Meyering  <jim@meyering.net>
112843         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112844         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112846 2006-09-25  Eric Blake  <ebb9@byu.net>
112848         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112849         exec's in 2006-09-18 patch when shuffling fds.
112851 2006-09-25  Bruno Haible  <bruno@clisp.org>
112853         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112854         Reported by Jim Meyering.
112856 2006-09-24  Jim Meyering  <jim@meyering.net>
112858         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112859         compare a pointer against a literal "0".  That caused failures with
112860         at least HP-UX's hpcc.
112862 2006-09-22  Simon Josefsson  <jas@extundo.com>
112864         * modules/gc-sha1:
112865         * modules/gc-md4:
112866         * modules/gc-hmac-sha1:
112867         * modules/gc-hmac-md5:
112868         * modules/gc-des:
112869         * modules/gc-arcfour: Distribute more files.
112871 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112873         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112874         (gl_linked_iterator_from_to): Initialize struct completely.
112875         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112876         (gl_tree_iterator_from_to): Likewise
112877         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112878         * lib/gl_array_list.c [lint] (gl_array_iterator)
112879         (gl_array_iterator_from_to): Likewise.
112880         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112881         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112882         (gl_carray_iterator_from_to): Likewise.
112884         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112885         * lib/md4.c (md4_process_block): Remove unused variable.
112886         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112887         parentheses for clarity.
112889 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112891         * modules/bison-i18n (Depends-on): Add gettext.
112893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112895         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112896         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112897         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112898         also add missing comma that caused broken test.
112899         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112900         stdlib.h, for `abort'.
112901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112902         variables.
112903         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112904         include unistd.h if present, for `rmdir'.
112905         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112906         variables.
112907         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112908         in the process include standard headers for prototypes.
112909         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112910         gets declared on GNU/Linux.
112911         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112912         unistd.h, for `rmdir'.
112913         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112915         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112916         always true.
112917         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112919         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112921 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112923         * gnulib-tool (func_version): Create output all at once.  This
112924         may help avoid triggering unnecessary SIGPIPEs, and at any
112925         rate it doesn't hurt.
112927 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112928             Bruno Haible  <bruno@clisp.org>
112930         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112931         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112932         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112934         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112935         (gl_FUNC_VASPRINTF): Invoke it.
112937 2006-09-22  Bruno Haible  <bruno@clisp.org>
112939         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112940         getloadavg.c as first argument.
112942 2006-09-22  Bruno Haible  <bruno@clisp.org>
112944         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112945         at the beginning of the gl_INIT macro.
112946         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112947         gl_GETLOADAVG.
112949 2006-09-22  Bruno Haible  <bruno@clisp.org>
112951         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112952         module.
112953         Suggested by Ralf Wildenhues.
112955 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112957         Import this patch from libc:
112959         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112961         * lib/regex_internal.c (re_string_reconstruct): Handle
112962         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112963         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112964         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112965         re_string_context_at.
112967         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112968         now requires it.
112969         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112970         gl_REGEX now does it for us.
112971         (gl_REGEX): Add test taken from
112972         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112975         Check that large offsets work.  Modernize Autoconf usages.
112976         Prefer "yes" to mean a good thing rather than a bad.
112977         Don't put "#define mkstemp" in config.h, as this might interfere
112978         with standard system headers that "#define mkstemp mkstemp64".
112980         * modules/mkstemp (Depends-on): Add extensions, so that
112981         mkstemp is visible on some platforms.
112982         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112983         (Include): Change to "mkstemp.h" from <stdlib.h>.
112984         (Files): Add mkstemp.h.
112986         * lib/mkstemp.h: New file, since some standard headers
112987         #define mkstemp.
112988         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112989         Include "mkstemp.h".
112990         Make the _LIBC code resemble glibc original more,
112991         e.g., use K&R style.
112992         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112993         (mkstemp): Remove, since mkstemp.h does this for us.
112994         * lib/stdlib--.h: Include mkstemp.h.
112996         Import this patch from libc:
112998         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113000         * lib/tempname.c (__gen_tempname): Change attempts_min
113001         into a macro.  Use preprocessor to decide how to initialize
113002         attempts [Coverity CID 67].
113004 2006-09-20  Bruno Haible  <bruno@clisp.org>
113006         * lib/mkdtemp.c: Import from libc.
113007         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113008                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113009                 attempts_min into a macro.  Use preprocessor to decide how to
113010                 initialize attempts [Coverity CID 67].
113011         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113012                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113013                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113015 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113017         * gnulib-tool (func_exit): New function, to allow to pass the
113018         exit status portably through the trap.  Use everywhere.
113019         (--help, --version): Signal a write error.
113020         (trap): catch SIGPIPE, for write errors.
113021         Exit at the end of the trap, with the correct exit status.
113023 2006-09-19  Karl Berry  <karl@gnu.org>
113025         * doc/gnulib.texi: note about the license texinfo files.
113027 2006-09-19  Eric Blake  <ebb9@byu.net>
113029         * gnulib-tool: Avoid space-tab.
113031 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113033         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113034         that prevented coreutils 6.1 from building.  Problem reported
113035         by Petter Reinholdtsen.
113037 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113039         * gnulib-tool (avoidlist): Fix typo that broke options like
113040         --avoid=lock that are used by coreutils bootstrap.
113042 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113044         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113045         more systematically.
113047 2006-09-18  Jim Meyering  <jim@meyering.net>
113049         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113051 2006-09-18  Bruno Haible  <bruno@clisp.org>
113053         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113055 2006-09-18  Bruno Haible  <bruno@clisp.org>
113057         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113058         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113059         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113060         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113061         * m4/gettext.m4: Require autoconf >= 2.52.
113062         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113063         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113064         of gl_cv_header_inttypes_h.
113066 2006-09-18  Bruno Haible  <bruno@clisp.org>
113068         * lib/javaversion.c: Include configmake.h.
113070 2006-09-18  Bruno Haible  <bruno@clisp.org>
113072         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113073         avoid that the while loops be executed in a subshell.
113075 2006-09-18  Bruno Haible  <bruno@clisp.org>
113077         * MODULES.html.sh (func_module): Break long lines.
113078         Suggested by Bruce Korb <bkorb@gnu.org>.
113080 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113082         Speed up by a factor of 1.12.
113083         * gnulib-tool (nl): New variable.
113084         (func_import): Rewrite include directive extraction to only read each
113085         directive once.
113087 2006-09-17  Bruno Haible  <bruno@clisp.org>
113089         * modules/javaversion (Makefile.am): Remove DEFS setting.
113090         (Depends-on): Add configmake, for PKGDATADIR definition.
113092 2006-09-17  Bruno Haible  <bruno@clisp.org>
113094         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113096 2006-09-17  Bruno Haible  <bruno@clisp.org>
113098         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113099         (func_modules_transitive_closure, func_modules_add_dummy,
113100         func_modules_to_filelist, func_import, func_create_testdir,
113101         func_create_megatestdir, ...): Use it wherever possible.
113102         Suggested by Ralf Wildenhues.
113104 2006-09-16  Karl Berry  <karl@gnu.org>
113106         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113107         to avoid sectioning errors.
113108         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113109         [ifinfo]: blank line after @center-ed titles.
113110         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113111         Spell FSF address consistently with others.
113112         (These changes approved by rms.)
113114 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113116         Speed up by a factor of 1.61.
113117         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113118         already checked module names again.
113120 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113122         Speed up by a factor of 1.13.
113123         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113124         for new_files, and the input to func_add_or_update.
113126 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113128         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113129         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113131 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113133         * modules/mkancesdirs (Depends-on): Add fcntl.
113134         * modules/savewd: New file.
113135         * MODULES.html.sh (File system functions): Add savewd.
113137         * modules/configmake (Makefile.am): Add support for the
113138         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113140 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113142         * m4/savewd.m4: New file.
113144 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113146         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113147         (dirchownmod): New arg FD.  All callers changed.
113148         Use FD rather than opening the directory ourself, as opening is
113149         now the caller's responsibility.
113150         * lib/dirchownmod.h: Likewise.
113151         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113152         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113153         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113154         (test_dir): Remove.
113155         (mkancesdirs): Return length of prefix of FILE that has already
113156         been made, or -2 if there is a child doing the work.  Redo
113157         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113158         ".", and treat ".." specially since it might stray back into
113159         already-created areas.  Use a subprocess if necessary.  New arg
113160         WD; all users changed.  MAKE_DIR function should now return 1
113161         if it creates a directory that is not readable.  Return -2 if
113162         a child process is spun off.
113163         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113164         Adjust signature to match code.
113165         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113166         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113167         all users changed.
113168         * lib/savewd.c, lib/savewd.h: New files.
113170 2006-09-15  Jim Meyering  <jim@meyering.net>
113172         * modules/rename-dest-slash: New module.
113173         * MODULES.html.sh (posix_compat): Add it here.
113175         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113177 2006-09-15  Jim Meyering  <jim@meyering.net>
113179         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113180         file.
113182         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113184 2006-09-15  Jim Meyering  <jim@meyering.net>
113186         * lib/rename-dest-slash.c (has_trailing_slash): Use
113187         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113188         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113189         test before testing whether SRC is a directory.
113190         Suggestions from Bruno Haible.
113192         Avoid a warning about an unused variable.
113193         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113194         into the #ifdef block where it's used.
113196         * lib/rename-dest-slash.c: New file.
113198 2006-09-14  Bruno Haible  <bruno@clisp.org>
113200         * lib/allocsa.c: Include <config.h> unconditionally.
113201         * lib/asnprintf.c: Likewise.
113202         * lib/asprintf.c: Likewise.
113203         * lib/c-strcasecmp.c: Likewise.
113204         * lib/c-strcasestr.c: Likewise.
113205         * lib/c-strncasecmp.c: Likewise.
113206         * lib/c-strstr.c: Likewise.
113207         * lib/classpath.c: Likewise.
113208         * lib/clean-temp.c: Likewise.
113209         * lib/concatpath.c: Likewise.
113210         * lib/copy-file.c: Likewise.
113211         * lib/csharpcomp.c: Likewise.
113212         * lib/csharpexec.c: Likewise.
113213         * lib/execute.c: Likewise.
113214         * lib/fatal-signal.c: Likewise.
113215         * lib/findprog.c: Likewise.
113216         * lib/fwriteerror.c: Likewise.
113217         * lib/gl_array_list.c: Likewise.
113218         * lib/gl_array_oset.c: Likewise.
113219         * lib/gl_avltree_list.c: Likewise.
113220         * lib/gl_avltree_oset.c: Likewise.
113221         * lib/gl_avltreehash_list.c: Likewise.
113222         * lib/gl_carray_list.c: Likewise.
113223         * lib/gl_linked_list.c: Likewise.
113224         * lib/gl_linkedhash_list.c: Likewise.
113225         * lib/gl_list.c: Likewise.
113226         * lib/gl_oset.c: Likewise.
113227         * lib/gl_rbtree_list.c: Likewise.
113228         * lib/gl_rbtree_oset.c: Likewise.
113229         * lib/gl_rbtreehash_list.c: Likewise.
113230         * lib/imaxabs.c: Likewise.
113231         * lib/imaxdiv.c: Likewise.
113232         * lib/javacomp.c: Likewise.
113233         * lib/javaexec.c: Likewise.
113234         * lib/javaversion.c: Likewise.
113235         * lib/linebreak.c: Likewise.
113236         * lib/localcharset.c: Likewise.
113237         * lib/lock.c: Likewise.
113238         * lib/mbchar.c: Likewise.
113239         * lib/mbswidth.c: Likewise.
113240         * lib/mkdtemp.c: Likewise.
113241         * lib/pipe.c: Likewise.
113242         * lib/printf-args.c: Likewise.
113243         * lib/printf-parse.c: Likewise.
113244         * lib/progname.c: Likewise.
113245         * lib/progreloc.c: Likewise.
113246         * lib/readlink.c: Likewise.
113247         * lib/sh-quote.c: Likewise.
113248         * lib/stpcpy.c: Likewise.
113249         * lib/stpncpy.c: Likewise.
113250         * lib/strcasecmp.c: Likewise.
113251         * lib/strcasestr.c: Likewise.
113252         * lib/strcspn.c: Likewise.
113253         * lib/striconv.c: Likewise.
113254         * lib/strncasecmp.c: Likewise.
113255         * lib/strnlen1.c: Likewise.
113256         * lib/strstr.c: Likewise.
113257         * lib/strtok_r.c: Likewise.
113258         * lib/tls.c: Likewise.
113259         * lib/tmpdir.c: Likewise.
113260         * lib/unicodeio.c: Likewise.
113261         * lib/unsetenv.c: Likewise.
113262         * lib/vasnprintf.c: Likewise.
113263         * lib/vasprintf.c: Likewise.
113264         * lib/wait-process.c: Likewise.
113265         * lib/xallocsa.c: Likewise.
113266         * lib/xsetenv.c: Likewise.
113267         * lib/xstriconv.c: Likewise.
113269 2006-09-13  Simon Josefsson  <jas@extundo.com>
113271         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113272         that internally, suggested by Ralf Wildenhues
113273         <Ralf.Wildenhues@gmx.de>.
113275 2006-09-13  Simon Josefsson  <jas@extundo.com>
113277         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113278         @LIBOBJS@.
113279         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113281 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113283         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113284         longer worry about uses that don't define HAVE_CONFIG_H.
113285         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113286         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113287         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113288         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113289         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113290         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113291         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113292         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113293         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113294         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113295         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113296         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113297         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113298         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113299         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113300         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113301         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113302         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113303         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113304         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113305         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113306         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113307         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113308         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113309         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113310         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113311         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113312         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113313         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113314         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113315         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113316         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113317         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113318         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113319         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113320         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113321         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113322         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113323         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113324         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113325         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113326         Likewise.
113328 2006-09-13  Eric Blake  <ebb9@byu.net>
113330         * lib/getopt.c: Fix typo in last commit.
113332 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113334         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113335         dgettext.
113337 2006-09-12  Jim Meyering  <jim@meyering.net>
113339         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113340         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113341         Reported by Nelson H. F. Beebe.
113343 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113345         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113346         program_invocation_name and program_invocation_short_name are
113347         initialized.
113348         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113349         and program_invocation_short_name to argp.h, so they are visible
113350         to user programs.
113351         * lib/argp.h: Likewise
113353 2006-09-10  Bruno Haible  <bruno@clisp.org>
113355         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113356         m4/inttypes_h.m4, m4/uintmax_t.m4.
113358 2006-09-10  Bruno Haible  <bruno@clisp.org>
113360         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113361         gl_AC_TYPE_UINTMAX_T.
113363 2006-09-10  Bruno Haible  <bruno@clisp.org>
113365         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113367 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113369         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113370         convention.  Text proposed by Bruno Haible.
113371         (struct argp_option): Document the use of N_() wrappers.
113373         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113374         '\v', and translate the two parts separately, instead of feeding
113375         the whole string to gettext.  This allows to exclude
113376         '\v' from the strings visible to the translator by writing doc
113377         strings as N_("..") "\v" N_("..").
113379 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113381         * config/srclist.txt: Undo latest change; the bug was fixed.
113383 2006-09-09  Bruno Haible  <bruno@clisp.org>
113385         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113386         assignments if building a library without libtool.
113387         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113388         in func_emit_lib_Makefile_am.
113389         (func_import): When building a static library libfoo.a, arrange to
113390         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113391         (func_create_testdir): Likewise.
113392         * modules/gc (configure.ac, Makefile.am): If building statically,
113393         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113394         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113395         * modules/striconv (configure.ac, Makefile.am): Likewise.
113396         Based on a suggestion by Ralf Wildenhues.
113398 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113400         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113401         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113402         Also:
113404         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113405         Add year_2050_test to catch glibc bug 2821
113406         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113408         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113409         Prefer #ifdef to #if.
113411         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113412         Return from 'main' instead of calling 'exit'.
113414 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113416         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113417         returned the maximum time_t value rather than (time_t) -1.
113418         Problem originally reported by William Bardwell
113419         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113421         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113422         Moved to here ...
113423         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113424         ... from here.
113426 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113428         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113429         2821 is fixed.
113431 2006-09-08  Jim Meyering  <jim@meyering.net>
113433         Don't make generated files read-only.  That would bother too many
113434         people.  However, do retain the ability to work when targets are
113435         read-only: remove the destination and temporary files before writing
113436         them (when generated via sed or echo), or by using the -f option for
113437         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113438         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113439         * modules/byteswap, modules/configmake, modules/fcntl:
113440         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113441         * modules/localcharset, modules/netinet_in, modules/poll:
113442         * modules/stdbool, modules/stdint, modules/sys_select:
113443         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113445 2006-09-08  Jim Meyering  <jim@meyering.net>
113447         Avoid new build failure on FreeBSD 6.0.
113448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113449         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113450         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113452 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113456 2006-09-07  Jim Meyering  <jim@meyering.net>
113458         Fix global typo in last change: use chmod u-w, not chmod u-x.
113459         Spotted by Paul Eggert and Bruce Korb.
113460         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113461         * modules/byteswap, modules/configmake, modules/fcntl:
113462         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113463         * modules/localcharset, modules/netinet_in, modules/poll:
113464         * modules/stdbool, modules/stdint, modules/sys_select:
113465         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113467 2006-09-06  Jim Meyering  <jim@meyering.net>
113469         Make generated files be read-only.
113470         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113471         Ensure that each generated file is now read-only.
113472         * modules/argz: Likewise.
113473         * modules/arpa_inet: Likewise.
113474         * modules/byteswap: Likewise.
113475         * modules/configmake: Likewise.
113476         * modules/fcntl: Likewise.
113477         * modules/fnmatch: Likewise.
113478         * modules/getopt: Likewise.
113479         * modules/glob: Likewise.
113480         * modules/inttypes: Likewise.
113481         * modules/netinet_in: Likewise.
113482         * modules/poll: Likewise.
113483         * modules/stdbool: Likewise.
113484         * modules/stdint: Likewise.
113485         * modules/sys_select: Likewise.
113486         * modules/sys_socket: Likewise.
113487         * modules/sys_stat: Likewise.
113488         * modules/sysexits: Likewise.
113489         * modules/localcharset: Same as above, but continue using temporary
113490         file named "t-$@" (why different?) rather than the "$@-t" used
113491         everywhere else.
113493         * modules/sysexits (Makefile.am): Replace literal occurrences
113494         of "sysexit.h" more readable, and more consistent, "$@".
113496 2006-09-06  Bruno Haible  <bruno@clisp.org>
113498         * modules/striconv: New file.
113499         * modules/xstriconv: New file.
113500         * MODULES.html.sh (Internationalization functions): Add striconv,
113501         xstriconv.
113503 2006-09-06  Bruno Haible  <bruno@clisp.org>
113505         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113506         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113507         not using libtool correctly.
113509 2006-09-06  Bruno Haible  <bruno@clisp.org>
113511         * lib/striconv.h: New file.
113512         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113513         iconvstring.c.
113514         * lib/xstriconv.h: New file.
113515         * lib/xstriconv.c: New file.
113517 2006-09-06  Bruno Haible  <bruno@clisp.org>
113519         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113520         lib_..._LDFLAGS.
113522 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113524         * lib/argz_.h: Sync from Libtool.
113526         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113527                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113529         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113531 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113533         * modules/trim: New file.
113535 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113537         * lib/trim.h: New file.
113538         * lib/trim.c: New file.
113540 2006-09-05  Bruno Haible  <bruno@clisp.org>
113542         * MODULES.html.sh (String handling): Add trim.
113544 2006-09-04  Karl Berry  <karl@gnu.org>
113546         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113547         until next release.
113549 2006-09-03  Bruno Haible  <bruno@clisp.org>
113551         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113552         correctly.
113554 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113556         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113557         not gl_GETLOADAVG.  Omit unneeded semicolons.
113558         Problems reported by Ralf Wildenhues in
113559         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113560         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113561         at the end, which is the usual gnulib style.
113563         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113564         of doing all the work ourselves.
113565         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113566         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113568 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113570         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113571         Problem reported by Ralf Wildenhues in
113572         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113574         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113575         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113577 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113579         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113580         yesterday's patch by changing test -n to test -z.
113582 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113584         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113585         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113586         the former is now obsolescent.
113588         * modules/chdir-long (Depends-on): Add fcntl.
113590 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113592         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113593         obsolescent, and programs should use gnulib instead.
113594         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113595         but with prefixes changed.
113597 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113599         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113600         or stdbool.h, because they might not exist while configuring.
113602         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113603         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113604         does that for us.
113605         (O_DIRECTORY): Remove.
113607 2006-08-31  Eric Blake  <ebb9@byu.net>
113609         * gnulib-tool: Don't let emacs change spaces to TAB.
113611 2006-08-31  Bruno Haible  <bruno@clisp.org>
113613         * gnulib-tool: When calling func_import more than once, do it in a
113614         subshell.
113615         Reported by Eric Blake <ebb9@byu.net>.
113617 2006-08-31  Bruno Haible  <bruno@clisp.org>
113619         * gnulib-tool (nl): Remove variable.
113620         (sed_transform_lib_file): Use more robust test for config-h module.
113621         (func_import): Fix typo in 2006-08-25 patch.
113623 2006-08-31  Bruno Haible  <bruno@clisp.org>
113625         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113626         specified, augment Makefile.am variables instead of assigning them.
113628 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113630         Work around a bug in both the Linux and SunOS 64-bit kernels:
113631         nanosleep mishandles sleeps for longer than 2**31 seconds.
113632         Problem reported by Frank v Waveren in
113633         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113635         Check for nanosleep bug.
113636         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113638 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113640         Work around a bug in both the Linux and SunOS 64-bit kernels:
113641         nanosleep mishandles sleeps for longer than 2**31 seconds.
113642         Problem reported by Frank v Waveren in
113643         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113644         * lib/nanosleep.c (BILLION): New constant.
113645         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113646         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113647         implementation.
113649 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113651         * modules/nanosleep (Depends-on): Add gettime.
113653 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113654         and Simon Josefsson  <jas@extundo.com>
113655         and Oskar Liljeblad  <oskar@osk.mine.nu>
113657         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113658         * gnulib-tool (func_import): New license type 'unmodifiable license
113659         text'.
113660         * modules/fdl: Use it.  Longer description.
113661         * module/gpl, module/lgpl: New files.
113663 2006-08-30  Jim Meyering  <jim@meyering.net>
113665         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113666         shadowing the parameter.
113668 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113670         Sync from Libtool:
113672         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113674         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113675         sharing with gnulib.  Report by Eric Blake.
113677 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113679         * modules/isapipe: New file.
113680         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113682 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113684         * modules/configmake (Makefile.am): Add a comment, and omit
113685         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113686         by Bruno Haible.
113688 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113690         * m4/isapipe.m4: New file.
113692 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113694         * lib/isapipe.c, lib/isapipe.h: New files.
113696 2006-08-29  Jim Meyering  <jim@meyering.net>
113698         * modules/configmake (Makefile.am): Make configmake.h depend on
113699         Makefile.  Otherwise, a stale configmake.h could hang around.
113701 2006-08-29  Eric Blake  <ebb9@byu.net>
113703         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113704         resolution of upstream bug 3044.
113706 2006-08-29  Bruno Haible  <bruno@clisp.org>
113708         * modules/localcharset (Depends-on): Add configmake.
113709         (Makefile.am): Remove setting of LIBDIR through DEFS.
113711 2006-08-29  Bruno Haible  <bruno@clisp.org>
113713         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113714         defined.
113716 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113718         * modules/fcntl: New file.
113719         * modules/chdir-safer (Depends-on): Add fcntl.
113720         * modules/fts: Likewise.
113721         * modules/mkdir-p: Likewise.
113723         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113724         This undoes the most recent change, since we're now addressing the
113725         problem in a different way.
113727         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113728         into output, since the output might be called Makefile.am even
113729         if $makefile_name is something different.
113730         (func_import): Use $makefile_am rather than
113731         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113732         empty.
113734         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113736 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113738         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113739         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113740         recent change to stdint.m4, since we're now addressing the problem in a
113741         different way.
113743 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113745         * m4/fcntl_h.m4: New file.
113747 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113749         * lib/fcntl_.h: New file.
113750         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113751         the fcntl module.
113752         * lib/dirchownmod.c: Likewise.
113753         * lib/fts.c: Likewise.
113755         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113756         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113757         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113758         just before including <inttypes.h>, to avoid circular inclusion.
113760 2006-08-28  Jim Meyering  <jim@meyering.net>
113762         * doc/visibility.texi: Actually read and correct the grammar of the
113763         sentence affected by yesterday's change.
113765 2006-08-28  Eric Blake  <ebb9@byu.net>
113767         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113768         needs wrapper.
113770 2006-08-28  Eric Blake  <ebb9@byu.net>
113772         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113774 2006-08-28  Eric Blake  <ebb9@byu.net>
113776         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113778 2006-08-28  Bruno Haible  <bruno@clisp.org>
113780         * modules/c-strstr: New file, from GNU gettext.
113781         * MODULES.html.sh (String handling): Add c-strstr.
113783 2006-08-28  Bruno Haible  <bruno@clisp.org>
113785         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113786         macros.
113787         Reported by Eric Blake.
113789 2006-08-28  Bruno Haible  <bruno@clisp.org>
113791         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113792         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113793         * lib/vasprintf.c: Include errno.h, limits.h.
113794         (EOVERFLOW): New fallback definition.
113795         (vasprintf): Test here whether the string length is > INT_MAX.
113796         * lib/vsnprintf.c: Include errno.h, limits.h.
113797         (EOVERFLOW): New fallback definition.
113798         (vsnprintf): Fix bug when generated string was too long for the buffer.
113799         Test here whether the string length is > INT_MAX.
113801 2006-08-28  Bruno Haible  <bruno@clisp.org>
113803         * lib/inttypes_.h (SCNX*): Remove definitions.
113804         Reported by Eric Blake.
113806 2006-08-28  Bruno Haible  <bruno@clisp.org>
113808         * lib/c-strstr.h: New file, from GNU gettext.
113809         * lib/c-strstr.c: New file, from GNU gettext.
113811 2006-08-28  Bruno Haible  <bruno@clisp.org>
113813         * gnulib-tool: Reorder some statements.
113815 2006-08-28  Bruno Haible  <bruno@clisp.org>
113817         * gnulib-tool: New option --makefile-name.
113818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113819         $makefile_name.
113820         (func_import): Write $makefile_name to the cache file, and read it from
113821         there unless explicitly specified. Use $makefile_name as file name
113822         instead of Makefile.am. Adjust the recommendations accordingly.
113824 2006-08-28  Bruno Haible  <bruno@clisp.org>
113826         * gnulib-tool (func_verify_module): Check against misapplying patch.
113828 2006-08-28  Bruno Haible  <bruno@clisp.org>
113830         * gnulib-tool (func_relativize, func_relconcat): New functions.
113831         Give an error if --local-dir is given with --update.
113832         Remove trailing slashes from $local_gnulib_dir.
113833         (func_import): Store the relativized $local_gnulib_dir in
113834         gnulib-cache.m4, and read it from there if not specified explicitly.
113836 2006-08-28  Bruno Haible  <bruno@clisp.org>
113838         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113839         is the current directory. Respect also $local_gnulib_dir.
113841 2006-08-28  Bruno Haible  <bruno@clisp.org>
113842             Simon Josefsson  <jas@extundo.com>
113844         BeOS portability.
113845         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113847 2006-08-27  Jim Meyering  <jim@meyering.net>
113849         * doc/visibility.texi: Remove duplicate word: "pointer".
113851 2006-08-26  Bruno Haible  <bruno@clisp.org>
113853         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113854         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113855         (Makefile.am): Create inttypes.h from inttypes_.h.
113856         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113858         * modules/imaxabs: New file.
113860         * modules/imaxdiv: New file.
113862 2006-08-26  Bruno Haible  <bruno@clisp.org>
113864         * m4/inttypes.m4: New file.
113865         * m4/_inttypes_h.m4: Remove file.
113866         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113867         PRI_MACROS_BROKEN.
113868         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113870         * m4/imaxabs.m4: New file.
113872         * m4/imaxdiv.m4: New file.
113874 2006-08-26  Bruno Haible  <bruno@clisp.org>
113876         * lib/inttypes_.h: New file.
113877         * lib/inttypes.h: Remove file.
113878         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113880         * lib/imaxabs.c: New file.
113882         * lib/imaxdiv.c: New file.
113884 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113886         New config-h module, so that "make" output needn't be cluttered
113887         by -DHAVE_CONFIG_H.
113888         * MODULES.html.sh (Support for building libraries and executables):
113889         Add config-h.
113890         * modules/config-h: New file.
113891         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113892         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113893         the config-h module is used.
113895         New configmake module, so that "make" output needn't be cluttered
113896         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113897         * MODULES.html.sh (Support for building libraries and executables):
113898         Add configmake.
113899         * modules/configmake: New file.
113901 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113903         * m4/config-h.m4: New file.
113905 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113907         * config/srclist.txt: Add elisp-comp.
113909 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113911         * MODULES.html.sh (Support for building libraries and executables):
113912         Add elisp-comp.
113913         * build-aux/elisp-comp: New file.
113914         * modules/elisp-comp: New file.
113916 2006-08-24  Bruno Haible  <bruno@clisp.org>
113918         * gnulib-tool (func_create_testdir): Use non-default values of
113919         sourcebase and m4base.
113921 2006-08-24  Bruno Haible  <bruno@clisp.org>
113923         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113924         HTML structure.
113926 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113928         * modules/openat (Depends-on): Add lchown.
113930 2006-08-23  Bruno Haible  <bruno@clisp.org>
113932         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113933         of gl_LOCK_EARLY instead of gl_LOCK.
113935 2006-08-23  Bruno Haible  <bruno@clisp.org>
113937         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113938         on OSF/1 to no.
113939         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113941 2006-08-23  Bruno Haible  <bruno@clisp.org>
113943         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113944         as unusable.
113946         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113947         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113948         (gl_LOCK): New macro.
113950 2006-08-22  Simon Josefsson  <jas@extundo.com>
113952         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113953         to md5 module.
113955 2006-08-22  Simon Josefsson  <jas@extundo.com>
113957         * MODULES.html.sh: Add "Support for maintaining and release
113958         projects".
113960         * build-aux/gnupload: New file, from coreutils.
113962 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113964         Avoid the need for AC_LIBSOURCES in m4 macros.
113965         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113966         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113967         * modules/check-version (EXTRA_DIST): Add check-version.h.
113968         * modules/crc (EXTRA_DIST): Add crc.h.
113969         * modules/des (EXTRA_DIST): Add des.h.
113970         * modules/gc (EXTRA_DIST): Add gc.h.
113971         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113972         * modules/getline (EXTRA_DIST): Add getline.h.
113973         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113974         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113975         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113976         * modules/md2 (EXTRA_DIST): Add md2.h.
113977         * modules/md4 (EXTRA_DIST): Add md4.h.
113978         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113979         * modules/read-file (EXTRA_DIST): Add read-file.h.
113980         * modules/readline (EXTRA_DIST): Add readline.h.
113981         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113982         rijndael-api-fst.h.
113984 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113986         * m4/rijndael.m4 (gl_ARCFOUR):
113987         * m4/arctwo.m4 (gl_ARCTWO):
113988         * m4/check-version.m4 (gl_CHECK_VERSION):
113989         * m4/crc.m4 (gl_CRC):
113990         * m4/des.m4 (gl_DES):
113991         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113992         * m4/gc.m4 (gl_GC):
113993         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113994         * m4/getline.m4 (gl_FUNC_GETLINE):
113995         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113996         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113997         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113998         * m4/md2.m4 (gl_MD2):
113999         * m4/md4.m4 (gl_MD4):
114000         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114001         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114002         * m4/readline.m4 (gl_FUNC_READLINE):
114003         * m4/rijndael.m4 (gl_RIJNDAEL):
114004         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114005         to get the necessary .h files and whatnot.
114007 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114009         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114010         gnulib rather than the other way around.
114011         * config/srclistvars.sh (COREUTILS): Remove.
114013 2006-08-22  Jim Meyering  <jim@meyering.net>
114015         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114017         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114019 2006-08-22  Eric Blake  <ebb9@byu.net>
114021         * modules/regexprops-generic: New file.
114022         * MODULES.html.sh (Support for building documentation): List it.
114024 2006-08-22  Eric Blake  <ebb9@byu.net>
114026         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114027         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114028         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114029         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114031 2006-08-22  Bruno Haible  <bruno@clisp.org>
114033         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114034         and lib_LTLIBRARIES like the other lib_* variables.
114036 2006-08-22  Bruno Haible  <bruno@clisp.org>
114038         * build-aux/x-to-1.in: New file, from GNU gettext.
114040 2006-08-22  Bruno Haible  <bruno@clisp.org>
114042         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114043         <utmpx.h> exists.
114045 2006-08-22  Bruno Haible  <bruno@clisp.org>
114047         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114048         <utmpx.h> exists.
114050 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114052         BeOS portability.
114053         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114054         exist.
114055         Problem reported by Bruno Haible.
114057 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114059         Avoid the need for AC_LIBSOURCES in m4 macros.
114060         * modules/acl (EXTRA_DIST): Add acl.h.
114061         * modules/argmatch (Files): Add m4/argmatch.m4.
114062         (configure.ac): Add gl_ARGMATCH.
114063         (EXTRA_DIST): Renamed from lib_SOURCES, for
114064         consistency with the other modules.  Remove argmatch.c.
114065         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114066         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114067         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114068         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114069         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114070         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114071         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114072         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114073         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114074         * modules/closeout (EXTRA_DIST): Add closeout.h.
114075         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114076         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114077         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114078         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114079         dirname.h; remove basename.c and stripslash.c.
114080         * modules/exclude (EXTRA_DIST): Add exclude.h.
114081         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114082         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114083         * modules/file-type (EXTRA_DIST): Add file-type.h.
114084         * modules/filemode (EXTRA_DIST): Add filemode.h.
114085         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114086         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114087         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114088         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114089         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114090         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114091         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114092         * modules/getdate (EXTRA_DIST): Add getdate.c.
114093         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114094         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114095         * modules/getpass (EXTRA_DIST): Add getpass.h.
114096         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114097         * modules/group-member (EXTRA_DIST): Add group-member.h.
114098         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114099         * modules/hash (EXTRA_DIST): Add hash.h.
114100         * modules/human (EXTRA_DIST): Add human.h.
114101         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114102         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114103         * modules/lchown (EXTRA_DIST): Add lchown.h.
114104         * modules/long-options (EXTRA_DIST): Add long-options.h.
114105         * modules/lstat (EXTRA_DIST): Add lstat.h.
114106         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114107         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114108         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114109         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114110         * modules/memxor (EXTRA_DIST): Add memxor.h.
114111         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114112         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114113         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114114         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114115         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114116         * modules/physmem (EXTRA_DIST): Add physmem.h.
114117         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114118         * modules/posixver (EXTRA_DIST): Add posixver.h.
114119         * modules/quote (EXTRA_DIST): Add quote.h.
114120         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114121         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114122         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114123         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114124         regex_internal.h regexec.c.
114125         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114126         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114127         * modules/same (EXTRA_DIST): Add same.h.
114128         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114129         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114130         * modules/savedir (EXTRA_DIST): Add savedir.h.
114131         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114132         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114133         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114134         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114135         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114136         * modules/strdup (EXTRA_DIST): Add strdup.h.
114137         * modules/strftime (EXTRA_DIST): Add strftime.h.
114138         * modules/strndup (EXTRA_DIST): Add strndup.h.
114139         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114140         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114141         * modules/time_r (EXTRA_DIST): Add time_r.h.
114142         * modules/timespec (EXTRA_DIST): Add timespec.h.
114143         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114144         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114145         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114146         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114147         * modules/userspec (EXTRA_DIST): Add userspec.h.
114148         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114149         * modules/utimens (EXTRA_DIST): Add utimens.h.
114150         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114151         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114152         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114153         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114154         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114155         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114156         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114157         * modules/yesno (EXTRA_DIST): Add yesno.h.
114159 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114161         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114163         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114164         * m4/dev-ino.m4, same-inode.m4: Remove.
114166         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114167         * m4/acl.m4 (AC_FUNC_ACL):
114168         * m4/backupfile.m4 (gl_BACKUPFILE):
114169         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114170         * m4/canon-host.m4 (gl_CANON_HOST):
114171         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114172         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114173         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114174         * m4/cloexec.m4 (gl_CLOEXEC):
114175         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114176         * m4/closeout.m4 (gl_CLOSEOUT):
114177         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114178         * m4/dirname.m4 (gl_DIRNAME):
114179         * m4/exclude.m4 (gl_EXCLUDE):
114180         * m4/exitfail.m4 (gl_EXITFAIL):
114181         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114182         * m4/file-type.m4 (gl_FILE_TYPE):
114183         * m4/filemode.m4 (gl_FILEMODE):
114184         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114185         * m4/fpending.m4 (gl_FUNC_FPENDING):
114186         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114187         * m4/fts.m4 (gl_FUNC_FTS):
114188         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114189         * m4/getdate.m4 (gl_GETDATE):
114190         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114191         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114192         * m4/getpass.m4 (gl_FUNC_GETPASS):
114193         * m4/gettime.m4 (gl_GETTIME):
114194         * m4/getugroups.m4 (gl_GETUGROUPS):
114195         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114196         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114197         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114198         * m4/hash.m4 (gl_HASH):
114199         * m4/idcache.m4 (gl_IDCACHE):
114200         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114201         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114202         * m4/long-options.m4 (gl_LONG_OPTIONS):
114203         * m4/lstat.m4 (gl_FUNC_LSTAT):
114204         * m4/md5.m4 (gl_MD5):
114205         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114206         * m4/memcoll.m4 (gl_MEMCOLL):
114207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114209         * m4/memxor.m4 (gl_MEMXOR):
114210         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114211         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114212         * m4/modechange.m4 (gl_MODECHANGE):
114213         * m4/mountlist.m4 (gl_MOUNTLIST):
114214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114215         * m4/openat.m4 (gl_FUNC_OPENAT):
114216         * m4/pathmax.m4 (gl_PATHMAX):
114217         * m4/physmem.m4 (gl_PHYSMEM):
114218         * m4/posixtm.m4 (gl_POSIXTM):
114219         * m4/posixver.m4 (gl_POSIXVER):
114220         * m4/quote.m4 (gl_QUOTE):
114221         * m4/quotearg.m4 (gl_QUOTEARG):
114222         * m4/readtokens.m4 (gl_READTOKENS):
114223         * m4/readutmp.m4 (gl_READUTMP):
114224         * m4/regex.m4 (gl_REGEX):
114225         * m4/safe-read.m4 (gl_SAFE_READ):
114226         * m4/safe-write.m4 (gl_SAFE_WRITE):
114227         * m4/same.m4 (gl_SAME):
114228         * m4/save-cwd.m4 (gl_SAVE_CWD):
114229         * m4/savedir.m4 (gl_SAVEDIR):
114230         * m4/settime.m4 (gl_SETTIME):
114231         * m4/sha1.m4 (gl_SHA1):
114232         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114233         * m4/stat-macros.m4 (gl_STAT_MACROS):
114234         * m4/stat-time.m4 (gl_STAT_TIME):
114235         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114236         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114237         * m4/strdup.m4 (gl_FUNC_STRDUP):
114238         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114239         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114240         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114241         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114242         * m4/time_r.m4 (gl_TIME_R):
114243         * m4/timespec.m4 (gl_TIMESPEC):
114244         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114245         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114246         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114247         * m4/userspec.m4 (gl_USERSPEC):
114248         * m4/utimecmp.m4 (gl_UTIMECMP):
114249         * m4/utimens.m4 (gl_UTIMENS):
114250         * m4/xalloc.m4 (gl_XALLOC):
114251         * m4/xgetcwd.m4 (gl_XGETCWD):
114252         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114253         * m4/xreadlink.m4 (gl_XREADLINK):
114254         * m4/xstrtod.m4 (gl_XSTRTOD):
114255         * m4/yesno.m4 (gl_YESNO):
114256         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114257         to get the necessary .h files and whatnot.
114259 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114260             Bruno Haible  <bruno@clisp.org>
114262         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114263         /bin/sh understanding of '!' conditional negation.
114265 2006-08-21  Jim Meyering  <jim@meyering.net>
114267         * modules/openat (Depends-on): Really alphabetize.
114269         * modules/acl (Depends-on): Add error and quote.
114271         * check-module (find_included_lib_files): Add at-func.c to the
114272         ok-to-include-more-than-once white list.
114274         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114276 2006-08-21  Bruno Haible  <bruno@clisp.org>
114278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114279         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114280         Reported by Martin Lambers <marlam@marlam.de>.
114282 2006-08-21  Bruno Haible  <bruno@clisp.org>
114284         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114285         specify an installation location, don't emit a noinst_LIBRARIES or
114286         noinst_LTLIBRARIES assignment.
114288 2006-08-21  Bruno Haible  <bruno@clisp.org>
114290         BeOS portability.
114291         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114292         BeOS has mbrtowc() but no <wctype.h>.
114294 2006-08-21  Bruno Haible  <bruno@clisp.org>
114296         BeOS portability.
114297         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114298         exist.
114300 2006-08-21  Bruno Haible  <bruno@clisp.org>
114302         BeOS portability.
114303         * lib/mbchar.h: Include <wctype.h> only if it exists.
114305 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114307         Remove files that are no longer needed by their respective modules.
114308         * m4/obstack.m4: Remove.
114309         * m4/strerror_r.m4: Remove.
114310         * m4/uint32_t.m4: Remove.
114311         * m4/uintptr_t.m4: Remove.
114312         * m4/ullong_max.m4: Remove.
114313         * m4/xstrtoimax.m4: Remove.
114314         * m4/xstrtoumax.m4: Remove.
114316         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114317         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114318         dependencies now capture this.
114320         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114321         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114322         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114323         * m4/human.m4 (gl_HUMAN): Likewise.
114324         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114325         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114327         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114329         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114330         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114331         stdint.
114332         * m4/human.m4 (gl_HUMAN): Likewise.
114333         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114334         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114335         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114336         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114337         * m4/xstrtol (gl_XSTRTOL): Likewise.
114339         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114340         AC_TYPE_LONG_LONG_INT.
114341         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114342         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114343         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114344         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114346         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114347         on stdbool.
114349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114350         (gl_PREREQ_XSTRTOUL): Remove.
114352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114354         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114355         mode.
114357 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114359         Add and change modules to make it easier for coreutils to use
114360         gnulib-tool.
114361         * modules/backupfile (Files): Remove m4/d-ino.m4.
114362         (Depends-on): Add d-ino.
114363         * modules/cycle-check (Depends-on): Add stdint.
114364         (lib_SOURCES): Add cycle-check.h.
114365         * modules/d-ino: New module.
114366         * modules/d-type: New module.
114367         * modules/error (Files): Remove m4/strerror_r.m4.
114368         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114369         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114370         m4/inttypes_h.m4, m4/uintmax_t.m4.
114371         (Depends-on): Add stdint.
114372         (lib_SOURCES): Add fsusage.h.
114373         * modules/getcwd (Files): Remove d-ino.m4.
114374         (Depends-on): Add d-ino.
114375         * modules/getndelim2 (Depends-on): Add stdint.
114376         * modules/glob (Files): Remove m4/d-type.m4.
114377         (Depends-on): Add d-type.
114378         * modules/host-os: New module.
114379         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114380         m4/inttypes_h.m4, m4/uintmax_t.m4.
114381         * Depends-on: Add stdint.
114382         (lib_SOURCES): Add human.h.
114383         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114384         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114385         m4/uintmax_t.m4, m4/ulonglong.m4.
114386         (Depends-on): Add stdint.
114387         (EXTRA_DIST): Add inttostr.h.
114388         * modules/lchmod: New module.
114389         * modules/link-follow: New module.
114390         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114391         (Depends-on): Add lchmod.
114392         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114393         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114394         (Depends-on): Add stdint.
114395         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114396         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114397         (Depends-on): Add stdint.
114398         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114399         * modules/perl: New module.
114400         * modules/regex (Depends-on): Add stdint.
114401         * modules/rmdir-errno: New module.
114402         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114403         m4/intmax_t.m4.
114404         (Depends-on): Add stdint.
114405         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114406         m4/uintmax_t.m4.
114407         (Depends-on): Add stdint.
114408         * modules/unlink-busy: New module.
114409         * modules/utimecmp (Depends-on): Add stdint.
114410         * modules/uptime: New module.
114411         * modules/winsz-ioctl: New module.
114412         * modules/winsz-termios: New module.
114413         * modules/xnanosleep (Depends-on): Add nanosleep.
114414         * modules/ullong_max: Remove.
114415         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114416         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114417         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114418         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114419         (Depends-on): Add inttypes.
114420         (lib_SOURCES): Add xstrtol.h.
114421         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114422         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114423         * MODULES.html.sh: Move 'assert' into the assert section.
114424         Move 'dummy' into the linking section.
114425         Remove ullong_max.
114426         Add section for compatibility checks for POSIX:2001 functions,
114427         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114428         winsz-ioctl, and winsz-termios into it.
114429         Add lchmod.
114430         Add top-level Misc section and put host-os, perl, and uptime
114431         into it.
114433 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114435         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114436         now assume the stdint module.  Do not include inttypes.h.
114437         * lib/fsusage.h: Likewise.
114438         * lib/getndelim2.c: Likewise.
114439         * lib/human.h: Likewise.
114440         * lib/inttostr.h: Likewise.
114441         * lib/obstack.c: Likewise.
114442         * lib/regex_internal.h: Likewise.
114443         * lib/tempname.c: Likewise.
114444         * lib/utimecmp.c: Likewise.
114445         * lib/xstrtol.h: Likewise.
114447         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114449         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114450         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114451         * lib/xtime.h: Likewise.
114453 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114455         * modules/openat (Files): Add lib/fchmodat.c.
114456         Fixes problem reported by Jay Youngman.
114458 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114460         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114461         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114463 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114464             Bruno Haible  <bruno@clisp.org>
114466         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114467         and is a script that invokes bison. Tighten the code. Add comments.
114469 2006-08-18  Jim Meyering  <jim@meyering.net>
114471         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114472         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114473         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114474         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114476 2006-08-18  Bruno Haible  <bruno@clisp.org>
114478         * modules/bison-i18n: New file.
114479         * MODULES.html.sh (Internationalization functions): Add it.
114481 2006-08-18  Bruno Haible  <bruno@clisp.org>
114483         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114484         sys/statvfs.h. When getmntinfo was found, check its declaration and
114485         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114487 2006-08-18  Bruno Haible  <bruno@clisp.org>
114489         * m4/bison-i18n.m4: New file, from bison.
114491 2006-08-18  Bruno Haible  <bruno@clisp.org>
114493         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114494         (ME_DUMMY): Treat "kernfs" as a dummy.
114495         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114497 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114499         Update from coreutils.
114501         2006-08-15  Jim Meyering  <jim@meyering.net>
114503         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114505         2006-01-17  Jim Meyering  <jim@meyering.net>
114507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114509         2006-01-11  Jim Meyering  <jim@meyering.net>
114511         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114512         Check for the lchmod function.
114514 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114516         Update from coreutils.
114518         * lib/__fpending.h: Add copyright notice.
114519         * lib/fprintftime.h: Likewise.
114520         * lib/savedir.c: Use (C) in copyright notice.
114521         * lib/savedir.h: Likewise.
114523         2006-08-15  Jim Meyering  <jim@meyering.net>
114525         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114526         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114527         in support of the EXPECTED_ERRNO macro.
114528         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114529         definitions.  Instead, define the appropriate symbols and include
114530         "at-func.c".
114531         * lib/mkdirat.c (mkdirat): Likewise.
114532         * lib/fchmodat.c (fchmodat): Likewise.
114533         (ENOSYS): Remove definition.
114534         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114535         it.  Don't include "unistd--.h" -- it wasn't ever used.
114537         2006-01-17  Jim Meyering  <jim@meyering.net>
114539         Rewrite fts.c not to change the current working directory,
114540         by using openat, fstatat, fdopendir, etc..
114542         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114543         (HAVE_OPENAT_SUPPORT): Define.
114544         [_LIBC] (fchdir): Don't undef or define; no longer used.
114545         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114546         Now, this `function' always succeeds, and consumes its file descriptor
114547         parameter -- so callers must not close such FDs.  Update callers.
114548         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114549         (diropen): Add parameter, SP.  Adjust all callers.
114550         Implement using diropen_fd, rather than open.
114551         (fts_open): Initialize new member, fts_cwd_fd.
114552         Remove fts_rft-setting code.
114553         (fts_close): Close fts_cwd_fd, if necessary.
114554         (__opendir2): Define in terms of opendir or opendirat,
114555         depending on whether the FST_NOCHDIR flag is set.
114556         (fts_build): Since fts_safe_changedir consumes its FD, and since
114557         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114558         and close the dup'd file descriptor upon failure.
114559         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114560         (fts_safe_changedir): Tweak semantics to reflect that this function
114561         now calls cwd_advance_fd and hence consumes its FD argument.
114562         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114563         [struct FTS] (fts_rft): Remove now-unused member.
114564         [struct FTS] (fts_cycle.state): Improve comment.
114566         * lib/openat.c (openat_needs_fchdir): New function.
114567         * lib/openat.h (openat_needs_fchdir): Declare it.
114569 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114571         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114572         Problem and fix reported by Pádraig Brady in
114573         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114575 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114577         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114579 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114581         * lib/memcoll.c (memcoll): Optimize for the common case where the
114582         arguments are bytewise equal.
114584 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114586         * doc/regexprops-generic.texi: Add a copyright notice.
114588 2006-08-15  Bruno Haible  <bruno@clisp.org>
114590         * modules/tmpdir (License): Change to LGPL.
114592 2006-08-15  Bruno Haible  <bruno@clisp.org>
114594         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114595         module.
114597 2006-08-14  Simon Josefsson  <jas@extundo.com>
114599         * config/srclist.txt: Add gnupload.
114601 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114603         Change copyright notice from LGPL 2 to GPL 2, since that's the
114604         standard form used in the gnulib repository.
114605         * tests/test-lock.c: Likewise.
114606         * tests/test-stdint.c: Likewise.
114607         * tests/test-tls.c: Likewise.
114609         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114610         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114611         Add copyright notice.
114613         * check-module: Add copyright notice.  Output a copyright
114614         notice if "--version" is specified.
114615         * modules/COPYING: New file.
114616         * tests/test-getaddrinfo.c: Add copyright notice.
114617         * tests/test-verify.c: Likewise.
114619 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114621         Change copyright notice from LGPL 2 to GPL 2, since that's the
114622         standard form used in the gnulib repository.
114623         * lib/lock.c: LGPL -> GPL.
114624         * lib/lock.h: Likewise.
114625         * lib/strnlen1.c: Likewise.
114626         * lib/strnlen1.h: Likewise.
114627         * lib/tls.c: Likewise.
114628         * lib/tls.h: Likewise.
114629         * lib/tmpdir.c: Likewise.
114631         * lib/TODO: Remove; this belongs only in coreutils.
114633 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114635         Add copyright notices to long-enough files that lack them, since
114636         otherwise the files aren't clearly free.  Use the same notice that
114637         getdate.texi already uses.
114638         * doc/alloca-opt.texi: Add copyright notice.
114639         * doc/alloca.texi: Likewise.
114640         * doc/ctime.texi: Likewise.
114641         * doc/functions.texi: Likewise.
114642         * doc/gcd.texi: Likewise.
114643         * doc/gnulib-tool.texi: Likewise.
114644         * doc/inet_ntoa.texi: Likewise.
114645         * doc/visibility.texi: Likewise.
114647         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114648         * doc/quote.texi: Add copyright notice.
114650         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114651         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114652         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114653         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114654         is now obsolete, and give a pointer to the Sun list.
114655         Add copyright notice.
114657 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114659         * config/srclistvars.sh: Add copyright notice.
114661 2006-08-14  Eric Blake  <ebb9@byu.net>
114663         Import the following change from libc:
114665         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114667         Upstream bug 2997.
114668         * lib/misc/error.c: Add space between program name and message if file
114669         name is missing.
114671 2006-08-12  Karl Berry  <karl@gnu.org>
114673         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114674         remove, these originate in gnulib now.
114676 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114678         * doc/Makefile (standards.info standards.html standards.dvi):
114679         Also depend on make-stds.texi.
114681 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114683         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114684         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114686         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114687         in wchar_t.  Problem reported by Eric Blake.
114689         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114690         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114691         Also, help the compiler to keep LEN in a register.
114693 2006-08-11  Eric Blake  <ebb9@byu.net>
114695         * users.txt: Sort.  Add tar.
114697 2006-08-11  Bruno Haible  <bruno@clisp.org>
114699         * users.txt: New file.
114701 2006-08-11  Bruno Haible  <bruno@clisp.org>
114703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114704         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114706 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114708         * modules/snprintf (Depends-on): Remove minmax.
114709         (Maintainer): Add self and Bruno.
114711 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114713         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114714         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114715         (EOVERFLOW): Define if the system does not.
114716         Do not include "minmax.h"; it wasn't used.
114717         (snprintf): Don't assume size_t promotes to an unsigned type.
114718         Fix bug when generated string was too long for the buffer: the
114719         buffer's contents are supposed to be the initial prefix of the
114720         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114721         exceeds INT_MAX; do the check ourselves.
114723         Import the following changes from libc:
114725         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114727         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114728         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114729         set wc to the byte which couldn't be converted.
114730         (re_string_reconstruct): Don't clear valid_raw_len before calling
114731         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114732         tip_context using re_string_context_at.
114734         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114736         * lib/posix/regex.h: g++ still cannot handled [restrict].
114738         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114740         * lib/posix/regex.h: Remove special handling for VMS.
114742 2006-08-10  Jim Meyering  <jim@meyering.net>
114744         * modules/same-inode: New module.
114745         * modules/dev-ino: New module.
114746         * modules/cycle-check: Depend on these modules, rather than simply
114747         including their .h files.
114748         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114749         required via m4/cycle-check.m4.
114750         * modules/same: Depend on new same-inode module, rather than
114751         including same-inode.h.
114752         * modules/chdir-safer: New file.
114754         * modules/chown (Depends-on): Add stat-macros.
114756 2006-08-10  Jim Meyering  <jim@meyering.net>
114758         * m4/cycle-check.m4: New file.
114759         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114760         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114762 2006-08-10  Eric Blake  <ebb9@byu.net>
114764         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114765         in from original proposal.
114767 2006-08-10  Eric Blake  <ebb9@byu.net>
114768         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114770         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114771         namespace.
114773 2006-08-10  Bruno Haible  <bruno@clisp.org>
114775         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114776         as well.
114778 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114780         Sync from coreutils.
114782         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114784         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114785         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114787 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114789         * modules/restrict: Remove; no longer needed now that we assume
114790         Autoconf 2.59 or later.
114791         * MODULES.html.sh: Remove 'restrict'.
114792         * modules/argp (Depends-on): Remove 'restrict'.
114793         * modules/base64 (Depends-on): Likewise.
114794         * modules/gc (Depends-on): Likewise.
114795         * modules/getaddrinfo (Depends-on): Likewise.
114796         * modules/glob (Depends-on): Likewise.
114797         * modules/inet_ntop (Depends-on): Likewise.
114798         * modules/inet_pton (Depends-on): Likewise.
114799         * modules/memxor (Depends-on): Likewise.
114800         * modules/regex (Depends-on): Likewise.
114801         * modules/strtok_r (Depends-on): Likewise.
114802         * modules/time_r (Depends-on): Likewise.
114804 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114806         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114807         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114808         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114809         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114810         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114811         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114812         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114813         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114815         Merge from coreutils.
114816         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114817         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114819         * m4/time_r.m4 (gl_TIME_R): Likewise.
114821 2006-08-09  Karl Berry  <karl@gnu.org>
114823         * config/srclist.txt: no more gettext-tools, per Bruno.
114825 2006-08-08  Eric Blake  <ebb9@byu.net>
114827         * modules/verror: New module.
114828         * MODULES.html.sh: Document it.
114830 2006-08-08  Eric Blake  <ebb9@byu.net>
114832         * lib/verror.h, lib/verror.c: New files.
114834 2006-08-08  Eric Blake  <ebb9@byu.net>
114836         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114837         verror_at_line output complies with GNU Coding Standards even when
114838         file is NULL.
114840 2006-08-07  Bruno Haible  <bruno@clisp.org>
114842         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114843         versions of AIX.
114844         Reported by Ralf Wildenhues.
114846 2006-08-07  Bruno Haible  <bruno@clisp.org>
114848         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114849         in an AC_DEFUN. Needed so that the autoconf snippets can use
114850         AC_REQUIRE.
114852 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114855         Initialize pkgdata_DATA.
114856         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114857         overriding it.
114859 2006-08-06  Eric Blake  <ebb9@byu.net>
114861         * lib/error.h: Fold in some upstream changes from glibc.
114862         * lib/error.c: Likewise.
114864 2006-08-04  Bruno Haible  <bruno@clisp.org>
114866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114867         Make the mostlyclean-local rule depend on mostlyclean-generic.
114868         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114870 2006-07-31  Bruno Haible  <bruno@clisp.org>
114872         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114873         <stdlib.h>, <string.h>.
114875 2006-07-30  Bruno Haible  <bruno@clisp.org>
114877         * modules/readlink (License): Change to LGPL.
114879 2006-07-30  Bruno Haible  <bruno@clisp.org>
114881         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114882         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114883         set PKGDATADIR to point to it.
114885 2006-07-30  Bruno Haible  <bruno@clisp.org>
114887         * modules/csharpexec (configure.ac): Comment out macro invocation.
114888         * modules/javaexec (configure.ac): Likewise.
114889         * modules/javacomp-script (configure.ac): Likewise.
114891         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114893 2006-07-30  Bruno Haible  <bruno@clisp.org>
114895         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114896         linked-list.
114898 2006-07-30  Bruno Haible  <bruno@clisp.org>
114900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114902 2006-07-30  Bruno Haible  <bruno@clisp.org>
114904         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114905         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114906         get removed.
114908 2006-07-29  Bruno Haible  <bruno@clisp.org>
114910         Make it possible for gnulib-tool to work with locally modified or
114911         augmented gnulib repositories.
114912         * gnulib-tool (func_usage): Document --local-dir option.
114913         (local_gnulib_dir): New variable.
114914         Handle --local-dir option.
114915         (func_lookup_file): New function.
114916         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114917         (func_get_description, func_get_filelist, func_get_description,
114918         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114919         func_get_automake_snippet, func_get_include_directive,
114920         func_get_license, func_get_maintainer): Use func_lookup_file.
114921         (func_import, func_create_testdir): Use func_lookup_file.
114923 2006-07-29  Bruno Haible  <bruno@clisp.org>
114925         * modules/setenv (Depends-on): Add unistd.
114927 2006-07-29  Bruno Haible  <bruno@clisp.org>
114929         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114931 2006-07-29  Bruno Haible  <bruno@clisp.org>
114933         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114935 2006-07-29  Bruno Haible  <bruno@clisp.org>
114937         * gnulib-tool (import, update): If there is no Makefile.am, look at
114938         aclocal.m4, instead of bailing out.
114940 2006-07-29  Bruno Haible  <bruno@clisp.org>
114942         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114943         Categorize the options by when they are useful.
114945 2006-07-29  Bruno Haible  <bruno@clisp.org>
114947         * gnulib-tool (func_usage): Document option --no-libtool.
114948         Handle option --no-libtool.
114949         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114950         for changed semantics of $libtool variable.
114951         (func_import): Likewise. If libtool is not used, show this through
114952         an option --no-libtool.
114953         (func_create_testdir): Update.
114955 2006-07-29  Bruno Haible  <bruno@clisp.org>
114957         * gnulib-tool (func_import): Extend error message about missing
114958         --doc-base.
114960 2006-07-29  Bruno Haible  <bruno@clisp.org>
114962         * gnulib-tool (func_import): Don't create the $docbase directory if
114963         there is no file to store there.
114965 2006-07-29  Bruno Haible  <bruno@clisp.org>
114967         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114968         relevant, look for configure.ac there, not in the current directory.
114969         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114971 2006-07-29  Bruno Haible  <bruno@clisp.org>
114973         * gnulib-tool (SORT): New variable.
114974         (func_usage): Undocument --assume-autoconf option.
114975         Remove --assume-autoconf option handling.
114976         (autoconf_minversion): Determine from the contents of configure.ac.
114977         (func_import): Remove autoconf_minversion handling.
114978         Suggested by Eric Blake.
114980 2006-07-29  Bruno Haible  <bruno@clisp.org>
114982         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114984 2006-07-29  Bruno Haible  <bruno@clisp.org>
114986         * config/srclist.txt (*setenv.[ch]): Remove rules.
114988 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114990         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114992 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114994         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114995         arpa/inet.h.
114997 2006-07-28  Simon Josefsson  <jas@extundo.com>
114999         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115000         * modules/inet_pton (Depends-on): Likewise.
115002 2006-07-28  Simon Josefsson  <jas@extundo.com>
115004         * m4/netinet_in_h.m4: New file.
115006 2006-07-28  Simon Josefsson  <jas@extundo.com>
115008         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115009         #include's.
115011 2006-07-28  Simon Josefsson  <jas@extundo.com>
115013         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115014         #include's.
115016 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115018         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115019         setgid on directories only if they set these bits.
115020         * lib/modechange.h: Remove obsolete comment about masks.
115022 2006-07-28  Eric Blake  <ebb9@byu.net>
115024         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115025         macro expansion.
115027 2006-07-28  Bruno Haible  <bruno@clisp.org>
115029         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115031 2006-07-28  Bruno Haible  <bruno@clisp.org>
115033         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115035 2006-07-28  Bruno Haible  <bruno@clisp.org>
115037         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115038         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115039         Define fallbacks.
115040         Avoids link error on FreeBSD 4.x.
115041         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115043         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115044         encoding.
115045         * lib/mbswidth.c (iswcntrl): Likewise.
115047 2006-07-27  Bruno Haible  <bruno@clisp.org>
115049         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115050         test.
115052 2006-07-27  Bruno Haible  <bruno@clisp.org>
115054         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115055         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115056         defined.
115058 2006-07-26  Eric Blake  <ebb9@byu.net>
115060         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115062 2006-07-26  Eric Blake  <ebb9@byu.net>
115064         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115065         like mingw that lack mkstemp.
115066         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115067         avoid compilation warning on mingw.
115069 2006-07-26  Bruno Haible  <bruno@clisp.org>
115071         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115072         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115073         INT_FAST*_MIN, INTPTR_MIN.
115075 2006-07-25  Bruno Haible  <bruno@clisp.org>
115077         * modules/version-etc (Depends-on): Add stdarg.
115079 2006-07-25  Bruno Haible  <bruno@clisp.org>
115081         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115082         complex commands.
115084 2006-07-25  Bruno Haible  <bruno@clisp.org>
115086         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115087         defined in <stdarg.h> or config.h.
115089 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115091         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115092         (gl_STDIO_SAFER): Remove.
115094 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115096         * MODULES.html.sh (File stream based Input/Output):
115097         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115098         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115099         * modules/fopen-safer, modules/tmpfile-safer: New files.
115100         * modules/stdio-safer: Remove.
115102 2006-07-24  Bruno Haible  <bruno@clisp.org>
115104         * modules/tmpdir: New file.
115105         * MODULES.html.sh (File system functions): Add it.
115107 2006-07-24  Bruno Haible  <bruno@clisp.org>
115109         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115110         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115112 2006-07-24  Bruno Haible  <bruno@clisp.org>
115114         * modules/clean-temp: New file.
115116 2006-07-24  Bruno Haible  <bruno@clisp.org>
115118         * m4/tmpdir.m4: New file, from GNU gettext.
115120 2006-07-24  Bruno Haible  <bruno@clisp.org>
115122         * lib/tmpdir.h: New file, from GNU gettext.
115123         * lib/tmpdir.c: New file, from GNU gettext.
115125 2006-07-24  Bruno Haible  <bruno@clisp.org>
115127         * lib/clean-temp.h: New file, from GNU gettext.
115128         * lib/clean-temp.c: New file, from GNU gettext.
115130 2006-07-23  Eric Blake  <ebb9@byu.net>
115132         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115133         (Depends-on): Add binary-io.
115135 2006-07-23  Eric Blake  <ebb9@byu.net>
115137         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115139 2006-07-23  Eric Blake  <ebb9@byu.net>
115141         * lib/tmpfile-safer.c: New file.
115142         * lib/stdio-safer.h (fopen_safer): Add prototype.
115143         * lib/stdio--.h (tmpfile): Make safer.
115145 2006-07-23  Bruno Haible  <bruno@clisp.org>
115147         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115148         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115149         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115150         gl_linked_remove_at): Use it.
115152 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115153         and Simon Josefsson <jas@extundo.com>
115155         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115157         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115161         * modules/close-stream: New file.
115162         * modules/closeout (Description): Make it clear that it exits
115163         with a diagnostic on error.
115164         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115165         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115167 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115169         * m4/close-stream.m4: New file.
115171 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115173         * lib/close-stream.c, lib/close-stream.h: New files.
115175 2006-07-22  Bruno Haible  <bruno@clisp.org>
115177         Merge from GNU gettext 0.15.
115179         2006-05-01  Bruno Haible  <bruno@clisp.org>
115181                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115183         2006-07-22  Bruno Haible  <bruno@clisp.org>
115185                 * modules/javaversion: New file.
115186                 * MODULES.html.sh (Java): Add javaversion.
115188         2006-03-12  Bruno Haible  <bruno@clisp.org>
115190                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115192         2005-12-04  Bruno Haible  <bruno@clisp.org>
115194                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115195                 (untested).
115197         2006-06-21  Bruno Haible  <bruno@clisp.org>
115199                 Avoid warnings from recent versions of mcs.
115200                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115201                 -o, -L, -r any more. Use options documented since mcs-1.0
115202                 instead. Similarly for -g.
115204         2005-12-04  Bruno Haible  <bruno@clisp.org>
115206                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115207                 .resources, not .resource.
115209         2005-07-09  Bruno Haible  <bruno@clisp.org>
115211                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115212                 add a .dll suffix.
115213                 Reported by Mark Junker <mjscod@gmx.de>.
115215         2006-07-22  Bruno Haible  <bruno@clisp.org>
115217                 * modules/gettext: Upgrade to gettext-0.15.
115218                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115219                 m4/visibility.m4.
115220                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115222 2006-07-22  Bruno Haible  <bruno@clisp.org>
115224         Merge from GNU gettext 0.15.
115226         2006-03-25  Bruno Haible  <bruno@clisp.org>
115228                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115230         2006-07-21  Bruno Haible  <bruno@clisp.org>
115232                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115233                 "1.1".
115235         2006-05-09  Bruno Haible  <bruno@clisp.org>
115237                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115238                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115239                 for the conftestver execution.
115241         2006-05-01  Bruno Haible  <bruno@clisp.org>
115243                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115244                 optional target-version argument. Verify that the compiler
115245                 groks source of the specified source-version, or add -source
115246                 option as necessary. Verify that the compiler produces
115247                 bytecode in the specified target-version, or add -target and
115248                 -source options as necessary. Make the result of the test
115249                 available as variable CONF_JAVAC. Also log error output in
115250                 config.log.
115252         2006-03-11  Bruno Haible  <bruno@clisp.org>
115254                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115256         2006-05-09  Bruno Haible  <bruno@clisp.org>
115258                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115259                 CLASSPATH_SEPARATOR to a semicolon.
115261         2006-03-12  Bruno Haible  <bruno@clisp.org>
115263                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115264                 available as variable CONF_JAVA, for subsequent autoconf
115265                 tests. Also log error output in config.log.
115267         2006-07-19  Bruno Haible  <bruno@clisp.org>
115269                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115270                 that getline works on glibc2 systems. Needed to avoid trouble
115271                 in relocatable.c.
115272                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115274         2005-12-04  Bruno Haible  <bruno@clisp.org>
115276                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115277                 launcher (untested).
115279         2005-12-04  Bruno Haible  <bruno@clisp.org>
115281                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115283         2006-07-22  Bruno Haible  <bruno@clisp.org>
115285                 * gettext.m4: Update from GNU gettext-0.15.
115286                 * nls.m4: Likewise.
115287                 * po.m4: Likewise.
115288                 * inttypes-pri.m4: Likewise.
115289                 * inttypes-h.m4: Renamed from inttypes.m4.
115290                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115292 2006-07-22  Bruno Haible  <bruno@clisp.org>
115294         Merge from GNU gettext 0.15.
115296         2005-07-05  Bruno Haible  <bruno@clisp.org>
115298                 * printf-args.c (printf_fetchargs): Work around broken
115299                 definition of wint_t on mingw.
115301         2005-02-12  Bruno Haible  <bruno@clisp.org>
115303                 * xallocsa.h: Add extern "C" for C++.
115305         2006-05-17  Bruno Haible  <bruno@clisp.org>
115307                 Cygwin portability.
115308                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115310         2006-04-30  Bruno Haible  <bruno@clisp.org>
115312                 * progreloc.c: Include <mach-o/dyld.h> if available.
115313                 (find_executable): Use _NSGetExecutablePath when possible.
115315         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115317                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115318                 function.
115320         2005-12-29  Bruno Haible  <bruno@clisp.org>
115322                 * progreloc.c (set_program_name_and_installdir): Fix
115323                 compilation error.
115325         2005-12-04  Bruno Haible  <bruno@clisp.org>
115327                 Cygwin portability.
115328                 * progreloc.c: Include <windows.h> also on Cygwin.
115329                 (find_executable): Add support for Cygwin.
115330                 (set_program_name_and_installdir): Handle also platforms with
115331                 nonempty EXEEXT.
115333         2006-07-11  Bruno Haible  <bruno@clisp.org>
115335                 * javacomp.c: Fix a comment.
115336                 Reported by Jim Meyering.
115338         2006-04-30  Bruno Haible  <bruno@clisp.org>
115340                 * javacomp.h (compile_java_class): Add source_version,
115341                 target_version arguments.
115342                 * javacomp.c: Rewritten to choose only a compiler that
115343                 respects the specified source_version and target_version.
115345         2006-06-27  Bruno Haible  <bruno@clisp.org>
115347                 Assume correct S_ISDIR macro.
115348                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115350         2006-07-22  Bruno Haible  <bruno@clisp.org>
115352                 * javaversion.h: New file, from GNU gettext.
115353                 * javaversion.c: New file, from GNU gettext.
115354                 * javaversion.java: New file, from GNU gettext.
115355                 * javaversion.class: New file, from GNU gettext.
115357         2006-05-17  Bruno Haible  <bruno@clisp.org>
115359                 Cygwin portability.
115360                 * javaexec.c (execute_java_class): Test for jview program
115361                 also on Cygwin.
115363         2006-04-09  Bruno Haible  <bruno@clisp.org>
115365                 * fatal-signal.c: Don't include string.h.
115366                 (at_fatal_signal): Use a copying loop instead of memcpy.
115368         2005-12-04  Bruno Haible  <bruno@clisp.org>
115370                 * csharpexec.c: Add support for 'clix' launcher (untested).
115371                 (execute_csharp_using_sscli): New function.
115372                 (execute_csharp_program): Call it.
115374         2006-06-21  Bruno Haible  <bruno@clisp.org>
115376                 Avoid warnings from recent versions of mcs.
115377                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115378                 -o, -L, -r any more. Use options documented since mcs-1.0
115379                 instead. Similarly for -g.
115381         2005-07-09  Bruno Haible  <bruno@clisp.org>
115383                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115384                 add a .dll suffix.
115385                 Reported by Mark Junker <mjscod@gmx.de>.
115387         2006-06-17  Bruno Haible  <bruno@clisp.org>
115389                 * config.charset: Update for NetBSD 3.0.
115391         2006-05-17  Bruno Haible  <bruno@clisp.org>
115393                 Cygwin portability.
115394                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115396         2006-05-16  Bruno Haible  <bruno@clisp.org>
115398                 * localcharset.c [CYGWIN]: Include <windows.h>.
115399                 (get_charset_aliases): For Cygwin, return the same CPxxx
115400                 aliases list as under WIN32.
115401                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115402                 the environment variables. Fall back to GetACP().
115404         2006-04-05  Bruno Haible  <bruno@clisp.org>
115406                 * config.charset: Update Juan Manuel Guerrero's address.
115408         2005-02-12  Bruno Haible  <bruno@clisp.org>
115410                 * allocsa.h: Add extern "C" for C++.
115412         2005-02-10  Bruno Haible  <bruno@clisp.org>
115414                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115415                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115417         2006-07-22  Bruno Haible  <bruno@clisp.org>
115419                 * gettext.h: Update to GNU gettext-0.15.
115421 2006-07-22  Bruno Haible  <bruno@clisp.org>
115423         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115424         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115425         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115427 2006-07-21  Eric Blake  <ebb9@byu.net>
115429         * modules/stdlib-safer: New file.
115430         * MODULES.html.sh (File stream based Input/Output): Add
115431         stdlib-safer.
115433 2006-07-21  Eric Blake  <ebb9@byu.net>
115435         * lib/stdlib-safer.h: New file from coreutils, required by
115436         stdlib--.h.
115438 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115440         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115442 2006-07-20  Bruno Haible  <bruno@clisp.org>
115444         * gnulib-tool: Recognize new option --assume-autoconf.
115445         (autoconf_minversion): New variable.
115446         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115448 2006-07-20  Bruno Haible  <bruno@clisp.org>
115450         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115452 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115454         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115455         Reindent and repaginate.
115457 2006-07-19  Derek Price  <derek@ximbiot.com>
115459         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115460         Correct grammar.
115462 2006-07-17  Bruno Haible  <bruno@clisp.org>
115464         * modules/list: New file.
115465         * modules/array-list: New file.
115466         * modules/carray-list, modules/carray-list-tests: New files.
115467         * modules/linked-list, modules/linked-list-tests: New files.
115468         * modules/avltree-list, modules/avltree-list-tests: New files.
115469         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115470         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115471         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115472         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115473         * modules/oset: New file.
115474         * modules/array-oset: New file.
115475         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115476         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115477         * tests/test-carray_list.c: New file.
115478         * tests/test-linked_list.c: New file.
115479         * tests/test-avltree_list.c: New file.
115480         * tests/test-rbtree_list.c: New file.
115481         * tests/test-linkedhash_list.c: New file.
115482         * tests/test-avltreehash_list.c: New file.
115483         * tests/test-rbtreehash_list.c: New file.
115484         * tests/test-avltree_oset.c: New file.
115485         * tests/test-rbtree_oset.c: New file.
115486         * MODULES.html.sh (Container data structures): New section.
115488 2006-07-17  Bruno Haible  <bruno@clisp.org>
115490         * m4/gl_list.m4: New file.
115492 2006-07-17  Bruno Haible  <bruno@clisp.org>
115494         * lib/gl_list.h: New file.
115495         * lib/gl_list.c: New file.
115496         * lib/gl_array_list.h: New file.
115497         * lib/gl_array_list.c: New file.
115498         * lib/gl_carray_list.h: New file.
115499         * lib/gl_carray_list.c: New file.
115500         * lib/gl_linked_list.h: New file.
115501         * lib/gl_linked_list.c: New file.
115502         * lib/gl_anylinked_list1.h: New file.
115503         * lib/gl_anylinked_list2.h: New file.
115504         * lib/gl_avltree_list.h: New file.
115505         * lib/gl_avltree_list.c: New file.
115506         * lib/gl_anyavltree_list1.h: New file.
115507         * lib/gl_anyavltree_list2.h: New file.
115508         * lib/gl_rbtree_list.h: New file.
115509         * lib/gl_rbtree_list.c: New file.
115510         * lib/gl_anyrbtree_list1.h: New file.
115511         * lib/gl_anyrbtree_list2.h: New file.
115512         * lib/gl_anytree_list1.h: New file.
115513         * lib/gl_anytree_list2.h: New file.
115514         * lib/gl_linkedhash_list.h: New file.
115515         * lib/gl_linkedhash_list.c: New file.
115516         * lib/gl_anyhash_list1.h: New file.
115517         * lib/gl_anyhash_list2.h: New file.
115518         * lib/gl_avltreehash_list.h: New file.
115519         * lib/gl_avltreehash_list.c: New file.
115520         * lib/gl_rbtreehash_list.h: New file.
115521         * lib/gl_rbtreehash_list.c: New file.
115522         * lib/gl_anytreehash_list1.h: New file.
115523         * lib/gl_anytreehash_list2.h: New file.
115525         * lib/gl_oset.h: New file.
115526         * lib/gl_oset.c: New file.
115527         * lib/gl_array_oset.h: New file.
115528         * lib/gl_array_oset.c: New file.
115529         * lib/gl_avltree_oset.h: New file.
115530         * lib/gl_avltree_oset.c: New file.
115531         * lib/gl_rbtree_oset.h: New file.
115532         * lib/gl_rbtree_oset.c: New file.
115533         * lib/gl_anytree_oset.h: New file.
115535 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115537         * m4/mkancesdirs.m4: New file.
115538         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115539         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115540         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115541         it.
115543 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115545         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115546         * lib/mkancesdirs.h: New files.
115547         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115548         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115549         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115550         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115551         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115552         callers changed.  Revamp internals significantly, by not
115553         attempting to create directories that are temporarily more
115554         permissive than the final results.  Do not attempt to use
115555         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115556         This removes some race conditions, fixes some bugs, and simplifies
115557         things.  Use new dirchownmod function to do owner and mode changes.
115558         * lib/mkdir-p.h: Likewise.
115559         * lib/modechange.c (octal_to_mode): New function.
115560         (struct mode_change): New member mentioned.
115561         (make_node_op_equals): New arg mentioned.  All callers changed.
115562         (mode_compile): Keep track of which mode bits the user has explicitly
115563         mentioned.
115564         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115565         New arg PMODE_BITS, to keep track of which mode bits the user
115566         mentioned; it treats S_ISUID and S_ISGID speciall.
115567         All callers changed.
115568         * lib/modechange.h: Likewise.
115570 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115572         * MODULES.html.sh: Add mkancestors.
115573         * modules/mkancesdirs: New module.
115574         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115575         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115576         The chdir-safer and afs files are now orphans; I'll remove them
115577         unless someone speaks up.
115578         Add lib/dirchownmod.c, lib/dirchownmod.h.
115579         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115580         Add lchown, mkancesdirs.
115581         (Maintainer): Add self.
115583 2006-07-15  Karl Berry  <karl@gnu.org>
115585         * gnulib-tool: help message wording/arrangement.
115587 2006-07-14  Simon Josefsson  <jas@extundo.com>
115589         * doc/gnulib.texi (Libtool and Windows): New section.
115591 2006-07-12  Simon Josefsson  <jas@extundo.com>
115593         * modules/gendocs (License): Fix license, approved by Karl.
115595 2006-07-12  Eric Blake  <ebb9@byu.net>
115597         * MODULES.html.sh: Add gendocs.
115599 2006-07-11  Eric Blake  <ebb9@byu.net>
115601         * modules/fdl: New module, to install doc/fdl.texi.
115602         * MODULES.html.sh: Add new section for documentation modules.
115603         * gnulib-tool: Avoid space-tab.
115604         (--doc-base): New option, to manage files from doc.
115606 2006-07-11  Eric Blake  <ebb9@byu.net>
115608         * m4/absolute-header.m4: Fix comments to match recent change.
115610 2006-07-11  Eric Blake  <ebb9@byu.net>
115612         * gnulib-tool: List --doc-base before --tests-base.
115614 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115616         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115618 2006-07-11  Bruno Haible  <bruno@clisp.org>
115620         * README: Mention where to put documentation.
115622 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115624         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115626 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115628         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115629         to stdint.m4.
115631 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115633         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115634         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115635         "no/such/file/stdint.h" when there is no such file, so that
115636         the resulting C code can be parsed by dodgy compilers.
115637         Problems reported by Bob Proulx.
115639 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115641         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115642         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115643         macros into the GNU _D_EXACT_NAMLEN.
115644         * lib/savedir.c:  Likewise.
115645         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115647 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115648         and Paul Eggert  <eggert@cs.ucla.edu>
115650         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115651         * m4/savedir.m4:
115652         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115653         macros into the GNU _D_EXACT_NAMLEN.
115655 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115658         around the absolute name, to work around a problem with the HP-UX
115659         11.23 native C compiler, reported by Bob Proulx.
115661 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115663         * doc/maintain.texi, make-stds.texi: Sync from
115664         <http://savannah.gnu.org/projects/gnustandards>.
115666 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115668         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115670 2006-07-09  Jim Meyering  <jim@meyering.net>
115672         * m4/glob.m4: Remove a doubled word in a comment.
115674 2006-07-09  Jim Meyering  <jim@meyering.net>
115676         * lib/argp-pv.c: Remove a doubled word in a comment.
115677         * lib/check-version.c (check_version): Likewise.
115678         * lib/javacomp.c (compile_java_class): Likewise.
115680 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115682         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115683         for the benefit of people using Autoconf 2.60.  If you want to
115684         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115685         (or m4/onceonly.m4, if pre-2.57) manually.
115687 2006-07-08  Jim Meyering  <jim@meyering.net>
115689         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115690         comment.
115691         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115692         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115693         comment.
115695 2006-07-08  Jim Meyering  <jim@meyering.net>
115697         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115699 2006-07-07  Simon Josefsson  <jas@extundo.com>
115701         * tests/test-crc.c: Change expected crc value, the test vector
115702         were probably computed using the old broken crc.c?
115704 2006-07-06  Simon Josefsson  <jas@extundo.com>
115706         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115707         now the canonical place for the M4 file).
115709         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115710         from the sys_socket dependency now.
115712         * modules/inet_pton (Files): Ditto.
115714         * modules/inet_ntop (Files): Ditto.
115716 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115718         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115719         not gl_PREREQ_GETUSERSHELL.
115721 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115723         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115724         with only one argument, for Autoconf 2.60.
115725         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115726         expand to nothing, so add a shell command to avoid syntax error.
115727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115729 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115731         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115733 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115735         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115736         no longer needed.  Check for isblank decl.
115737         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115738         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115739         of existence.
115741 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115743         * lib/getloadavg.c: Use __VMS, not VMS.
115744         * lib/getopt.c: Likewise.
115745         * lib/getpagesize.h: Likewise.
115746         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115747         and probably does not work.
115749 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115751         * lib/.cppi-disable: Add wcwidth.
115752         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115753         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115754         (ISGRAPH): Remove.  All uses changed to isgraph.
115755         (FOLD) [!defined _LIBC]: Remove special case.
115756         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115757         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115758         HAVE_ISBLANK.
115759         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115760         case.
115762 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115764         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115765         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115766         brackets.  Other minor changes to suppress some compiler
115767         warnings.
115769 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115770         and Paul Eggert  <eggert@cs.ucla.edu>
115772         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115773         of invoking obsolescent AC_HEADER_DIRENT macro.
115774         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115775         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115776         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115777         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115778         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115779         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115780         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115781         * m4/readdir.m4: Remove; no longer needed.
115783 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115784         and Paul Eggert  <eggert@cs.ucla.edu>
115786         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115787         Don't worry about this obsolete case any more.
115788         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115789         directories.
115790         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115791         worry about this obsolete case any more.
115792         * lib/fts.c: Likewise.
115793         * lib/getcwd.c: Likewise.
115794         * lib/glob.h: Likewise.
115795         * lib/savedir.c: Likewise.
115797 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115800         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115801         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115802         needed.
115803         All uses removed.
115804         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115805         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115806         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115807         needed.
115808         * m4/getdate.m4 (gl_GETDATE): Likewise.
115809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115813         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115814         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115815         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115816         needed.
115818 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115820         * lib/memcasecmp.c: Include <limits.h>.
115821         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115822         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115823         Don't assume isdigit succeeds only on '0' through '9'.
115825 2006-07-05  Eric Blake  <ebb9@byu.net>
115827         * modules/getaddrinfo (Depends-on): Add snprintf.
115829 2006-07-05  Eric Blake  <ebb9@byu.net>
115831         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115832         to avoid 'header present but could not be compiled' on cygwin.
115834 2006-07-05  Eric Blake  <ebb9@byu.net>
115836         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115837         missing from netdb.h.
115838         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115840 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115842         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115843         no longer needed.
115844         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115845         * m4/getdate.m4 (gl_GETDATE): Likewise.
115846         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115847         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115848         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115849         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115852 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115854         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115855         All uses of is_space replaced by isspace.
115856         * lib/exit.h: Don't talk about STDC_HEADERS.
115857         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115858         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115859         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115860         replaced by isprint etc.
115861         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115862         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115863         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115864         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115865         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115866         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115868 2006-07-05  Bruno Haible  <bruno@clisp.org>
115870         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115871         the function exists, before testing against AIX.
115872         Reported by Martin Lambers <marlam@marlam.de>.
115874 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115876         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115877         From Mark D. Baushke.
115879 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115882         to the absolute name, not just one, to bypass Sun C 5.8's
115883         "warning: #include of /usr/include/... may be non-portable".
115885 2006-07-04  Eric Blake  <ebb9@byu.net>
115887         * modules/dirname-tests: New test module.
115888         * tests/test-dirname.c: New file, replacing dirname.c
115889         TEST_DIRNAME section that was recently deleted.
115891 2006-07-04  Bruno Haible  <bruno@clisp.org>
115893         Assume ANSI C header files and <ctype.h> functions.
115894         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115895         (mbsnwidth): Use isprint, iscntrl instead.
115897 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115899         Merge from coreutils.
115900         * MODULES.html.sh: Add xstrtold.
115901         * modules/xstrtold: New file.
115902         * modules/cycle-check (Files): Add lib/same-inode.h.
115903         * modules/dirname (Files): Add m4/double-slash-root.m4.
115904         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115905         * modules/mkdir-p (Files): Add lib/same-inode.h.
115906         * modules/same (Files): Add lib/same-inode.h.
115908 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115910         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115911         This is to keep the terminology clean; POSIX talks about
115912         "absolute pathnames", not "full pathnames", but the GNU
115913         Coding Standards say to use "path" for something else;
115914         so use "absolute" to keep both sides happy.
115915         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115916         Set gl_absolute_header, not gl_full_header_path.
115917         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115918         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115919         All uses changed.
115921         Merge from coreutils.
115923         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115925         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115926         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115927         want to require the building of c-strtod.o.
115928         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115929         needs -lm directly.
115930         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115932         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115934         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115935         --as-needed option if available.  Problem reported by Albert Chin in
115936         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115937         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115938         cc merely issues a bunch of annoying warnings for --as-needed
115939         (this problem was reported by Bob Proulx).  Also, try linking with
115940         -lm to detect a bug in binutils 2.16 (this problem was reported
115941         by Ralf Wildenhues).
115943         2006-06-18  Jim Meyering  <jim@meyering.net>
115945         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115946         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115947         macro.
115948         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115949         also check for glibc-2.4's abort-inducing bug.
115951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115952         Low-probability clean-up should be to use rmdir to get rid of
115953         the just-created directory, not unlink.
115955         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115956         configure fail, and request a bug report to inform us about it.
115957         Add a comment that, barring reports to the contrary, in 2007 we'll
115958         assume ftruncate is universally available.
115960         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115962         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115964         2006-03-12  Jim Meyering  <jim@meyering.net>
115966         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115967         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115968         * m4/same.m4 (gl_SAME): Likewise.
115969         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115971         2006-03-11  Eric Blake  <ebb9@byu.net>
115973         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115974         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115975         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115976         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115978 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115980         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115981         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115982         reported by Mark D. Baushke, one in
115983         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115985         Merge from coreutils.
115987         * lib/.cppi-disable: Add stdint_.h.
115988         * lib/.cvsignore: Add stdint.h.
115990         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115992         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115993         both double and long double versions.
115994         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115995         * lib/xstrtold.c: New file.
115996         * lib/xstrtod.h (xstrtold): New decl.
115998         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116000         * lib/filemode.c (setst): Remove.
116001         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116002         (arguably) clearer, and the generated code is a bit smaller on my
116003         Debian GNU/Linux stable x86 host.
116005         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116007         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116008         Assume that filemode.h includes sys/types.h and sys/stat.h.
116009         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116010         (ftypelet): Reorder to put common cases first, for efficiency.
116011         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116012         to do 'M'.
116013         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116014         of 10, for compatibility with FreeBSD.  All callers changed.
116015         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116016         types that can't be deduced solely from st_mode.  First arg is now a
116017         const pointer.
116018         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116019         (strmode): Renamed from mode_string.
116020         (filemodestring): New decl.
116021         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116022         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116023         needed.
116024         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116026         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116028         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116029         fsusage.h now does that.  Include fsusage.h first, to test interface.
116030         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116031         at most one method (the old code could have generated decls that
116032         didn't conform to C89, not that this was ever exercised).
116033         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116035         2006-03-19  Jim Meyering  <jim@meyering.net>
116037         Work even in a chroot where d_ino values for entries in "/"
116038         don't match the stat.st_ino values for the same names.
116039         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116040         number, iterate through all entries again, using lstat instead.
116041         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116042         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116044         * lib/getcwd.c (__getcwd): Clarify a comment.
116045         Use memcpy in place of a call to strcpy.
116047         2006-03-12  Jim Meyering  <jim@meyering.net>
116049         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116050         matches that of the current directory (which we're about to chdir ".."
116051         out of), then save the dev-ino of the parent, instead.
116053         * lib/same-inode.h (SAME_INODE): New file/macro.
116054         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116055         Include "same-inode.h", instead.
116056         * lib/same.c: Likewise.
116057         * lib/cycle-check.h: Include "same-inode.h".
116058         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116059         * lib/cycle-check.c (SAME_INODE): Remove definition.
116060         * lib/root-dev-ino.h: Include "same-inode.h".
116062         2006-03-11  Eric Blake  <ebb9@byu.net>
116064         * lib/same.c (same_name): s/base_name/last_component/
116065         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116066         * lib/filenamecat.c (file_name_concat): Likewise.
116068         2006-03-11  Eric Blake  <ebb9@byu.net>,
116069                     Paul Eggert  <eggert@cs.ucla.edu>
116071         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116072         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116073         drive prefix.
116074         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116075         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116076         (last_component): New method.
116077         * lib/dirname.c (dir_len): Determine when drive letters need a
116078         subsequent slash.  Preserve // when it is special.
116079         (dir_name): Don't append dot when drive letter is absolute.
116080         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116081         * lib/basename.c (base_name): New semantics - malloc the result.
116082         Preserve // when it is special.  Preserve relative files that look
116083         like drive letters.
116084         (base_len): Preserve // when it is special.
116085         (last_component): New method, similar to old base_name semantics.
116086         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116087         base_name.  Strip redundant slashes from ///.
116089 2006-07-03  Jim Meyering  <jim@meyering.net>
116091         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116092         macro is used before the first cycle_check call.
116094 2006-07-03  Eric Blake  <ebb9@byu.net>
116096         * modules/dirname (Depends-on): Add xstrndup.
116098 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116100         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116101         test cases, so that config.log is a bit easier to follow.
116103 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116105         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116106         both are 64 bits, since this seems to be the tradition, and this
116107         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116108         we ever run into a host that prefers long long to long in this
116109         case, we'll need another configure-time test.  Problem reported by
116110         Jim Meyering.
116112 2006-07-02  Eric Blake  <ebb9@byu.net>
116114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116116 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116118         * modules/inttypes (Depends-on): No longer depends on stdint.
116119         * modules/stdint (Description): Say more about assumptions.
116120         Say that the fast types might differ.  Say macros are used.
116121         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116122         (Makefile.am): Revise list of substituted symbols to match
116123         new stdint.m4.
116124         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116125         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116126         * tests/test-stdint.c (verify_same_types)
116127         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116128         the code conforms to C99/C89.
116129         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116130         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116132 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116134         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116135         but fix a bug, by requiring at least 64 bits.
116136         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116137         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116138         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116139         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116141         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116142         changes.  Make 2.59 a prerequisite.  Check and substitute for
116143         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116144         inttypes.h.  Do not use special include files; just use the
116145         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116146         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116147         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116148         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116149         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116150         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116151         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116152         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116153         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116154         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116155         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116156         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116157         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116158         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116159         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116160         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116161         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116162         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116163         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116164         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116165         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116166         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116167         not check for things that C99 does not require, e.g., int8_t.  If
116168         a test isn't needed unless <stdint.h> isn't working, and is
116169         unlikely to be needed for any other reason, then don't do it
116170         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116171         size_t, since we assume C89 freestanding at least.  Do not check
116172         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116173         the right thing even if the types are not defined.  Instead use:
116174         (gl_STDINT_TYPE_PROPERTIES): New macro.
116175         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116176         testing whether <sys/types.h> clashes, as Autoconf does this for
116177         us now.  All uses removed.
116178         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116179         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116180         (gl_CHECK_TYPE_SAME):
116181         Remove; no longer needed.
116182         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116183         exists, since we'll return 0 anyway in that case.
116184         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116186 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116188         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116189         possible collision with system files.
116190         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116191         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116192         WCHAR_MIN and WCHAR_MAX in this case.
116193         (<stddef.h>): Do not include; no longer needed.
116194         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116195         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116196         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116197         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116198         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116199         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116200         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116201         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116202         !defined(__c99))]: Include in this case too, since it's harmless
116203         now.
116204         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116205         dangerous to do so.
116206         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116207         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116208         (_STDINT_MIN, _STDINT_MAX): New macros.
116209         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116210         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116211         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116212         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116213         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116214         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116215         macros, not typedefs; this simplifies things quite a bit.
116216         Use long int for all types narrower than int64_t.
116217         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116218         Define in terms of long long int or int64_t or long int,
116219         not int64_t or int32_t.  This saves some compile-time testing.
116220         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116221         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116222         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116223         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116224         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116225         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116226         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116227         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116228         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116229         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116230         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116231         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116232         undef any previous version and define our own version, for
116233         simplicity and consistency with the new macros for types.
116234         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116235         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116236         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116237         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116238         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116239         @WINT_T_SUFFIX@ to keep things simple here.
116240         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116241         Simplify by assuming typical 8/16/32/64 host, since we're
116242         already doing that elsewhere anyway.
116243         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116244         and assume long long int is 64 bits if available.  This
116245         speeds up 'configure'.
116247 2006-07-01  Eric Blake  <ebb9@byu.net>
116249         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116250         Reported by Andreas Buening.
116252 2006-07-01  Eric Blake  <ebb9@byu.net>
116254         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116256 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116258         * lib/getaddrinfo.c: fixed typo
116260 2006-06-29  Jim Meyering  <jim@meyering.net>
116262         * modules/strftime (Maintainer): Add my name, since with the
116263         FPRINTFTIME changes strftime.c has forked from glibc.
116265 2006-06-29  Eric Blake  <ebb9@byu.net>
116267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116269 2006-06-29  Eric Blake  <ebb9@byu.net>
116271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116273 2006-06-29  Eric Blake  <ebb9@byu.net>
116275         * lib/stat_.h: New file.
116277 2006-06-29  Eric Blake  <ebb9@byu.net>
116279         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116280         unused static function.
116282 2006-06-29  Eric Blake  <ebb9@byu.net>
116284         * doc/functions.texi (Function Portability): Document missing lstat
116285         on mingw.
116287 2006-06-29  Eric Blake  <ebb9@byu.net>
116289         * MODULES.html.sh: Add sys_stat.
116290         * modules/sys_stat: New module.
116291         * modules/mkstemp (Depends-on): Add sys_stat.
116293 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116295         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116297 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116299         * m4/c-bs-a.m4: Removed.
116301 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116303         * lib/strftime.c: Assume strftime() exists.
116305 2006-06-29  Derek Price  <derek@ximbiot.com>
116307         * modules/c-bs-a: Removed - \a is C89.
116308         * MODULES.html.sh: Remove c-bs-a.
116310 2006-06-29  Bruno Haible  <bruno@clisp.org>
116312         * modules/wcwidth (License): Change to LGPL.
116314 2006-06-28  Simon Josefsson  <jas@extundo.com>
116316         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116317         on _WIN32.
116319         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116320         getnameinfo.
116322 2006-06-28  Simon Josefsson  <jas@extundo.com>
116324         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116326 2006-06-28  Simon Josefsson  <jas@extundo.com>
116328         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116329         functions there.  It will succeed on Windows XP, but on Windows
116330         2000 and (presumably) earlier, it will fail, and use the internal
116331         re-implementation.
116332         (use_win32_p): New function.
116333         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116334         Support AI_NUMERICSERV to disable getservbyname.
116335         (getnameinfo): New function, only supports
116336         NI_NUMERICHOST|NI_NUMERICSERV for now.
116338         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116339         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116340         getnameinfo.
116342 2006-06-28  Eric Blake  <ebb9@byu.net>
116344         * modules/wcwidth: New file.
116345         * modules/mbchar (Depends-on): Add wcwidth.
116346         * modules/mbswidth (Depends-on): Add wcwidth.
116347         * MODULES.html.sh: Add wcwidth.
116349 2006-06-28  Eric Blake  <ebb9@byu.net>
116351         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116354 2006-06-28  Eric Blake  <ebb9@byu.net>
116356         * lib/xvasprintf.h: Fix comments.
116358 2006-06-28  Eric Blake  <ebb9@byu.net>
116360         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116361         * lib/mbswidth.c (wcwidth): Move from here...
116362         * lib/wcwidth.h: ...to this new file.
116364 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116366         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116369         it's obsolete.
116370         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116372 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116374         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116375         Autoconf 2.60 says this stuff was obsolete.
116377 2006-06-28  Bruno Haible  <bruno@clisp.org>
116379         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116381 2006-06-28  Bruno Haible  <bruno@clisp.org>
116383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116384         gt_TYPE_WCHAR_T.
116386 2006-06-28  Bruno Haible  <bruno@clisp.org>
116388         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116389         declaration for wcwidth.
116390         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116392 2006-06-28  Bruno Haible  <bruno@clisp.org>
116394         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116395         (mkdir): Define using _mkdir.
116397 2006-06-28  Bruno Haible  <bruno@clisp.org>
116399         * lib/getaddrinfo.h: Fix POSIX URL.
116400         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116401         _WIN32.
116402         (use_win32_p): Make static.
116403         (getaddrinfo): Reject service name if it is empty or does not consist
116404         solely of decimal digits, or if its value is > 65535.
116405         (getnameinfo): Remove useless casts.
116407 2006-06-27  Simon Josefsson  <jas@extundo.com>
116409         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116410         Eggert and Martin Lambers.
116412 2006-06-27  Simon Josefsson  <jas@extundo.com>
116414         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116415         Eggert and Martin Lambers.
116417 2006-06-27  Bruno Haible  <bruno@clisp.org>
116419         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116420         result to 0, not to empty.
116421         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116423 2006-06-27  Bruno Haible  <bruno@clisp.org>
116425         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116427 2006-06-26  Simon Josefsson  <jas@extundo.com>
116429         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116430         present.
116432 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116434         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116435         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116436         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116438 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116440         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116442 2006-06-26  Bruno Haible  <bruno@clisp.org>
116444         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116446 2006-06-26  Bruno Haible  <bruno@clisp.org>
116448         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116450 2006-06-26  Bruno Haible  <bruno@clisp.org>
116452         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116453         SGI C compiler in pre-C99 mode.
116454         Suggested by Mark D. Baushke and Larry Jones.
116456 2006-06-26  Bruno Haible  <bruno@clisp.org>
116458         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116459         WCHAR_MAX.
116460         Reported by Mark D. Baushke and Larry Jones.
116462 2006-06-26  Bruno Haible  <bruno@clisp.org>
116464         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116465         in pre-C99 mode.
116466         Suggested by Mark D. Baushke and Larry Jones.
116468 2006-06-23  Simon Josefsson  <jas@extundo.com>
116469             Bruno Haible  <bruno@clisp.org>
116471         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116472         Emit mostlyclean-local rule.
116473         (func_emit_tests_Makefile_am): Likewise.
116474         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116476 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116478         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116480 2006-06-23  Bruno Haible  <bruno@clisp.org>
116482         * tests/test-stdint.c: Update to match ISO C 99 Technical
116483         Corrigendum 1.
116485 2006-06-23  Bruno Haible  <bruno@clisp.org>
116487         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116489 2006-06-23  Bruno Haible  <bruno@clisp.org>
116491         * lib/stdint_.h: Treat IRIX like OpenBSD.
116493 2006-06-23  Bruno Haible  <bruno@clisp.org>
116495         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116496         ISO C 99 Technical Corrigendum 1.
116498 2006-06-22  Simon Josefsson  <jas@extundo.com>
116500         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116501         MinGW.
116503 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116505         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116506         needed.  Some compiler complained about some of them.  Problem reported
116507         by Larry Jones in
116508         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116510 2006-06-21  Simon Josefsson  <jas@extundo.com>
116512         * tests/test-getaddrinfo.c: New file.
116514         * modules/getaddrinfo-tests: New file.
116516         * MODULES.html.sh: Add inet_pton.
116518         * modules/inet_pton: New file.
116520 2006-06-21  Simon Josefsson  <jas@extundo.com>
116522         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116523         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116524         of using the (limited) gnulib implementation on Windows XP.
116526         * m4/inet_pton.m4: New file.
116528 2006-06-21  Simon Josefsson  <jas@extundo.com>
116530         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116531         variable.
116533         * lib/socket_.h: Don't define WINVER.
116535         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116536         slightly modified to work in gnulib.
116538 2006-06-21  Simon Josefsson  <jas@extundo.com>
116540         * doc/gnulib.texi (Windows sockets): Add.
116542 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116544         * lib/read-file.c (fread_file): Start with buffer allocation of
116545         0 bytes rather than 1 byte; this simplifies the code.
116546         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116547         code to free buffer and save/restore errno.
116548         (internal_read_file): Remove unused local.
116550 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116552         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116553         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116554         Problem reported by Denis Excoffier in
116555         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116557 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116559         * modules/sys_socket, modules/socklen: Include sys/types since
116560         FreeBSD 4.x's sys/socket.h needs it.
116562 2006-06-19  Simon Josefsson  <jas@extundo.com>
116564         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116566 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116568         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116570 2006-06-19  Bruno Haible  <bruno@clisp.org>
116572         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116573         and FULL_PATH_INTTYPES_H in angle brackets.
116574         Reported by Mark D. Baushke <mdb@gnu.org>.
116576 2006-06-17  Eric Blake  <ebb9@byu.net>
116578         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116579         errno.
116581 2006-06-17  Bruno Haible  <bruno@clisp.org>
116583         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116584         <sys/inttypes.h>.
116586 2006-06-17  Bruno Haible  <bruno@clisp.org>
116588         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116589         whether errno is declared. Assume <errno.h> declares errno.
116591 2006-06-17  Bruno Haible  <bruno@clisp.org>
116593         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116595 2006-06-17  Bruno Haible  <bruno@clisp.org>
116597         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116598         problem on Solaris 2.5.1.
116600 2006-06-16  Eric Blake  <ebb9@byu.net>
116602         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116603         * lib/unicodeio.c [!defined errno]: Likewise.
116604         * lib/strtol.c [!defined errno]: Likewise.
116605         * lib/strtod.c [!defined errno]: Likewise.
116607 2006-06-15  Eric Blake  <ebb9@byu.net>
116609         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116611 2006-06-15  Eric Blake  <ebb9@byu.net>
116613         * config/srclist.txt (ssize_t.m4): Lose sync.
116615 2006-06-15  Bruno Haible  <bruno@clisp.org>
116617         * modules/stdint (Files): Include m4/full-header-path.m4,
116618         m4/size_max.m4, m4/wchar_t.m4.
116619         (Makefile.am): Many more substitutions.
116620         * modules/stdint-tests: New file.
116621         * tests/test-stdint.c: New file.
116623 2006-06-15  Bruno Haible  <bruno@clisp.org>
116625         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116626         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116627         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116628         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116629         gl_CHECK_TYPE_SAME): New macros.
116631 2006-06-15  Bruno Haible  <bruno@clisp.org>
116633         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116635 2006-06-15  Bruno Haible  <bruno@clisp.org>
116637         * lib/stdint_.h: Rewritten to be fully auto-configured.
116638         Fixes bug on HP-UX/IA64.
116640 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116642         * lib/getdate.y (__attribute__): Don't define if already defined.
116643         Problem reported by Larry Jones.
116644         * lib/utimens.c (__attribute__): Likewise.
116646 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116648         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116649         reported by Andreas Schwab.
116651 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116652             Bruno Haible  <bruno@clisp.org>
116654         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116655         check for the declaration of strnlen and a run test that exposes the
116656         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116657         rpl_strndup.
116659 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116660             Bruno Haible  <bruno@clisp.org>
116662         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116664 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116666         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116667         compile test, for Tru64 4.0D.
116669 2006-05-28  Karl Berry  <karl@gnu.org>
116671         * config/srclist.txt (printf-args.c): lose sync.
116673 2006-05-26  Martin Lambers  <marlam@marlam.de>
116675         * lib/getpass.c: Updates the test for the native W32 API, and adds
116676         missing includes, thus fixing compilation warnings.
116678 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116680         * lib/exclude.c (exclude_fnmatch): New function.
116681         (excluded_file_name): Call exclude_fnmatch.
116682         * lib/exclude.h (excluded_file_name): New prototype
116684 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116686         * lib/tempname.c (small_open, large_open): New macros.
116687         (__open, __open64) [!_LIBC]: Remove.
116688         (__gen_tempname): Use small_open and large_open instead of __open
116689         and __open64.  This fixes a portability bug on HP-UX 11.11i
116690         reported by Simon Wing-Tang in
116691         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116693 2006-05-24  Bruno Haible  <bruno@clisp.org>
116695         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116696         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116697         Reported by Thorsten Maerz <torte@netztorte.de> via
116698         Aaron Stone <aaron@serendipity.cx>.
116700 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116703         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116704         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116705         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116706         not really conditional on the cache.
116707         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116709 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116711         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116712         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116713         (my_usleep): Don't mishandle maximum value.
116715 2006-05-19  Jim Meyering  <jim@meyering.net>
116717         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116719 2006-05-17  Bruno Haible  <bruno@clisp.org>
116721         Cygwin portability.
116722         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116724 2006-05-17  Bruno Haible  <bruno@clisp.org>
116726         * lib/stdint_.h: Fix recognition of Cygwin.
116728 2006-05-15  Bruno Haible  <bruno@clisp.org>
116730         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116731         on libtool patch by Ralf Wildenhues.
116733 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116736         test for C99 conformance; (bool) 0.5 is an integer constant
116737         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116738         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116740 2006-05-11  Simon Josefsson  <jas@extundo.com>
116742         * m4/xvasprintf.m4: Fix obvious typo.
116744 2006-05-11  Jim Meyering  <jim@meyering.net>
116746         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116747         James Lemley.
116749 2006-05-10  Simon Josefsson  <jas@extundo.com>
116751         * lib/md4.c: Typo fix, update copyright years.
116752         (K1, K2): Don't use L because it turn computations into 64-bit on
116753         64-bit platforms.
116755 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116757         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116758         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116759         unwanted sign propagation, e.g., on hosts with 64-bit int.
116760         There still are some problems with reeelly weird theoretical hosts
116761         (e.g., 33-bit int) but it's not worth worrying about now.
116762         * lib/sha1.c (rol): Likewise.
116763         (K1, K2, K3, K4): Remove unnecessary L suffix.
116765 2006-05-10  Bruno Haible  <bruno@clisp.org>
116767         * lib/des.c: Cast to avoid warnings.
116769 2006-05-09  Bruno Haible  <bruno@clisp.org>
116771         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116772         (Depends-on): Depend also on xsize, stdarg.
116773         (configure.ac): Add gl_XVASPRINTF.
116775 2006-05-09  Bruno Haible  <bruno@clisp.org>
116777         * m4/xvasprintf.m4: New file.
116779 2006-05-09  Bruno Haible  <bruno@clisp.org>
116781         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116782         (EOVERFLOW): Define fallback value.
116783         (xstrcat): New function.
116784         (xvasprintf): Recognize the special case of a string concatenation.
116786 2006-05-08  Eric Blake  <ebb9@byu.net>
116788         * gnulib-tool (func_version): Base copyright year on CVS date.
116789         (func_emit_copyright_notice): New function.
116790         (func_emit_lib_Makefile_am): Use it.
116791         (func_emit_tests_Makefile_am): Likewise.
116792         (func_import): Likewise.
116794 2006-05-08  Bruno Haible  <bruno@clisp.org>
116796         * modules/stdarg: New file.
116797         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116799 2006-05-08  Bruno Haible  <bruno@clisp.org>
116801         * m4/stdarg.m4: New file, from GNU gettext.
116803 2006-05-08  Bruno Haible  <bruno@clisp.org>
116805         * config/srclist.txt (build-aux/config.rpath): different from latest
116806         release.
116808 2006-05-08  Bruno Haible  <bruno@clisp.org>
116810         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116812 2006-05-05  Jim Meyering  <jim@meyering.net>
116814         * m4/warning.m4: New file, derived from bison's file by the same name.
116816 2006-05-03  Bruno Haible  <bruno@clisp.org>
116818         * lib/stdint_.h: Shorter URL.
116819         * lib/inttypes.h: Likewise.
116821 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116823         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116825 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116827         * lib/verify.h: Document the internals better.  Most of this change
116828         was written by Bruno Haible.
116830 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116832         * doc/verify.texi: New file, partly based on a proposal by
116833         Bruno Haible.
116835 2006-05-02  Bruno Haible  <bruno@clisp.org>
116837         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116838         test from here...
116839         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116841 2006-04-29  Bruno Haible  <bruno@clisp.org>
116843         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116844         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116846 2006-04-29  Bruno Haible  <bruno@clisp.org>
116848         * gnulib-tool: Make --update option actually work.
116850 2006-04-29  Bruno Haible  <bruno@clisp.org>
116852         * doc/gcd.texi: New file.
116853         * doc/gnulib.texi: Include it.
116855 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116857         * lib/getdate.y (get_date): When adding relative date, start with the
116858         initial time, not with the result of the first mktime call.
116860 2006-04-25  Bruno Haible  <bruno@clisp.org>
116862         * gnulib-tool (func_import): Output the include directives in three
116863         blocks, sorted separately.
116864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116866 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116868         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116869         to define main with arguments, for C++.  Reported by Eric Blake.
116870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116871         Prefer 'int main ()' to 'int main (void)', for C++.
116872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116873         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116874         for 'main', for C99 and C++.
116876 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116879         Don't assume that exit status -1 is valid.
116880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116881         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116882         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116883         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116884         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116885         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116886         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116887         functions can be used without declaring them, or that you can
116888         exit with status -1.
116889         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116891 2006-04-24  Karl Berry  <karl@gnu.org>
116893         * config/srclist.txt (longdouble.m4): sync lost.
116895 2006-04-24  Eric Blake  <ebb9@byu.net>
116897         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116899 2006-04-24  Bruno Haible  <bruno@clisp.org>
116901         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116902         poll() implementation in AIX.
116903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116905 2006-04-24  Bruno Haible  <bruno@clisp.org>
116907         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116908         assigned exactly once.
116910 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116911             Bruno Haible  <bruno@clisp.org>
116913         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116914         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116915         for AM_CPPFLAGS.
116917 2006-04-23  Bruno Haible  <bruno@clisp.org>
116919         * modules/copy-file: Depend on unistd.
116920         * modules/execute: Likewise.
116921         * modules/fatal-signal: Likewise.
116922         * modules/findprog: Likewise.
116923         * modules/mkdtemp : Likewise.
116924         * modules/pipe: Likewise.
116925         * modules/wait-process: Likewise.
116927 2006-04-23  Bruno Haible  <bruno@clisp.org>
116929         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116930         condition was already detected.
116931         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116933 2006-04-23  Bruno Haible  <bruno@clisp.org>
116935         * lib/copy-file.c: Include <unistd.h> unconditionally.
116936         * lib/execute.c: Likewise.
116937         * lib/fatal-signal.c: Likewise.
116938         * lib/findprog.c: Likewise.
116939         * lib/mkdtemp.c: Likewise.
116940         * lib/pipe.h: Likewise.
116941         * lib/pipe.c: Likewise.
116942         * lib/wait-process.h: Likewise.
116944 2006-04-23  Bruno Haible  <bruno@clisp.org>
116946         * gnulib-tool (func_usage): Fix --import description. Document
116947         --update.
116948         (func_import): Create temporary file in a temporary directory, if
116949         --dry-run is specified. Silence errors from 'grep' when there are no
116950         m4 files in $m4dir.
116951         (func_create_testdir): Silence errors from 'grep' when there are no
116952         m4 files in $m4dir.
116953         Reported by Karl Berry <karl@freefriends.org>.
116955 2006-04-20  Bruno Haible  <bruno@clisp.org>
116957         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116958         one argument, so that the code will be portable to Autoconf 2.60.
116959         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116960         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116961         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116963 2006-04-19  Derek Price  <derek@ximbiot.com>
116964             Eric Blake  <ebb9@byu.net>
116966         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116967         rather than "/full/path.h".  Update comment to match.  Shorten &
116968         generalize m4_translit call via AS_TR_CPP.
116970 2006-04-19  Derek Price  <derek@ximbiot.com>
116971             Eric Blake  <ebb9@byu.net>
116973         * lib/inttypes.h: Correct grammar in comment.
116975 2006-04-18  Derek Price  <derek@ximbiot.com>
116976             Paul Eggert  <eggert@cs.ucla.edu>
116978         * modules/inttypes: New file.
116979         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116981 2006-04-18  Derek Price  <derek@ximbiot.com>
116982             Paul Eggert  <eggert@cs.ucla.edu>
116984         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116985         New files.
116987 2006-04-18  Derek Price  <derek@ximbiot.com>
116988             Paul Eggert  <eggert@cs.ucla.edu>
116990         * lib/inttypes.h: New file.
116991         * lib/strtoimax.c: Assume <inttypes.h>.
116993 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116995         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116996         isn't mounted.  Problem reported by Kir Kolyshkin.
116998 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117000         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117001         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117002         Derek R. Price.
117003         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117004         implementation.
117006 2006-04-12  Eric Blake  <ebb9@byu.net>
117008         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117009         is now done automatically by the corresponding Autoconf macro.
117011 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117013         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117014         time_r.h.
117016 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117018         Merge regex changes from libc, removing some of our
117019         POSIX-conformance changes that were rejected and redoing them in a
117020         less-intrusive way.
117022         * lib/regcomp.c (re_compile_internal, init_dfa):
117023         Length arg is now size_t, not Idx.  All uses changed.
117024         (peek_token): Forward decl now says internal_function.
117025         (__re_error_msgid, __re_error_msgid_idx):
117026         Now static rather than extern with attribute_hidden.
117027         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117028         For some reason libc prefers K&R style defns for external functions.
117029         (regerror) [!defined _LIBC]: Likewise.
117030         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117031         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117032         (build_range_exp, build_collating_symbol):
117033         Use K&R-style defn.
117034         (re_compile_fastmap): Use '\0' to memset, not 0.
117035         (utf8_sb_map): Make the calculations more obvious.
117036         (init_dfa, parse_bracket_exp, build_charclass_op):
117037         Call calloc and cast result, as glibc does.
117038         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117039         (build_range_exp, build_collating_symbol):
117040         Now internal functions.
117042         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117044         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117045         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117046         Don't depend on VMS; depend on __VMS instead, for POSIX
117047         namespace cleanness.
117048         (regoff_t): Define to ssize_t, not long int.
117050         Remove the REG_ macros named below.  Instead, make the old names
117051         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117052         __USE_GNU_REGEX.
117053         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117054         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117055         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117056         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117057         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117058         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117059         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117060         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117061         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117062         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117063         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117064         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117065         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117066         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117067         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117068         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117069         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117070         (REG_NREGS):
117071         Remove.  All uses replaced by the old RE_* names.
117072         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117073         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117074         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117075         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117076         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117077         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117078         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117079         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117080         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117081         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117082         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117083         Don't bother having these macros be independent of each others'
117084         values, since they no longer exist in the POSIX name space.
117086         Rename the following member names back to their old names,
117087         unless !__USE_GNU_REGEX.  All uses changed back.
117088         (buffer): Renamed from re_buffer.
117089         (allocated): Renamed from re_allocated.
117090         (used): Renamed from re_used.
117091         (syntax): Renamed from re_syntax.
117092         (fastmap): Renamed from re_fastmap.
117093         (translate): Renamed from re_translate.
117094         (can_be_null): Renamed from re_can_be_null.
117095         (regs_allocated): Renamed from re_regs_allocated.
117096         (fastmap_accurate): Renamed from re_fastmap_accurate.
117097         (no_sub): Renamed from re_no_sub.
117098         (not_bol): Renamed from re_not_bol.
117099         (not_eol): Renamed from re_not_eol.
117100         (newline_anchor): Renamed from re_newline_anchor.
117101         (num_regs): Renamed from rm_num_regs.
117102         (start): Renamed from rm_start.
117103         (end): Renamed from rm_end.
117105         (free_state): Move up a bit.
117107         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117108         #define to be empty.
117109         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117110         when that is what is intended.
117111         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117112         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117113         (MAX): New macro.
117114         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117115         All uses changed back to re_malloc, etc.  It's now the caller's
117116         responsibility to check for overflow; all callers changed.
117117         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117118         (re_x2nrealloc): Remove.
117119         (free_state): Remove decl.
117121         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117122         (re_set_registers, re_exec):
117123         Use K&R-style defn.
117125         2006-01-31  Roland McGrath  <roland@redhat.com>
117127         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117128         Reported by Mike Frysinger <vapier@gentoo.org>.
117130         2006-01-15  Andreas Jaeger  <aj@suse.de>
117132         [BZ #1950]
117133         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117134         build_wcs_upper_buffer change.
117135         (build_wcs_upper_buffer): Change return type.
117137         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117139         * lib/regex_internal.h: Include <stdint.h> if available.
117141         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117143         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117145         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117147         * lib/regcomp.c: Adjust for changed secondary hash function.
117149         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117151         * lib/regex.h: Pretty printing.
117152         Clean up namespace a bit.
117154         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117156         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117157         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117159         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117160                     Ulrich Drepper  <drepper@redhat.com>
117162         [BZ #1302]
117163         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117164         changed.
117165         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117167         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117169         [BZ #281]
117170         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117171         * lib/regcomp.c: Remove unnecessary uses of
117172         unsigned RE_TRANSLATE_TYPE.
117173         * lib/regex_internal.h: Likewise.
117174         * lib/regex_internal.c: Likewise.
117175         * lib/regexec.c: Likewise.
117176         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117178         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117180         * lib/regexec.c (find_recover_state): Remove unnecessary
117181         initialization.
117182         (transit_state_bkref): Make DFA a const pointer.
117183         (get_subexp): Likewise.
117184         (check_arrival): Likewise.
117185         (update_cur_sifted_state): Likewise.
117186         (re_search_internal): Likewise.
117187         (prune_impossible_nodes): Likewise.
117188         (acquire_init_state_context): Likewise.
117189         (proceed_next_node): Likewise.
117190         (set_regs): Likewise.
117191         (free_fail_stack_return): Likewise.
117192         (check_arrival_expand_ecl): Mark DFA parameter as const.
117193         (check_arrival_expand_ecl_sub): Likewise.
117194         (check_subexp_limits): Likewise.
117195         (sub_epsilon_src_nodes):  Likewise.
117196         (add_epsilon_src_nodes):  Likewise.
117197         (merge_state_array): Likewise.
117198         (update_regs): Likewise.
117199         (build_trtable): Likewise.
117200         (sift_states_backward): Mark MCTX parameter as const.
117201         (build_sifted_states): Likewise.
117202         (update_cur_sifted_state): Likewise.
117203         (sift_states_mkref): Likewise.
117204         (check_arrival_expand_ecl): Mark eclosure as const.
117205         (check_dst_limits_calc_pos_1): Likewise.
117206         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117207         pointer.
117209         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117211         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117212         (transit_state_sb): Likewise.
117213         (transit_state_mb): Likewise.
117214         (sift_states_iter_mb): Likewise.
117215         (check_arrival_add_next_nodes): Likewise.
117216         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117217         [_LIBC] (re_search_2_stub): Use mempcpy.
117219         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117220         mbrtowc for very simple UTF-8 case.
117222         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117223         a pointer-to-const.
117224         (re_acquire_state_context): Likewise.
117225         * lib/regex_internal.h: Adjust prototypes.
117227         * lib/regex.c: Prevent using C++ compilers.
117229         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117230         (re_acquire_state_context): Likewise.
117232 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117234         * modules/regex (Depends-on): Add ssize_t.
117236 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117238         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117239         translation table.
117241 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117243         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117245 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117246             Bruno Haible  <bruno@clisp.org>
117248         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117249         <sys/types.h> and <inttypes.h>.
117251 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117253         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117254         `__error_t_defined', so argp.h will not typedef the former.
117256 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117258         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117259         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117260         glibc names.  Even if glibc is changed to conform to POSIX, the
117261         traditional names will be available anyway, since regex depends on
117262         the extensions module.  Also, fix a longstanding typo in the
117263         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117264         reported by Emanuele Giaquinta.  Also, change sense of cached
117265         variable, so that the message makes sense.
117267 2006-03-24  Simon Josefsson  <jas@extundo.com>
117269         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117270         including some doc fixes.
117271         (base64_encode_alloc): Fix +1 bug on allocation failures.
117273 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117275         * lib/base64.c (base64_encode): Do not read past end of array with
117276         unsanitized input on systems with CHAR_BIT > 8.
117278 2006-03-24  Eric Blake  <ebb9@byu.net>
117280         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117282 2006-03-22  Karl Berry  <karl@gnu.org>
117284         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117285         * config/srclistvars.sh (COREUTILS): new var.
117287 2006-03-17  Jim Meyering  <jim@meyering.net>
117289         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117290         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117292 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117294         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117295         no longer needs it.  Instead, check that regoff_t is as least
117296         as wide as ptrdiff_t.
117298         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117299         so that our regex.h stays compatible with the installed regex.
117300         This is helpful for installers who configure --without-included-regex.
117301         Problem reported by Emanuele Giaquinta.
117303 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117305         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117306         Typedef to long int, not to off_, as POSIX will likely change
117307         in that direction.
117309 2006-03-15  Eric Blake  <ebb9@byu.net>
117311         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117313 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117315         * lib/argp-help.c (validate_uparams): Fix typo
117316         * lib/argp-parse.c (argp_default_options): Consistently begin help
117317         messages with a lowercase letter.
117319 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117321         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117322         overrun buffers and shouldn't be used (much as gets shouldn't be
117323         used).
117324         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117326 2006-03-08  Simon Josefsson  <jas@extundo.com>
117328         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117329         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117331 2006-03-08  Simon Josefsson  <jas@extundo.com>
117333         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117334         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117336 2006-03-08  Simon Josefsson  <jas@extundo.com>
117338         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117339         signal that configure disabled the device.
117341 2006-03-08  Simon Josefsson  <jas@extundo.com>
117343         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117344         languages.
117346 2006-03-07  Simon Josefsson  <jas@extundo.com>
117348         * modules/getopt (Depends-on): Add unistd.
117350         * modules/unistd: New file.
117352 2006-03-07  Simon Josefsson  <jas@extundo.com>
117354         * modules/gc-random: New file.
117356 2006-03-07  Simon Josefsson  <jas@extundo.com>
117358         * m4/unistd_h.m4: New file.
117360 2006-03-07  Simon Josefsson  <jas@extundo.com>
117362         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117363         test to be side-effect free by storing the result in the cache
117364         variable gl_cv_lib_readline, and moving the assignment of
117365         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117366         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117368 2006-03-07  Simon Josefsson  <jas@extundo.com>
117370         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117371         error on missing devices (the functions will return an error).
117373         * m4/gc.m4: Move random stuff to gc-random.m4
117375 2006-03-07  Simon Josefsson  <jas@extundo.com>
117377         * lib/unistd_.h: New file.
117379 2006-03-07  Simon Josefsson  <jas@extundo.com>
117381         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117383 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117385         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117386         Problem reported by Juan Manuel Guerrero.
117388 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117390         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117391         the unistd module.
117392         * lib/getlogin_r.c: Likewise.
117393         * lib/getlogin_r.h: Likewise.
117394         * lib/glob.c: Likewise.
117395         * lib/pagealign_alloc.c: Likewise.
117396         * lib/unistd_.h: Remove; no longer needed.
117398 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117400         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117401         Add unistd.
117402         * modules/c-stack (Depends-on): Add unistd.
117403         * modules/getlogin_r: Likewise.
117404         * modules/glob: Likewise.
117405         * modules/pagealign_alloc: Likewise.
117406         * modules/unistd (Files): Remove lib/unistd_.h.
117407         (EXTRA_DIST): Remove.
117408         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117409         need unistd_.h.
117410         (MOSTLYCLEANFILES): Remove unistd.h-t.
117412 2006-03-03  Simon Josefsson  <jas@extundo.com>
117414         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117416 2006-03-03  Simon Josefsson  <jas@extundo.com>
117418         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117419         libidn and bison.
117421 2006-03-03  Simon Josefsson  <jas@extundo.com>
117423         * build-aux/maint.mk: Add indent target.
117425 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117427         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117428         our replacement poll.h in any case, to avoid a differing
117429         declaration from a system header.  Seen on AIX.
117431 2006-03-01  Simon Josefsson  <jas@extundo.com>
117433         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117434         <kasal@ucw.cz>.
117436 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117438         * modules/gettime (Depends-on): Add extensions module.
117439         * modules/nanosleep (Depends-on): Likewise.
117440         * modules/settime (Depends-on): Likewise.
117442 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117444         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117445         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117446         pedantically.
117447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117448         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117450         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117451         not "==".  Reported by Ralf Wildenhues.
117453 2006-03-01  Karl Berry  <karl@gnu.org>
117455         * doc/Copyright/request-*: new files, synced from gnuorg.
117457 2006-03-01  Karl Berry  <karl@gnu.org>
117459         * config/srclist.txt (Copyright/*): new entries.
117461 2006-02-28  Simon Josefsson  <jas@extundo.com>
117463         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117465 2006-02-27  Simon Josefsson  <jas@extundo.com>
117467         * lib/base64.h: Indent #define's.  From Jim Meyering
117468         <jim@meyering.net>.
117470 2006-02-27  Jim Meyering  <jim@meyering.net>
117472         Revert the change of 2006-02-24, so these files can continue
117473         to be sync'd from gettext.
117474         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117475         of `config.h'.
117477 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117479         * modules/intprops: New file.
117480         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117481         Add intprops.
117482         * modules/getloadavg (Files): Remove lib/intprops.h.
117483         (Depends-on): Add intprops.
117484         * modules/human: Likewise.
117485         * modules/inttostr: Likewise.
117486         * modules/openat: Likewise.
117487         * modules/sig2str: Likewise.
117488         * modules/userspec: Likewise.
117489         * modules/utimecmp: Likewise.
117490         * modules/xnanosleep: Likewise.
117491         * modules/xstrtol: Likewise.
117493 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117495         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117496         * modules/lock-tests (TESTS): Use $(EXEEXT).
117497         * modules/tls-tests: Likewise.
117498         * modules/argp-tests: Likewise.
117499         (check_PROGRAMS): New var, replacing...
117500         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117502 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117504         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117505         `config.h'.
117507 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117509         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117511 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117513         Sync from coreutils.
117514         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117515         gl_CHDIR_SAFER.
117517 2006-02-22  Jim Meyering  <jim@meyering.net>
117519         Sync from coreutils.
117520         * m4/chdir-safer.m4: New file.
117522 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117524         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117525         AT_FDCWD exceeds INT_MAX.
117526         * lib/openat.h (AT_FDCWD): Likewise.
117528 2006-02-17  Eric Blake  <address@hidden>
117530         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117532 2006-02-16  Simon Josefsson  <jas@extundo.com>
117534         * modules/getaddrinfo (Depends-on): Add sys_socket.
117536 2006-02-15  Simon Josefsson  <jas@extundo.com>
117538         * build-aux/maint.mk: Add dsyntax-check rule.
117540 2006-02-15  Eric Blake  <ebb9@byu.net>
117542         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117543         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117544         'present but cannot compile' warnings on cygwin.
117545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117546         use ws2tcpip.h if sys/socket.h works.
117547         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117548         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117550 2006-02-14  Simon Josefsson  <jas@extundo.com>
117552         * modules/maintainer-makefile (Files): Rename.
117554         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117555         and (the local) Makefile.cfg to maint-cfg.mk.
117557         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117558         to the latter.
117560         * modules/maintainer-makefile: New module.
117562         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117563         severaly stripped to make it possible to build it up from scratch
117564         with reliable tests.
117566         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117567         fixes to permit overriding the default actions when configure and
117568         makefile are not available.
117570 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117572         Sync from coreutils.
117573         * modules/lstat (Depends-on): Don't depend on xalloc.
117574         (License): Change from GPL to LGPL, since this is now simply a
117575         replacement for a libc function.
117577 2006-02-14  Jim Meyering  <jim@meyering.net>
117579         Sync from coreutils.
117581         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117582         failure on deficient systems, and simplify gnulib lgpl dependencies.
117583         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117584         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117586         * lib/xalloc-die.c: Remove unused definition of N_.
117588 2006-02-14  Jim Meyering  <jim@meyering.net>
117590         Sync from coreutils.
117591         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117592         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117593         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117594         double-quote uses of that variable, to accommodate the rare case in
117595         which getmntent is available in none of the libraries checked.  This
117596         happens at least on FreeBSD 5.0.
117598 2006-02-13  Simon Josefsson  <jas@extundo.com>
117600         * gnulib-tool (Usage): Fix --import, from
117601         karl@freefriends.org (Karl Berry).
117603 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117605         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117607 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117609         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117610         "autoupdate" on 2005-12-12.
117612 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117614         * modules/closeout (Depends-on): Remove atexit.
117616 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117618         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117619         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117621 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117624         __EXTENSIONS__ if this causes compilation to fail.  Problem
117625         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117626         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117628 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117630         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117631         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117632         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117633         All uses changed.
117635 2006-01-26  Simon Josefsson  <jas@extundo.com>
117637         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117638         prototype is visible on mingw32.
117640         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117641         for mingw32.
117643         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117644         mingw32).
117646 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117648         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117649         attempt to open for write; this always fails, at least on POSIX
117650         hosts.  This reinstates the 2006-01-09 change, which was
117651         inadvertently removed.
117653 2006-01-26  Bruno Haible  <bruno@clisp.org>
117655         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117656         Reported by Paul Eggert.
117658 2006-01-26  Bruno Haible  <bruno@clisp.org>
117659             Paul Eggert  <eggert@cs.ucla.edu>
117661         * lib/stdbool_.h (_Bool)
117662         [(! (defined __cplusplus || defined __BEOS__)
117663           && !defined __GNUC__
117664           && !(defined __HP_cc || defined __xlc__
117665                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117666                || defined __sgi))]:
117667         #define to signed char in these cases too; this simplifies
117668         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117669         etc., separately) and makes it more conservative.
117671 2006-01-25  Simon Josefsson  <jas@extundo.com>
117673         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117674         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117675         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117677 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117679         * lib/argp-namefrob.h: Bugfix. Remove stray #
117681 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117684         so that we test the test.
117685         Check for yet another HP-UX cc bug involving *bool |= bool.
117687 2006-01-25  Karl Berry  <karl@gnu.org>
117689         * config/srclist.txt (vasnprintf.c): sync lost.
117691 2006-01-25  Jim Meyering  <jim@meyering.net>
117693         Sync from the stable (b5) branch of coreutils:
117695         * lib/fts.c (fts_children): Don't let close() clobber errno from
117696         failed fchdir().
117698         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117699         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117700         a dangling symlink.  That can also happen at least for ELOOP.
117701         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117702         FYI, this bug predates the inclusion of fts.c in coreutils.
117704         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117705         in their own block, so pre-c99 compilers don't object.
117707         Avoid the double-free (first in fts_read, second in fts_close) that
117708         would occur when an `active' directory is made inaccessible (e.g.,
117709         via chmod a-x) during a traversal.
117710         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117711         before returning.  Reproduce this failure by
117712         mkdir -p a/b; cd a; chmod a-x . b
117713         Reported by Stavros Passas.
117715 2006-01-25  Jim Meyering  <jim@meyering.net>
117717         * lib/fileblocks.c: Remove more useless parentheses.
117718         * lib/readutmp.h: Likewise.
117720 2006-01-25  Bruno Haible  <bruno@clisp.org>
117722         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117723         warnings.
117724         Reported by Paul Eggert.
117726 2006-01-25  Bruno Haible  <bruno@clisp.org>
117728         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117729         rid of a trap command. For Solaris sh.
117730         Reported by Mark D. Baushke <mdb@gnu.org>.
117732 2006-01-24  Simon Josefsson  <jas@extundo.com>
117734         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117735         Bruno.
117737 2006-01-24  Karl Berry  <karl@gnu.org>
117739         * config/srclist.txt (argp-namefrob.h): sync lost.
117741 2006-01-24  Jim Meyering  <jim@meyering.net>
117743         * modules/openat (Files): Add lib/intprops.h.
117744         From Mark D. Baushke.
117746 2006-01-24  Jim Meyering  <jim@meyering.net>
117748         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117749         Reported by Mark D. Baushke.
117751 2006-01-24  Jim Meyering  <jim@meyering.net>
117753         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117755 2006-01-24  Bruno Haible  <bruno@clisp.org>
117757         * modules/strnlen (Maintainer): Change from glibc to all.
117759 2006-01-24  Bruno Haible  <bruno@clisp.org>
117761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117762         Patch by Paul Eggert.
117764 2006-01-24  Bruno Haible  <bruno@clisp.org>
117766         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117767         already has it.
117768         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117769         2005-11-26.
117771         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117772         'signed char' to avoid problems with the built-in _Bool type.
117773         Reported by Paul Eggert on 2005-11-26.
117775 2006-01-24  Bruno Haible  <bruno@clisp.org>
117777         * gnulib-tool (func_import): Avoid constructing complicated sed
117778         expressions inside backquote.
117779         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117781 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117783         These changes imported from libc.
117784         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117785         test and two separate function calls.
117786         * lib/strndup.c (__strndup): Add libc_hidden_def.
117788 2006-01-23  Simon Josefsson  <jas@extundo.com>
117790         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117791         Remove the test_*_SOURCES variable: automake infers it by default.
117792         * modules/tls-tests: Likewise.
117794 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117796         Work around porting bugs reported by Dieter in
117797         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117798         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117799         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117800         Include "getopt.h" first, to check interface.
117801         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117802         !HAVE_DECL_GETENV.
117803         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117804         (__strndup): Revert to K&R-style function dfns, the glibc style.
117805         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117806         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117807         Include strnlen.h first, to get prototype properly.
117808         (strnlen): Renamed from __strnlen.
117809         Remove weak alias.
117811 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117813         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117815 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117817         * config/srclist.txt: Adjust to reflect glibc reorganization.
117818         This affects only comments.
117820 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117822          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117823          Reported by Bruce Korb <bkorb@gnu.org>.
117825 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117827         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117828         to pacify gcc -Wswitch-default.
117830 2006-01-22  Bruno Haible  <bruno@clisp.org>
117832         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117833         temporary buffer for sprintf, take into account the precision also
117834         for 'd', 'i', 'u', 'o', 'x', 'X'.
117836 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117838         * modules/argp-tests: New module
117839         * tests/test-argp.c: New file
117840         * tests/test-argp-2.sh: New file
117842 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117844         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117845         (__argp_base_name): Removed
117846         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117847         typo.
117848         (__argp_base_name): Provide macro definition or extern declaration
117849         depending on the configuration
117851 2006-01-20  Simon Josefsson  <jas@extundo.com>
117853         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117855 2006-01-20  Simon Josefsson  <jas@extundo.com>
117857         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117859 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117861         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117862         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117863         Suggested by Bruno Haible.
117865 2006-01-20  Karl Berry  <karl@gnu.org>
117867         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117868         until changes propagate, I guess.
117870 2006-01-19  Simon Josefsson  <jas@extundo.com>
117872         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117874 2006-01-19  Simon Josefsson  <jas@extundo.com>
117876         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117878 2006-01-19  Simon Josefsson  <jas@extundo.com>
117880         * gnulib-tool: Set check_PROGRAMS.
117882         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117883         modules/des-tests, modules/gc-arcfour-tests,
117884         modules/gc-arctwo-tests, modules/gc-des-tests,
117885         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117886         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117887         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117888         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117889         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117890         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117891         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117892         test_*_SOURCES.
117894 2006-01-18  Simon Josefsson  <jas@extundo.com>
117896         * modules/socklen (Depends-on): Depend on sys_socket.
117898 2006-01-18  Simon Josefsson  <jas@extundo.com>
117900         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117901         modules/des-tests, modules/gc-arcfour-tests,
117902         modules/gc-arctwo-tests, modules/gc-des-tests,
117903         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117904         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117905         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117906         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117907         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117908         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117909         $(EXEEXT) to automake TESTS variable, for mingw32.
117911 2006-01-17  Simon Josefsson  <jas@extundo.com>
117913         * modules/socklen (Include): Need sys/socket.h.
117915 2006-01-17  Bruno Haible  <bruno@clisp.org>
117917         * modules/ssize_t (Include): Add <sys/types.h>.
117919 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117921         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117922         it's not portable and it doesn't work with cross-compiles.
117923         Problem reported by Bruno Haible.  Fix missing-$ typo in
117924         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117925         -zignore from being used with Sun's C compiler.
117927 2006-01-12  Simon Josefsson  <jas@extundo.com>
117929         * lib/base64.c: Fix warning, reported by Bruno Haible
117930         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117932 2006-01-12  Bruno Haible  <bruno@clisp.org>
117934         * modules/ldd: New file.
117935         * build-aux/ldd.sh.in: New file.
117936         * MODULES.html.sh (Support for building libraries and executables): Add
117937         ldd.
117939 2006-01-12  Bruno Haible  <bruno@clisp.org>
117941         * m4/ldd.m4: New file.
117943 2006-01-12  Bruno Haible  <bruno@clisp.org>
117945         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117946         endless loop while replacing $auxdir with build-aux.
117948 2006-01-11  Simon Josefsson  <jas@extundo.com>
117950         * lib/stdint_.h (SIZE_MAX): Add missing (.
117952 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117954         Sync from coreutils.
117955         * lib/md5.c: Fix commentary typos.
117956         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117957         * lib/md5.h (__attribute__): Remove; unused.
117958         * lib/sha1.c: Fix commentary to match md5 better.
117959         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117960         so that we don't need to worry about alignment.  All uses changed.
117961         This merges the 2005-10-28 md5 change into sha1.
117963 2006-01-11  Jim Meyering  <jim@meyering.net>
117965         Sync from coreutils.
117966         * lib/md5.c (OP): Fix spacing.
117968 2006-01-11  Bruno Haible  <bruno@clisp.org>
117970         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117971         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117972         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117974 2006-01-11  Bruno Haible  <bruno@clisp.org>
117976         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117977         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117978         the "early" section as well.
117980 2006-01-11  Bruno Haible  <bruno@clisp.org>
117982         Avoid "ar: no archive members specified" error on MacOS X.
117983         * gnulib-tool (func_modules_add_dummy): New function.
117984         (func_import, func_create_testdir): Invoke it.
117986 2006-01-11  Bruno Haible  <bruno@clisp.org>
117988         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117989         with $auxdir in AC_CONFIG_FILES statements.
117991 2006-01-11  Bruno Haible  <bruno@clisp.org>
117993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117994         Initialize also noinst_HEADERS to empty.
117996 2006-01-11  Bruno Haible  <bruno@clisp.org>
117998         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117999         variables.
118000         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118001         autoreconf.
118003 2006-01-11  Bruno Haible  <bruno@clisp.org>
118005         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118006         overridable by the user.
118007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118009 2006-01-10  Simon Josefsson  <jas@extundo.com>
118011         * modules/sys_socket: New file.
118013 2006-01-10  Simon Josefsson  <jas@extundo.com>
118015         * m4/sys_socket_h.m4: New file.
118017 2006-01-10  Simon Josefsson  <jas@extundo.com>
118019         * lib/socket_.h: New file.
118021 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118023         * modules/readutmp (Maintainer): Add myself.
118025 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118027         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118028         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118029         People who are still concerned with buggy memcmp implementations
118030         can invoke gl_FUNC_MEMCMP themselves.
118032 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118034         * lib/regex_internal.h (BITSET_WORD_BITS):
118035         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118036         preprocessor mishandles large unsigned values as if they were signed.
118037         Problem reported by Claudio Fontana in
118038         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118040 2006-01-10  Jim Meyering  <jim@meyering.net>
118042         Avoid the double-free (first in fts_read, second in fts_close) that
118043         would occur when an `active' directory is made inaccessible (e.g.,
118044         via chmod a-x) during a traversal.
118045         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118046         before returning.  Reproduce this failure by
118047         mkdir -p a/b; cd a; chmod a-x . b
118048         Reported by Stavros Passas.
118050         Sync from coreutils.
118051         * lib/sha1.c: Tweak grammar in a comment.
118053 2006-01-10  Jim Meyering  <jim@meyering.net>
118055         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118056         Patch by Joerg Sonnenberger.
118058 2006-01-10  Bruno Haible  <bruno@clisp.org>
118060         * modules/readutmp: Depend on module free.
118061         * modules/strtok_r: Depend on module restrict.
118063 2006-01-10  Bruno Haible  <bruno@clisp.org>
118065         * modules/gettext (configure.ac): Add an invocation of
118066         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118068 2006-01-10  Bruno Haible  <bruno@clisp.org>
118070         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118071         Reported by Werner Lemberg <wl@gnu.org>.
118073 2006-01-10  Bruno Haible  <bruno@clisp.org>
118075         * lib/localcharset.c: Update from GNU gettext.
118077 2006-01-10  Bruno Haible  <bruno@clisp.org>
118079         * lib/argp.h (__const): Remove macro. Use const instead.
118080         * lib/argp-fmtstream.h (__const): Likewise.
118081         * lib/glob_.h (__const): Remove macro.
118082         * lib/glob-libc.h: Use const instead of __const.
118084 2006-01-10  Bruno Haible  <bruno@clisp.org>
118086         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118087         variable.
118088         Needed to avoid an automake error regarding the 'gettext' module.
118090 2006-01-09  Simon Josefsson  <jas@extundo.com>
118092         * modules/inet_ntop (Depends-on): Add restrict.
118094 2006-01-09  Simon Josefsson  <jas@extundo.com>
118096         * modules/gc-rijndael-tests (License): Put under LGPL.
118098         * modules/gc-des-tests (License): Likewise.
118100         * modules/gc-arcfour-tests (License): Likewise.
118102         * modules/gc-arctwo-tests (License): Likewise.
118104         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118106         * modules/gc-hmac-sha1-tests (Files): Likewise.
118108         * modules/gc-hmac-md5-tests (License): Likewise.
118110         * modules/gc-sha1-tests (License): Likewise.
118112         * modules/gc-md5-tests (License): Likewise.
118114         * modules/gc-md4-tests (License): Likewise.
118116         * modules/gc-md2-tests (License): Likewise.
118118         * modules/gc-tests (License): Likewise.
118120         * modules/des-tests (License): Likewise.
118122         * modules/md4-tests (License): Likewise.
118124         * modules/md2-tests (License): Likewise.
118126 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118128         Sync from coreutils:
118130         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118131         * modules/lib-ignore: New file.
118132         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118133         chdir-safer.m4, lchmod.m4.
118134         * modules/openat: Add mkdirat.c, openat-priv.h.
118136 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118138         Sync from coreutils.
118139         * m4/lib-ignore.m4: New file.
118140         * m4/lchmod.m4: New file.
118142 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118144         Sync from coreutils.
118145         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118146         for write access: POSIX says that must fail.
118147         * lib/fts.c (diropen): Likewise.
118148         * lib/save-cwd.c (save_cwd): Likewise.
118149         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118150         well, for minor improvements on hosts that lack O_DIRECTORY.
118151         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118152         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118153         Fall back on chown if open failed with EACCES.
118155         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118156         Report an error at compile-time if only a 1-second nominal clock
118157         resolution is found.
118159         * lib/lchmod.h: New file.
118160         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118161         (make_dir_parents): Use lchown rather than chown, and
118162         lchmod rather than chmod.
118164         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118165         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118166         "proc" reported by n0dalus.
118168         * lib/mountlist.c: Include <limits.h>.
118169         (dev_from_mount_options)
118170         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118171         New function.  It no longer assumes "dev=" has the System V meaning
118172         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118173         (read_file_system_list)
118174         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118175         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118176         dev= in that case.
118178         * lib/posixtm.h (PDS_PRE_2000): New macro.
118179         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118180         allow_century.  All usages changed.  Reject dates outside the range
118181         1969-1999 if PDS_PRE_2000 is used.
118183 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118185         Sync from coreutils.
118186         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118187         (Time of day items): Mention the possibility of leap seconds.
118188         Problem reported by Dr. David Alan Gilbert.
118190 2006-01-09  Jim Meyering  <jim@meyering.net>
118192         Sync from coreutils.
118194         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118196         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118198         * lib/modechange.c (mode_compile): Reject an invalid mode string
118199         that starts with an octal digit.  From Andreas Gruenbacher.
118201         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118202         and dup to open_safer and dup_safer, respectively.
118203         (openat_permissive): Fix typo in comment.
118205         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118206         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118207         (_): Remove; no longer needed.
118208         (openat): Renamed from rpl_openat; no need for rpl_openat
118209         since openat.h renames openat for us.
118210         Replace most of the body with a call to openat_permissive,
118211         to avoid duplicate code.
118212         Port to (probably hypothetical) environments were mode_t is
118213         wider than int.
118214         (openat_permissive): Require mode arg, so that we can check
118215         types better.  Put it just after flags.  Change cwd failure
118216         indicator from pointer-to-bool to pointer-to-errno-value.
118217         All callers changed.
118218         Invoke openat_save_fail and/or openat_restore_fail if
118219         cwd_errno is null, so that openat can call us.
118220         (openat_permissive, fdopendir, fstatat, unlinkat):
118221         Simplify errno handling to avoid some duplicate code,
118222         as it's OK to set errno on success.
118223         * lib/openat.h: Revamp code so that function macros depend on
118224         __OPENAT_PREFIX only, not also on AT_FDCWD.
118225         (openat_ro): Remove.  Caller changed to use openat_permissive.
118226         (openat_permissive): Now a macro, if not a function.
118227         (openat_restore_fail, openat_save_fail): Now always functions,
118228         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118230         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118231         and openat.c.
118232         * lib/mkdirat.c: Include openat-priv.h.
118233         Remove definitions of macros defined therein.
118234         * lib/openat.c: Likewise.
118236         * lib/mkdirat.c (mkdirat): New file and function.
118237         * lib/openat.h (mkdirat): Declare.
118239         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118241         * lib/openat.h (openat_permissive): Declare.
118242         (openat_ro): Define.
118244         * lib/openat.c (EXPECTED_ERRNO): New macro.
118245         (openat_permissive): New function -- used in remove.c rewrite.
118246         (all functions): Set errno just before returning, only if there
118247         was an actual failure.
118248         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118250         Emulate openat-family functions using Linux's procfs, if possible.
118251         Idea and some code based on Ulrich Drepper's glibc changes.
118253         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118254         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118255         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118256         before falling back on save_cwd and restore_cwd.
118257         (fdopendir, fstatat, unlinkat): Likewise.
118259         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118260         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118262         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118263         as second argument to va_arg.  Otherwise, some versions of gcc
118264         warn that `if this code is reached, the program will abort'.
118266 2006-01-09  Jim Meyering  <jim@meyering.net>
118268         Sync from coreutils.
118269         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118270         Require openat-priv.h.
118272 2006-01-09  Bruno Haible  <bruno@clisp.org>
118274         * modules/strnlen (Include): Use strnlen.h.
118276 2006-01-09  Bruno Haible  <bruno@clisp.org>
118278         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118280 2006-01-09  Bruno Haible  <bruno@clisp.org>
118282         * lib/sysexit_.h (EX_OK): New macro.
118283         Suggested by Martin Lambers <marlam@marlam.de>.
118285 2006-01-09  Bruno Haible  <bruno@clisp.org>
118287         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118288         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118290 2006-01-09  Bruno Haible  <bruno@clisp.org>
118292         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118293         numbers.
118295 2006-01-09  Bruno Haible  <bruno@clisp.org>
118297         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118298         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118299         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118300         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118302 2006-01-09  Bruno Haible  <bruno@clisp.org>
118304         * build-aux/javacomp.sh.in: New file, moved from lib/.
118305         * modules/javacomp-script (Files): Update.
118306         (configure.ac): Add AC_CONFIG_FILES invocation.
118307         (EXTRA_DIST): Remove variable.
118309         * build-aux/javaexec.sh.in: New file, moved from lib/.
118310         * modules/javaexec (Files): Update.
118311         (configure.ac): Add AC_CONFIG_FILES invocation.
118312         (EXTRA_DIST): Remove javaexec.sh.in.
118314         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118315         * modules/csharpcomp-script (Files): Update.
118316         (configure.ac): Add AC_CONFIG_FILES invocation.
118317         (EXTRA_DIST): Remove variable.
118319         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118320         * modules/csharpexec (Files): Update.
118321         (configure.ac): Add AC_CONFIG_FILES invocation.
118322         (EXTRA_DIST): Remove csharpexec.sh.in.
118324 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118326         Sync from coreutils.
118328         Add POSIX ACL support
118329         * lib/acl.h (copy_acl, set_acl): Add declarations.
118330         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118331         systems other than Linux.
118332         (chmod_or_fchmod): New function: use fchmod when possible,
118333         and chmod otherwise.
118334         (file_has_acl): Add a POSIX ACL implementation, with a
118335         Linux-specific subcase.
118336         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118337         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118338         acls are unsupported.
118339         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118340         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118341         are unsupported.
118343 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118345         Sync from coreutils.
118346         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118348 2006-01-07  Bruno Haible  <bruno@clisp.org>
118350         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118351         gl_EARLY.
118353 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118355         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118356         Problem reported for Mingw by Mark Junker.
118358 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118360         * README: Gnulib normally doesn't generate a tarball.
118362 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118364         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118365         long int, not int, for nanosecond counts, so that people who are
118366         used to POSIX struct timespec won't be surprised.  Reported by Jim
118367         Meyering.
118369 2005-12-28  Bruno Haible  <bruno@clisp.org>
118371         * build-aux/config.rpath: Update from GNU gettext.
118373 2005-12-16  Jim Meyering  <jim@meyering.net>
118375         * modules/fprintftime: New module.
118376         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118378 2005-12-16  Jim Meyering  <jim@meyering.net>
118380         * m4/fprintftime.m4: New file.
118382 2005-12-16  Jim Meyering  <jim@meyering.net>
118384         * lib/fprintftime.c, lib/fprintftime.h: New files.
118386 2005-12-15  Simon Josefsson  <jas@extundo.com>
118388         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118389         new m4/socklen.m4.
118391 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118393         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118394         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118396 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118398         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118399         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118400         struct uparams is valid. Fall back to the default values if it is
118401         not.
118403 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118405         * modules/argp (Files): Add argp-pin.c
118406         (Depends-on): dirname
118407         (lib_SOURCES): Add argp-pin.c
118409 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118411         * m4/argp.m4:  Check if program_invocation_name and
118412         program_invocation_short_name are declared and define appropriate
118413         macros if they are not.
118415 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118417         * lib/argp-help.c (__argp_base_name): New function
118418         (__argp_short_program_name): Rewrite using __argp_base_name
118419         * lib/argp-namefrob.h: Define program_invocation_name and
118420         program_invocation_short_name if requested
118421         (__argp_base_name): Add prototype
118422         * lib/argp-parse.c (argp_def): Use gettext wrappers
118423         (argp_default_parser): Use __argp_base_name
118424         * lib/argp-pin.c: New file. Defines program_invocation_name and
118425         program_invocation_short_name on systems that lack them.
118427 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118429         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118430         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118431         porting problem reported by Georg Schwarz in
118432         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118434 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118436         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118437         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118438         porting problem reported by Georg Schwarz in
118439         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118441 2005-12-05  Bruno Haible  <bruno@clisp.org>
118443         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118444         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118445         Reported by Mark Junker <mjscod@gmx.de>.
118447 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118449         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118450         Use implementation from Albert Chin, with some
118451         comments/corrections by Stepan Kasal and myself.
118453 2005-12-02  Bruno Haible  <bruno@clisp.org>
118455         * gnulib-tool (func_import): Accept GPLed build tool modules when
118456         --lgpl is given.
118457         * modules/csharpcomp-script: New file.
118458         * modules/csharpcomp: Depend on it.
118459         * modules/javacomp-script: New file.
118460         * modules/javacomp: Depend on it.
118461         Suggested by Simon Josefsson.
118463 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118465         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118466         statement, to work around an HP-UX 10.20 compiler bug reported by
118467         Peter O'Gorman.
118469 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118471         * modules/savedir (Depends-on): Add openat.
118473 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118475         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118476         (uintmax_t) [defined uintmax_t]: Do not declare.
118477         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118478         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118479         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118480         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118481         sake of portability to weird hosts that C allows (though we don't
118482         know of any practical examples).
118484         * lib/savedir.h (fdsavedir): New decl.
118485         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118486         contains most of the former guts of savedir.
118487         (savedir): Use savedirstream.
118488         Include "openat.h".
118490 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118492         * modules/obstack (Files): Add m4/ulonglong.m4.
118493         Problem reported by Davide Angelocola.
118495 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118497         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118498         coreutils no longer futzes with rounding modes.
118500 2005-11-14  Jim Meyering  <jim@meyering.net>
118502         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118503         replacement of mkstemp.
118505 2005-11-10  Simon Josefsson  <jas@extundo.com>
118507         * lib/readline.c: Remove EOL.
118509 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118511         * modules/gethrxtime (Depends-on): Add gettime.
118513 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118515         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118516         or gettimeofday; no longer needed.
118518 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118520         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118521         time business.
118522         (gethrxtime) [! (HAVE_NANOUPTIME
118523         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118524         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118525         our own approximation.
118527 2005-11-08  Eric Blake  <ebb9@byu.net>
118529         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118531 2005-11-08  Eric Blake  <ebb9@byu.net>
118533         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118535 2005-11-04  Bruno Haible  <bruno@clisp.org>
118537         * gnulib-tool: Implement --update mode.
118539 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118541         Fix porting problem reported by Theodoros V. Kalamatianos.
118542         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118543         Don't assume that futimes failing means we must fail.
118545 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118548         variables to suggest the intended function of the PATH_MAX check.
118550 2005-10-30  Kean Johnston  <jkj@sco.com>
118552         Trivial changes to support SCO systems.
118553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118554         as PATH_MAX.
118555         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118556         where __ptr is null when no I/O is pending.
118558 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118560         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118561         leave errno alone.  Problem reported by Dmitry V. Levin.
118563 2005-10-28  Simon Josefsson  <jas@extundo.com>
118565         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118566         Test more.
118568         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118570         * modules/md2, modules/md2-tests: New files.
118572 2005-10-28  Simon Josefsson  <jas@extundo.com>
118574         * m4/inet_ntop.m4: More tests.
118576         * m4/gc-md2.m4, md2.m4: New file.
118578 2005-10-28  Simon Josefsson  <jas@extundo.com>
118580         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118581         "restrict" keywords, as per POSIX.  Protect the function
118582         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118583         Don't use K&R prototypes.  Check the sprintf return values.
118584         Re-define EAFNOSUPPORT if not present.  Indent.
118586         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118587         suggested by Bruno Haible <bruno@clisp.org>.
118589         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118591         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118593         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118594         libgcrypt).
118596         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118598         * lib/md2.h, lib/md2.c: New files.
118600 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118602         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118603         errno alone.  Problem reported by Frederic Jolliton.
118605 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118607         * modules/verify (License): Change from GPL to LGPL.  This is a
118608         tiny module and there are apparently near-equivalents that are
118609         under the BSD license.
118611 2005-10-24  Simon Josefsson  <jas@extundo.com>
118613         * modules/sha1: Relicense to LGPL.
118615 2005-10-24  Simon Josefsson  <jas@extundo.com>
118617         * lib/md4.h: Shrink buffer size, now that we changed the type.
118619 2005-10-23  Simon Josefsson  <jas@extundo.com>
118621         * gnulib-tool (func_import): Fix --tests-base.
118623 2005-10-22  Simon Josefsson  <jas@extundo.com>
118625         * modules/arcfour (Depends-on): Need stdint.
118627 2005-10-22  Simon Josefsson  <jas@extundo.com>
118629         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118630         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118632 2005-10-22  Simon Josefsson  <jas@extundo.com>
118634         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118635         suggested by Bruno Haible <bruno@clisp.org>.
118637 2005-10-22  Simon Josefsson  <jas@extundo.com>
118639         * lib/crc.h: Include stddef.h, for size_t.
118641 2005-10-22  Simon Josefsson  <jas@extundo.com>
118643         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118644         arcfour_context struct (simplify test vector testing in GNU
118645         Shishi).
118647 2005-10-21  Simon Josefsson  <jas@extundo.com>
118649         * modules/des, modules/des-tests: New files.
118651         * modules/gc-des, modules/gc-des-tests: New files.
118653         * tests/test-des.c, tests/test-gc-des.c: New file.
118655 2005-10-21  Simon Josefsson  <jas@extundo.com>
118657         * modules/arctwo, modules/arctwo-tests: New files.
118659         * tests/test-arctwo.c: New file.
118661         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118663         * tests/test-gc-arctwo.c: New file.
118665 2005-10-21  Simon Josefsson  <jas@extundo.com>
118667         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118668         Bruno Haible <bruno@clisp.org>.
118670         * m4/gc-des.m4: New file.
118672 2005-10-21  Simon Josefsson  <jas@extundo.com>
118674         * m4/arctwo.m4: New file.
118676         * m4/gc-arctwo.m4: New file.
118678 2005-10-21  Simon Josefsson  <jas@extundo.com>
118680         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118681         block.
118683 2005-10-21  Simon Josefsson  <jas@extundo.com>
118685         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118686         <bruno@clisp.org>.
118688         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118690         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118691         Bruno Haible <bruno@clisp.org>.
118693         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118694         <bruno@clisp.org>.
118696 2005-10-21  Simon Josefsson  <jas@extundo.com>
118698         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118700 2005-10-21  Simon Josefsson  <jas@extundo.com>
118702         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118704 2005-10-21  Simon Josefsson  <jas@extundo.com>
118706         * lib/des.h, lib/des.c: New files.
118708         * lib/gc-gnulib.c: Support DES.c
118710 2005-10-21  Simon Josefsson  <jas@extundo.com>
118712         * lib/arctwo.h, lib/arctwo.c: New files.
118714         * lib/gc-gnulib.c: Support ARCTWO.
118716 2005-10-21  Simon Josefsson  <jas@extundo.com>
118718         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118719         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118721 2005-10-21  Simon Josefsson  <jas@extundo.com>
118723         * gnulib-tool (func_import, func_create_testdir): Define automake
118724         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118725         Makefile.am snippet),
118726         suggested by Bruno Haible <bruno@clisp.org>.
118728         * modules/gc (Makefile.am): Use it.
118730 2005-10-21  Bruno Haible  <bruno@clisp.org>
118732         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118733         patch.
118735 2005-10-19  Simon Josefsson  <jas@extundo.com>
118737         * tests/test-gc-rijndael.c: New file.
118739         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118741 2005-10-19  Simon Josefsson  <jas@extundo.com>
118743         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118744         interface too.
118746 2005-10-19  Simon Josefsson  <jas@extundo.com>
118748         * tests/test-gc-arcfour.c: New file.
118750         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118752 2005-10-19  Simon Josefsson  <jas@extundo.com>
118754         * modules/gc-md4, modules/gc-md4-tests: New file.
118756         * tests/test-gc-md4.c: New file.
118758 2005-10-19  Simon Josefsson  <jas@extundo.com>
118760         * m4/gc-md4.m4: New file.
118762 2005-10-19  Simon Josefsson  <jas@extundo.com>
118764         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118765         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118766         <kasal@ucw.cz>.
118768 2005-10-19  Simon Josefsson  <jas@extundo.com>
118770         * m4/gc-arcfour.m4: New file.
118772         * m4/gc-rijndael.m4: New file.
118774 2005-10-19  Simon Josefsson  <jas@extundo.com>
118776         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118778 2005-10-19  Simon Josefsson  <jas@extundo.com>
118780         * lib/gc-gnulib.c: Support ARCFOUR.
118782 2005-10-19  Simon Josefsson  <jas@extundo.com>
118784         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118785         support.
118787         * lib/gc.h: Add ECB enum type.
118789         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118791 2005-10-18  Simon Josefsson  <jas@extundo.com>
118793         * tests/test-md5.c: New file.
118795         * modules/md5-tests: New file.
118797 2005-10-18  Simon Josefsson  <jas@extundo.com>
118799         * tests/test-md4.c: New file.
118801         * modules/md4, modules/md4-tests: New files.
118803 2005-10-18  Simon Josefsson  <jas@extundo.com>
118805         * m4/md4.m4: New file.
118807 2005-10-18  Simon Josefsson  <jas@extundo.com>
118809         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118811 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118813         * gnulib-tool (func_create_testdir): Omit the second check whether
118814         BUILT_SOURCES in nonempty.
118816 2005-10-17  Simon Josefsson  <jas@extundo.com>
118818         * tests/test-rijndael.c: New file.
118820 2005-10-17  Simon Josefsson  <jas@extundo.com>
118822         * modules/sha1: Depend on stdint instead of md5.
118824         * modules/md5: Depend on stdint, remove uint32_t.
118826 2005-10-17  Simon Josefsson  <jas@extundo.com>
118828         * modules/gc-sha1-tests: New file.
118830         * tests/test-gc-sha1.c: New file.
118832 2005-10-17  Simon Josefsson  <jas@extundo.com>
118834         * m4/md5.m4: Remove call to uint32_t.m4.
118836 2005-10-17  Simon Josefsson  <jas@extundo.com>
118838         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118840         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118841         md5.h.
118843         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118845         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118847 2005-10-17  Simon Josefsson  <jas@extundo.com>
118849         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118851 2005-10-17  Simon Josefsson  <jas@extundo.com>
118853         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118855 2005-10-17  Simon Josefsson  <jas@extundo.com>
118857         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118859         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118861 2005-10-17  Bruno Haible  <bruno@clisp.org>
118863         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118864         that it can also be used in a test.
118866 2005-10-16  Bruno Haible  <bruno@clisp.org>
118868         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118869         TESTS_ENVIRONMENT, so that individual tests can augment it.
118871         * gnulib-tool (func_create_testdir): Use an intermediate target for
118872         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118873         macros, like $(ALLOCA_H), which cannot be passed through the command
118874         line.
118876 2005-10-15  Simon Josefsson  <jas@extundo.com>
118878         * modules/rijndael-tests: New file.
118880         * modules/rijndael: New file.
118882 2005-10-15  Simon Josefsson  <jas@extundo.com>
118884         * m4/rijndael.m4: New file.
118886 2005-10-15  Simon Josefsson  <jas@extundo.com>
118888         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118890         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118892 2005-10-14  Simon Josefsson  <jas@extundo.com>
118894         * tests/test-arcfour.c: New file.
118896         * modules/arcfour, modules/arcfour-tests: New files.
118898 2005-10-14  Simon Josefsson  <jas@extundo.com>
118900         * m4/arcfour.m4: New file.
118902 2005-10-14  Simon Josefsson  <jas@extundo.com>
118904         * lib/arcfour.h, lib/arcfour.c: New files.
118906 2005-10-14  Roland McGrath  <roland@redhat.com>
118908         Import from libc.  [BZ #1331]
118909         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118910         macro argument.
118911         Reported by Matej Vela <vela@debian.org>.
118913 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118915         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118916         include <wchar.h>; no longer needed.
118918 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118920         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118922 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118923         and  Ulrich Drepper  <drepper@redhat.com>
118925         Import from libc.
118926         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118927         instead of inline stream orientation test and two separate
118928         function calls.  Pay no attention to USE_IN_LIBIO.
118930 2005-10-13  Simon Josefsson  <jas@extundo.com>
118932         * modules/gc-hmac-md5-tests: New file.
118934         * tests/test-gc-hmac-sha1.c: New file.
118936         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118938         * modules/gc-hmac-md5-tests: New file.
118940         * tests/test-gc-md5.c: New file.
118942         * modules/gc-md5-tests: New file.
118944 2005-10-13  Simon Josefsson  <jas@extundo.com>
118946         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118947         Move memory allocation outside of loop.
118949 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118951         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118952         intermediate directory is in a read-only file system.  Problem
118953         reported by Eric Blake.
118955 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118957         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118959 2005-10-12  Simon Josefsson  <jas@extundo.com>
118961         * tests/test-hmac-sha1.c: New file.
118963         * modules/hmac-sha1-tests: New file.
118965         * modules/hmac-sha1: New file.
118967 2005-10-12  Simon Josefsson  <jas@extundo.com>
118969         * modules/gc-sha1: New file.
118971 2005-10-12  Simon Josefsson  <jas@extundo.com>
118973         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118975         * tests/test-gc-pbkdf2-sha1.c: New file.
118977 2005-10-12  Simon Josefsson  <jas@extundo.com>
118979         * modules/gc-md5, modules/gc-hmac-md5: New files.
118981         * modules/gc (Files): Remove md5, memxor and hmac files.
118983 2005-10-12  Simon Josefsson  <jas@extundo.com>
118985         * m4/gc-pbkdf2-sha1.m4: New file.
118987         * m4/gc-hmac-sha1.m4: New file.
118989         * m4/gc-sha1: New file.
118991         * m4/hmac-sha1.m4: New file.
118993 2005-10-12  Simon Josefsson  <jas@extundo.com>
118995         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118997         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118999 2005-10-12  Simon Josefsson  <jas@extundo.com>
119001         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119002         suggested by Bruno Haible <bruno@clisp.org>.
119004 2005-10-12  Simon Josefsson  <jas@extundo.com>
119006         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119008 2005-10-12  Simon Josefsson  <jas@extundo.com>
119010         * lib/gc-pbkdf2-sha1.c: New file.
119012         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119014 2005-10-12  Simon Josefsson  <jas@extundo.com>
119016         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119018         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119020 2005-10-12  Simon Josefsson  <jas@extundo.com>
119022         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119023         GC_USE_HMAC_MD5, respectively.
119025         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119026         (gc_md5): Fix typo.
119028         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119030         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119032         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119034 2005-10-12  Bruno Haible  <bruno@clisp.org>
119036         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119037         Reported by Stepan Kasal <kasal@ucw.cz>.
119039 2005-10-11  Simon Josefsson  <jas@extundo.com>
119041         * tests/test-crc.c: New file.
119043         * modules/crc, modules/crc-tests: New files.
119045 2005-10-11  Simon Josefsson  <jas@extundo.com>
119047         * m4/crc.m4: New file.
119049 2005-10-11  Simon Josefsson  <jas@extundo.com>
119051         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119053         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119055         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119057 2005-10-11  Simon Josefsson  <jas@extundo.com>
119059         * lib/crc.h, lib/crc.c: New files.
119061         * lib/gc.h (gc_hash_buffer): Add doc.
119063 2005-10-11  Bruno Haible  <bruno@clisp.org>
119065         * modules/c-strcasestr: New file.
119066         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119068 2005-10-11  Bruno Haible  <bruno@clisp.org>
119070         * modules/c-strcase: New file.
119071         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119073 2005-10-11  Bruno Haible  <bruno@clisp.org>
119075         * lib/strcasecmp.c: Include limits.h.
119076         (strcasecmp): Avoid integer overflow on exotic platforms.
119077         * lib/strncasecmp.c: Include limits.h.
119078         (strncasecmp): Avoid integer overflow on exotic platforms.
119079         Reported by Paul Eggert.
119081 2005-10-11  Bruno Haible  <bruno@clisp.org>
119083         * lib/c-strcasestr.h: New file, from GNU gettext.
119084         * lib/c-strcasestr.c: New file, from GNU gettext.
119086 2005-10-11  Bruno Haible  <bruno@clisp.org>
119088         * lib/c-strcase.h: New file, from GNU gettext.
119089         * lib/c-strcasecmp.c: New file, from GNU gettext.
119090         * lib/c-strncasecmp.c: New file, from GNU gettext.
119092 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119094         * modules/mempcpy (License): GPL -> LGPL.
119095         * modules/strchrnul (License): Likewise.
119096         * modules/sysexits (License): Likewise.
119098 2005-10-08  Simon Josefsson  <jas@extundo.com>
119100         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119102 2005-10-07  Simon Josefsson  <jas@extundo.com>
119104         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119106 2005-10-06  Simon Josefsson  <jas@extundo.com>
119108         * tests/test-hmac-md5.c: New file.
119110         * modules/hmac-md5-tests: New file.
119112         * modules/hmac-md5: New file.
119114 2005-10-06  Simon Josefsson  <jas@extundo.com>
119116         * m4/hmac-md5.m4: New file.
119118         * m4/memxor.m4: Require gl_C_RESTRICT.
119120 2005-10-06  Simon Josefsson  <jas@extundo.com>
119122         * lib/memxor.c (memxor): Avoid casts and warnings.
119124 2005-10-06  Simon Josefsson  <jas@extundo.com>
119126         * lib/hmac-md5.c: New file.
119128         * lib/hmac.h: New file.
119130 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119133         promotes to int, not unsigned int, to catch the AIX 5.3
119134         compiler bug.
119136 2005-10-05  Simon Josefsson  <jas@extundo.com>
119138         * modules/memxor: New file.
119140         * modules/iconv (Files): Move config.rpath to havelib, it is used
119141         there.
119143         * modules/havelib (Files): Add config.rpath.
119145 2005-10-05  Simon Josefsson  <jas@extundo.com>
119147         * m4/memxor.m4: New file.
119149 2005-10-05  Simon Josefsson  <jas@extundo.com>
119151         * lib/memxor.c (memxor): Fix compiler error.
119153         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119154         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119156         * lib/memxor.h, lib/memxor.c: New files.
119158         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119159         we assume all systems have it, suggested by Jim Meyering
119160         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119161         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119162         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119163         same reasons.
119165 2005-10-05  Simon Josefsson  <jas@extundo.com>
119167         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119169 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119171         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119172         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119173         needed, since the source code now assumes these .h files.
119175 2005-10-05  Derek Price  <derek@ximbiot.com>
119177         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119179 2005-10-05  Bruno Haible  <bruno@clisp.org>
119181         * modules/stdint (License): Change to LGPL.
119183 2005-10-04  Simon Josefsson  <jas@extundo.com>
119185         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119186         D. Baushke" <mdb@gnu.org>.
119188 2005-10-04  Bruno Haible  <bruno@clisp.org>
119190         * lib/verify.h (verify_true): Provide alternative definition for C++.
119192 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119194         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119195         (SSIZE_MAX): New macro, if not already defined.
119196         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119197         than 2 GiB.
119199 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119201         Sync from coreutils.
119202         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119203         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119204         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119205         ULLONG_MAX doesn't work with 2.7.2.1.
119207 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119209         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119210         From Ben Pfaff.
119212         * modules/exclude (Depends-on): Depend on verify.
119213         * modules/strtoimax (Depends-on): Likewise.
119214         * modules/utimecmp (Depends-on): Likewise.
119216 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119218         * lib/exclude.c: Include verify.h.
119219         (verify): Remove.  All callers changed to use verify.h's version.
119220         * lib/strtoimax.c: Likewise.
119221         * lib/utimecmp.c: Likewis.e
119223         Sync from coreutils.
119224         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119225         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119226         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119227         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119228         bother returning ENOSYS if settimeofday or stime fails; just let
119229         them return whatever errno they want to return.
119230         * lib/utimens.c: Include unistd.h, for dup2.
119231         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119232         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119234 2005-10-02  Jim Meyering  <jim@meyering.net>
119236         Sync from coreutils.
119237         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119238         from glibc-2.2.5 that fails for read-only files.
119240 2005-10-02  Jim Meyering  <jim@meyering.net>
119242         Sync from coreutils.
119243         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119244         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119245         `#if HAVE_CONFIG_H'.
119246         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119247         Remove AT_FDCWD test.
119248         Do not consume the fd unless successful.
119249         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119250         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119251         block, so that we don't even try to compile it if settimeofday is
119252         available.  This works around a compilation failure on OSF1 V5.1,
119253         due to stime requiring a `long int*' while tv_sec is `int'.
119255 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119257         Sync from coreutils.
119258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119259         against `yes', rather than just testing for nonempty.
119261 2005-10-01  Simon Josefsson  <jas@extundo.com>
119263         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119264         and Darwin.
119266         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119267         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119268         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119269         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119270         Check if struct addrinfo is declared.
119272 2005-10-01  Simon Josefsson  <jas@extundo.com>
119274         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119275         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119276         AI_* and EAI_* definitions.  Protect function declarations.
119278 2005-10-01  Jim Meyering  <jim@meyering.net>
119280         Sync from coreutils.
119282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119283         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119284         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119285         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119286         in the inet and nsl libraries.  Required on Solaris 5.7.
119288 2005-10-01  Jim Meyering  <jim@meyering.net>
119290         Sync from coreutils.
119291         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119292         in the inet and nsl libraries.  Required on Solaris 5.7.
119294 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119296         * lib/getdelim.c (getdelim): Remove unused variables.
119298 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119300         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119301         so that the code works even with ancient cpp.  Portability problem
119302         with GCC 2.7.2.1 reported by Thomas M.Ott.
119304 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119306         * modules/regex (Depends-on): Add strcase.
119308         * modules/gethostname (Licence): Change from GPL to LGPL, since
119309         gethostname.c is a trivial implementation of a standard library
119310         function.
119311         * modules/poll (License): Change from GPL to LGPL, since it's
119312         derived from LGPL code.
119314 2005-09-27  Jim Meyering  <jim@meyering.net>
119316         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119317         HAVE_CONFIG_H.
119319         * lib/intprops.h (signed_type_or_expr__): Define.
119320         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119321         for unsigned types.
119323 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119325         * lib/verify.h (verify_expr): Remove, replacing with:
119326         (verify_true): New macro that returns true instead of void.
119327         (verify_type__): Remove.
119328         (verify): Use verify_true rather than verify_type__.
119330 2005-09-26  Bruno Haible  <bruno@clisp.org>
119332         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119333         is necessary.
119334         (lib_SOURCES): Remove mbchar.c.
119335         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119336         (Files): Add m4/mbrtowc.m4.
119337         * modules/mbiter: Likewise.
119338         * modules/mbuiter: Likewise.
119340 2005-09-26  Bruno Haible  <bruno@clisp.org>
119342         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119343         compile mbchar.c if they are not both present.
119344         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119345         * m4/mbiter.m4 (gl_MBITER): Likewise.
119346         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119347         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119348         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119350 2005-09-25  Jim Meyering  <jim@meyering.net>
119352         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119353         also uses socklen_t.
119355 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119357         * lib/utimens.c (ENOSYS): Define if not already defined.
119358         (futimens): Support having a null PATH if the file descriptor
119359         is nonnegative.
119361         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119362         Remove.
119363         (__attribute): Define to empty unless GCC 3.1 or later.
119364         This works around a core dump on OpenBSD 3.4, which has GCC
119365         2.95.3, which dumps core when given __attribute__(()).  It also
119366         simplifies other tests, since we really don't want to bother with
119367         worrying about which ancient version of GCC supported what.
119368         Original problem reported by Yoann Vandoorselaere, with part of
119369         the fix suggested by Derek Price.
119371 2005-09-24  Jim Meyering  <jim@meyering.net>
119373         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119374         so we can once again use a positive bitfield width of 1 -- now we
119375         don't have to explain why we were using a bitfield width of 2.
119377 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119379         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119380         and similarly for the other external symbols.  Problem reported
119381         by James Gallager.
119383         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119384         bug reported by Jim Meyering.
119386         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119388         not needed, since socklen is a prerequisite module.
119390 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119392         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119393         Problem reported by Eric Blake.
119394         (getaddrinfo): Initialize se so that it's not garbage.
119395         Redo internal storage allocation so that it doesn't make unportable
119396         assumptions about alignment.
119397         Fix a memory leak.
119399         * lib/utimens.c (futimens): Use futimesat if available.
119400         Prefer it to futimes since it doesn't have the futimes bug.
119402         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119403         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119404         Instead, declare a function that returns a pointer to an array,
119405         and use verify_type__ to declare the size of the array.
119406         Problem and germ of a solution reported by Bruno Haible.
119407         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119408         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119410 2005-09-23  Jim Meyering  <jim@meyering.net>
119412         Sync from coreutils.
119413         Correct build failure (socklen_t not defined) on at least
119414         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119417 2005-09-23  Jim Meyering  <jim@meyering.net>
119419         * modules/getaddrinfo (Depends-on): Add socklen.
119421 2005-09-23  Bruno Haible  <bruno@clisp.org>
119423         * tests/test-verify.c: New file.
119425 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119427         Sync from coreutils.
119429         * modules/argmatch (Depends-on): Add verify.
119430         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119431         unistd-safer.
119432         * modules/save-cwd (Depends-on): Likewise.
119434         * modules/openat (Files): Add lib/openat-die.c.
119435         (Depends-on): Remove error, exitfail.
119436         Add dirname.
119438         * modules/verify: New file.
119439         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119440         with "verify" module.
119442 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119444         Sync from coreutils.
119446         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119447         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119448         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119449         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119450         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119451         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119452         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119453         Don't bother checking for string.h, stdlib.h, unistd.h.
119454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119455         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119456         module's job.
119457         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119458         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119460         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119461         (gl_GETDATE): Use it.
119463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119467         Sync from coreutils.
119469         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119470         stat-time.h.
119471         * lib/argmatch.h: Include verify.h
119472         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119473         (ARGMATCH_ASSERT): Remove; unused.
119474         * lib/canonicalize.c: Assume STDC_HEADERS.
119475         * lib/exclude.c: Include "strcase.h".
119476         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119477         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119478         and stdio-safer.h.
119479         (getusershell): Call fopen, not fopen_safer.
119480         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119481         Do not include unistd-safer.h.
119482         (save_cwd): Don't call fd_safer; no longer needed
119483         now that we include fcntl--.h.
119485         * lib/getdate.y (relative_time): New type.
119486         (RELATIVE_TIME_0): New constant.
119487         (parser_control): Use relative_time instead of doing it ourselves.
119488         (%union): Add new relative_time rel member.
119489         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119490         Now typeless.
119491         (relunit, relunit_snumber): Now of type rel.
119492         (zone, rel, relunit, get_date): Adjust to above changes.
119494         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119495         Do not include unistd-safer.h.
119496         (getloadavg): Don't call fd_safer; no longer needed
119497         now that we include fcntl--.h.
119499         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119500         (make_dir_parents): Treat ENOSYS like EEXIST.
119502         Improve quality of diagnostics on restore_cwd failure.
119503         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119504         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119505         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119506         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119507         each time through the loop.  Do not diagnose restore_cwd failure;
119508         that is the caller's job (and perhaps the caller does not care).
119510         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119511         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119512         If the file already exists but is not a directory, don't bother
119513         to try to make its parents.
119514         Close potential file descriptor leak if we can't chdir("/") (!).
119515         Don't always return true if chdir($PWD) fails; return true only
119516         if the requested action was done successfully (except for the
119517         chdir($PWD)).
119518         Don't log final directory unless we actually made it.
119519         Refactor to avoid duplicate code to fix up permissions.
119520         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119522         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119523         to make it a bit faster and (I hope) clearer.
119524         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119525         Fix bug in formats like %2N.
119527         * lib/verify.h: New file.
119529 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119531         Sync from coreutils.
119532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119534 2005-09-22  Jim Meyering  <jim@meyering.net>
119536         Sync from coreutils.
119538         * m4/lstat.m4 (gl_FUNC_LSTAT):
119539         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119540         Remove obsolete comment.
119541         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119542         * m4/xstrtod.m4: Likewise.
119544         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119546 2005-09-22  Jim Meyering  <jim@meyering.net>
119548         Sync from coreutils.
119550         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119552         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119553         the .tm_year member, since otherwise gcc-4.0 would now warn about
119554         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119556         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119557         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119559         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119560         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119561         when run in a time zone for which daylight savings time is in effect
119562         for the starting date.
119564         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119565         stop us from restricting permissions of just-created absolute-named
119566         directories.
119567         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119568         to restore initial working directory.
119569         * lib/mkdir-p.c (make_dir_parents): New parameter:
119570         different_working_dir, to tell caller if/when we change the working
119571         directory and are unable to return to the initial one.
119572         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119573         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119574         `return false'.  This fixes a bug introduced on 2004-07-30.
119576         * lib/openat.c (fdopendir): Be sure to close the supplied
119577         file descriptor before returning.  This makes our replacement
119578         implementation a little closer to Solaris's, where fdopendir
119579         ties the file descriptor to the returned DIR* pointer.
119580         * lib/openat.c (unlinkat): New function.
119581         * lib/openat.h (unlinkat): Add prototype.
119582         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119583         (openat_restore_fail): Rename from openat_restore_die.
119584         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119586         Provide an alternative to exiting immediately upon save_cwd or
119587         restore_cwd failure.  Now, an application can arrange e.g.,
119588         to perform a longjump in that case.
119589         * lib/openat.c: Include dirname.h.
119590         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119591         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119592         and openat_restore_die rather than calling error directly.
119593         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119595         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119596         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119597         define.
119599         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119600         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119601                             int utc, int nanoseconds);
119602         Background:
119603         date should not have to allocate a megabyte of virtual memory to
119604         handle a format argument like +%1048575T.  When implemented with
119605         strftime, it must allocate such a buffer, use strftime to fill it
119606         in, print it, then free it.
119607         With fprintftime, it simply prints everything and exits.
119608         With no need for memory allocation, that's one fewer way to fail.
119609         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119610         optional field width, not before, so we accept %9:z, not %:9z.
119611         (my_strftime): Be sure to use L_('x') for literals.
119613         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119614         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119615         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119616         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119617         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119618         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119619         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119620         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119621         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119622         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119623         * lib/xgethostname.c, lib/xreadlink.c:
119624         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119626         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119627         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119628         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119629         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119630         and don't include <sys/file.h>).
119632 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119634         Sync from coreutils.
119636         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119637         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119638         [!LDAV_DONE]: Avoid unused variable warning.
119640 2005-09-21  Bruno Haible  <bruno@clisp.org>
119642         * lib/unicodeio.h (unicode_to_mb): New declaration.
119644 2005-09-20  Derek Price  <derek@ximbiot.com>
119646         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119647         getaddrinfo.h.
119649 2005-09-20  Bruno Haible  <bruno@clisp.org>
119651         * gnulib-tool: Remove trailing slashes from the values specified for
119652         --source-base, --m4-base, --tests-base, --aux-dir.
119653         Suggested by Simon Josefsson <jas@extundo.com>.
119655 2005-09-20  Bruno Haible  <bruno@clisp.org>
119657         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119658         func_modules_to_filelist, func_import, func_create_testdir): Make all
119659         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119660         change when gnulib-tool is invoked in a different locale.
119662 2005-09-19  Simon Josefsson  <jas@extundo.com>
119664         * m4/socklen.m4: Fix typo.
119666 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119668         Use a consistent style for including <config.h>.
119669         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119670         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119671         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119672         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119673         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119674         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119675         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119676         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119677         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119678         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119679         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119680         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119681         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119682         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119683         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119684         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119685         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119686         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119687         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119688         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119689         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119690         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119691         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119692         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119693         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119694         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119695         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119696         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119697         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119698         lib/xstrtoumax.c, lib/yesno.c:
119699         Standardize inclusion of config.h.
119700         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119701         lib/inttostr.h:  Removed inclusion of config.h from header files.
119702         * lib/inttostr.c:  Adjusted in-tree users.
119703         * lib/timespec.h: Remove superfluous warning to include config.h.
119704         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119705         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119706         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119707         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119708         config.h with HAVE_CONFIG_H.
119710 2005-09-19  Jim Meyering  <jim@meyering.net>
119712         * modules/pathmax (License): Change to LGPL.
119714 2005-09-19  Derek Price  <derek@ximbiot.com>
119716         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119718 2005-09-19  Bruno Haible  <bruno@clisp.org>
119720         * gnulib-tool (import): Provide default for --tests-base.
119722 2005-09-19  Bruno Haible  <bruno@clisp.org>
119724         * doc/quote.texi: New file, extracted from gnulib.texi.
119725         * doc/ctime.texi: New file, extracted from gnulib.texi.
119726         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119727         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119728         * doc/gnulib.texi: Include them.
119730 2005-09-18  Bruno Haible  <bruno@clisp.org>
119732         Portability fix.
119733         * gnulib-tool (func_readlink): New function.
119734         (func_ln_if_changed): Use it.
119736 2005-09-18  Bruno Haible  <bruno@clisp.org>
119738         * gnulib-tool: Support --with-tests also with --import.
119739         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119740         (func_import): Use variables $testsbase and $inctests. Emit a
119741         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119742         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119743         SUBDIRS += $testsdir.
119744         (func_create_testdir): Update.
119746 2005-09-18  Bruno Haible  <bruno@clisp.org>
119748         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119749         instead of $dry_run.
119750         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119751         (func_ln_if_changed): Don't handle dry-run here.
119752         (func_import): In dry-run mode, detect more precisely which actions
119753         would be performed, and don't use "...ing" verbs.
119755 2005-09-18  Bruno Haible  <bruno@clisp.org>
119757         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119758         (func_import): Use join on two temporary files instead of three nested
119759         loops, in order to determine which files are new or old.
119761 2005-09-18  Bruno Haible  <bruno@clisp.org>
119763         * gnulib-tool (func_import): Comment out code that spits out the
119764         new files with --dry-run.
119766 2005-09-18  Bruno Haible  <bruno@clisp.org>
119768         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119770 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119772         * lib/stat-time.h: New file.
119773         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119774         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119775         in a different way.
119776         (timespec_cmp): New function.
119777         * lib/utimecmp.c: Include stat-time.h.
119778         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119779         members exist, not on the obsolescent ST_MTIM_NSEC.
119780         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119782 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119784         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119786 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119788         * MODULES.html.sh (File system functions): Add stat-time.
119789         * modules/stat-time: New file.
119790         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119791         is now done in a different way, by the stat-time module.
119792         * modules/utimecmp (Depends-on): Add stat-time.
119794 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119796         * m4/st_mtim.m4: Remove.  Superseded by...
119797         * m4/stat-time.m4: New file.
119798         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119799         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119801 2005-09-15  Derek Price  <derek@ximbiot.com>
119803         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119805 2005-09-15  Derek Price  <derek@ximbiot.com>
119807         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119808         * lib/regex_internal.c: Ditto, using this...
119809         (__GNUC_PREREQ): ...new macro.
119810         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119811         using...
119812         (__GNUC_PREREQ): ...this new macro.
119814         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119816 2005-09-15  Derek Price  <derek@ximbiot.com>
119817             Paul Eggert  <eggert@cs.ucla.edu>
119819         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119820         changes, consolidating in...
119821         * lib/regex_internal.h: ...this file.
119823 2005-09-13  Jim Meyering  <jim@meyering.net>
119825         * lib/canon-host.c: Filter through gnu indent and reword comments
119826         slightly.
119827         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119829 2005-09-13  Derek Price  <derek@ximbiot.com>
119831         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119832         failure.
119833         Reported by Jim Meyering  <jim@meyering.net>.
119835 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119837         * lib/base64.c: Typo.
119838         (base64_encode): Put b64str in initialized data section.
119840 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119842         Merge glibc and coreutils changes into gnulib, plus a few
119843         extra fixes.
119844         * lib/md5.c: Use #error rather than a string.
119845         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119846         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119847         (__attribute__): Define to empty for non recent-GCC.
119848         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119849         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119850         Renamed from their non-__ counterparts, with new macros replacing
119851         them if not _LIBC.  Add __THROW attribute.
119852         (rol): Remove.
119853         (struct md5_ctx): Align buffer if using GCC.
119854         * lib/sha1.h (struct sha1_ctx): Likewise.
119855         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119856         The old name was backwards.
119857         (NOTSWAP): Remove; not used.
119858         (rol): New macro, moved here from md5.h.
119859         (sha1_process_block): Remove a FIXME that doesn't make sense.
119861 2005-09-12  Derek Price  <derek@ximbiot.com>
119863         Return usable errors from canon-host.
119864         * lib/canon-host.h: New file.
119865         * lib/canon-host.c (canon_host): Wrap...
119866         (canon_host_r): ...this new function, which now relies exclusively on
119867         getaddrinfo.
119868         (ch_strerror): New function.
119869         (last_cherror): New global.
119870         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119871         interface.
119872         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119873         void *.
119874         (freeaddrinfo): Free ai->ai_canonname when set.
119876 2005-09-12  Derek Price  <derek@ximbiot.com>
119878         Make canon-host require getaddrinfo.
119879         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119880         AC_LIBSOURCE canon-host.h.  Call...
119881         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119882         gl_GETADDRINFO.
119883         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119885 2005-09-12  Derek Price  <derek@ximbiot.com>
119887         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119888         LGPL.
119889         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119891 2005-09-12  Derek Price  <derek@ximbiot.com>
119893         * lib/gai_strerror.c: Include config.h when available.  Include
119894         getaddrinfo.h before other headers to test interface.
119895         Reported by Larry Jones <lawrence.jones@ugs.com>.
119897 2005-09-12  Derek Price  <derek@ximbiot.com>
119898             Paul Eggert  <eggert@cs.ucla.edu>
119900         * modules/glob (Files): Add glob-libc.h.
119902 2005-09-12  Derek Price  <derek@ximbiot.com>
119903             Paul Eggert  <eggert@cs.ucla.edu>
119905         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119906         glob_.h, glob-libc.h.
119907         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119909 2005-09-12  Derek Price  <derek@ximbiot.com>
119910             Paul Eggert  <eggert@cs.ucla.edu>
119912         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119913         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119914         protecting things that should be done only in gnulib contexts.
119915         * lib/glob_.h: New file, containing only the glob things needed for
119916         gnulib.
119917         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119918         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119919         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119920         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119921         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119922         and to respect the namespace rules better.
119924 2005-09-08  Simon Josefsson  <jas@extundo.com>
119926         * modules/socklen: New file.
119928 2005-09-08  Simon Josefsson  <jas@extundo.com>
119930         * m4/socklen.m4: New file.
119932 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119934         * modules/utimens (Files): Add m4/utimbuf.m4, since
119935         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119936         Reported by Sergey Poznyakoff.
119938 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119940         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119941         definitions, since that's the preferred style in glibc.
119942         Fix a minor spacing issue, and update copyright notice to match
119943         glibc's.
119945 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119947         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119949 2005-09-06  Simon Josefsson  <jas@extundo.com>
119951         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119952         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119954 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119956         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119957         warning.
119959 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119961         * config/srclist.txt: Add glibc bug 1302.
119963 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119965         Change bitset word type from unsigned int to unsigned long int,
119966         as this has better performance on typical 64-bit hosts.
119967         Port bitset code to hosts with unusual word sizes.
119968         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119969         (build_collating_symbol):
119970         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119971         argument is a bitset.  This is merely a style issue, but it makes
119972         it clearer that an entire array is expected.
119973         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119974         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119975         Port to the case where bitset_word is not the same as unsigned int.
119976         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119977         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119978         Likewise.
119979         * lib/regexec.c (check_dst_limits_calc_pos_1,
119980         check_subexp_matching_top):
119981         (build_trtable, group_nodes_into_DFAstates):
119982         Likewise.
119983         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119984         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119985         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119986         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119987         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119988         * lib/regcomp.c (optimize_subexps, lower_subexp):
119989         Work even if bitset_word has holes in its bitwise representation.
119990         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119991         * lib/regexec.c (check_dst_limits_calc_pos_1,
119992         check_subexp_matching_top):
119993         Likewise.
119994         * lib/regex_internal.c (re_string_reconstruct):
119995         Don't assume UCHAR_MAX == 255.
119996         * lib/regex_internal.h (bitset_set_all): Likewise.
119997         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119998         All uses changed.
119999         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120000         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120001         All uses changed.
120002         (BITSET_WORD_MAX): New macro.
120003         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120004         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120005         (bitset_empty, bitset_copy):
120006         Prefer sizeof (bitset) to multiplying it out ourselves.
120007         (bitset_not_merge): Remove; unused.
120008         (bitset_contain): Return bool, not unsigned int with one bit on.
120009         All callers changed.
120010         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120011         alignment than re_node_set; do this by defining a new internal
120012         type struct dests_alloc and using it to allocate memory.
120014 2005-09-05  Bruno Haible  <bruno@clisp.org>
120016         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120017         links.
120019 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120021         * modules/size_max (Makefile.am): Add size_max.h
120023 2005-09-04  Derek Price  <derek@ximbiot.com>
120025         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120027 2005-09-03  Simon Josefsson  <jas@extundo.com>
120029         * gnulib-tool: Fix typo.
120031 2005-09-03  Simon Josefsson  <jas@extundo.com>
120033         * config/srclist.txt: Add glibc bug 1293.
120035 2005-09-03  Derek Price  <derek@ximbiot.com>
120037         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120038         From Larry Jones <lawrence.jones@ugs.com>.
120040 2005-09-02  Simon Josefsson  <jas@extundo.com>
120042         * modules/socklen: New file.
120044 2005-09-02  Simon Josefsson  <jas@extundo.com>
120046         * modules/havelib: New module.
120048         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120049         Use havelib.
120051 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120053         Check for arithmetic overflow when calculating sizes, to prevent
120054         some buffer-overflow issues.  These patches are conservative, in the
120055         sense that when I couldn't determine whether an overflow was possible,
120056         I inserted a run-time check.
120057         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120058         macros.
120059         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120060         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120061         (re_xnrealloc, re_x2nrealloc): New inline functions.
120062         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120063         parse_bracket_exp):
120064         (build_equiv_class, build_charclass): Check for arithmetic overflow
120065         in size expression calculations.
120066         * lib/regex_internal.c (re_string_realloc_buffers):
120067         (build_wcs_upper_buffer, re_node_set_add_intersect):
120068         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120069         (re_dfa_add_node, register_state): Likewise.
120070         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120071         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120072         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120073         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120075 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120077         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120078         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120080 2005-09-02  Bruno Haible  <bruno@clisp.org>
120082         Support for lib vs. lib64 distinction on biarch platforms.
120083         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120084         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120085         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120087 2005-09-02  Bruno Haible  <bruno@clisp.org>
120089         * gnulib-tool (import): In the other first-use case, provide defaults
120090         as well.
120092 2005-09-02  Bruno Haible  <bruno@clisp.org>
120094         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120095         patches not yet found in the latest gettext release.
120097 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120099         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120100         to avoid a collision with bits/local_lim.h in glibc.
120101         All uses changed.  Problem reported by Dmitry V. Levin in
120102         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120104         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120105         bugs in int versus size_t comparisons.
120106         (re_string_context_at): Fix bug where the code assumed that
120107         Idx is signed.
120109         Use bool where appropriate.
120110         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120111         All callers changed.
120112         (calc_eclosure_iter): Likewise, for ROOT arg.
120113         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120114         (build_charclass_op): Likewise, for NON_MATCH arg.
120115         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120116         (re_string_construct_common): Likewise, for ICASE arg.
120117         * lib/regexec.c (re_search_2_stub, re_search_stub):
120118         Likewise, for RET_LEN arg.
120119         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120120         (set_regs): Likewise, for FL_BACKTRACK arg.
120121         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120122         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120123         (calc_eclosure_iter, parse_bracket_exp):
120124         Use bool for internal variables that are booleans.
120125         * lib/regexec.c (re_search_internal, check_matching,
120126         proceed_next_node):
120127         (set_regs, build_sifted_states, sift_states_bkref):
120128         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120129         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120130         (find_collation_sequence_value):
120131         Likewise.
120132         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120133         (re_node_set_compare):
120134         Return bool, not int. All callers changed.
120135         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120136         (build_trtable, check_node_accept): Likewise.
120137         * lib/regex_internal.h: Include stdbool.h.
120139         Fix bugs uncovered when converting to bool.
120140         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120141         failure instead of charging ahead blindly.
120142         * lib/regex_internal.c (register_state): Likewise.
120143         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120144         for freeing internal storage.
120145         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120146         bitset pieces used as boolean, to avoid undefined behavior
120147         on hosts that do int overflow checking.
120149 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120151         * config/srclist.txt: Add glibc bugs 1285-1287.
120153 2005-09-01  Jim Meyering  <jim@meyering.net>
120155         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120156         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120157         Require gl_STAT_MACROS, too.
120159 2005-09-01  Bruno Haible  <bruno@clisp.org>
120161         * gnulib-tool (import): In the first-use case, provide defaults.
120163 2005-09-01  Bruno Haible  <bruno@clisp.org>
120165         * gnulib-tool (func_import): Remove the .tmp files.
120167 2005-09-01  Bruno Haible  <bruno@clisp.org>
120169         * gnulib-tool (func_import): Fix handling of symbolic links.
120171 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120173         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120174         old glibc regex code mishandles strings longer than 2**31 bytes.
120175         This patch fixes this when the regex code is used in gnulib
120176         (i.e., outside glibc).
120178         This patch should not affect the use of the regex code inside
120179         glibc.  No doubt this problem also needs to be handled for glibc
120180         as well, but the result will be an incompatible change to the
120181         glibc ABI, and the old ABI will have to be supported too.  That
120182         can be the subject for another patch.
120184         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120185         governing whether the rest of this patch is active.  By default,
120186         the macro is disabled and the patch has no effect.
120187         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120188         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120189         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120190         (re_match_2, re_set_registers): Use the new types.
120191         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120192         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120193         New macros.
120194         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120195         (re_string_context_at, bin_tree_t, re_dfastate_t):
120196         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120197         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120198         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120199         (re_string_char_size_at, re_string_wchar_at):
120200         (re_string_elem_size_at):
120201         Use the new types and macros to port to 64-bit hosts.
120202         Use unsigned types for internal values, so that the code
120203         mostly works even for arrays larger than SSIZE_MAX.
120204         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120205         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120206         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120207         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120208         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120209         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120210         (calc_inveclosure, parse_dup_op, build_range_exp):
120211         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120212         (fetch_number, create_token_tree, mark_opt_subexp):
120213         Likewise.
120214         * lib/regex_internal.c (re_string_construct_common,
120215         create_ci_newstate):
120216         (create_cd_newstate, re_string_allocate, re_string_construct):
120217         (re_string_realloc_buffers, build_wcs_upper_buffer):
120218         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120219         (re_string_reconstruct, re_string_peek_byte_case):
120220         (re_string_fetch_byte_case, re_string_context_at):
120221         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120222         (re_node_set_init_copy, re_node_set_add_intersect):
120223         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120224         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120225         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120226         (re_acquire_state, re_acquire_state_context, register_state):
120227         Likewise.
120228         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120229         search_cur_bkref_entry):
120230         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120231         (re_search_internal, re_search_2_stub, re_search_stub)
120232         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120233         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120234         (update_cur_sifted_state, check_dst_limits):
120235         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120236         (check_subexp_limits, sift_states_bkref, merge_state_array):
120237         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120238         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120239         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120240         (expand_bkref_cache, check_node_accept_bytes):
120241         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120242         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120243         (acquire_init_state_context, check_halt_node_context):
120244         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120245         (sift_states_backward, clean_state_log_if_needed):
120246         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120247         (find_recover_state, transit_state_sb, transit_state_mb):
120248         (transit_state_bkref, build_trtable, match_ctx_clean):
120249         Likewise.
120250         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120251         to work around an assumption that REG_MISSING is negative.
120253         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120254         (seek_collating_symbol_entry) [defined _LIBC]:
120255         (lookup_collation_sequence_value) [defined _LIBC]:
120256         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120257         Use prototypes rather than old-style function definitions.
120258         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120259         (transit_state_sb) [0]:
120260         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120262         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120263         rm_eo.
120265         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120266         (optimize_subexps, lower_subexp):
120267         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120268         since the signed shift might overflow.  Use 1u<<31 instead.
120269         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120270         Likewise.
120271         * lib/regexec.c (check_dst_limits_calc_pos_1,
120272         check_subexp_matching_top): Likewise.
120274         * lib/regcomp.c (optimize_subexps, lower_subexp):
120275         Use CHAR_BIT rather than 8, for clarity.
120276         * lib/regexec.c (check_dst_limits_calc_pos_1):
120277         (check_subexp_matching_top): Likewise.
120278         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120279         have to worry about portability issues when shifting it left.
120280         Remove no-longer-needed test for table_size > 0.
120281         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120282         in a word, as the resulting behavior is undefined.
120283         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120284         in one case, a <= should have been an <, and in another case the
120285         whole test was missing.
120286         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120287         the standard name CHAR_BIT.
120288         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120289         this is not true on one's complement and signed-magnitude hosts.
120291         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120292         next_last_offset.
120293         (struct re_dfa_t): Remove unused member states_alloc.
120294         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120296 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120298         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120299         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120300         and large-file glibc and in 32-bit large-file Solaris.
120302 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120304         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120305         lengths fit in regoff_t; this isn't true if regoff_t is the same
120306         width as size_t.
120307         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120308         (= START + RANGE) instead of RANGE.  This avoids overflow
120309         problems when regoff_t is the same width as size_t.
120310         All callers changed.
120311         (re_search_2_stub): Check for overflow when adding the
120312         sizes of the two strings.
120313         (re_search_stub): Check for overflow when adding START
120314         to RANGE; if it occurs, substitute the extreme value.
120316 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120318         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120320 2005-08-31  Jim Meyering  <jim@meyering.net>
120322         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120323         a pointer-to-const.
120324         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120325         (register_state): Likewise.
120326         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120327         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120328         (group_nodes_into_DFAstates): Likewise.
120330 2005-08-31  Jim Meyering  <jim@meyering.net>
120332         * check-module: Add a FIXME comment.
120334 2005-08-31  Eric Blake  <ebb9@byu.net>
120336         * modules/unistd-safer (Files): Add unistd--.h.
120337         * modules/stdio-safer (Files): Add stdio--.h.
120339 2005-08-31  Derek Price  <derek@ximbiot.com>
120341         * lib/getdelim.c (getdelim): Return EOF on EOF.
120342         Reported by Larry Jones <lawrence.jones@ugs.com>.
120344 2005-08-31  Bruno Haible  <bruno@clisp.org>
120346         Avoid unnecessary diffs in the generated lib/Makefile.am.
120347         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120348         the generated files.
120349         (func_import): Don't set cmd.
120351 2005-08-31  Bruno Haible  <bruno@clisp.org>
120353         * lib/strstr.c: Include <stddef.h>, for NULL.
120354         * lib/strcasestr.c: Likewise.
120355         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120357 2005-08-31  Bruno Haible  <bruno@clisp.org>
120359         * gnulib-tool: New option --macro-prefix.
120360         (func_import): Use macro_prefix.
120361         (import): Handle option --macro-prefix.
120363 2005-08-31  Bruno Haible  <bruno@clisp.org>
120365         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120366         Also use new variables cached_lgpl, cached_libtool.
120368 2005-08-31  Bruno Haible  <bruno@clisp.org>
120370         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120371         always instantiating them.
120373 2005-08-31  Bruno Haible  <bruno@clisp.org>
120375         * gnulib-tool (func_import): Read the previous cached settings
120376         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120377         earlier added by gnulib but are now dropped. Warn when a gnulib file
120378         overwrites a non-gnulib file.
120380 2005-08-31  Bruno Haible  <bruno@clisp.org>
120382         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120383         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120384         projects that don't keep autogenerated files in CVS. Put into
120385         actioncmd only the specified modules, not the transitive closure.
120387 2005-08-31  Bruno Haible  <bruno@clisp.org>
120389         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120390         Create directories that shall be filled.
120391         (import): Don't look for gl_* macros in configure.ac. Recurse across
120392         all directories containing a gnulib-cache.m4 files, if meaningful.
120394 2005-08-31  Bruno Haible  <bruno@clisp.org>
120396         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120397         (import): Set seen_libtool when we see gl_LIBTOOL.
120399 2005-08-31  Bruno Haible  <bruno@clisp.org>
120401         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120402         declaration macro definitions from generated gnulib.m4.
120404 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120406         * lib/iconvme.h: Add prototype for iconv_alloc.
120408 2005-08-29  Simon Josefsson  <jas@extundo.com>
120410         * lib/iconvme.c: Fix errno.
120412 2005-08-29  Bruno Haible  <bruno@clisp.org>
120414         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120415         that it works when the directory contains spaces.
120417 2005-08-29  Bruno Haible  <bruno@clisp.org>
120419         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120421 2005-08-29  Bruno Haible  <bruno@clisp.org>
120423         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120424         Emit more advice.
120426 2005-08-29  Bruno Haible  <bruno@clisp.org>
120427         and Stepan Kasal  <kasal@ucw.cz>
120429         * check-module: If more parameters are given, check each of them
120430         separately; add more exceptions, as noted by Jim Meyering.
120431         (check_module): New procedure.
120432         (%exempt_header): Now contains all exceptions.
120434 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120436         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120438 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120440         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120442 2005-08-28  Bruno Haible  <bruno@clisp.org>
120444         * m4/gnulib-tool.m4: New file.
120446 2005-08-27  Jim Meyering  <jim@meyering.net>
120448         * modules/unistd-safer (Files): Add pipe-safer.c.
120449         * modules/fcntl-safer (Files): Add creat-safer.c.
120451 2005-08-27  Jim Meyering  <jim@meyering.net>
120453         * m4/stdlib-safer.m4: New file.  From coreutils.
120454         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120456         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120458         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120460 2005-08-27  Jim Meyering  <jim@meyering.net>
120462         * lib/fopen-safer.c: Merge minor changes from coreutils.
120463         * lib/dup-safer.c: Likewise.
120464         * lib/fd-safer.c: Likewise.
120466         Merge from coreutils.
120467         * lib/stdio--.h: New file.
120468         * lib/stdlib--.h: New file.
120469         * lib/mkstemp-safer.c: New file.
120471         GNU tar needs these.
120472         * lib/pipe-safer.c: New file.
120473         * lib/creat-safer.c: New file.
120474         * lib/fcntl--.h (creat): Define to creat_safer.
120475         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120476         * lib/unistd--.h (pipe): Define to pipe_safer.
120477         * lib/unistd-safer.h: Declare pipe_safer.
120479 2005-08-26  Simon Josefsson  <jas@extundo.com>
120481         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120482         Haible <bruno@clisp.org>.
120484 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120486         * lib/regex_internal.h: Remove all references to
120487         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120488         or better.
120489         (bitset_not, bitset_merge, bitset_not_merge):
120490         (bitset_mask, re_string_allocate, re_string_construct):
120491         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120492         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120493         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120494         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120495         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120496         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120497         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120498         (re_acquire_state_context):
120499         Remove unnecessary forward decls.
120500         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120501         Put __attribute at function definition,
120502         now that the function decl has been removed.
120503         * lib/regex_internal.c (re_string_peek_byte_case):
120504         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120505         Likewise.
120507 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120509         * m4/regex.m4: Add AC_PREREQ(2.50).
120510         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120512 2005-08-25  Simon Josefsson  <jas@extundo.com>
120514         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120515         __fsetlocking.
120517 2005-08-25  Simon Josefsson  <jas@extundo.com>
120519         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120520         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120521         GLIBC specific code.
120523 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120525         Make regex safe for g++.  This fixes one real bug (an "err"
120526         that should have been "*err").  g++ problem reported by
120527         Sam Steingold.
120528         * lib/regex_internal.h (re_calloc): New macro, consistent with
120529         re_malloc etc.  All callers of calloc changed to use re_calloc.
120530         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120531         not int.  All callers changed.
120532         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120533         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120534         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120535         (find_recover_state): Change "err" to "*err"; this fixes what
120536         appears to be a real bug.
120537         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120538         versus int.
120540 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120542         * modules/regex (Depends-on): Add malloc, since the code
120543         assumes that !malloc(0) means failure.
120545 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120547         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120549         alloca modernization/simplification for regex.
120550         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120551         needs to be at the start of the file, and can be moved into
120552         regex_internal.h and simplified.
120553         * lib/regex_internal.h: Include <alloca.h>.
120554         (__libc_use_alloca) [!defined _LIBC]: New macro.
120555         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120556         now works outside glibc.
120558 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120560         * config/srclist.txt: Add glibc bugs 1241, 1245.
120562 2005-08-25  Jim Meyering  <jim@meyering.net>
120564         * lib/open-safer.c: Include <config.h>.
120565         Otherwise, we'd lose LARGEFILE support in any file using
120566         e.g. "fcntl--.h"
120568 2005-08-25  Bruno Haible  <bruno@clisp.org>
120570         * m4/minmax.m4: Require autoconf 2.52.
120571         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120572         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120573         alternatives of translit over the alphabet.
120574         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120576 2005-08-24  Simon Josefsson  <jas@extundo.com>
120578         * tests/test-getpass.c: New file.
120580 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120582         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120583         for GNU regex features.
120585 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120587         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120588         * lib/regex.h (regerror): Likewise.
120590         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120591         requires this.  (The code never needed it.)
120593         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120594         All uses of recently-renamed identifiers changed to use the new,
120595         POSIX-compliant names.  The code will build and run just fine
120596         without these changes, but it's better to eat our own dog food
120597         and use the standard-conforming names.
120599         * lib/regex.h: Fix a multitude of POSIX name space violations.
120600         These changes have an effect only for programs that define
120601         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120602         do not change anything for programs compiled in the normal way.
120603         Also, there is no effect on the ABI.
120605         (_REGEX_SOURCE): New macro.
120606         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120607         defined and _GNU_SOURCE is not; this fixes a name space violation.
120609         Rename the following macros to obey POSIX requirements.
120610         The old names are still visible as macros if _REGEX_SOURCE is defined.
120611         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120612         RE_BACKSLASH_ESCAPE_IN_LISTS.
120613         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120614         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120615         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120616         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120617         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120618         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120619         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120620         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120621         (REG_INTERVALS): renamed from RE_INTERVALS.
120622         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120623         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120624         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120625         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120626         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120627         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120628         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120629         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120630         RE_UNMATCHED_RIGHT_PAREN_ORD.
120631         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120632         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120633         (REG_DEBUG): renamed from RE_DEBUG.
120634         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120635         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120636         unusual, since we can't clash with the POSIX REG_ICASE.
120637         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120638         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120639         (REG_NO_SUB): renamed from RE_NO_SUB.
120640         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120641         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120642         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120643         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120644         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120645         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120646         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120647         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120648         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120649         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120650         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120651         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120652         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120653         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120654         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120655         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120656         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120657         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120658         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120659         (REG_FIXED): Renamed from REGS_FIXED.
120660         (REG_NREGS): Renamed from RE_NREGS.
120662         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120663         of other REG_* macros, since POSIX says the user is allowed to
120664         #undef these macros selectively.
120666         (reg_errcode_t): Update comment stating what other tables need
120667         to be consistent.
120669         Rename the following enum values to obey POSIX requirements.
120670         The old names are still visible as macros.
120671         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120672         is not defined, since GNU is supposed to be a superset of POSIX as
120673         much as possible, and since we want reg_errcode_t to be a signed
120674         type for implementation consistency.
120675         (_REG_NOERROR): Renamed from REG_NOERROR.
120676         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120677         (_REG_BADPAT): Renamed from REG_BADPAT.
120678         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120679         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120680         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120681         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120682         (_REG_EBRACK): Renamed from REG_EBRACK.
120683         (_REG_EPAREN): Renamed from REG_EPAREN.
120684         (_REG_EBRACE): Renamed from REG_EBRACE.
120685         (_REG_BADBR): Renamed from REG_BADBR.
120686         (_REG_ERANGE): Renamed from REG_ERANGE.
120687         (_REG_ESPACE): Renamed from REG_ESPACE.
120688         (_REG_BADRPT): Renamed from REG_BADRPT.
120689         (_REG_EEND): Renamed from REG_EEND.
120690         (_REG_ESIZE): Renamed from REG_ESIZE.
120691         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120692         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120693         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120694         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120695         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120697         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120698         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120699         changed.  But support the old name if the new one is not defined
120700         and if _REGEX_SOURCE.
120702         Change the following member names in struct re_pattern_buffer.
120703         The old names are still supported if !_REGEX_SOURCE.
120704         The new names are always supported, regardless of _REGEX_SOURCE.
120705         (re_buffer): Renamed from buffer.
120706         (re_allocated): Renamed from allocated.
120707         (re_used): Renamed from used.
120708         (re_syntax): Renamed from syntax.
120709         (re_fastmap): Renamed from fastmap.
120710         (re_translate): Renamed from translate.
120711         (re_can_be_null): Renamed from can_be_null.
120712         (re_regs_allocated): Renamed from regs_allocated.
120713         (re_fastmap_accurate): Renamed from fastmap_accurate.
120714         (re_no_sub): Renamed from no_sub.
120715         (re_not_bol): Renamed from not_bol.
120716         (re_not_eol): Renamed from not_eol.
120717         (re_newline_anchor): Renamed from newline_anchor.
120719         Change the following member names in struct re_registers.
120720         The old names are still supported if !_REGEX_SOURCE.
120721         The new names are always supported, regardless of _REGEX_SOURCE.
120722         (rm_num_regs): Renamed from num_regs.
120723         (rm_start): Renamed from start.
120724         (rm_end): Renamed from end.
120726         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120727         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120728         Prepend __ to parameter names.
120730         Undo yesterday's changes.
120732 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120734         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120735         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120736         lib/regex.c.
120738 2005-08-24  Jim Meyering  <jim@meyering.net>
120740         Sync from coreutils.
120741         * m4/fcntl-safer.m4: New file.
120743         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120744         and object files for this module.
120746 2005-08-24  Jim Meyering  <jim@meyering.net>
120748         Sync from coreutils.
120749         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120751 2005-08-24  Jim Meyering  <jim@meyering.net>
120753         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120754         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120756 2005-08-24  Jim Meyering  <jim@meyering.net>
120758         * modules/fcntl-safer: New module.
120759         * modules/fts (Depends-on): Add fcntl-safer.
120760         * MODULES.html.sh (File descriptor based Input/Output):
120761         Add fcntl-safer.
120763 2005-08-24  Bruno Haible  <bruno@clisp.org>
120765         Support for unit test modules.
120766         * modules/README: Mention tests modules.
120767         * modules/TEMPLATE-TESTS: New file.
120768         * gnulib-tool: New options --extract-tests-module, --with-tests and
120769         --tests-base (unused for the moment).
120770         (testsbase, inctests): New variables.
120771         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120772         (func_verify_module): Exclude TEMPLATE-TESTS.
120773         (func_verify_nontests_module, func_verify_tests_module): New functions.
120774         (func_get_dependencies): Add implicit dependency for tests modules.
120775         (func_get_tests_module): New function.
120776         (func_modules_transitive_closure): When --with-tests was specified,
120777         include the unit tests as well, unless explicitly avoided.
120778         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120779         (func_emit_tests_Makefile_am): New function.
120780         (func_create_testdir): When --with-tests was specified, emit a
120781         tests/ directory.
120782         * MODULES.html.sh (Future developments): Update.
120784 2005-08-24  Bruno Haible  <bruno@clisp.org>
120786         * modules/tls-tests: New file.
120787         * tests/test-tls.c: New file, from GNU gettext.
120789 2005-08-24  Bruno Haible  <bruno@clisp.org>
120791         * modules/lock-tests: New file.
120792         * tests/test-lock.c: New file, from GNU gettext.
120794 2005-08-24  Bruno Haible  <bruno@clisp.org>
120796         * lib/lock.h: Add multiple inclusion guard.
120797         * lib/tls.h: Add multiple inclusion guard.
120799 2005-08-24  Bruno Haible  <bruno@clisp.org>
120801         * gnulib-tool: Add support for the --aux-dir option to
120802         --create-testdir, --create-megatestdir, --test, --megatest.
120803         (func_create_testdir, func_create_megatestdir): Optionally emit a
120804         AC_CONFIG_AUX_DIR directive.
120805         (create-testdir, create-megatestdir, test, megatest): Provide a
120806         default value for $auxdir.
120808 2005-08-24  Bruno Haible  <bruno@clisp.org>
120810         * gnulib-tool (import): Use compound statement instead of subshell
120811         where possible.
120813 2005-08-24  Bruno Haible  <bruno@clisp.org>
120815         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120817 2005-08-24  Bruno Haible  <bruno@clisp.org>
120819         * gnulib-tool (func_version): Update.
120821 2005-08-24  Bruno Haible  <bruno@clisp.org>
120823         * gnulib-tool (func_import, func_create_testdir,
120824         func_create_megatestdir): Quote all autoconf macro arguments.
120826 2005-08-24  Bruno Haible  <bruno@clisp.org>
120828         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120829         option --force, because --force causes the aclocal.m4 of each
120830         subdirectory to be newer than the corresponding config.h.in.
120832 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120834         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120835         All contents moved to gl_REGEX.
120836         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120837         assume that it does.
120839 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120841         * lib/regex.h (REG_NOSYS)
120842         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120843         Define, since POSIX requires it as of 2001.
120844         (_REG_ENOSYS)
120845         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120846         New private symbol, used to keep the enum signed in all cases.
120847         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120848         Youngman in
120849         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120851         * lib/regex_internal.c (re_string_skip_chars, register_state):
120852         (calc_state_hash):
120853         Remove forward decls; no longer needed now that we use prototypes.
120854         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120855         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120856         (clean_state_log_if_needed): Likewise.
120858 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120860         * config/srclist.txt: Add glibc bugs 1231-1233.
120862 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120864         Fix problems reported by Sam Steingold in
120865         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120866         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120867         assumed that reg_errcode_t is a signed type, which is not
120868         necessarily true if _XOPEN_SOURCE is not defined.
120869         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120870         since some compilers warn about it otherwise.
120872 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120874         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120875         (init_word_char, create_initial_state, duplicate_node_closure):
120876         (fetch_token, peek_token_bracket, build_range_exp):
120877         (build_collating_symbol): Remove forward decls; no longer needed
120878         now that we use prototypes.
120880         * lib/regcomp.c:
120881         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120882         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120883         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120884         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120885         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120886         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120887         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120888         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120889         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120890         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120891         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120892         (build_charclass, build_charclass_op, fetch_number, create_tree):
120893         (create_token_tree, mark_opt_subexp, duplicate_tree):
120894         Use prototypes rather than old-style definitions.
120896         * lib/regex_internal.c:
120897         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120898         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120899         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120900         (re_string_reconstruct, re_string_peek_byte_case):
120901         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120902         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120903         (re_node_set_init_copy, re_node_set_add_intersect):
120904         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120905         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120906         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120907         (re_acquire_state, re_acquire_state_context, register_state):
120908         (create_ci_newstate, create_cd_newstate, free_state):
120909         Likewise.
120910         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120911         re_search_2):
120912         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120913         (re_search_internal, prune_impossible_nodes):
120914         (acquire_init_state_context, check_matching, static):
120915         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120916         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120917         (update_regs, sift_states_backward, build_sifted_states):
120918         (clean_state_log_if_needed, merge_state_array):
120919         (update_cur_sifted_state, add_epsilon_src_nodes):
120920         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120921         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120922         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120923         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120924         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120925         (check_arrival, check_arrival_add_next_nodes):
120926         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120927         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120928         (check_node_accept_bytes, check_node_accept, extend_buffers):
120929         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120930         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120931         (sift_ctx_init):
120932         Likewise.
120934         * lib/regex_internal.h:
120935         (re_string_allocate, re_string_construct, re_string_reconstruct):
120936         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120937         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120938         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120939         (re_string_context_at, re_string_peek_byte_case):
120940         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120941         is defined, since we now use prototypes always.
120943         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120944         C89 or better.  All uses removed.
120946 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120948         * config/srclist.txt: Add glibc bugs 1220-1227.
120950 2005-08-20  Jim Meyering  <jim@meyering.net>
120952         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120953         of unused local, dfa.
120955 2005-08-20  Bruno Haible  <bruno@clisp.org>
120957         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120959 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120961         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120962         (re_node_set_insert_last, re_dfa_add_node):
120963         Rename local variables to avoid GCC shadowing warnings.
120965 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120967         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120968         [defined lint]: Suppress bogus uninitialized-variable warnings.
120970         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120971         and let the caller return REG_ESPACE if out of space.  This
120972         removes an uninitialied-variable warning with GCC 4.0.1, and also
120973         avoids taking the address of a local variable.  All callers
120974         changed.
120976 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120978         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120979         $LIBCSRC/posix/regexec.c.
120980         Add glibc bug 1217 for regcomp.c.
120982 2005-08-19  Jim Meyering  <jim@meyering.net>
120984         * lib/regexec.c (proceed_next_node): Redo local variables to
120985         avoid GCC shadowing warnings.
120987 2005-08-18  Bruno Haible  <bruno@clisp.org>
120989         * lib/strstr.c (strstr): Fix return value in multibyte case.
120990         * lib/strcasestr.c (strcasestr): Likewise.
120992 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120994         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120996 2005-08-17  Jim Meyering  <jim@meyering.net>
120998         Make the %s format (seconds since the epoch) work for a negative
120999         number and when used with a zero-padded field width, e.g. %015s.
121001         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121002         label so that it precedes the code to set `digits'.  Otherwise,
121003         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121004         print `00-22'.  Now, it prints `-0022', as it should.
121006 2005-08-17  Bruno Haible  <bruno@clisp.org>
121008         * modules/strstr (Files): Add m4/mbrtowc.m4.
121009         (Depends-on): Add mbuiter.
121011 2005-08-17  Bruno Haible  <bruno@clisp.org>
121013         * modules/strcasestr: New file.
121014         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121015         strcasestr.
121017 2005-08-17  Bruno Haible  <bruno@clisp.org>
121019         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121021 2005-08-17  Bruno Haible  <bruno@clisp.org>
121023         * modules/mbuiter: New file.
121024         * MODULES.html.sh (Extended multibyte and wide character utilities):
121025         Add mbuiter.
121027 2005-08-17  Bruno Haible  <bruno@clisp.org>
121029         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121030         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121032 2005-08-17  Bruno Haible  <bruno@clisp.org>
121034         * m4/strcasestr.m4: New file.
121036 2005-08-17  Bruno Haible  <bruno@clisp.org>
121038         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121039         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121041 2005-08-17  Bruno Haible  <bruno@clisp.org>
121043         * lib/strcasestr.h: New file.
121044         * lib/strcasestr.c: New file.
121046 2005-08-17  Bruno Haible  <bruno@clisp.org>
121048         * lib/strcasecmp.c: Use mbuiter.h.
121050 2005-08-17  Bruno Haible  <bruno@clisp.org>
121052         * lib/mbuiter.h: New file.
121054 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121057         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121058         and gl_GETOPT are both invoked via different paths (as happens
121059         with GNU tar CVS because it uses both argp and getopt), the former
121060         wins.
121062 2005-08-16  Bruno Haible  <bruno@clisp.org>
121064         * modules/tls: New file.
121065         * MODULES.html.sh (Multithreading): Add tls.
121067 2005-08-16  Bruno Haible  <bruno@clisp.org>
121069         * modules/strnlen1: New file.
121070         * MODULES.html.sh (String handling): Add strnlen1.
121072 2005-08-16  Bruno Haible  <bruno@clisp.org>
121074         * modules/strcase (Files): Add m4/mbrtowc.m4.
121075         (Depends-on): Add strnlen1, mbchar.
121077 2005-08-16  Bruno Haible  <bruno@clisp.org>
121079         * modules/mbiter: New file.
121080         * MODULES.html.sh (Extended multibyte and wide character utilities):
121081         Add mbiter.
121083 2005-08-16  Bruno Haible  <bruno@clisp.org>
121085         * modules/mbfile: New file.
121086         * MODULES.html.sh (Extended multibyte and wide character utilities):
121087         Add mbfile.
121089 2005-08-16  Bruno Haible  <bruno@clisp.org>
121091         * modules/mbchar: New file.
121092         * MODULES.html.sh (Extended multibyte and wide character utilities):
121093         New section.
121095 2005-08-16  Bruno Haible  <bruno@clisp.org>
121097         * m4/tls.m4: New file, from GNU gettext.
121099 2005-08-16  Bruno Haible  <bruno@clisp.org>
121101         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121102         always.
121103         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121105 2005-08-16  Bruno Haible  <bruno@clisp.org>
121107         * m4/mbiter.m4: New file.
121109 2005-08-16  Bruno Haible  <bruno@clisp.org>
121111         * m4/mbfile.m4: New file.
121113 2005-08-16  Bruno Haible  <bruno@clisp.org>
121115         * m4/mbchar.m4: New file.
121117 2005-08-16  Bruno Haible  <bruno@clisp.org>
121119         * lib/tls.h: New file, from GNU gettext.
121120         * lib/tls.c: New file, from GNU gettext.
121122 2005-08-16  Bruno Haible  <bruno@clisp.org>
121124         * lib/strnlen1.h: New file.
121125         * lib/strnlen1.c: New file.
121127 2005-08-16  Bruno Haible  <bruno@clisp.org>
121129         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121130         (mbi_init): Update.
121131         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121132         NUL byte, not after it.
121134 2005-08-16  Bruno Haible  <bruno@clisp.org>
121136         * lib/strcase.h (strcasecmp): Add note in comments.
121137         * lib/strncasecmp.c: Use code from strcasecmp.c.
121138         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121139         (strcasecmp): Work correctly in multibyte locales.
121141 2005-08-16  Bruno Haible  <bruno@clisp.org>
121143         * lib/mbiter.h: New file.
121145 2005-08-16  Bruno Haible  <bruno@clisp.org>
121147         * lib/mbfile.h: New file.
121149 2005-08-16  Bruno Haible  <bruno@clisp.org>
121151         * lib/mbchar.h: New file.
121152         * lib/mbchar.c: New file.
121154 2005-08-16  Bruno Haible  <bruno@clisp.org>
121156         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121157         the valid ones. Makes the comparison operations transitive:
121158         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121159         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121161 2005-08-15  Simon Josefsson  <jas@extundo.com>
121163         * modules/ssize_t (License): Change to 'unlimited'.
121165         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121167 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121169         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121170         Add comments for each pending glibc patch.
121172 2005-08-15  Bruno Haible  <bruno@clisp.org>
121174         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121175         __cplusplus is defined.
121177 2005-08-14  Jim Meyering  <jim@meyering.net>
121179         Sync from coreutils.
121181         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121182         Use the hash-table-based cycle-detection code not just when
121183         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121184         Reported by James Youngman in
121185         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121186         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121187         FTS_TIGHT_CYCLE_CHECK.
121188         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121189         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121190         once again.
121191         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121192         * lib/fts.c (fd_safer): Remove decl.
121193         Include fcntl--.h rather than unistd-safer.h
121194         (fts_safe_changedir): Don't call fd_safer; no longer needed
121195         now that we include fcntl--.h.
121197 2005-08-12  Simon Josefsson  <jas@extundo.com>
121199         * modules/getndelim2: Use ssize_t module.
121200         * modules/getnline: Likewise.
121201         * modules/safe-read: Likewise.
121202         * modules/xreadlink: Likewise.
121204         * modules/ssize_t: New file.
121206 2005-08-12  Simon Josefsson  <jas@extundo.com>
121208         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121210 2005-08-12  Simon Josefsson  <jas@extundo.com>
121212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121213         ssize_t.
121215 2005-08-12  Simon Josefsson  <jas@extundo.com>
121217         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121218         readline, getdelim and check_version.
121219         (Support for systems lacking ISO C 99: Sizes of integer types):
121220         Add size_max.
121222 2005-08-12  Bruno Haible  <bruno@clisp.org>
121224         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121226 2005-08-11  Simon Josefsson  <jas@extundo.com>
121228         * modules/readline: New file.
121230         * modules/strnlen (Files): Add strnlen.h.
121232 2005-08-11  Simon Josefsson  <jas@extundo.com>
121234         * m4/readline.m4: New file.
121236 2005-08-11  Simon Josefsson  <jas@extundo.com>
121238         * lib/readline.h, readline.c: New file.
121240 2005-08-11  Simon Josefsson  <jas@extundo.com>
121242         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121243         gl_AVOID.
121245 2005-08-11  Bruno Haible  <bruno@clisp.org>
121247         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121249 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121251         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121253 2005-08-10  Simon Josefsson  <jas@extundo.com>
121255         * tests/test-iconvme.c: New file.
121257 2005-08-10  Simon Josefsson  <jas@extundo.com>
121259         * m4/strnlen.m4: New file.
121261         * m4/strndup.m4: Don't check for strnlen declaration, done in
121262         strnlen.m4.
121264 2005-08-10  Simon Josefsson  <jas@extundo.com>
121266         * lib/strndup.c: Use strnlen.h.
121268         * lib/strnlen.h: New file.
121270 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121272         * README: Typos.
121274 2005-08-02  Simon Josefsson  <jas@extundo.com>
121276         * modules/readline: New file.
121278 2005-08-02  Simon Josefsson  <jas@extundo.com>
121280         * modules/getdelim: New file.
121282         * modules/getline: Rewrite, don't use getndelim2.
121284 2005-08-02  Simon Josefsson  <jas@extundo.com>
121286         * m4/getline.m4: Separate out getdelim stuff into separate module.
121288         * m4/getdelim.m4: New file.
121290 2005-08-02  Simon Josefsson  <jas@extundo.com>
121292         * lib/getline.h, getline.c: Rewrite.
121294         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121296 2005-07-31  Bruno Haible  <bruno@clisp.org>
121298         * lib/lock.h (gl_lock_initializer): New macro.
121299         (gl_lock_define_initialized): Use it.
121300         (gl_rwlock_initializer): New macro.
121301         (gl_rwlock_define_initialized): Use it.
121302         (gl_recursive_lock_initializer): New macro.
121303         (gl_recursive_lock_define_initialized): Use it.
121305 2005-07-30  Karl Berry  <karl@gnu.org>
121307         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121308         Report from Ben Pfaff, regarding getopt.
121310 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121312         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121313         normal way.
121314         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121315         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121316         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121317         (gl_GETOPT): Use the new macros.  Most of the implementation
121318         is moved to the new macros.  This is for programs like Emacs
121319         that don't want all the functionality of gl_GETOPT.
121321 2005-07-26  Bruno Haible  <bruno@clisp.org>
121323         * m4/lock.m4: Update from GNU gettext.
121325 2005-07-26  Bruno Haible  <bruno@clisp.org>
121327         * lib/lock.h: Update from GNU gettext.
121328         * lib/lock.c: Update from GNU gettext.
121330 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121332         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121333         obsolescent AC_TRY_RUN.  Include the default includes files, for
121334         'exit'.
121336 2005-07-24  Bruno Haible  <bruno@clisp.org>
121338         * modules/visibility: New file.
121339         * MODULES.html.sh (Misc): Add visibility.
121341 2005-07-24  Bruno Haible  <bruno@clisp.org>
121343         * m4/visibility.m4: New file.
121345 2005-07-24  Bruno Haible  <bruno@clisp.org>
121347         * doc/visibility.texi: New file.
121349 2005-07-22  Bruno Haible  <bruno@clisp.org>
121351         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121352         $(ALLOCA_H), redundant through BUILT_SOURCES.
121353         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121354         redundant through BUILT_SOURCES.
121355         * modules/byteswap (Makefile.am): Remove explicit dependency on
121356         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121357         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121358         $(FNMATCH_H), redundant through BUILT_SOURCES.
121359         * modules/getopt (Makefile.am): Remove explicit dependency on
121360         $(GETOPT_H), redundant through BUILT_SOURCES.
121361         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121362         redundant through BUILT_SOURCES.
121363         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121364         redundant through BUILT_SOURCES.
121365         * modules/stdbool (Makefile.am): Remove explicit dependency on
121366         $(STDBOOL_H), redundant through BUILT_SOURCES.
121367         * modules/stdint (Makefile.am): Remove explicit dependency on
121368         $(STDINT_H), redundant through BUILT_SOURCES.
121369         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121370         Remove explicit dependency on $(SYSEXITS_H).
121371         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121373 2005-07-18  Simon Josefsson  <jas@extundo.com>
121375         * lib/check-version.c (check_version): Accept identical versions too.
121377 2005-07-18  Bruno Haible  <bruno@clisp.org>
121379         * modules/lock: New file.
121380         * MODULES.html.sh (Multithreading): New section.
121382 2005-07-18  Bruno Haible  <bruno@clisp.org>
121384         * m4/lock.m4: New file, from GNU gettext.
121386 2005-07-18  Bruno Haible  <bruno@clisp.org>
121388         * lib/lock.h: New file, from GNU gettext.
121389         * lib/lock.c: New file, from GNU gettext.
121391 2005-07-18  Bruno Haible  <bruno@clisp.org>
121393         * lib/lock.h (gl_once_t): New type.
121394         (gl_once_define, gl_once): New macros.
121395         * lib/lock.c (fresh_once): New variable.
121396         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121397         functions.
121399 2005-07-16  Simon Josefsson  <jas@extundo.com>
121401         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121402         workaround, suggested by Bruno.
121404 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121406         * modules/xalloc (Depends-on): Add xalloc-die.
121407         * modules/xvasprintf (Depends-on): Add xalloc-die.
121409 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121411         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121412         with a minor change.
121414 2005-07-15  Bruno Haible  <bruno@clisp.org>
121416         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121417         When using lib/poll.c, define poll as rpl_poll.
121419 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121421         * modules/argp (Depends-on): Remove unlocked-io.
121423 2005-07-14  Derek Price  <derek@ximbiot.com>
121425         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121426         for glob symlink bug.
121428 2005-07-14  Bruno Haible  <bruno@clisp.org>
121430         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121431         Instead, test for *_unlocked function declarations directly.
121433 2005-07-11  Simon Josefsson  <jas@extundo.com>
121435         * modules/size_max: New file.
121437         * modules/xsize: Depend on size_max module for size_max.m4.
121439 2005-07-11  Simon Josefsson  <jas@extundo.com>
121441         * lib/size_max.h: New file.
121443 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121445         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121446         copyright symbol and the year.
121447         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121448         (version_etc_va): Use parameterized copyright notice.
121449         Reword to conform to the current GNU coding standards.
121451 2005-07-11  Karl Berry  <karl@gnu.org>
121453         * doc/gnulib.texi (Quoting): new node.
121454         (Initial import): more info, from Patrice.
121456 2005-07-11  Bruno Haible  <bruno@clisp.org>
121458         * gnulib-tool (func_usage): Document option --avoid.
121459         (Command line options): Handle --avoid.
121460         (func_acceptable): New function.
121461         (func_modules_transitive_closure): Use it.
121463 2005-07-11  Bruno Haible  <bruno@clisp.org>
121465         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121466         Reported by Jim Meyering.
121468 2005-07-10  Bruno Haible  <bruno@clisp.org>
121470         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121471         Needed when size_t is smaller than 'unsigned int'.
121472         Reported by Paul Eggert.
121474 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121476         * modules/argp (Depends-on): Add unlocked-io
121478 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121480         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121481         block of defines.
121483 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121485         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121486         fix now.
121488 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121489         and Paul Eggert  <eggert@cs.ucla.edu>
121491         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121492         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121496         * modules/regex (Files): Add lib/regex_internal.c,
121497         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121498         (Depends-on): Add extensions.
121499         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121501 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121503         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121504         pathconf.
121505         * m4/same.m4 (gl_SAME): Likewise.
121506         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121508         * m4/regex.m4: Adjust to new libc regex implementation.
121509         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121510         all the .c and .h parts of (the new) regex.
121511         Quote the m4 stuff better.
121512         Check for RE_ICASE bug of old gnulib.
121513         Check for REG_STARTEND of recent libc.
121514         Rename local variables from jm_* to gl_*.
121515         Quote operand of "test -f".
121516         Say "recent enough" version of libc, not "version 2".
121517         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121518         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121519         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121520         Remove check for btowc, isascii.
121521         Require AM_LANGINFO_CODESET.
121523 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121525         * lib/regex.c, regex.h: Sync from libc.
121526         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121527         * lib/regexec.c:
121528         New files, synced from libc, except that regex_internal.h
121529         currently has a small porting fix.
121531 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121533         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121534         regex_internal.c, regexec.c.
121535         Add regex_internal.h too, but as a comment, since the libc version
121536         is currently broken in gnulib mode.
121538 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121540         Support programs like Emacs that use gnulib but not gettext.
121541         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121542         * modules/gettext-h: New file.
121543         * modules/gettext (Files): Remove lib/gettext.h.
121544         (Depends-on): Add gettext-h.
121545         (Makefile.am): Remove lib_SOURCES.
121546         * modules/argmatch, modules/c-stack, modules/closeout:
121547         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121548         * modules/execute, modules/file-type, modules/getaddrinfo:
121549         * modules/getopt, modules/human, modules/javacomp:
121550         * modules/javaexec, modules/mkdir-p, modules/obstack:
121551         * modules/openat, modules/pagealign_alloc, modules/pipe:
121552         * modules/quotearg, modules/regex, modules/rpmatch:
121553         * modules/unicodeio, modules/userspec, modules/version-etc:
121554         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121555         * modules/xsetenv:
121556         Depend on gettext-h, not gettext.
121558 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121560         * gnulib-tool (func_import): Add support for 'public domain' license.
121561         * modules/alloca, modules/atexit, modules/memmove:
121562         Now public domain, not GPL.
121563         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121564         * modules/realloc, modules/strerror, modules/strtod:
121565         Now LGPL, not GPL.
121567 2005-07-05  Bruno Haible  <bruno@clisp.org>
121569         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121570         autoconf CVS. Needed for mingw.
121572 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121574         Remove the dependency of the strftime module on the tzset module.
121575         * modules/strftime (Depends-on): Remove dependency on tzset.
121577 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121579         Remove the dependency of the strftime module on the tzset module.
121580         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121581         gl_FUNC_TZSET_CLOBBER.
121583 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121585         Remove the dependency of the strftime module on the tzset module.
121586         * lib/strftime.c (my_strftime)
121587         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121588         Copy the input structure, to work around some of the bug with
121589         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121590         Solaris releases, you should also use the tzset module, but we won't
121591         require it as a dependency any more since we don't want LGPLed code
121592         to depend on GPLed code.
121594 2005-07-02  Jim Meyering  <jim@meyering.net>
121596         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121597         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121598         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121599         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121601 2005-07-02  Jim Meyering  <jim@meyering.net>
121603         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121605 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121607         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121608         declares only 'struct timespec;' (!).
121610 2005-07-01  Jim Meyering  <jim@meyering.net>
121612         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121613         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121614         * lib/save-cwd.c, tempname.c:
121615         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121616         and don't include <sys/file.h>).
121618 2005-06-29  Jim Meyering  <jim@meyering.net>
121620         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121621         type name.  Use the variable name instead.
121622         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121623         Likewise.
121625 2005-06-28  Simon Josefsson  <jas@extundo.com>
121627         * modules/check-version (Files): Add check-version.m4.
121629 2005-06-28  Simon Josefsson  <jas@extundo.com>
121631         * m4/check-version.m4: New file, suggested by Jim Meyering
121632         <jim@meyering.net>.
121634 2005-06-28  Simon Josefsson  <jas@extundo.com>
121636         * lib/check-version.h, lib/check-version.c: New files.
121638 2005-06-28  Simon Josefsson  <jas@extundo.com>
121640         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121641         collision with global variable.  Better indentation.  Don't
121642         increment buffer pointer beyond buffer end.  Based on comments
121643         from Paul Eggert <eggert@cs.ucla.edu>.
121645         * lib/base64.h: Indent.
121647 2005-06-28  Simon Josefsson  <jas@extundo.com>
121649         * doc/gnulib.texi (Library version handling): New section.
121651 2005-06-28  Jim Meyering  <jim@meyering.net>
121653         * check-module (find_included_lib_files): Hard-code another
121654         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121655         but modules/fts-lgpl (correctly) does not list those files.
121657         * modules/canonicalize (Files): Add lib/pathmax.h.
121659 2005-06-25  Simon Josefsson  <jas@extundo.com>
121661         * modules/check-version: New file.
121663 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121665         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121666         initializer of struct addrinfo, as an indication that we don't
121667         care how many members the structure has.
121669 2005-06-24  Derek Price  <derek@ximbiot.com>
121670         and Bruno Haible  <bruno@clisp.org>
121672         Remove stat module & update lstat.
121673         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121675         * m4/stat.m4: Remove this file.
121677 2005-06-24  Derek Price  <derek@ximbiot.com>
121678         and Bruno Haible  <bruno@clisp.org>
121680         Remove stat module & update lstat.
121681         * lib/stat.c: Remove this file...
121682         (slash_aware_lstat): ...moving this content and its support...
121683         * lib/lstat.c (rpl_lstat): ...into here.
121684         * lib/lstat.h: New file.
121686 2005-06-24  Derek Price  <derek@ximbiot.com>
121687         and Bruno Haible  <bruno@clisp.org>
121689         Remove stat module & update lstat.
121690         * config/srclist.txt (libc sources): Remove stat.
121692 2005-06-24  Derek Price  <derek@ximbiot.com>
121693         and Bruno Haible  <bruno@clisp.org>
121695         Remove stat module & update lstat.
121696         * MODULES.html.sh (stat): Remove.
121697         * MODULES.html: Regenerated.
121698         * modules/lstat (Description): Correct function name.
121699         (Files): Add "lstat.h".
121700         (Depends-on): Remove stat, add xalloc, stat-macros.
121701         * modules/stat: Remove this file.
121702         (Include): Add "lstat.h", remove <sys/stat.h>.
121704 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121706         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121707         (ranged_convert): Don't save conversion in a temporary struct.
121708         This causes a warning with GCC 4.0.0, and anyway in the typical
121709         case it's not worth the extra 100 bytes or so of code.
121710         (ranged_convert, __mktime_internal): When calling a function via a
121711         pointer P, use P () rather than (*P) (), as we now assume C89 or
121712         better.
121714 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121716         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121717         "who -r" failed to give output.  Problem reported by Tim Waugh.
121719         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121720         (xcalloc): Use it to avoid needless tests.
121721         Problem reported by Jim Meyering.
121723 2005-06-20  Derek Price  <derek@ximbiot.com>
121725         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121726         unnecessary for Autoconfs > 2.59c.
121728 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121730         * lib/argp.h (__option_is_short): Check upper limit of
121731         __key. Isprint() requires its argument to have the value
121732         of an unsigned char or EOF.
121734 2005-06-16  Jim Meyering  <jim@meyering.net>
121736         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121737         when either N or S is zero.
121739 2005-06-16  Derek Price  <derek@ximbiot.com>
121741         * m4/bison.m4: Declare YACC & YFLAGS precious.
121743 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121745         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121746         multibyte string or pattern, fall back on unibyte matching.
121747         Problem reported by James Youngman.
121749 2005-06-08  Bruno Haible  <bruno@clisp.org>
121751         * modules/csharpcomp: New file.
121752         * MODULES.html.sh (C#): Add csharpcomp.
121754 2005-06-08  Bruno Haible  <bruno@clisp.org>
121756         * m4/csharpcomp.m4: New file, from GNU gettext.
121758 2005-06-08  Bruno Haible  <bruno@clisp.org>
121760         * lib/csharpcomp.h: New file, from GNU gettext.
121761         * lib/csharpcomp.c: New file, from GNU gettext.
121762         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121764 2005-06-08  Bruno Haible  <bruno@clisp.org>
121766         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121767         warning on mingw.
121769 2005-06-07  Derek Price  <derek@ximbiot.com>
121771         Sync from CVS.
121772         * lib/glob_.h: Indent nested #ifdef.
121774 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121776         Sync from coreutils.
121777         Use "file name" when talking about file names, instead of "filename"
121778         or "path", as per the GNU coding standards.
121779         * lib/mkdir-p.c: Renamed from makepath.c.
121780         (make_dir_parents): Renamed from make_path.  All callers changed.
121781         * lib/mkdir-p.h: Likewise.  All includers changed.
121782         * lib/filenamecat.c: Renamed from path-concat.c.
121783         (file_name_concat): Renamed from path_concat.  All callers changed.
121784         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121785         * lib/filenamecat.h: Likewise.  All includers changed.
121786         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121787         in comments or local variable names.
121788         * lib/basename.c: Likewise.
121789         * lib/canonicalize.c, canonicalize.h: Likewise.
121790         * lib/dirname.c, dirname.h: Likewise.
121791         * lib/euidaccess.c: Likewise.
121792         * lib/exclude.c: Likewise
121793         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121794         * lib/fsusage.c, fsuage.h: Likewise.
121795         * lib/fts.c, fts_.h: Likewise.
121796         * lib/getcwd.c: Likewise.
121797         * lib/getloadavg.c: Likewise.
121798         * lib/mkstemp.c: Likewise.
121799         * lib/mountlist.c, mountlist.h: Likewise.
121800         * lib/openat.c, openat.h: Likewise.
121801         * lib/readlink-stub.c: Likewise.
121802         * lib/readutmp.c, readutmp.h: Likewise.
121803         * lib/rename.c: Likewise.
121804         * lib/rmdir.c: Likewise.
121805         * lib/same.c: Likewise.
121806         * lib/savedir.c: Likewise.
121807         * lib/stripslash.c: Likewise.
121808         * lib/tempname.c: Likewise.
121809         * lib/xreadlink.c: Likewise.
121810         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121811         All uses changed.
121812         * lib/exclude.h: Likewise.
121814         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121815         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121816         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121817         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121818         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121819         files have been getting away with it for years (MORE/BSD 4.3
121820         is extinct now).
121821         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121822         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121824         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121825         Define to 256, not 255, as per modern POSIX.
121827 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121829         Sync from coreutils.
121830         Use "file name" when talking about file names, instead of "filename"
121831         or "path", as per the GNU coding standards.
121832         * MODULES.html.sh: mkdir-p renamed from makepath.
121833         filenamecat renamed from path-concat.
121834         * modules/filenamecat: Renamed from modules/path-concat.
121835         (Files): filenamecat.h and filenamecat.c renamed from
121836         path-concat.h and path-concat.c.
121837         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121838         (Include): filenamecat.h, not path-concat.h.
121839         * modules/mkdir-p: Renamed from modules/makepath.
121840         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121841         makepath.c.
121842         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121843         (Include): mkdir-p.h, not makepath.h.
121845 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121847         Sync from coreutils.
121848         * m4/mkdir-p.m4: Renamed from makepath.m4.
121849         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121850         Rename files from makepath.c to mkdir-p.c, and from
121851         makepath.h to mkdir-p.h.
121852         * m4/filenamecat.m4: Renamed from path-concat.m4.
121853         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121854         Rename files from path-concat.c to filenamecat.c,
121855         and from path-concat.h to filenamecat.h.
121856         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121857         "file name" in local variables or comments.
121858         * m4/rename.m4: Likewise.
121860 2005-06-01  Bruno Haible  <bruno@clisp.org>
121862         * modules/csharpexec: New file.
121863         * MODULES.html.sh (C#): New section.
121865 2005-06-01  Bruno Haible  <bruno@clisp.org>
121867         * m4/csharp.m4: New file, from GNU gettext.
121868         * m4/csharpexec.m4: New file, from GNU gettext.
121870 2005-06-01  Bruno Haible  <bruno@clisp.org>
121872         * lib/csharpexec.h: New file, from GNU gettext.
121873         * lib/csharpexec.c: New file, from GNU gettext.
121874         * lib/csharpexec.sh.in: New file, from GNU gettext.
121876 2005-05-31  Derek Price  <derek@ximbiot.com>
121877             Paul Eggert  <eggert@cs.ucla.edu>
121879         Sync from cvs.
121880         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121882 2005-05-31  Derek Price  <derek@ximbiot.com>
121883             Paul Eggert  <eggert@cs.ucla.edu>
121885         Sync from cvs.
121886         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121888 2005-05-29  Derek Price  <derek@ximbiot.com>
121890         * config/srclist.txt (glob_.h, glob.c): Add these files.
121892 2005-05-29  Derek Price  <derek@ximbiot.com>
121894         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121895         * modules/glob: New file.
121896         * modules/getlogin_r: Add link to POSIX spec in description.
121898 2005-05-29  Derek Price  <derek@ximbiot.com>
121899             Paul Eggert  <eggert@cs.ucla.edu>
121901         * m4/glob.m4: New file.
121903 2005-05-29  Derek Price  <derek@ximbiot.com>
121904             Paul Eggert  <eggert@cs.ucla.edu>
121906         * lib/glob_.h, lib/glob.c: New files.
121908 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121910         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121911         * modules/fts-lgpl (Depends-on): Remove gettext.
121913 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121916         and don't require gt_INTTYPES_PRI.
121918 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121920         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121922         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121923         the configuration hassle isn't worth it.
121924         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121925         (LONGEST_MODIFIER, PRIuMAX): Remove.
121927 2005-05-27  Bruno Haible  <bruno@clisp.org>
121929         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121931 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121934         _POSIX_PTHREAD_SEMANTICS for Solaris.
121936 2005-05-25  Derek Price  <derek@ximbiot.com>
121938         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121940 2005-05-25  Derek Price  <derek@ximbiot.com>
121941             Paul Eggert  <eggert@cs.ucla.edu>
121943         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121944         * lib/getlogin_r.c, getlogin_r.h: New files.
121946 2005-05-25  Bruno Haible  <bruno@clisp.org>
121947             Derek Price  <derek@ximbiot.com>
121949         * lib/getlogin_r.h: Simplify API documentation.
121951 2005-05-23  Derek Price  <derek@ximbiot.com>
121953         * modules/minmax (Files): Add m4/minmax.m4.
121954         (configure.ac): Add gl_MINMAX.
121956 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121958         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121959         so that unistd-safer.h (GPL'ed code) need not be included.
121961 2005-05-22  Bruno Haible  <bruno@clisp.org>
121963         * m4/minmax.m4: New file.
121964         Based on a patch by Derek Price <derek@ximbiot.com>.
121966 2005-05-22  Bruno Haible  <bruno@clisp.org>
121968         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121969         (INT64_MIN): Fix definition.
121970         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121972         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121973         NEED_SIGNED_INT_TYPES.
121975         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121976         HAVE_SYSTEM_INTTYPES.
121978 2005-05-22  Bruno Haible  <bruno@clisp.org>
121980         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121981         Also include <sys/param.h> if it defines MIN, MAX.
121982         Based on a patch by Derek Price <derek@ximbiot.com>.
121984 2005-05-21  Jim Meyering  <jim@meyering.net>
121986         * modules/fts (Files): Add m4/inttypes-pri.m4.
121987         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121991         New fts module.
121992         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121993         (setup_dir, free_dir): New functions.
121994         (enter_dir, leave_dir): Define trivial
121995         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121996         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121997         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121998         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121999         Move to fts-cycle.c.
122000         (fts_open): Use setup_dir.
122001         (fts_close): Use free_dir.
122002         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122003         This adds a label and some gotos, but the alternatives were messier.
122004         Check for memory allocation failure when entering a dir.
122005         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122006         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122007         (FTS): New member fts_cycle, that is a union that contains the
122008         old active_dir_ht and cycle_state.  All uses changed to mention
122009         fts_cycle.ht and fts_cycle.state.
122010         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122011         fts.c, with the following changes:
122012         (setup_dir, free_dir): New functions.
122013         (enter_dir): Now returns bool.  Return true if successful, false
122014         if memory exhausted.  All callers changed.
122015         Do not bother partly cleaning up on
122016         memory allocation failure; that is free_dir's job.
122017         However, free ad if hash_insert fails, to avoid memory leak.
122018         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122019         fts->fts_options to see which union member to use.
122021 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122024         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122026 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122028         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122030 2005-05-20  Jim Meyering  <jim@meyering.net>
122032         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122033         Now a macro, to pacify GCC.
122035 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122037         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122038         of -1.
122040 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122042         * lib/chown.c (rpl_chown): Return -1 on failure.
122044 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122047         Don't check for stddef.h.
122048         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122049         don't use its results.
122050         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122051         since we include them unconditionally.  Don't require
122052         AM_STDBOOL_H, since stdbool is a prerequisite.
122053         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122054         since we assume C89 or better.
122055         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122056         as we don't use their results.
122057         Don't check for fchdir, memmove, memset, strrchr, as we use
122058         them unconditionally.
122059         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122060         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122062 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122064         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122065         Include <stddef.h> unconditionally, since we assume C89 now.
122066         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122067         * lib/fts.c: Include fts_.h first, to check interface.
122068         Do not include intprops.h; no longer needed.
122069         Include cycle-check.h and hash.h, since fts_.h no longer does.
122070         Remove unnecessary casts of closedir to void.
122071         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122072         decide whether to decrement nlinks.
122073         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122074         (FTS): Use struct hash_table * instead of Hash_table, so that
122075         we no longer need to include hash.h here.
122077 2005-05-18  Jim Meyering  <jim@meyering.net>
122079         * modules/dirfd (License): Change to LGPL.  Most of the code
122080         is already in the public domain.
122082 2005-05-18  Jim Meyering  <jim@meyering.net>
122084         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122085         Reported by Yoann Vandoorselaere.
122087 2005-05-17  Jim Meyering  <jim@meyering.net>
122089         * m4/fts.m4: New file, from coreutils.
122091 2005-05-17  Jim Meyering  <jim@meyering.net>
122093         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122095 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122097         Sync from coreutils.
122098         * m4/unlinkdir.m4: New file.
122100 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122102         Sync from coreutils.
122103         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122104         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122105         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122106         White space changes only.
122107         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122108         special.
122109         * lib/yesno.c: Include getline.h, not ctype.h.
122110         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122111         Use getline to remove arbitrary restriction on response length.
122113 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122115         * config/srclist-update: Spell out "Street" in FSF postal
122116         mail address; this is the style the FSF seems to prefer.
122118         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122119         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122120         this updates FSF postal mail address.
122122         Sync from coreutils.
122123         * modules/unlinkdir: New file.
122124         * modules/yesno (Depends-on): Add getline.
122125         * MODULES.html.sh (File system functions): Add unlinkdir.
122127 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122129         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122130         lib/strsep.h:
122131         Change the initial comment to refer to GPL, not LGPL.
122132         gnulib-tool will change it to LGPL as needed.
122134         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122135         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122136         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122137         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122138         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122139         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122140         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122141         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122142         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122143         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122144         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122145         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122146         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122147         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122148         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122149         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122150         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122151         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122152         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122153         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122154         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122155         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122156         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122157         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122158         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122159         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122160         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122161         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122162         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122163         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122164         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122165         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122166         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122167         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122168         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122169         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122170         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122171         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122172         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122173         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122174         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122175         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122176         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122177         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122178         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122179         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122180         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122181         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122182         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122183         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122184         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122185         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122186         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122187         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122188         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122189         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122190         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122191         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122192         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122193         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122194         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122195         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122196         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122197         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122198         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122199         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122200         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122201         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122202         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122203         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122204         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122205         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122206         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122207         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122208         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122209         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122210         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122211         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122212         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122213         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122214         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122215         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122216         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122217         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122218         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122219         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122220         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122221         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122222         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122223         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122224         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122225         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122226         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122227         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122228         lib/yesno.c, lib/yesno.h:
122229         Update FSF postal mail address.
122231 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122233         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122234         tests/test-memmem.c, tests/test-stpncpy.c:
122235         Update FSF postal mail address.
122237 2005-05-13  Bruno Haible  <bruno@clisp.org>
122239         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122240         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122241         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122242         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122243         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122244         Add support for 64-bit integers in the MSVC compiler.
122246 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122248         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122250 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122252         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122254 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122256         * doc/getdate.texi (General date syntax): Don't say that date
122257         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122258         Problem reported by Nic Ferrier.
122260 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122262         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122263         specified in ai_socktype. Fix invalid ai_protocol
122264         check. ai_protocol is usually set to 0 or depending on
122265         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122266         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122267         ai_socktype / ai_protocol in the returned addrinfo structure.
122269 2005-05-10  Simon Josefsson  <jas@extundo.com>
122271         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122272         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122274 2005-05-10  Karl Berry  <karl@gnu.org>
122276         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122277         (from http://www.gnu.org/licenses).
122278         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122279         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122280         fdl.texi suffices.
122282 2005-05-10  Karl Berry  <karl@gnu.org>
122284         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122285         (COPYING.DOC): remove.
122287         * config/srclist-update: new FSF address.
122289 2005-05-10  Derek Price  <derek@ximbiot.com>
122291         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122292         possible.
122294 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122295             Bruno Haible  <bruno@clisp.org>
122297         * modules/inet_ntop: New file.
122298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122299         inet_ntop.
122301 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122302             Bruno Haible  <bruno@clisp.org>
122304         * m4/inet_ntop.m4: New file.
122306 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122307             Bruno Haible  <bruno@clisp.org>
122309         * lib/inet_ntop.h: New file.
122310         * lib/inet_ntop.c: New file, from glibc with modifications.
122312 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122314         * modules/time_r (License): Change to LGPL.
122315         * modules/extensions (License): Change to LGPL.  Actually,
122316         the license is more permissive than that, but currently gnulib-tool
122317         doesn't know how to handle more-permissive licenses.
122319         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122320         Problem reported by Dave Love.
122322 2005-05-08  Jim Meyering  <jim@meyering.net>
122324         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122325         blank.
122327 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122329         * modules/argmatch (Depends-on): Add stdbool.
122330         * modules/backupfile (Depends-on): Likewise.
122331         * modules/chdir-long (Depends-on): Likewise.
122332         * modules/closeout (Depends-on): Likewise.
122333         * modules/cycle-check (Depends-on): Likewise.
122334         * modules/dirname (Depends-on): Likewise.
122335         * modules/fnmatch (Depends-on): Likewise.
122336         * modules/fsusage (Depends-on): Likewise.
122337         * modules/fwriteerror (Depends-on): Likewise.
122338         * modules/getcwd (Depends-on): Likewise.
122339         * modules/getloadavg (Depends-on): Likewise.
122340         * modules/hard-locale (Depends-on): Likewise.
122341         * modules/makepath (Depends-on): Likewise.
122342         * modules/mountlist (Depends-on): Likewise.
122343         * modules/nanosleep (Depends-on): Likewise.
122344         * modules/posixtm (Depends-on): Likewise.
122345         * modules/quotearg (Depends-on): Likewise.
122346         * modules/readtokens (Depends-on): Likewise.
122347         * modules/readtokens0 (Depends-on): Likewise.
122348         * modules/readutmp (Depends-on): Likewise.
122349         * modules/save-cwd (Depends-on): Likewise.
122350         * modules/strftime (Depends-on): Likewise.
122351         * modules/userspec (Depends-on): Likewise.
122352         * modules/utimecmp (Depends-on): Likewise.
122353         * modules/xgetcwd (Depends-on): Likewise.
122354         * modules/xnanosleep (Depends-on): Likewise.
122355         * modules/xstrtod (Depends-on): Likewise.
122356         * modules/yesno (Depends-on): Likewise.
122358 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122360         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122361         needless checks.
122363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122365         Merge from coreutils.  Among other things,
122366         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122367         * lib/fd-safer.c: New file.
122368         * lib/fcntl-safer.h, open-safer.c: Remove.
122369         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122370         * lib/dup-safer.c: Include unistd-safer.h first.
122371         Don't include errno.h.
122372         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122373         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122374         * lib/file-type.c: Rely on file-type.h change.
122375         * lib/getloadavg.c: Include unistd-safer.h.
122376         (getloadavg): Use safer open.
122377         * lib/getusershell.c: Include "stdio-safer.h".
122378         (getusershell): Use safer fopen.
122379         * lib/long-options.c (long_options): Use NULL rather than 0.
122380         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122381         'free'.
122382         * lib/modechange.c: Likewise.
122383         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122384         (MODE_DONE): New constant.
122385         (struct mode_change): Remove 'next' member.
122386         (make_node_op_equals): New function; like the old one of the
122387         same name, except it allocates an array.
122388         (mode_compile, mode_create_from_ref): Use it.
122389         (mode_compile): Allocate result as an array, not a linked list.
122390         Parse octal string ourself, so that we catch mistakes like "+0".
122391         (mode_adjust): Arg is an array, not a linked list.
122392         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122393         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122394         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122395         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122396         Remove.  This is now stat-macros.h's job.
122397         (talloc): Remove.  All callers replaced by xalloc, so that
122398         our invokers don't have to worry about reporting memory failures.
122399         (make_node_op_equals): Remove.
122400         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122401         New constants.
122402         (struct mode_change): Moved here from modechange.h.
122403         (mode_append_entry): Remove.
122404         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122405         apps to have incorrect behavior.  Use simpler algorithm for head
122406         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122407         Detect more invalid usages rather than having somewhat-random behavior.
122408         Don't insert an "a=" action, as that leads to incorrect behavior.
122409         (mode_compile, mode_create_from_ref): Return NULL on error instead
122410         of an enum, since now there's only one way to have an error.  All
122411         callers changed.
122412         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122413         at the correct time.  Simplify calculation of "+u" and its ilk.
122414         Don't mishandle "+X".
122415         (mode_free): Remove "register" and localize decls.
122416         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122417         (struct mode_change): Move to modechange.c; callers don't
122418         need to see this stuff.
122419         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122420         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122421         (mode_change, mode_adjust): Reflect the new signatures noted above.
122422         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122423         that might redefine system include files.
122424         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122425         (my_usleep): Use NULL rather than (void *) 0.
122426         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122427         Use siginterrupt to specify that system calls should be interrupted.
122428         (rpl_nanosleep): Move initialization of suspended closer to call of
122429         my_usleep.
122430         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122431         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122432         (desirable_utmp_entry): New function.
122433         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122434         using x2nrealloc, to simplify logic.
122435         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122436         size calculation.  Do not assume utmp file is a regular file.
122437         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122438         (READ_UTMP_CHECK_PIDS): New constant.
122439         * lib/save-cwd.c: Include unistd-safer.h.
122440         (save_cwd): Use fd_safer.
122441         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122442         [!_LIBC] Include "stat-macros.h" instead.
122443         * lib/unistd-safer.h (fd_safer): New decl.
122445 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122447         * modules/getloadavg (Depends-on): Add unistd-safer.
122448         * modules/getusershell (Depends-on): Add stdio-safer.
122449         * modules/lstat (Depends-on): Remove xalloc.
122450         * modules/mkstemp (Depends-on): Add stat-macros.
122451         * modules/modechange (Depends-on): Remove xstrtol.
122452         Add stat-macros, xalloc.
122453         * modules/save-cwd (Depends-on): Add unistd-safer.
122454         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122455         * modules/unistd-safer (Files): Add lib/fd-safer.c
122456         (Makefile.am): Remove lib_SOURCES.
122458         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122459         Remove fcntl-safer; unistd-safer supersedes it.
122461 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122463         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122464         AC_HEADER_STAT.
122465         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122466         (gl_PREREQ_CHOWN): Remove.
122467         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122468         it.  Don't require AC_HEADER_STAT.
122469         (gl_PREREQ_LSTAT): Remove.
122470         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122471         Don't require AC_HEADER_STAT.
122472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122473         (gl_PREREQ_RMDIR): Remove.
122474         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122475         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122476         the stat-macros module a prerequisite.
122477         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122478         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122479         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122480         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122481         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122482         variable names.
122483         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122484         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122485         variable prefixes.
122486         * m4/fcntl-safer.m4: Remove.
122487         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122488         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122489         Invoke gl_PREREQ_FD_SAFER.
122490         (gl_PREREQ_FD_SAFER): New macro.
122491         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122492         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122493         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122494         Remove duplicate call to AC_LIBOBJ(readutmp).
122495         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122498         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122500 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122502         * MODULES.html.sh (Misc): Add byteswap.
122504 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122506         * modules/getcwd (Depends-on): Add extensions.
122507         * modules/openat (Depends-on): Likewise.
122509 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122511         * modules/byteswap: New file.
122513 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122515         * m4/byteswap.m4: New file.
122517 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122519         * lib/byteswap_.h: New file.
122521 2005-04-25  Karl Berry  <karl@gnu.org>
122523         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122525 2005-04-25  Albert Chin  <china@thewrittenword.com>
122527         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122528         Toolkit C bug.
122530 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122532         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122533         (func_ln_if_changed): Remove forcibly for no error message
122534         in case file does not exist.
122536 2005-04-19  Simon Josefsson  <jas@extundo.com>
122538         * gnulib-tool (Options): Make --symlink mean --symbolic.
122540 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122542         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122544 2005-04-16  Simon Josefsson  <jas@extundo.com>
122546         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122548 2005-04-15  Simon Josefsson  <jas@extundo.com>
122550         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122552 2005-04-15  Simon Josefsson  <jas@extundo.com>
122554         * gnulib-tool: Rename --symlink to --symbolic.
122556 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122558         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122559         symbolic links to files instead of copying/moving.  Add --aux-dir,
122560         specifying directory relative --dir where auxiliary build tools
122561         are placed.
122563 2005-04-14  Bruno Haible  <bruno@clisp.org>
122565         * modules/allocsa (License): Change to LGPL.
122566         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122568 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122570         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122571         that "UTC +1 second" continues to work.  Problem reported
122572         by Dmitry V. Levin.
122573         (relunit_snumber): New rule.
122574         (relunit): Use it.
122576 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122578         * lib/getdate.y (universal_time_zone_table): New constant.
122579         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122580         universal_time_zone_table.
122581         (lookup_zone): Prefer universal_time_zone_table to
122582         local_time_zone_table, so that "GMT" time stamps are allowed in
122583         London during the summer.  Problem reported by Ian Abbott.
122585 2005-04-12  Jim Meyering  <jim@meyering.net>
122587         * lib/human.c (humblock): Set *options even when returning due to
122588         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122589         warning from gcc-4.
122591 2005-04-09  Jim Meyering  <jim@meyering.net>
122593         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122594         -Wuninitialized: initialize tm0.tm_year.
122596 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122598         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122599         count, since there's no maximum.  All uses changed.
122600         Add member dsts_seen.
122601         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122602         not being INT_MAX.
122603         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122604         Use pc_rels_seen to decide whether a date is absolute.
122606         * lib/getdate.y (number): Don't overwrite year.
122607         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122608         check.
122610 2005-04-02  Simon Josefsson  <jas@extundo.com>
122612         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122613         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122615 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122617         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122618         where no absolute path name can be longer than PATH_MAX.
122620 2005-03-27  Jim Meyering  <jim@meyering.net>
122622         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122624 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122626         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122627         "one's complement" -> "ones' complement" in comment, as per Knuth.
122628         "value of type" -> "type or expression" in comment.
122629         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122631 2005-03-26  Jim Meyering  <jim@meyering.net>
122633         Comment nits.
122634         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122635         Correct typos: s/or/of/.
122637 2005-03-26  Jim Meyering  <jim@meyering.net>
122639         * modules/check-include-files: Move to ../ and rename to...
122640         * check-module: ...this.
122642 2005-03-25  Jim Meyering  <jim@meyering.net>
122644         * modules/xvasprintf (Files): Add xalloc.h.
122646 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122648         * modules/gettext (Files): config/config.rpath ->
122649         build-aux/config.rpath
122650         * modules/iconv (Files): Likewise.
122651         Problem reported by Oskar Liljeblad.
122653 2005-03-23  Jim Meyering  <jim@meyering.net>
122655         * modules/check-include-files: New script to check for
122656         missing dependencies, multiple includes, etc.
122658         * modules/c-strtold (Depends-on): Add xalloc.
122659         * modules/c-strtod (Depends-on): Add xalloc.
122660         * modules/hash (Depends-on): Add xalloc.
122661         (Files): Remove lib/xalloc.h.
122663         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122664         * modules/userspec (Files): Add lib/inttostr.h.
122666 2005-03-23  Jim Meyering  <jim@meyering.net>
122668         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122670 2005-03-22  Jim Meyering  <jim@meyering.net>
122672         * modules/stat-macros: New module.
122673         * modules/canonicalize, modules/euidaccess, modules/file-type,
122674         * modules/filemode, modules/lchown, modules/makepath,
122675         * modules/rmdir, modules/stat: Depend on new stat-macros module
122676         rather than listing lib/stat-macros.h manually.
122677         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122679 2005-03-22  Jim Meyering  <jim@meyering.net>
122681         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122683 2005-03-22  Bruno Haible  <bruno@clisp.org>
122685         * config/srclist.txt: Replace target directory 'config' with
122686         'build-aux'.
122687         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122688         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122689         ../build-aux/.
122691 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122693         * modules/chdir-long (Depends-on): Add mempcpy.
122695         * modules/acl, modules/backupfile, modules/c-strtod,
122696         modules/c-strtold, modules/canon-host, modules/canonicalize,
122697         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122698         modules/exclude, modules/exitfail, modules/file-type,
122699         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122700         modules/getdate, modules/getline, modules/getpagesize,
122701         modules/getpass, modules/getugroups, modules/group-member,
122702         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122703         modules/inttostr, modules/long-options, modules/makepath,
122704         modules/md5, modules/memcasecmp, modules/memcoll,
122705         modules/modechange, modules/mountlist, modules/path-concat,
122706         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122707         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122708         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122709         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122710         modules/strftime, modules/strndup, modules/strverscmp,
122711         modules/timespec, modules/unlocked-io, modules/userspec,
122712         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122713         modules/yesno:
122714         Remove lib_SOURCES line from Makefile.am section, as this is now
122715         done automatically by the corresponding Autoconf macro.
122717 2005-03-21  Jim Meyering  <jim@meyering.net>
122719         Changes imported from coreutils.
122721         * lib/cycle-check.c: Don't include xalloc.h.
122723         * lib/path-concat.c: Don't include assert.h.
122724         (path_concat): Remove assertion that would have triggered
122725         for ABASE starting with more than one slash.
122726         Reported by Andreas Schwab.
122728         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122729         properly when ABASE is an absolute file name.
122730         Correct the description of this function.
122731         Include <assert.h>.
122732         Add an assertion and a test driver.
122733         This fixes a bug introduced on 2004-07-02.
122734         Andreas Schwab reported the resulting failure of cp --parents:
122735         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122737 2005-03-21  Jim Meyering  <jim@meyering.net>
122739         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122742 2005-03-21  Jim Meyering  <jim@meyering.net>
122743         and  Paul Eggert  <eggert@cs.ucla.edu>
122745         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122746         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122747         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122748         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122749         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122750         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122751         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122752         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122753         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122754         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122755         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122756         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122757         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122758         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122759         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122760         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122761         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122762         for these modules.
122764 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122766         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122767         (which shouldn't happen), generate nothing instead of returning 0
122768         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122770 2005-03-16  Bruno Haible  <bruno@clisp.org>
122772         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122773         HAVE_LONGLONG_64BIT.
122775 2005-03-16  Bruno Haible  <bruno@clisp.org>
122777         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122778         HAVE_LONGLONG_64BIT.
122780 2005-03-16  Bruno Haible  <bruno@clisp.org>
122782         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122783         HAVE_LONGLONG_64BIT.
122785 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122787         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122788         reliably distinguish strftime failure from empty output on POSIX
122789         hosts.
122791 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122793         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122794         (iconv_string): Don't guess a size-zero buffer, as that might cause
122795         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122796         result would be 'too large', where 'too large' is (heuristically)
122797         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122798         overflow concerns.  This will prevent some unwanted malloc failures
122799         when the inputs are very large.
122801 2005-03-15  Karl Berry  <karl@gnu.org>
122803         * config/srclist.txt (config.rpath): from gettext.
122804         * config/config.rpath: update.
122806 2005-03-15  Bruno Haible  <bruno@clisp.org>
122808         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122809         to 'negate'.
122811         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122812         variable.
122814         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122815         results.
122817 2005-03-14  Simon Josefsson  <jas@extundo.com>
122819         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122820         <fx@gnu.org>.
122822 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122824         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122825         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122826         intprops.h.
122827         * lib/strtol.c: Likewise.
122829 2005-03-14  Jim Meyering  <jim@meyering.net>
122831         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122832         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122833         to be nonzero so that we (and caller) can detect the difference
122834         between a valid zero-length expansion and an error return, even
122835         when the underlying strftime fails before writing anything into
122836         that location.
122838 2005-03-14  Bruno Haible  <bruno@clisp.org>
122840         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122841         Update from GNU gettext 0.14.3.
122843 2005-03-10  Jim Meyering  <jim@meyering.net>
122845         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122847 2005-03-10  Jim Meyering  <jim@meyering.net>
122849         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122850         so that this module works on systems without fchdir.
122852 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122854         Factor int-properties macros into a single file, except for
122855         glibc-related files.
122856         * lib/intprops.h: New file.
122857         * lib/getloadavg.c: Include it instead of limits.h.
122858         (INT_STRLEN_BOUND): Remove.
122859         * lib/human.c: Include intprops.h.
122860         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122861         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122862         302/1000.
122863         * lib/inttostr.h: Include intprops.h instead of limits.h.
122864         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122865         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122866         for consistency with intprops.h.
122867         (time_t_is_integer, twos_complement_arithmetic): Use them.
122868         * lib/sig2str.h: Include <signal.h>, intprops.h.
122869         (INT_STRLEN_BOUND): Remove.
122870         * lib/strftime.c (TYPE_SIGNED): Remove.
122871         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122872         * lib/strtol.c: Adjust comments to match intprops.h.
122873         * lib/userspec.c: Include intprops.h.
122874         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122875         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122876         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122877         instead of rolling our own expressions.
122878         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122880         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122881         instead of int.
122882         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122883         the right thing even if adding 1900 would overflow.  Similarly
122884         for tm_mon + 1 and tm_yday + 1.
122885         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122886         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122887         (DO_SIGNED_NUMBER): New macro.
122888         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122890 2005-03-07  Bruno Haible  <bruno@clisp.org>
122892         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122894 2005-03-07  Bruno Haible  <bruno@clisp.org>
122896         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122898 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122900         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122901         (func_import): Only replace files via --import when they have actually
122902         changed.
122904 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122906         * m4/mmap-anon.m4: New file.
122907         * m4/pagealign_alloc.m4: New file.
122909 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122910             Bruno Haible  <bruno@clisp.org>
122912         * modules/pagealign_alloc: New file.
122913         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122915 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122916             Bruno Haible  <bruno@clisp.org>
122918         * lib/pagealign_alloc.h: New file.
122919         * lib/pagealign_alloc.c: New file.
122921 2005-03-03  Bruno Haible  <bruno@clisp.org>
122923         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122924         Use an all-permissive copyright notice, recommended by RMS.
122926 2005-03-02  Bruno Haible  <bruno@clisp.org>
122928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122929         of AIX, the replacement has to be done only after <string.h> is
122930         included, therefore not in config.h. stpncpy.h does the replacement,
122931         and stpncpy.c uses it.
122933 2005-03-02  Bruno Haible  <bruno@clisp.org>
122935         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122936         stpncpy.c uses it.
122938 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122940         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122941         The workaround isn't strictly needed for POSIX conformance, and
122942         it's too much of a pain to configure and maintain.  We'll ask
122943         people to fix their kernels instead.
122944         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122945         (NANOSLEEP_BUG_WORKAROUND): Remove.
122946         (xnanosleep): Remove the workaround.
122948 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122950         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122951         Reported by Derek Price.
122952         (Include): Add "timespec.h".
122954         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122956 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122958         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122959         to detect nanosleep bug.
122961 2005-03-01  Bruno Haible  <bruno@clisp.org>
122963         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122965 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122967         * modules/gethrxtime: New file.
122968         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122969         (Depends-on): Add gethrxtime.
122970         (configure.ac): Add gl_XNANOSLEEP.
122971         (Makefile.am): Remove lib_SOURCES line.
122973 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122975         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122976         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122978 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122980         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122981         * lib/timespec.h (gettime): Return void, since it always
122982         succeeds now.  All uses changed.
122983         * lib/gettime.c (gettime): Likewise.
122984         [HAVE_NANOTIME]: Prefer nanotime.
122985         Assume gettimeofday succeeds, as POSIX requires.
122986         Assime time () succeeds, since other code already does.
122987         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122988         (timespec_subtract): Remove.
122989         (NANOSLEEP_BUG_WORKAROUND): New constant.
122990         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122991         things considerably.  Use it only on GNU/Linux hosts, since the
122992         workaround shouldn't be needed elsewhere.
122994 2005-02-24  Bruno Haible  <bruno@clisp.org>
122996         * modules/gettext (Files): Add m4/glibc2.m4.
122998 2005-02-24  Bruno Haible  <bruno@clisp.org>
123000         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123001         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123002         * m4/progtest.m4:
123003         Update from GNU gettext 0.14.2.
123004         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123006 2005-02-24  Bruno Haible  <bruno@clisp.org>
123008         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123009         * lib/config.charset: Update from GNU gettext 0.14.2.
123011 2005-02-24  Bruno Haible  <bruno@clisp.org>
123013         * lib/gettext.h: Update from GNU gettext 0.14.2.
123015 2005-02-23  Simon Josefsson  <jas@extundo.com>
123017         * m4/iconvme.m4: New file.
123019 2005-02-23  Jim Meyering  <jim@meyering.net>
123021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123022         change.
123023         Thanks to Bruno Haible for catching it.
123025 2005-02-22  Simon Josefsson  <jas@extundo.com>
123027         * modules/iconvme: New file.
123029         * MODULES.html.sh: Add iconvme.
123031 2005-02-22  Simon Josefsson  <jas@extundo.com>
123033         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123035 2005-02-22  Simon Josefsson  <jas@extundo.com>
123037         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123039 2005-02-22  Jim Meyering  <jim@meyering.net>
123041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123042         s/ifndef/ifdef/.
123044 2005-02-20  Neil Conway  <neilc@samurai.com>
123046         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123047         returned by OSX/Darwin if the specified buffer is not large
123048         enough for the hostname.
123050 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123052         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123053         pass it to _help, otherwise the latter coredumps trying to
123054         dereference state.root_argp.
123056 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123058         * modules/chdir-long (Depends-on): Add memrchr.
123059         * modules/memrchr (Files): Add lib/memrchr.h.
123060         (Include): "memrchr.h".
123062 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123064         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123066 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123068         * lib/memrchr.h: New file.
123069         * lib/chdir-long.c: Include it.
123070         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123071         Don't bother including stddef.h.
123073 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123075         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123076         inclusion.
123077         Include <sys/types.h>, for dev_t.
123078         (ME_DUMMY, ME_REMOTE): Move from here....
123079         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123080         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123081         Dmitry V. Levin.
123082         Include mountlist.h first, to test the interface.
123084 2005-01-29  Bruno Haible  <bruno@clisp.org>
123086         * lib/progname.c (program_name): Initialize.
123087         Needed when linking statically on MacOS X.
123089 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123091         Sync from coreutils.
123092         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123093         (Depends-on): Add c-strtod.
123094         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123096 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123098         Sync from coreutils.
123099         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123101         Remove files that are specific to coreutils.
123102         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123104 2005-01-28  Bruno Haible  <bruno@clisp.org>
123106         * modules/javacomp: New file.
123107         * MODULES.html.sh (Java): Add javacomp.
123109 2005-01-28  Bruno Haible  <bruno@clisp.org>
123111         * m4/javacomp.m4: New file, from GNU gettext.
123113 2005-01-28  Bruno Haible  <bruno@clisp.org>
123115         * lib/javacomp.sh.in: New file, from GNU gettext.
123116         * lib/javacomp.h: New file, from GNU gettext.
123117         * lib/javacomp.c: New file, from GNU gettext.
123119 2005-01-26  Simon Josefsson  <jas@extundo.com>
123121         * lib/gai_strerror.c: Use GPL in header.
123123 2005-01-26  Bruno Haible  <bruno@clisp.org>
123125         * modules/javaexec: New file.
123126         * MODULES.html.sh (Java): Add javaexec.
123128 2005-01-26  Bruno Haible  <bruno@clisp.org>
123130         * m4/javaexec.m4: New file, from GNU gettext.
123132 2005-01-26  Bruno Haible  <bruno@clisp.org>
123134         * lib/javaexec.sh.in: New file, from GNU gettext.
123135         * lib/javaexec.h: New file, from GNU gettext.
123136         * lib/javaexec.c: New file, from GNU gettext.
123138 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123140         * modules/lchown (Depends-on): Remove lchown.h
123142 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123144         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123145         must be defined if the header file was not found, in order
123146         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123148 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123150         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123151         initializers for struct pentry_state.
123152         (__argp_error): Check return value of __asprintf
123153         (__argp_failure): Translate error message
123155         * lib/argp-parse.c: Removed braces around the expansion of N_()
123157 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123159         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123160         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123161         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123162         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123163         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123164         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123165         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123166         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123167         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123168         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123169         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123170         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123171         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123172         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123173         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123174         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123175         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123176         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123177         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123178         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123179         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123180         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123181         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123182         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123183         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123184         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123185         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123186         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123187         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123188         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123189         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123190         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123191         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123192         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123193         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123194         Use an all-permissive copyright notice, recommended by RMS.
123196 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123198         * modules/chdir-long (Depends-on): Remove mempcpy.
123200 2005-01-21  Jim Meyering  <jim@meyering.net>
123202         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123203         same value as for Solaris 9.
123205         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123206         component length.  This included changing the parameter to be
123207         of type `char *' rather than `char const *'.
123208         * lib/chdir-long.h (chdir_long): Update prototype.
123210         * lib/openat.c (fdopendir, fstatat): New functions.
123211         * lib/openat.h: Include headers required for use of DIR and struct
123212         stat.
123213         [AT_SYMLINK_NOFOLLOW]: Define.
123214         (fdopendir, fstatat): Add prototypes.
123216 2005-01-21  Bruno Haible  <bruno@clisp.org>
123218         * modules/classpath: New file.
123219         * MODULES.html.sh (Java): Add classpath.
123221 2005-01-21  Bruno Haible  <bruno@clisp.org>
123223         * lib/classpath.h: New file, from GNU gettext.
123224         * lib/classpath.c: New file, from GNU gettext.
123226 2005-01-20  Simon Josefsson  <jas@extundo.com>
123228         * modules/version-etc-fsf: New file.
123230 2005-01-20  Simon Josefsson  <jas@extundo.com>
123232         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123233         * lib/version-etc.c: Remove version_etc_copyright.
123234         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123235         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123237 2005-01-20  Simon Josefsson  <jas@extundo.com>
123239         * lib/base64.h (isbase64): Add.
123241         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123242         using a unsigned prototype, don't inline.
123243         (base64_decode): Use it.
123245 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123247         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123248         it.
123250 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123252         * lib/save-cwd.c (save_cwd): Remove code to support the case
123253         where fchdir is missing or flaky.
123255 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123257         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123259 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123261         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123262         AC_LIBSOURCES now does this.
123263         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123264         with new ullong_max module.
123266 2005-01-19  Bruno Haible  <bruno@clisp.org>
123268         * modules/sh-quote: New file.
123269         * MODULES.html.sh (Executing programs): Add sh-quote.
123271 2005-01-19  Bruno Haible  <bruno@clisp.org>
123273         * lib/sh-quote.h: New file, from GNU gettext.
123274         * lib/sh-quote.c: New file, from GNU gettext.
123276 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123278         Merge from coreutils.
123279         * m4/ullong_max.m4: New file.
123280         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123281         (gl_MACROS): Assume localeconv exists.
123283 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123285         Merge changes from coreutils, as described below in several
123286         changelogs dated today.
123288         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123289         (O_DIRECTORY): Remove; not needed here, since "." must be
123290         a directory.  All uses removed.
123291         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123292         universal on Suns, and we also need to test for IRIX.
123293         Revamp code to use 'if' rather than '#if'.
123294         Avoid unnecessary comparison of cwd->desc to 0.
123296         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123297         for known valid error numbers rather than observed invalid ones.
123299 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123301         * modules/ullong_max: New file.
123303         * modules/chdir-long, modules/openat: New files.
123304         * modules/save-cwd (Depends-on): Depend on chdir-long.
123305         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123307 2005-01-18  Jim Meyering  <jim@meyering.net>
123309         Merge from coreutils.
123310         * m4/chdir-long.m4, m4/openat.m4: New files.
123311         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123312         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123313         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123314         is sane and DOES follow symlinks.  Besides, testing 20 different
123315         systems found no broken chown implementations.
123316         Prompted by a change in rsync's copy of this macro.
123317         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123319         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123321         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123322         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123323         NULL-means-set-to-current-time semantics.
123324         Remove temporary file immediately, rather than waiting
123325         for configure's at-exit trap code to do it.
123327 2005-01-18  Jim Meyering  <jim@meyering.net>
123329         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123331         * lib/utimens.c (futimens): Account for the fact that futimes
123332         can also fail with errno == ENOSYS or errno == ENOENT.
123333         Patch from Dmitry V. Levin.
123335         Change the name of the robust chdir function from chdir to chdir_long.
123336         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123337         (restore_cwd): Use chdir_long, not chdir.
123338         * lib/chdir-long.c: Renamed from chdir.c.
123339         * lib/chdir-long.h: Renamed from chdir.h.
123340         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123341         Hurd.
123343 2005-01-18  Bruno Haible  <bruno@clisp.org>
123345         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123346         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123347         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123348         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123349         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123350         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123351         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123352         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123353         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123354         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123355         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123356         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123357         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123358         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123359         Use an all-permissive copyright notice, recommended by RMS.
123361 2005-01-18  Bob Proulx  <bob@proulx.com>
123363         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123364         simplify offsetof() macro construct to avoid compile failure with
123365         native HP-UX 11.0 ANSI C compiler.
123367 2005-01-17  Bruno Haible  <bruno@clisp.org>
123369         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123370         redundant because stpncpy.m4 takes care of it.
123372 2005-01-17  Bruno Haible  <bruno@clisp.org>
123374         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123376 2005-01-17  Bruno Haible  <bruno@clisp.org>
123378         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123379         used.
123381 2005-01-17  Bruno Haible  <bruno@clisp.org>
123383         * lib/fwriteerror.h (fwriteerror): Change specification to include
123384         fclose.
123385         * lib/fwriteerror.c: Include <stdbool.h>.
123386         (fwriteerror): At the end, close the file stream. Record whether
123387         stdout was already closed.
123389 2005-01-17  Bruno Haible  <bruno@clisp.org>
123391         * lib/execute.c (environ): Declare if needed.
123392         * lib/pipe.c (environ): Likewise.
123393         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123395 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123397         * modules/argp: Depend on vsnprintf
123399 2005-01-10  Jim Meyering  <jim@meyering.net>
123401         * modules/closeout (Depends-on): Add atexit.
123403 2005-01-06  Bruno Haible  <bruno@clisp.org>
123405         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123407 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123409         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123410         definitions to be after all include files, to avoid collisions.
123411         Problem reported by Bob Proulx.
123413 2005-01-04  Jim Meyering  <jim@meyering.net>
123415         Changes imported from coreutils.
123416         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123417         as the mkstemp template, use a temporary directory and an
123418         8.3-friendly template to avoid trouble on systems like DJGPP.
123419         Reported by Juan M. Guerrero via Stepan Kasal.
123420         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123421         close. Remove the temporary directory right away, rather than waiting
123422         for configure's at-exit trap code to do it.
123423         Suggestion from Stepan Kasal.
123425 2005-01-01  Simon Josefsson  <jas@extundo.com>
123427         * gnulib-tool: Print #include directives when --import'ing.
123429 2004-12-28  Simon Josefsson  <jas@extundo.com>
123431         * tests/test-base64.c: Include required header files.  Remove
123432         unused variables.
123434 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123436         * modules/error (Depends-on): Remove gettext.
123438 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123440         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123441         not needed.  This removes a dependency on the gettext module.
123442         [defined _LIBC]: Do not include <libintl.h>; not needed.
123444 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123446         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123447         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123449 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123451         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123452         HAVE_DECL_STRTOLD.
123454 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123456         * modules/getdate (Depends-on): Remove alloca-opt.
123458 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123460         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123462 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123464         * lib/argp-parse.c: Include <stddef.h>.
123465         (alignof, alignto): New macros.
123466         (parser_init): Don't assume that void * is aligned sufficiently
123467         for struct option.
123469         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123470         need to extend the stack.
123471         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123472         large.
123474 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123476         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123478 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123480         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123481         (2004-10-24) change.  Apparently this was a false alarm.
123483         * modules/getdate: Depend on alloca-opt, not alloca.
123485 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123487         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123488         Remove now-obsolete comment about AIX.
123489         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123490         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123491         (YYMAXDEPTH): New macro.
123493 2004-12-18  Simon Josefsson  <jas@extundo.com>
123495         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123497 2004-12-18  Bruno Haible  <bruno@clisp.org>
123499         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123501 2004-12-18  Bruno Haible  <bruno@clisp.org>
123503         * lib/fatal-signal.c (fatal_signals): Make non-const.
123504         (init_fatal_signals): New function.
123505         (uninstall_handlers, install_handlers): Ignore signals that were set to
123506         SIG_IGN.
123507         (at_fatal_signal): Call init_fatal_signals.
123508         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123509         SIG_IGN.
123510         Reported by Paul Eggert.
123512 2004-12-18  Bruno Haible  <bruno@clisp.org>
123514         * doc/alloca.texi: New file.
123515         * doc/alloca-opt.texi: New file.
123517 2004-12-17  Jim Meyering  <jim@meyering.net>
123519         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123520         Otherwise, install-sh could exit with improper exit status when
123521         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123523 2004-12-16  Simon Josefsson  <jas@extundo.com>
123525         * tests/test-base64.c: Add license.
123527 2004-12-15  Stepan Kasal  <address@hidden>
123529         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123531 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123533         * modules/getcwd (Files): Add m4/d-ino.m4.
123534         Suggested by Mark D. Baushke.
123536 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123538         * lib/getdate.y (textint): New member "negative".
123539         (time_zone_hhmm): New function.
123540         Expect 14 shift-reduce conflicts, not 13.
123541         (o_colon_minutes): New rule.
123542         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123543         (yylex): Set the "negative" member of signed numbers.
123545 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123547         * doc/getdate.texi (Time of day items, Time zone items):
123548         Describe new formats +00:00, UTC+00:00.
123550 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123552         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123553         spurious "-l"s.  Problem reported by Stepan Kasal.
123555 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123557         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123558         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123560 2004-12-04  Simon Josefsson  <jas@extundo.com>
123562         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123563         Vandoorselaere <yoann@prelude-ids.org>.
123565 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123567         Changes imported from coreutils.
123568         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123569         exist.
123570         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123572 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123574         Changes imported from coreutils.
123575         * lib/hard-locale.c: Assume <locale.h> exists.
123576         Include "strdup.h".
123577         (GLIBC_VERSION): New macro.
123578         (hard_locale): Assume setlocale exists.
123579         Rewrite to avoid #ifdef.
123580         Use strdup rather than malloc + strcpy.
123581         * lib/human.c: Assume <locale.h> exists.
123582         (human_readable): Assume localeconv exists.
123584 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123586         * modules/hard-locale (Depends-on): Add strdup.
123588 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123590         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123591         convert T2, not T.  (Imported from libc.)
123593 2004-11-30  Simon Josefsson  <jas@extundo.com>
123595         * modules/restrict (License): Change to LGPL.
123597 2004-11-30  Simon Josefsson  <jas@extundo.com>
123599         * m4/restrict.m4: Add copyright and copying conditions.
123601 2004-11-30  Simon Josefsson  <jas@extundo.com>
123603         * m4/base64.m4: New file.
123605 2004-11-30  Simon Josefsson  <jas@extundo.com>
123607         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123608         base64.
123610         * tests/test-base64.c: New file.
123612         * modules/base64: New file.
123614 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123616         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123617         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123619         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123621 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123623         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123624         (__getcwd.c): Don't restore errno; glibc doesn't.
123625         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123626         first, falling back to our code only if its results look suspicious.
123627         Ensure that the resulting buffer is only as large as necessary.
123629         * lib/readutmp.c: Include readutmp.h first.
123630         Include <errno.h>, since readutmp.h no longer does that.
123631         * lib/readutmp.h: Don't include <errno.h>,
123632         <sys/param.h>, <time.h>; not needed to establish interface.
123633         (errno): Remove decl.
123634         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123635         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123636         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123638 2004-11-28  Simon Josefsson  <jas@extundo.com>
123640         * lib/base64.h, base64.c: New file.
123642 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123644         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123646 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123648         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123649         (Depends-on): Remove pathmax, same.  Add mempcpy.
123650         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123651         (Makefile.am): Append getcwd.h to lib_SOURCES.
123652         (Include): Add getcwd.h.
123653         (Maintainer): Change from Jim Meyering to "all, glibc",
123654         since getdate now uses intended-for-glibc code.
123655         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123656         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123658 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123660         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123661         HP's ANSI C compiler.
123662         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123663         Declaring int functions causes warnings on some modern systems and
123664         shouldn't be needed to compile on ancient ones.
123665         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123666         defined.
123668         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123669         with the following changes.
123670         (__set_errno): Parenthesize properly.
123671         Include <stdbool.h>.
123672         (MIN, MAX, MATCHING_INO): New macros.
123673         (__getcwd): Define with prototype, not K&R form.
123674         Use heuristics to allocate default buffer on stack if possible.
123675         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123676         behavior, and to avoid the PATH_MAX limit when computing
123677         ../../../../...
123678         Use MATCHING_INO to compare inode number to file.
123679         Check for arithmetic overflow in size calculations.
123680         Fix bug in reallocation of dot array that caused getcwd to fail
123681         on directories nested deeper than 75.
123682         Be more careful about saving errno on error.
123683         Do not use realloc; use only free+malloc, as this is a bit
123684         more flexible and avoids a needless copy operation.
123685         Do not inspect st_dev and st_ino for symbolic links; POSIX
123686         doesn't specify the latter.
123687         Check for closedir errors.
123688         Avoid needless casts.
123689         Use "#ifdef weak_alias" around weak_alias, to be like other
123690         glibc code.
123691         The following changes to getcwd.c have effect only when used in
123692         gnulib; they have no effect inside glibc proper.
123693         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123694         as alloca isn't used.
123695         (alloca, __alloca): Likewise.
123696         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123697         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123698         unconditionally, as gnulib assumes C89 or better.
123699         Do not include <sys/param.h>.
123700         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123701         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123702         better.
123703         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123704         Include <dirent.h> in a way that is compatible with modern Autoconf.
123705         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123706         New macros, if not already defined.
123707         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123708         Use "_LIBC", not "defined _LIBC", for consistency.
123709         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123710         a mempcpy module.
123711         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123712         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123713         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123714         credit only to Jim Meyering and adjust the copyright dates.
123715         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123716         <stdlib.h>, <unistd.h>, "pathmax.h".
123717         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123718         (INITIAL_BUFFER_SIZE): Remove.
123719         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123721 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123723         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123724         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123725         Use the _ONCE methods, for efficiency.
123726         Check for fcntl.h.  In test program, include <errno.h>
123727         and <fcntl.h> if available.  Remove old K&R cruft from
123728         test program.  Check for common errors in GNU/Linux,
123729         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123730         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123731         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123732         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123733         name accordingly.
123734         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123735         accommodate new getcwd.c.
123736         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123737         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123738         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123739         that's all we need now.
123741 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123743         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123744         argp-parse.c depends on getopt internals, that means we should
123745         always use our getopt, to be on the safe side.
123746         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123747         order not to spoil the result of an eventual previous invocation
123748         of gl_GETOPT_SUBSTITUTE.
123750 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123752         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123753         redefinition warnings. To avoid them, include the defines
123754         in `#if !defined __need_getopt ... #endif'. The only place
123755         where __getopt_argv_const is used is in definitions
123756         of getopt_long and getopt_long_only below, which are as well
123757         protected by `#ifndef __need_getopt'.
123758         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123759         __need_getopt after including <stdio.h> and <unistd.h> These
123760         headers might have defined it.
123762 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123764         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123766 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123768         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123769         (futimens): New function, which uses futimes if available.
123770         (futimens, utimens): Support timespec==NULL, with same semantics
123771         as utime and utimens.
123772         * lib/utimens.h (futimens): New decl.
123774 2004-11-23  Jim Meyering  <jim@meyering.net>
123776         * lib/getopt_.h: Remove trailing blanks.
123778 2004-11-23  Jim Meyering  <jim@meyering.net>
123780         * lib/__fpending.c: Add comment.
123782 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123784         * modules/canonicalize (Depends-on): Add xreadlink.
123785         Problem reported by James Youngman.
123787 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123789         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123790         New macros.
123791         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123792         optopt): Use them instead of invoking ## directly; otherwise, the
123793         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123795 2004-11-19  Bruno Haible  <bruno@clisp.org>
123797         * lib/strtok_r.c: Move comments from here...
123798         * lib/strtok_r.h: ... to here.
123800 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123802         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123803         implementations that mishandle size_t overflow.
123805 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123807         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123808         might fail.  Problem reported by Yoann Vandoorselaere.
123809         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123810         implementations that mishandle size_t overflow.
123812 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123814         * modules/canon-host (Depends-on): Add strdup.
123816 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123818         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123820 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123822         * lib/canon-host.c: Include "strdup.h".
123823         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123824         Use strdup instead of malloc/strcpy to duplicate strings.
123826         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123827         (human_space_before_unit): New constant.
123828         * lib/human.c (human_readable): Support it.
123830         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123831         (xgetcwd): Set errno correctly when failing.
123832         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123833         the failure is actually due to a PATH_MAX problem.
123835         Further getopt changes to make it more likely that glibc will
123836         buy the changes back.
123837         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123838         (getopt): Use it, so to preserve glibc semantic
123839         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123840         when compiling for libc.
123841         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123842         (getopt_long, getopt_long_only): Use it.
123844         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123845         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123846         (getopt): Argv is now char * const *, as per standard.
123847         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123848         not char *__getopt_argv_const *.
123849         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123850         _getopt_long_only_r): Likewise.
123851         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123852         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123853         _getopt_long_r, _getopt_long_only_r): Likewise.
123854         * lib/getopt_.h (__getopt_argv_const): Remove.
123855         (getopt): Argv is now char * const *, as per standard.
123857         * lib/getdate.y (tORDINAL): New token.
123858         (day, relunit): Allow it for relative times.
123859         (relative_time_table): Use tORDINAL for ordinals.
123861 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123863         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123864         Document that "second" isn't allowed as an ordinal number.
123866 2004-11-16  Jim Meyering  <jim@meyering.net>
123868         * modules/closeout (Depends-on): Add fpending.
123870 2004-11-15  Jim Meyering  <jim@meyering.net>
123872         * lib/closeout.c: Include "__fpending.h" once again.
123873         Include <stdbool.h>.
123874         (close_stdout): Don't fail just because stdout was closed initially,
123875         since some programs don't write to stdout in the normal course of
123876         operation (other than --version and --help), and we don't want this
123877         function to make e.g. `touch file >&-' fail.
123878         But do fail if it was closed and someone has tried to write to it.
123879         E.g., `printf foo >&-' must fail.
123881 2004-11-13  Jim Meyering  <jim@meyering.net>
123883         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123885 2004-11-12  Simon Josefsson  <jas@extundo.com>
123887         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123888         small doc fix is still pending.
123890 2004-11-11  Simon Josefsson  <jas@extundo.com>
123892         * modules/strtok_r: New file.
123894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123895         strtok_r.
123897 2004-11-11  Simon Josefsson  <jas@extundo.com>
123899         * m4/strtok_r.m4: New file.
123901         * m4/getopt.m4: Replace opterr.
123903 2004-11-11  Simon Josefsson  <jas@extundo.com>
123905         * lib/strtok_r.h, strtok_r.c: New file.
123907 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123909         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123910         of replacing opterr, getopt, etc.  This should handle the
123911         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123913 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123915         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123916         we can stop lying to compilers about the constness of argv when we
123917         are compiled outside glibc.
123918         (getopt, getopt_long, getopt_long_only): Use it.
123919         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123920         _getopt_internal, getopt): Likewise.
123921         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123922         _getopt_long_only_r): Likewise.
123923         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123924         _getopt_long_r, _getopt_long_only_r): Likewise.
123926         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123927         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123928         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123929         the other external symbols.
123930         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123931         declaration, since the above renaming now works around collisions.
123933 2004-11-11  Jim Meyering  <jim@meyering.net>
123935         * lib/linebreak.c: Remove trailing blanks.
123936         * lib/alloca_.h: Likewise.
123937         * lib/acosl.c: Likewise.
123938         * lib/euidaccess.c: Likewise.
123939         * lib/allocsa.h: Likewise.
123941 2004-11-10  Simon Josefsson  <jas@extundo.com>
123943         * m4/getaddrinfo.m4: New file.
123945 2004-11-10  Simon Josefsson  <jas@extundo.com>
123947         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123949 2004-11-10  Simon Josefsson  <jas@extundo.com>
123951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123952         getaddrinfo.
123954         * modules/getaddrinfo: New file.
123956 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123958         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123960 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123962         * lib/mktime.c (SHR): New macro, which is a portable
123963         substitute for >> that should work even on Crays.
123964         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123965         Problem reported by Mark D. Baushke in
123966         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123967         * lib/getdate.y (SHR): Likewise.
123968         (tm_diff): Use it.
123969         * lib/strftime.c (SHR): Likewise.
123970         (tm_diff): Use it.
123971         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123972         quote_these_too, so that right shifts are well defined.  All uses
123973         changed.
123975 2004-11-10  Jim Meyering  <jim@meyering.net>
123977         Ensure that no close failure goes unreported.
123978         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123979         return early when it seems there's nothing to flush.
123980         Don't include __fpending.h.
123982 2004-11-10  Jim Meyering  <jim@meyering.net>
123984         * modules/closeout (Depends-on): Remove fpending.
123986 2004-11-10  Jim Meyering  <jim@meyering.net>
123988         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123990 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123992         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123993         gl_FUNC_STRFTIME.
123994         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123995         and AC_REQUIRE when possible, to avoid duplicate checks.
123996         Check for <wchar.h>.
123998 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124000         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124002 2004-11-09  Bruno Haible  <bruno@clisp.org>
124004         * m4/sockpfaf.m4: New file.
124006 2004-11-05  Bruno Haible  <bruno@clisp.org>
124008         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124009         Reported by Mark D. Baushke <mdb@cvshome.org>.
124011 2004-11-04  Bruno Haible  <bruno@clisp.org>
124013         2004-09-11  Bruno Haible  <bruno@clisp.org>
124014                 * allocsa.valgrind: New file.
124015         2004-02-06  Bruno Haible  <bruno@clisp.org>
124016                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124017                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124018                 Reported by Christopher Seip <chris.seip@hp.com>.
124020 2004-11-04  Bruno Haible  <bruno@clisp.org>
124022         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124023         (Makefile.am): Distribute it.
124025 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124027         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124028         with errno == ERANGE if the buffer is too small.
124029         Problem reported by Mark D. Baushke.
124031 2004-11-03  Albert Chin  <china@thewrittenword.com>
124032             Paul Eggert  <eggert@cs.ucla.edu>
124034         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124035         equivalent, substitute $ac_type for equivalent type rather than
124036         blindly using uint32_t *always* which won't work if uint32_t is not
124037         available.  Define _UINT32_T to work around typedef of uint32_t if
124038         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124039         2.5.1.
124041 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124043         * m4/jm-macros.m4: Sync from coreutils.
124044         (gl_MACROS): Check for mbrlen, for pathchk.
124045         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124047 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124049         * lib/xreadlink.c (MAXSIZE): New macro.
124050         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124051         size does not exceed MAXSIZE.  Avoid cast.
124052         As suggested by Mark D. Baushke in
124053         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124054         if readlink fails with buffer size just under MAXSIZE, try again
124055         with MAXSIZE.
124057 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124059         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124061 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124062         and  Paul Eggert  <eggert@cs.ucla.edu>
124064         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124065         (get_date): Overparenthesize to avoid GCC warning.
124067 2004-11-02  Bruno Haible  <bruno@clisp.org>
124069         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124070         returns void.
124072 2004-11-02  Bruno Haible  <bruno@clisp.org>
124074         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124075         function returns void.
124077 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124079         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124080         fflush_unlocked, flockfile, funlockfile, funlockfile,
124081         fputs_unlocked, putc_unlocked.
124083 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124085         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124086         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124087         already declared.
124089 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124091         * modules/getdate (Files): Add doc/getdate.texi.
124092         (Depends-on): Add setenv, xalloc.
124094 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124096         * lib/getdate.y: Add support for TZ="foo" within a date string.
124097         Fix some bugs near time_t boundaries.  Reject dates with
124098         out-of-range components, e.g., "Sept 31".
124099         Include <stdlib.h>, "setenv.h", "xalloc.h".
124100         (ISDIGIT_LOCALE): Remove; unused.
124101         Note that the TZ and time functions used here are not reentrant.
124102         (mktime_ok, get_tz): New functions.
124103         (TZBUFSIZE): New constant.
124104         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124105         This requires that we sometimes generate our own TZ="XXX..." setting.
124107 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124109         * doc/getdate.texi: New file, from coreutils with modifications for
124110         the new TZ parsing.
124112 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124114         * lib/mktime.c (not_equal_tm): Remove redundant check.
124116 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124118         * modules/regex (lib_SOURCES): Add regex.c.
124119         Reported by James Youngman in
124120         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124122 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124124         * lib/getdate.y: Use Bison 1.875 features, and some minor
124125         code cleanups.  This change does not affect semantics.
124126         Don't include <stdlib.h>; no longer needed.
124127         Don't include unlocked-io.h; only the "#if TEST" code uses
124128         stdio, and performance isn't crucial there.
124129         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124130         Bison 1.875 features as described below.
124131         All uses of "PC." replaced by "pc->".
124132         (YYSTYPE): Add a forward declaration.
124133         (yylex, yyerror): Use full prototypes in forward decls.
124134         Use "%pure-parser" rather than obsolescent "%pure_parser".
124135         Use %parse-param and %lex-param instead of obsolescent
124136         YYPARSE_PARAM and YYLEX_PARAM.
124137         (meridian_table, month_and_day_table, time_units_table,
124138         relative_time_table, time_zone_table, military_table,
124139         lookup_zone, lookup_word, get_date):
124140         Use NULL instead of 0 where appropriate.
124141         (to_hour): Avoid abort (), to avoid a dependency on
124142         stdlib.h.
124143         (yyerror, yylex): Now accepts parser_control * arg.
124144         (main) [TEST]: Use '\0' rather than 0 for char.
124146 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124148         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124150 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124152         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124153         It's now the caller's responsibility to handle the case where
124154         !HAVE_GETPAGESIZE && !defined getpagesize.
124156         * lib/mktime.c (leapyear): Arg is long int, not int.
124158 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124160         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124162 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124164         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124165         missing.  Problem reported by James Youngman.
124167 2004-10-16  Simon Josefsson  <jas@extundo.com>
124169         * gnulib-tool: Fix comments.  Fix parse problem.
124170         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124172 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124174         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124175         implementation of getopt_long.  Problem reported by Alexander Taler in:
124176         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124178 2004-10-15  Bruno Haible  <bruno@clisp.org>
124180         * gnulib-tool: Untabify. Initialize supplied_libname.
124181         (func_usage): More homogenous output.
124182         (func_modules_transitive_closure, func_modules_to_filelist,
124183         func_emit_lib_Makefile_am): New functions.
124184         (func_import): New function, extracted from big case statement. Use
124185         func_get_license, func_modules_transitive_closure,
124186         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124187         opt_lgpl. Don't use test -a, as it's not portable.
124188         (func_create_testdir): Use func_modules_transitive_closure,
124189         func_modules_to_filelist, func_emit_lib_Makefile_am.
124191 2004-10-15  Bruno Haible  <bruno@clisp.org>
124193         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124195 2004-10-15  Bruno Haible  <bruno@clisp.org>
124197         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124198         the portions belonging to each module.
124199         Suggested by Derek Robert Price <derek@ximbiot.com>.
124201 2004-10-12  Simon Josefsson  <jas@extundo.com>
124203         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124204         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124205         to real functions.
124207 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124209         * modules/vsnprintf: New file.
124211 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124213         * m4/vsnprintf.m4: New file.
124215 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124217         * lib/vsnprintf.h: New file.
124218         * lib/vsnprintf.c: New file.
124220 2004-10-11  Bruno Haible  <bruno@clisp.org>
124222         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124223         vsnprintf.
124225 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124227         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124229 2004-10-07  Bruno Haible  <bruno@clisp.org>
124231         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124232         fits into the provided buffer.
124234 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124236         * lib/diacrit.c, diacrit.h: Add GPL notice.
124238         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124239         notice.
124240         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124241         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124242         This avoids a potential constant-folding bug.
124244 2004-10-05  Bruno Haible  <bruno@clisp.org>
124246         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124247         for the declaration of strsep.
124249 2004-10-05  Bruno Haible  <bruno@clisp.org>
124251         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124253 2004-10-04  Simon Josefsson  <jas@extundo.com>
124255         * modules/memmem: New file.
124256         * tests/test-memmem.c: New file.
124257         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124259 2004-10-04  Simon Josefsson  <jas@extundo.com>
124261         * m4/memmem.m4: New file.
124263 2004-10-04  Simon Josefsson  <jas@extundo.com>
124265         * lib/memmem.h: New file.
124266         * lib/memmem.c: New file, taken from glibc.
124268 2004-10-04  Simon Josefsson  <jas@extundo.com>
124270         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124271         '#ifdef USE_UNLOCKED_IO'.
124273 2004-10-04  Simon Josefsson  <jas@extundo.com>
124275         * config/srclist.txt: Add memmem from glibc.
124277 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124279         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124281         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124282         modules/exclude, modules/getdate, modules/getline,
124283         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124284         modules/getusershell, modules/linebuffer, modules/md5,
124285         modules/mountlist, modules/posixtm, modules/readtokens,
124286         modules/readutmp, modules/regex, modules/sha1,
124287         modules/version-etc, modules/yesno:
124288         Remove dependency on unlocked-io.
124290 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124292         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124294         * m4/unlocked-io.m4: Add copyright notice.
124295         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124297 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124299         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124300         * lib/xmalloc.c (xmemdup): Likewise.
124301         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124302         XFREE): Remove these long-obsolescent macros.
124303         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124304         * lib/xstrdup.c: Remove.
124306         * lib/regex.c (re_comp): Cast gettext return value to char *,
124307         Problem reported by Martin Neitzel via Mark D. Baushke.
124309 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124311         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124312         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124313         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124314         regex.c, sha1.c, version-etc.c, yesno.c:
124315         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124316         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124317         the includer's responsibility.
124319         Sync from coreutils.
124321         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124322         points to the start of a string, as the C Standard says the
124323         resulting behavior is undefined.
124325         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124326         simple -> simple_backups, numbered_existing ->
124327         numbered_existing_backups, numbered -> numbered_backups
124328         to avoid shadowing problems.  All uses changed.
124329         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124330         * lib/backupfile.c (check_extension, numbered_backup):
124331         Rename locals to avoid shadowing 'basename'.
124332         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124333         once.
124335         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124336         * lib/.cvsignore: Add getopt.h.
124338 2004-10-04  Bruno Haible  <bruno@clisp.org>
124340         * modules/README: New file.
124341         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124342         not a module.
124344 2004-10-02  Jim Meyering  <jim@meyering.net>
124346         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124348 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124350         * modules/strsep: New file.
124352 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124354         * m4/strsep.m4: New file.
124356 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124358         * lib/strsep.h: New file.
124359         * lib/strsep.c: New file.
124361 2004-10-01  Simon Josefsson  <jas@extundo.com>
124363         * lib/snprintf.c (snprintf): Handle size==0.
124365 2004-10-01  Simon Josefsson  <jas@extundo.com>
124366             Bruno Haible  <bruno@clisp.org>
124368         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124369         (snprintf): Declare 'args'.
124371 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124373         * lib/snprintf.c: Remove comments as to why each header is needed.
124375 2004-10-01  Bruno Haible  <bruno@clisp.org>
124377         * MODULES.html.sh: Add strsep.
124379 2004-09-30  Simon Josefsson  <jas@extundo.com>
124381         * modules/snprintf: New file.
124383 2004-09-30  Simon Josefsson  <jas@extundo.com>
124385         * m4/snprintf.m4: New file.
124387 2004-09-30  Simon Josefsson  <jas@extundo.com>
124389         * lib/snprintf.h, lib/snprintf.c: New files.
124391 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124393         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124394         (hol_entry_help): Never translate an empty string.
124395         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124396         * lib/argp.h (OPTION_NO_TRANS): New option.
124398 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124400         * modules/argp (Maintainer): Replace Simon Josefsson
124401         by Sergey Poznyakoff.
124403 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124405         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124406         changes merged back into glibc.
124408 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124410         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124412 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124414         * lib/xvasprintf.c: Include xalloc.h.
124415         (xvasprintf): Use xalloc_die, not xmalloc_die.
124417 2004-09-29  Bruno Haible  <bruno@clisp.org>
124419         * modules/alloca-opt: New file, derived from modules/alloca.
124420         * modules/allocsa: Depend on alloca-opt instead of alloca.
124421         * modules/setenv: Likewise.
124422         * modules/vasnprintf: Likewise.
124423         * MODULES.html.sh: Add alloca-opt.
124425 2004-09-28  Simon Josefsson  <jas@extundo.com>
124427         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124428         LGPL, and to replace license template from GPL to LGPL.
124430 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124432         * modules/dummy: Change license to LGPL.
124434 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124436         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124438 2004-09-24  Simon Josefsson  <jas@extundo.com>
124440         * modules/minmax (License): Change from GPL to LGPL.
124442 2004-09-23  Simon Josefsson  <jas@extundo.com>
124444         * gnulib-tool (--import): Typo.
124446 2004-09-23  Simon Josefsson  <jas@extundo.com>
124448         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124450 2004-09-22  Bruno Haible  <bruno@clisp.org>
124452         * modules/*: Add 'License' field.
124453         * gnulib-tool: Accept --extract-license option.
124454         (func_get_license): New function.
124456 2004-09-21  Bruno Haible  <bruno@clisp.org>
124458         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124459         Reported by Simon Josefsson.
124461 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124463         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124464         gl_AC_TYPE_LONG_LONG.
124466 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124468         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124470 2004-09-18  Simon Josefsson  <jas@extundo.com>
124471         and  Paul Eggert  <eggert@cs.ucla.edu>
124473         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124474         calls with autoreconf.  Define GL_LIB.
124476 2004-09-14  Karl Berry  <karl@gnu.org>
124478         * config/srclist.txt: unsync setenv.c, sigh.
124480 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124482         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124483         Problem reported by Bruno Haible in:
124484         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124486 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124488         * config/srclist.txt: Comment out argp-pvh.c.
124490 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124492         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124493         in case some system header has #define'd it.  Problem reported by
124494         Soeren D. Schulze in
124495         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124497 2004-09-09  Karl Berry  <karl@gnu.org>
124499         * regex.[ch]: delete from the root.  These were supposed to be
124500                 synced with emacs cvs, but this has not happened for about
124501                 a year, and anyway nothing else uses emacs regex.[ch].
124502                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124503                 lib/regex[.ch] is untouched.
124505 2004-09-09  Bruno Haible  <bruno@clisp.org>
124507         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124509 2004-09-09  Bruno Haible  <bruno@clisp.org>
124511         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124512         modifications.
124513         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124515 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124517         * modules/xvasprintf: New file.
124518         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124520 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124522         * lib/xvasprintf.h: New file.
124523         * lib/xvasprintf.c: New file.
124524         * lib/xasprintf.c: New file.
124526 2004-09-08  Bruno Haible  <bruno@clisp.org>
124528         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124530 2004-09-08  Bruno Haible  <bruno@clisp.org>
124532         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124533         length is > INT_MAX.
124534         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124535         more.
124537 2004-09-08  Bruno Haible  <bruno@clisp.org>
124539         * lib/stdint_.h: New file, taken from GNU clisp.
124541 2004-09-08  Bruno Haible  <bruno@clisp.org>
124542             Oskar Liljeblad  <oskar@osk.mine.nu>
124544         * modules/stdint: New file.
124545         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124547 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124549         Import from coreutils.
124550         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124551         strings on unbounded length.  alloca's performance benefits aren't
124552         that important here.
124553         (V_STRDUP): Remove.
124554         (parse_with_separator): New function, with most of the internals
124555         of the old parse_user_spec.  Allow user to omit both user and group,
124556         for compatibility with FreeBSD.
124557         Clone only the user name, not the entire spec.
124558         Do not set *uid, *gid unless entirely successful.
124559         Avoid memory leak in some failing cases.
124560         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124561         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124562         (parse_user_spec): Rewrite to use parse_with_separator.
124564 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124566         * modules/userspec: Don't depend on alloca.
124568 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124570         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124572 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124574         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124575         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124576         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124578 2004-08-16  Simon Josefsson  <jas@extundo.com>
124580         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124581         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124582         Add --dry-run for --import.
124583         Let user provided command line parameters override configure.ac
124584         settings.
124586 2004-08-12  Simon Josefsson  <jas@extundo.com>
124588         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124589         as discussed with Paul Eggert in threads rooted at
124590         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124591         and
124592         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124593         Before, the test was empty, and relied on ELIDE_CODE in source
124594         code.)
124595         (gl_PREREQ_GETOPT): New macro.
124596         (gl_GETOPT): Use them.
124598 2004-08-12  Simon Josefsson  <jas@extundo.com>
124600         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124601         * lib/getopt_.h: Renamed from getopt.h.
124603 2004-08-12  Simon Josefsson  <jas@extundo.com>
124605         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124606         Change default library name from libfoo to libgnu.
124607         Now, if you have a configure.ac that says:
124608                 gl_SOURCE_BASE(gl)
124609                 gl_M4_BASE(gl/m4)
124610                 gl_MODULES(error getopt etcetera)
124611                 gl_INIT
124612         you can import all you need by running:
124613                 ../gnulib/gnulib-tool --import
124615         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124616         (Makefile.am): Rewrite, use logic from argz.
124617         (Include): Use <getopt.h> instead of "getopt.h".
124619 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124621         * modules/argp (Files): Add m4/unlocked-io.m4.
124622         (Depends-on): Add extensions.
124624 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124626         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124627         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124628         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124629         Check for program_invocation_name, program_invocation_short_name,
124630         flockfile, funlockfile, features.h, _getopt_long_only_r.
124632 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124634         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124635         its complicated substitute.
124636         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124637         and program_invocation_name.
124638         (__argp_basename) [!_LIBC]: Remove; the only use was
124639         replaced by its body.
124640         (__argp_short_program_name): Change condition from
124641         !defined __argp_short_program_name to
124642         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124643         to match argp-namefrob.h.
124644         (__argp_failure): Don't assume strerror_r returns char *.
124645         * lib/argp-parse.c (N_): Define unconditionally.
124646         (argp_default_options): Fill out initializers with 0 to avoid
124647         gcc warnings.
124649 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124651         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124652         getopt1.c.
124654 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124656         Merge from coreutils.
124658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124660         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124661         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124663 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124665         Merge from coreutils.
124667         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124668         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124669         for Reliant Unix 5.43.
124671         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124672         (union fooround): Use uintmax_t, not long int.
124673         The rest is a merge from libc:
124674         [defined _LIBC]: Include <shlib-compat.h>.
124675         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124677         * lib/settime.c (settime): Recode to avoid warning with
124678         Sun Forte C 6U2.
124680         * lib/strverscmp.c: Convert to UTF-8.
124682 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124684         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124685         m4/uintmax_t.m4.
124687 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124689         * modules/xalloc-die: New file.
124690         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124692         * modules/md5 (Files): Add m4/uint32_t.m4.
124693         * modules/sha1: Renamed from modules/sha.
124694         (Files):
124695         Rename lib/sha.h to lib/sha1.h.
124696         Rename lib/sha.c to lib/sha1.c.
124697         Rename m4/sha.m4 to m4/sha1.m4.
124698         (lib_SOURCES): Likewise.
124699         (configure.ac): Rename gl_SHA to gl_SHA1.
124700         (Include): sha.h -> sha1.h.
124702 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124704         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124705         * m4/sha1.m4: Renamed from sha.m4.
124706         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124708 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124710         * lib/obstack.h (obstack_empty_p):
124711         Don't assume that chunk->contents is suitably aligned.
124712         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124713         Likewise. Problem reported by Benno in
124714         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124716         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124717         readable.  This could be improved further but it'd take some work.
124719 2004-08-08  Simon Josefsson  <jas@extundo.com>
124721         * modules/xgethostname (Depends-on): Remove exit and error (not
124722         used).
124724         * modules/getpass-gnu: Add getpass.h.
124725         (Depends-on): Add stdbool.
124726         * modules/getpass: Add getpass.h.
124728 2004-08-08  Simon Josefsson  <jas@extundo.com>
124730         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124731         Check getpass declaration.
124733 2004-08-08  Simon Josefsson  <jas@extundo.com>
124735         * lib/xgethostname.c: Don't include error.h (not used).
124737         * lib/getpass.h: Add.
124738         * lib/getpass.c: Include getpass.h first.
124740 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124742         * lib/xalloc-die.c: New file.
124743         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124744         All uses removed.
124745         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124746         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124747         xalloc-die.c.
124748         (_, N_, xalloc_die): Move to xalloc-die.c.
124749         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124750         so that we needn't mess with xalloc_msg_memory_exhausted.
124752         * lib/sha1.h: Renamed from sha.h.
124753         (SHA1_H): Renamed from _SHA_H.
124754         (sha1_ctx): Renamed from sha_ctx.
124755         (sha1_init_ctx): Renamed from sha_init_ctx.
124756         (sha1_process_block): Renamed from sha_process_block.
124757         (sha1_process_bytes): Renamed from sha_process_bytes.
124758         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124759         (sha1_read_ctx): Renamed from sha_read_ctx.
124760         (sha1_stream): Renamed from sha_stream.
124761         (sha1_buffer): Renamed from sha_buffer.
124762         * lib/sha1.c: Likewise; renamed from sha.c.
124763         Do not include <sys/types.h>.
124764         Include <stddef.h> rather than <stdlib.h>.
124766 2004-08-08  Bruno Haible  <bruno@clisp.org>
124768         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124769         FILESYSTEM_PREFIX_LEN.
124770         * lib/progreloc.c: Likewise.
124771         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124773 2004-08-06  Simon Josefsson  <jas@extundo.com>
124775         * modules/progname (Depends-on): Don't depend on stdbool.
124777 2004-08-06  Simon Josefsson  <jas@extundo.com>
124779         * modules/getsubopt: New file.
124780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124781         getsubopt.
124783 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124785         More merge from coreutils.
124787         * m4/utimens.m4, m4/utimecmp.m4: New files.
124788         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124789         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124790         prereq.m4, sha.m4: Import changes from coreutils.
124792 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124794         More merge from coreutils.
124795         * modules/raise, modules/readtokens0, modules/utimens:
124796         * modules/utimecmp, module/xnanosleep: New files.
124797         * modules/strftime: Add lib/strftime.h.
124798         Change include from <time.h> to "strftime.h".
124799         * modules/yesno: Add lib/yesno.h.
124800         * modules/backupfile: Remove lib/addext.c.
124801         * modules/euidaccess: Add stat-macros.h.
124802         * modules/canonicalize, modules/euidaccess,
124803         modules/filemode, modules/lchown, modules/makepath,
124804         modules/rmdir, modules/stat: Likewise.
124806 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124808         Merge from tar.
124809         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124810         SIZE_MAX is a valid preprocessor constant.
124811         (__argp_basename): Change from "#ifndef _LIBC"
124812         to "#ifndef __argp_short_program_name", so that
124813         we don't compile these functions for tar.
124815         More merges from coreutils.
124816         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124817         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124818         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124819         * lib/addext.c: Remove; no longer needed.
124820         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124821         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124822         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124823         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124824         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124825         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124826         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124827         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124828         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124829         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124830         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124831         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124832         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124833         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124834         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124835         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124836         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124837         Import changes from coreutils.
124839 2004-08-05  Simon Josefsson  <jas@extundo.com>
124841         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124843 2004-08-05  Simon Josefsson  <jas@extundo.com>
124845         * m4/getsubopt.m4: New file.
124847 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124849         Merge from coreutils.
124851         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124852         * m4/getcwd-path-max.m4: New files.
124854         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124855         FILESYSTEM_PREFIX_LEN ->
124856         FILE_SYSTEM_PREFIX_LEN.
124857         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124858         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124859         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124860         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124862         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124863         prerequisite modules now handle the DOS stuff.
124864         Don't check for unistd.h.
124866 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124868         Merge from coreutils.
124870         * lib/.gdb-history: Remove; this doesn't belong here.
124872         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124873         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124874         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124875         * lib/getcwd.c: New files.
124877         * lib/dirname.h: Include <stdbool.h>.
124878         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124879         for consistency with POSIX terminology.  All uses changed.
124880         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124881         (strip_trailing_slashes): Use bool for booleans.
124882         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124884         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124885         sometimes returns a positive errno value even when it succeeds.
124886         (print_errno_message) [!LIBC]: Fall back on strerror if
124887         __strerror_r fails.
124889         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124890         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124891         (longest_relative_suffix): New function.
124892         (path_concat): Use it.  Assume first argument is not NULL.
124893         Port to DOS.  Omit redundant separators.
124894         Report an error instead of returning NULL.
124895         Use mempcpy instead of memcpy.
124896         (xpath_concat): Remove: not declared or used.
124898         * lib/same.h: Include <stdbool.h>
124899         (same_name): Return bool, not int.
124900         * lib/same.c (same_name): Likewise.
124901         (errno): Don't declare; we assume C89 or better now.
124903         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124904         if not already defined.
124906         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124907         * lib/dup-safer.c (errno): Likewise.
124909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124911         Merge from coreutils.
124912         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124913         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124914         * modules/path-concat: Don't depend on strdup.
124916 2004-08-03  Simon Josefsson  <jas@extundo.com>
124918         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124919         * lib/progname.h: Don't include stdbool.h.
124921 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124923         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124924         * MODULES.html.sh (func_all_modules): Remove fatal.
124926 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124928         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124930 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124932         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124933         working.
124935 2004-08-02  Simon Josefsson  <jas@extundo.com>
124937         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124938         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124939         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124941 2004-08-01  Simon Josefsson  <jas@extundo.com>
124943         * lib/xgetdomainname.c: Include stdlib.h, for free().
124945 2004-07-19  Bruno Haible  <bruno@clisp.org>
124947         * MODULES.html.sh (func_all_modules): Add dummy.
124949 2004-07-16  Simon Josefsson  <jas@extundo.com>
124951         * modules/dummy: New file.
124953 2004-07-16  Simon Josefsson  <jas@extundo.com>
124955         * lib/dummy.c: New file.
124957 2004-07-16  Bruno Haible  <bruno@clisp.org>
124959         * lib/backupfile.h: Add extern "C" for C++.
124960         * lib/closeout.h: Likewise.
124961         * lib/copy-file.h: Likewise.
124962         * lib/findprog.h: Likewise.
124963         * lib/full-write.h: Likewise.
124964         * lib/pathname.h: Likewise.
124965         * lib/progname.h: Likewise.
124966         * lib/stpcpy.h: Likewise.
124967         * lib/stpncpy.h: Likewise.
124968         * lib/strcase.h: Likewise.
124969         * lib/strstr.h: Likewise.
124970         * lib/xalloc.h: Likewise.
124972         * lib/mbswidth.h: Add extern "C" for C++.
124973         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124975 2004-07-13  Robert Millan  <robertmh@gnu.org>
124977         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124979 2004-07-09  Simon Josefsson  <jas@extundo.com>
124981         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124982         failed without this.)
124984 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124986         * modules/chown (Files): Add lib/fchown-stub.c, since
124987         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124989 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124991         * lib/fchown-stub.c: New file.
124993 2004-06-24  Jim Meyering  <jim@meyering.net>
124995         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124997 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124999         * modules/argz: Omit "#include".
125001         * MODULES.html.sh (func_all_modules): Add calloc, to match
125002         2004-06-01 addition of calloc module.
125004 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125006         * m4/argz.m4: New file, which is autoupdated from libtool.
125008 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125010         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125011         libtool.
125013 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125015         * config/srclist-update: Don't insist on "USA." before the
125016         close-comment, as libtool omits the period and puts the */ on a
125017         separate line.
125018         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125019         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125021 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125023         * modules/argz: New file.
125024         * MODULES.html.sh (func_all_modules): Add argz.
125026 2004-06-12  Jim Meyering  <jim@meyering.net>
125027         and  Paul Eggert  <eggert@cs.ucla.edu>
125029         * modules/hash (Files): Add lib/xalloc.h.
125030         * modules/pipe (Depends-on): Add wait-process.
125031         * modules/stat (Depends-on): Add xalloc.
125032         * modules/userspec (Files): Add lib/userspec.h.
125033         * modules/xstrto
125035         Upgrade from gettext-0.13.
125036         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125037         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125038         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125040 2004-06-10  Jim Meyering  <jim@meyering.net>
125042         * lib/calloc.c: New file.
125044 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125046         * lib/getdate.y (yylex): Allow space between sign and number.
125047         Problem reported by Dan Jacobson.
125049 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125051         Merge from coreutils CVS.
125053         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125054         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125055         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125056         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125057         xstrtol.m4: Fix copyright date and/or serial number.
125059         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125060         See if we need an fchown replacement.
125061         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125062         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125063         and use the replacement function if we detect either defect.
125065         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125066         gl_UTIMECMP.
125068 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125069         and  Jim Meyering  <jim@meyering.net>
125071         Merge from coreutils CVS.
125073         * lib/stat-macros.h: New file, with contents from file-type.h
125074         and coreutils' system.h.
125075         * lib/file-type.c: Include "stat-macros.h".
125076         * lib/file-type.h (file_type): Move all macro definitions to new file,
125077         stat-macros.h.
125079         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125080         Wrap old code with this conditional.
125081         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125082         function that does not dereference symlinks.
125083         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125085         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125086         dependency problems.
125087         (xreadlink): Accept new arg SIZE, for efficiency.
125088         All decls and uses changed.
125089         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125091         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125092         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125094         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125095         sysexits.h.
125097 2004-06-01  Jim Meyering  <jim@meyering.net>
125099         * m4/calloc.m4: New file.
125101 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125104         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125105         Also, fix a typo in a diagnostic.
125107 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125109         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125110         or AC_FUNC_REALLOC.
125112 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125114         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125115         macros to be defined.
125116         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125117         the allocator returns NULL because the requested size is zero.
125119 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125121         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125122         var.  Add comment explaining why libc still defines it.  This
125123         merges the following patch from glibc:
125124         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125126 2004-05-20  Andreas Schwab  <schwab@suse.de>
125128         * m4/free.m4: Replace free if it not known to work, not the other
125129         way round.
125131 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125133         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125134         present in glibc since revision 1.1 of this file.
125135         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125136         obstack_alignment_mask, obstack_alloc, obstack_base,
125137         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125138         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125139         obstack_grow0, obstack_init, obstack_int_grow,
125140         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125141         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125142         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125143         nonexistent functions.
125145 2004-05-18  Karl Berry  <karl@gnu.org>
125147         * config/srclist.txt: break link for vasnprintf.c.
125149 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125151         Port obstack to the AS/400, where pointers are 16 bytes wide and
125152         you cannot cast an integer to a valid pointer.  This patch is
125153         currently waiting to be integrated into glibc; see
125154         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125156         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125157         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125158         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125159         (struct obstack): temp member is now a union of a pointer and
125160         an integer, instead of an integer.  All integer uses changed.
125161         This does not affect the physical layout of struct obstack,
125162         except on hosts (like the AS/400) where the size or alignment of
125163         void * is greater than that of ptrdiff_t.
125164         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125165         __STDC__)]: Store temporary in pointer member of union, not
125166         integer member.
125167         * lib/obstack.c: Include <stddef.h>, for offsetof.
125168         (struct fooalign): Remove; it doesn't need a name.
125169         (union fooround): Change double to long double, and add void *.
125170         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125171         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125172         not a macro.  Hence the values are always int; so remove all
125173         casts-to-int in uses.
125175 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125177         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125178         we can get this patch merged into glibc.
125180 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125181             Paul Eggert  <eggert@cs.ucla.edu>
125183         * m4/argp: Depend on alloca.
125185 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125186             Paul Eggert  <eggert@cs.ucla.edu>
125188         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125189         freecoding.
125191 2004-05-17  Bruno Haible  <bruno@clisp.org>
125193         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125194         precision that consists of a '.' followed by an empty digit string.
125195         Patch by Tor Lillqvist <tml@iki.fi>.
125197 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125200         for backward compatibility with older code.  We need our own
125201         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125202         it under some other name, and our alloca.h will define it.
125204 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125205             Derek Price  <derek@ximbiot.com>
125207         * lib/alloca.c: Include <alloca.h>, to get our interface.
125208         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125209         include <alloca.h> first.  Use C89 prototype for alloca; this
125210         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125211         Use #elif for simplicity, since we can assume C89 now.
125212         Don't try to source the system alloca.h since it will not be found
125213         and to prevent recursively including its replacement.
125214         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125215         * lib/regex.c: Likewise.
125217 2004-05-16  Derek Price  <derek@ximbiot.com>
125218             Paul Eggert  <eggert@cs.ucla.edu>
125220         getline cleanup.  This changes the getndelim2 API: both order of
125221         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125222         no delimiter).
125224         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125225         interface does that.
125226         (getline): Always use getdelim, so that we don't have two
125227         copies of this code.
125228         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125229         if available.
125230         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125231         (GETNDELIM2_MAXIMUM): New macro.
125232         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125233         instead of the old practice of delim2==0.  All callers changed.
125234         Return -1 on overflow, instead of returning junk.
125235         Do not set *linesize unless allocation succeeds.
125236         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125237         that we include sys/types.h.
125238         * lib/getnline.h: Likewise.
125239         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125240         (getndelim2): Reorder arguments.
125241         * lib/getnline.c (getnline, getndelim):
125242         Don't discard the NMAX argument.
125243         (getnline): Invoke getndelim, to avoid code duplication.
125244         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125245         of (size_t) -1 by callers of the getnline family.
125247 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125249         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125250         Check for gettimeofday.
125251         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125252         Check for settimeofday, stime.
125254 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125256         * lib/nanosleep.c (suspended): Change its type from int to
125257         sig_atomic_t volatile.
125258         (first_call): Make it private to rpl_nanosleep, and have it
125259         be zero initially as that's a bit faster.
125260         (my_usleep): Round up fractional times instead of truncating them,
125261         as this is the usual meaning for 'sleep'.
125263         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125264         doesn't work.
125265         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125266         (ENOSYS): Define if not defined.
125267         (settime): Fall back on stime if it exists and settimeofday fails.
125268         But don't bother with fallbacks if a method fails with errno == EPERM.
125270 2004-05-11  Jim Meyering  <jim@meyering.net>
125272         Prior to this change, the save_cwd caller required read access to the
125273         current directory on most systems (ones with the fchdir function).
125275         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125276         fails, try write-only, and finally, resort to using xgetcwd.
125278 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125280         * lib/obstack.c, obstack.h: Import changes from libc.
125282 2004-04-28  Bruno Haible  <bruno@clisp.org>
125284         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125285         also implicitly appends .exe to executables.
125286         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125287         accepts Windows pathnames.
125288         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125289         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125290         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125291         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125292         Reported by Derek Robert Price <derek@ximbiot.com>.
125294 2004-04-21  Karl Berry  <karl@gnu.org>
125296         * config/srclist.txt (localcharset.c): break sync.
125298 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125300         * m4/host-os.m4: Add a copyright notice.
125302 2004-04-20  Jim Meyering  <jim@meyering.net>
125304         Change UTILS_ to gl_ in AC_DEFINE'd names.
125305         Change utils_- and jm_-prefixed variables, too.
125306         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125307         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125310         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125311         Don't emit trailing blanks.
125312         Also rename jm_-prefixed variables to have gl_ prefix.
125314         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125315         Also rename jm_-prefixed variables to have gl_ prefix.
125317         * m4/jm-macros.m4: Reflect the renamings.
125318         * m4/prereq.m4: Likewise.
125320 2004-04-20  Jim Meyering  <jim@meyering.net>
125322         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125323         memory.
125325 2004-04-20  Jim Meyering  <jim@meyering.net>
125326             Bruno Haible  <bruno@clisp.org>
125328         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125329         memory when realloc fails.
125331 2004-04-19  Jim Meyering  <jim@meyering.net>
125333         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125334         now that readutmp.c may call `free (0)'.
125336 2004-04-19  Bruno Haible  <bruno@clisp.org>
125338         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125339         * m4/inttypes_h.m4: Likewise.
125340         * m4/stdint_h.m4: Likewise.
125341         * m4/intmax_t.m4: Likewise.
125342         * m4/uintmax_t.m4: Likewise.
125344 2004-04-18  Jim Meyering  <jim@meyering.net>
125346         * m4/prereq.m4: Don't forbid jm_ prefix.
125348         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125349         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125350         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125351         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125352         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125353         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125354         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125355         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125356         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125357         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125358         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125359         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125360         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125361         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125362         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125363         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125364         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125365         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125366         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125368 2004-04-18  Jim Meyering  <jim@meyering.net>
125370         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125371         failure, don't leak memory and do call END_UTMP_ENT.
125373 2004-04-16  Jim Meyering  <jim@meyering.net>
125375         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125376         coreutils' stat program.
125377         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125379 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125381         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125382         C89.
125383         (CHAR_BIT): Remove, since we assume C89.
125384         Include <stdint.h> if available, as per current Autoconf CVS advice.
125386 2004-03-31  Jim Meyering  <jim@meyering.net>
125388         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125389         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125390         * m4/xalloc.m4: Likewise.
125392 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125394         Merge from coreutils.
125396         * m4/inttostr.m4: New file.
125397         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125398         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125399         Require gl_CLOCK_TIME.
125400         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125402 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125404         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125405         not bool, to be more consistent with Unix conventions.
125406         Suggested by Bruno Haible.
125408         Merge from coreutils.
125410         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125411         * lib/umaxtostr.c: New files.
125413         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125414         the usual <time.h> dance.
125415         (get_date): Change signature to support fractional time stamps.
125416         All callers changed.
125417         * lib/getdate.y: Include "getdate.h" first, as we can now
125418         assume C89 and don't need to worry about 'const'.
125419         Similarly, include "unlocked-io.h" near start, not in middle.
125420         Include <limits.h>.
125421         (textint.value): Use long int rather than int.
125422         (textint.digits): Use size_t rather than int.
125423         (BILLION, LOG10_BILLION): New constants.
125424         (parser_control): New member rel_ns.  Members day_ordinal,
125425         time_zone, month, day, hour, minutes, rel_year, rel_month,
125426         rel_day, rel_hour, rel_minutes, rel_seconds
125427         are now long int, not int.  Member seconds is now struct timespec,
125428         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125429         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125430         not int.
125431         (%union.intval): Now long int, not int.
125432         New member timespec.
125433         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125434         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125435         (spec): Now is a timespec or an item list.
125436         (timespec, items): New nonterminals.
125437         (time, rel, relunit, number, get_date):
125438         Add support for fractional seconds.
125439         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125440         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125441         (to_hour): First arg is now long int, not int.
125442         (to_year): Returns long int, not int.
125443         Don't treat year -70 like 70.
125444         (tm_diff): Returns long int, not int.
125445         (lookup_word): Use bool instead of int when appropriate.
125446         (yylex): Use size_t for count, not int.
125447         Detect overflow when parsing large integer constants.
125448         Add support for fractions.
125449         (get_date): Make pointers 'const' if possible.
125450         Use more-portable code to detect integer overflow.
125451         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125452         Don't use ctime; it's not reliable if the year has >4 digits.
125454         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125455         This is for compatibility with BSD.
125457         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125458         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125459         From coreutils' system.h.
125461         * lib/userspec.c: Don't include "posixver.h".
125462         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125463         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125464         compatible extension.  Simplify code by removing a boolean int
125465         that was always nonzero if a string was nonnull.
125467 2004-03-30  Jim Meyering  <jim@meyering.net>
125469         Merge from coreutils.
125471         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125472         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125473         on some systems one must include <grp.h> before it.
125474         Reported by Christian Krackowizer.
125476 2004-03-30  Jim Meyering  <jim@meyering.net>
125478         Merge from coreutils.
125480         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125482         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125483         an empty input stream.
125485         * lib/readtokens.c: Include <stdbool.h>.
125486         (readtoken): Use `size_t' rather than int/long.
125487         All callers adjusted.
125488         Use `bool' rather than `int' where appropriate.
125489         Use memset rather than an explicit loop.
125490         Use x2nrealloc rather than xrealloc.
125491         Allow the use of `\0' as a delimiter.
125492         (readtokens): Likewise.
125493         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125495 2004-03-30  Jim Meyering  <jim@meyering.net>
125497         * m4/realloc.m4: Remove file, since now it does no more than
125498         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125499         the `configure.ac' section of module/realloc.
125500         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125502 2004-03-30  Bruno Haible  <bruno@clisp.org>
125504         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125505         nonnull.
125507 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125509         Merge changes to getloadavg.c from coreutils and Emacs.
125511         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125512         Define to an expression, not to the empty string.
125513         Include cloexec.h and xalloc.h.
125514         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125515         Use set_cloexec_flag rather than rolling our own.
125516         * lib/cloexec.c, lib/cloexec.h: New files.
125518 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125520         * m4/cloexec.m4: New file.
125522 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125524         * lib/getopt.h: Sync with libc CVS.
125526 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125527             Bruno Haible  <bruno@clisp.org>
125529         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125530         mbswidth.
125532 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125533             Bruno Haible  <bruno@clisp.org>
125535         * lib/mbswidth.h: Include <wchar.h> only if
125536         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125537         <wchar.h>.
125538         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125540 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125542         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125543         Sync with libc CVS.
125544         * lib/getopt_int.h: New file, also synced from libc.
125546 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125548         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125549         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125550         Bring back getopt.c, getopt.h, getopt1.c.
125552 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125554         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125555         All uses changed.  Check for sa_sigaction member; this fixes
125556         a bug first reported by Jason Andrade in
125557         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125559 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125561         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125562         '#if' expressions.  Unlike the code it replaces, it does not
125563         depend on (defined _SC_PAGESIZE).  However, it does depend on
125564         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125565         first reported by Jason Andrade in
125566         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125568 2004-02-25  Simon Josefsson  <jas@extundo.com>
125570         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125572 2004-02-25  Simon Josefsson  <jas@extundo.com>
125574         * lib/strdup.h: New file.
125575         * lib/strdup.c: Include it.
125576         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125577         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125579 2004-02-23  Karl Berry  <karl@gnu.org>
125581         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125582         (from fencepost.gnu.org:/gd/gnuorg).
125584 2004-02-23  Karl Berry  <karl@gnu.org>
125586         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125587         * config/srclist.txt: add maintain/standards documents.
125589 2004-02-18  Bruno Haible  <bruno@clisp.org>
125591         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125592         Reported by Derek Robert Price <derek@ximbiot.com>.
125594 2004-02-16  Karl Berry  <karl@gnu.org>
125596         * config/mkinstalldirs, install-sh: update from automake.
125598 2004-02-06  Karl Berry  <karl@gnu.org>
125600         * m4/po.m4: update from gettext 0.14.1.
125602 2004-02-06  Karl Berry  <karl@gnu.org>
125604         * lib/config.charset: update from gettext 0.14.1.
125606 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125608         Add comments and code, prompted by suggestions from Bruno Haible
125609         for sh-quote.
125610         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125611         describing the enum quoting_style values.
125612         * lib/quotearg.c (quotearg_alloc): New function.
125613         (quotearg_buffer_restyled): Treat lone { and } as special.
125614         Treat = as special.  Work around bug with older shells
125615         that "see" a '\' that is really the 2nd byte of a multibyte char.
125616         Quote empty string with shell_quoting_style.
125618 2004-02-03  Bruno Haible  <bruno@clisp.org>
125620         * m4/pipe.m4: New file, from GNU gettext.
125622 2004-02-03  Bruno Haible  <bruno@clisp.org>
125624         * lib/pipe.h: New file, from GNU gettext.
125625         * lib/pipe.c: New file, from GNU gettext.
125627 2004-01-27  Bruno Haible  <bruno@clisp.org>
125629         * m4/execute.m4: New file, from GNU gettext.
125631 2004-01-27  Bruno Haible  <bruno@clisp.org>
125633         * lib/execute.h: New file, from GNU gettext.
125634         * lib/execute.c: New file, from GNU gettext.
125635         * lib/w32spawn.h: New file, from GNU gettext.
125637 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125639         Merge from diffutils.
125641         * lib/file-type.c (file_type): Add typed memory objects.
125642         * lib/file-type.h (S_TYPEISTMO): New macro.
125644         * lib/c-stack.h (c_stack_action): Remove argv argument.
125645         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125646         (die): Don't calculate message unless segv_action returns.
125647         (get_stack_location, min_address_from_argv, max_address_from_argv,
125648         volatile stack_base, volatile_stack_size): Remove.
125649         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125650         that every segmentation violation is a stack overflow.  (Ouch!)
125651         See Debian bug 136249 (still outstanding) for more info about why
125652         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125654 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125656         Exit-status fix from coreutils.
125658         Use exit_failure consistently in place of EXIT_FAILURE,
125659         so that program exit statuses are consistent on failure.
125661         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125662         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125663         * lib/argmatch.h: Comment fix to match the above.
125664         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125665         Now a macro referring to exit_failure, instead of a separate
125666         variable.  Include "exitfail.h" to get it.
125667         * lib/xstrtol.h: Include "exitfail.h".
125668         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125670         * lib/long-options.c (parse_long_options): Use prototype
125671         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125672         for clarity.
125674 2004-01-21  Jim Meyering  <jim@meyering.net>
125676         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125677         so as not to conflict with a different-sized __mktime_internal
125678         function in GNU libc.
125679         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125680         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125682 2004-01-20  Karl Berry  <karl@gnu.org>
125684         * config/config.guess: update from config.
125686         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125688 2004-01-20  Bruno Haible  <bruno@clisp.org>
125690         Safer stack allocation.
125691         * lib/setenv.c: Include allocsa.h.
125692         (alloca): Remove fallback definition.
125693         (freea): Remove macro.
125694         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125695         instead of freea.
125697 2004-01-20  Bruno Haible  <bruno@clisp.org>
125699         * m4/eealloc.m4: New file, from GNU gettext.
125701 2004-01-20  Bruno Haible  <bruno@clisp.org>
125703         * m4/allocsa.m4: New file, from GNU gettext.
125705 2004-01-20  Bruno Haible  <bruno@clisp.org>
125707         * lib/xallocsa.h: New file, from GNU gettext.
125708         * lib/xallocsa.c: New file, from GNU gettext.
125710 2004-01-20  Bruno Haible  <bruno@clisp.org>
125712         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125714 2004-01-20  Bruno Haible  <bruno@clisp.org>
125716         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125717         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125718         specially.
125720 2004-01-20  Bruno Haible  <bruno@clisp.org>
125722         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125723         patch.
125725 2004-01-20  Bruno Haible  <bruno@clisp.org>
125727         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125729 2004-01-20  Bruno Haible  <bruno@clisp.org>
125731         * lib/eealloc.h: New file.
125733 2004-01-20  Bruno Haible  <bruno@clisp.org>
125735         * lib/binary-io.h: Avoid warnings on Cygwin.
125737 2004-01-20  Bruno Haible  <bruno@clisp.org>
125739         * lib/allocsa.h: New file, from GNU gettext.
125740         * lib/allocsa.c: New file, from GNU gettext.
125742 2004-01-18  Karl Berry  <karl@gnu.org>
125744         * doc/gpl.texi, doc/lgpl.texi: new files.
125746 2004-01-18  Karl Berry  <karl@gnu.org>
125748         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125749         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125751 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125753         Merge from coreutils.
125755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125756         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125757         (gl_DEFAULT_POSIX2_VERSION): Move
125758         the documentation from 'configure' into 'config.hin',
125759         so that 'configure --help' isn't burdened by it and
125760         we don't have to worry about its formatting there.
125761         Reword the documentation so that it's more succinct
125762         and can be run together into a single paragraph.
125763         * m4/same.m4 (gl_SAME): Check for pathconf.
125765 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125767         Merge from coreutils.
125769         * lib/posixver.c: Include posixver.h.
125771         * lib/same.c: Include <stdbool.h>, <limits.h>.
125772         (_POSIX_NAME_MAX): Define if not defined.
125773         (MIN): New macro.
125774         (same_name): If file names are silently truncated, report
125775         that the file names are the same if they are the same after
125776         the silent truncation.
125778         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125779         conversion function.
125780         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125781         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125782         longer needed.
125784 2004-01-15  Jim Meyering  <jim@meyering.net>
125786         Merge from coreutils.
125788         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125789         if no library is required.
125790         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125791         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125792         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125793         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125794         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125795         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125796         value, $ac_cv_search_crypt, if it's "none required".
125797         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125798         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125799         not gl_FUNC_GETLOADAVG.
125800         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125801         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125803 2004-01-15  Jim Meyering  <jim@meyering.net>
125805         Merge from coreutils.
125807         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125808         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125809         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125811         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125812         optional configure-time default.
125814         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125816         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125818 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125820         Merge from coreutils.
125822         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125823         value, $ac_cv_search_nanosleep, if it's "none required".
125825 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125827         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125828         with like-named macro in fnmatch.c.
125829         (EXT): Use an internal constant instead.
125831         Merge fnmatch patches from glibc.
125832         * lib/fnmatch.c (mbsinit): Remove define.
125833         Add libc_hidden_ver (__fnmatch, fnmatch).
125834         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125835         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125837 2004-01-14  Karl Berry  <karl@gnu.org>
125839         * config/install-sh: update from automake.
125841 2004-01-13  Karl Berry  <karl@gnu.org>
125843         * config/install-sh: update from automake.
125845 2004-01-09  Karl Berry  <karl@gnu.org>
125847         * config/install-sh: update from automake.
125849 2004-01-05  Karl Berry  <karl@gnu.org>
125851         * config/config.{sub,guess}: update from config.
125853 2003-12-31  Karl Berry  <karl@gnu.org>
125855         * config/depcomp: update from automake.
125857 2003-12-14  Karl Berry  <karl@gnu.org>
125859         * lib/config.charset: update from gettext-runtime.
125861 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125863         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125864         Bug reported by Alfred M. Szmidt.
125866 2003-12-03  Bruno Haible  <bruno@clisp.org>
125868         * m4/gettext.m4: Upgrade from gettext-0.13.
125869         * m4/po.m4: Upgrade from gettext-0.13.
125870         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125871         * m4/intmax.m4: New file, from gettext-0.13.
125872         * m4/printf-posix.m4: New file, from gettext-0.13.
125874 2003-11-29  Karl Berry  <karl@gnu.org>
125876         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125878 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125879             Bruno Haible  <bruno@clisp.org>
125881         * lib/printf-parse.h: Don't include sys/types.h.
125882         (ARG_NONE): New macro.
125883         (char_directive): Change type of *arg_index fields to size_t.
125884         * lib/printf-parse.c: Don't include sys/types.h.
125885         (SSIZE_MAX): Remove macro.
125886         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125887         Remove unnecessary overflow check.
125888         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125889         fields.
125891 2003-11-25  Bruno Haible  <bruno@clisp.org>
125893         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125895 2003-11-25  Bruno Haible  <bruno@clisp.org>
125897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125898         gt_TYPE_SSIZE_T.
125900 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125902         * modules/alloca: Remove dependency on xalloc.
125904 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125906         * lib/alloca.c: Remove dependency on xalloc module.
125907         (xalloc_die): Remove.
125908         (memory_full) [!defined emacs]: New macro.
125909         [!defined emacs]: Don't include xalloc.h.
125910         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125911         address arithmetic overflows.  Change datatypes a bit to avoid
125912         unnecessary casts.
125914 2003-11-22  Jim Meyering  <jim@meyering.net>
125916         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125917         s/size/size_t/.
125919 2003-11-21  Karl Berry  <karl@gnu.org>
125921         * config/config.{sub,guess}: update from config.
125923 2003-11-18  Karl Berry  <karl@gnu.org>
125925         * config/config.{sub,guess}: update from config.
125927         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125929 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125931         * README: Mention that S+T cannot overflow if S is the size of
125932         an existing object and T is sufficiently small.
125934 2003-11-17  Jim Meyering  <jim@meyering.net>
125936         On systems without utime and without a utimes function capable of
125937         dealing with a NULL struct utimbuf* argument, this utime replacement
125938         could -- in unusual circumstances -- leak a file descriptor.
125939         * lib/utime.c: Include <unistd.h> and <errno.h>.
125940         (utime_null): Be sure to close `fd' and to preserve errno.
125941         Reported by Geoff Collyer via Arnold Robbins.
125943 2003-11-17  Bruno Haible  <bruno@clisp.org>
125945         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125946         (Depends-on): Add xsize.
125948 2003-11-17  Bruno Haible  <bruno@clisp.org>
125950         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125952 2003-11-17  Bruno Haible  <bruno@clisp.org>
125954         * lib/vasnprintf.c (alloca): Remove fallback definition.
125955         (freea): Remove definition.
125956         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125957         Reported by Paul Eggert.
125959 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125960             Bruno Haible  <bruno@clisp.org>
125962         Protect against address arithmetic overflow.
125963         * lib/printf-args.h: Include stddef.h.
125964         (arguments): Change type of field 'count' to size_t.
125965         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125966         'unsigned int' where appropriate.
125967         * lib/printf-parse.h: Include sys/types.h.
125968         (char_directive): Change type of *arg_index fields to ssize_t.
125969         (char_directives): Change type of fields 'count', max_*_length to
125970         size_t.
125971         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125972         (SSIZE_MAX): Define fallback value.
125973         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125974         instead of 'int' where appropriate. Check a_allocated, d_allocated
125975         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125976         * lib/vasnprintf.c: Include xsize.h.
125977         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125978         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125979         overflow. Avoid wraparound when converting a width or precision from
125980         decimal to binary.
125982 2003-11-16  Bruno Haible  <bruno@clisp.org>
125984         Update from GNU gettext.
125985         * lib/printf-parse.c: Generalize to it can be compiled for wide
125986         strings.
125987         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125988         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125989         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125990         SNPRINTF): New macros.
125991         Don't include <alloca.h> if the file is used inside libintl.
125992         (local_wcslen): New function, for Solaris 2.5.1.
125993         (VASNPRINTF): Use it instead of wcslen.
125995 2003-11-16  Bruno Haible  <bruno@clisp.org>
125997         * lib/xsize.h (xmax): New function.
125998         (xsum, xsum3, xsum4): Declare as "pure" functions.
126000 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126002         * modules/xalloc (Files): Undo latest change, since xalloc.h
126003         no longer needs SIZE_MAX or PTRDIFF_MAX.
126005 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126007         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126008         gl_PTRDIFF_MAX.
126010 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126012         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126013         "return", to pacify some unknown compiler.  Problem reported
126014         by Joerg Schilling.
126016 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126018         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126019         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126020         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126021         heuristic is just as accurate as far as we know, and it removes a
126022         dependency on size_max.m4 and ptrdiff_max.m4.
126024 2003-11-11  Bruno Haible  <bruno@clisp.org>
126026         * modules/xsize (Files): Add m4/size_max.m4.
126027         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126029 2003-11-11  Bruno Haible  <bruno@clisp.org>
126031         * m4/size_max.m4: New file.
126032         * m4/ptrdiff_max.m4: New file.
126033         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126034         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126035         (gl_XALLOC): Invoke it.
126037 2003-11-11  Bruno Haible  <bruno@clisp.org>
126039         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126040         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126041         defined.
126043 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126045         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126046         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126047         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126048         From Bruno Haible.
126049         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126050         not (size_t) -1, since it's defined here.
126052 2003-11-09  Karl Berry  <karl@gnu.org>
126054         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126056 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126058         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126059         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126060         Reject sizes of exactly SIZE_MAX bytes.
126061         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126062         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126064 2003-11-05  Bruno Haible  <bruno@clisp.org>
126066         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126067         SIZE_MAX defined in <limits.h> on Solaris.
126069 2003-11-04  Jim Meyering  <jim@meyering.net>
126071         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126072         variable names, rather than @VAR@.
126073         * modules/poll: Likewise.
126075 2003-11-04  Bruno Haible  <bruno@clisp.org>
126077         * modules/xsize: New file.
126078         * modules/linebreak: Depend on xsize.
126079         * MODULES.html.sh (func_all_modules): Add xsize.
126081 2003-11-04  Bruno Haible  <bruno@clisp.org>
126083         * m4/xsize.m4: New file.
126085 2003-11-04  Bruno Haible  <bruno@clisp.org>
126087         * lib/xsize.h: New file.
126088         * lib/linebreak.c: Include xsize.h.
126089         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126090         argument for overflow.
126091         Suggested by Paul Eggert.
126093 2003-11-03  Karl Berry  <karl@gnu.org>
126095         * config/config.{guess,sub}: update from config.
126097 2003-11-03  Jim Meyering  <jim@meyering.net>
126099         * modules/userspec (lib_SOURCES): Add userspec.h.
126100         (Include): Add "userspec.h".
126101         Improve description.
126103 2003-11-03  Jim Meyering  <jim@meyering.net>
126105         * lib/userspec.c: Include "userspec.h".
126106         * lib/userspec.h: New file.
126108 2003-11-03  Bruno Haible  <bruno@clisp.org>
126110         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126112 2003-11-03  Bruno Haible  <bruno@clisp.org>
126114         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126115         available, to avoid (extremely rare) race condition.
126116         Suggested by Paul Eggert.
126118 2003-11-02  Karl Berry  <karl@gnu.org>
126120         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126122 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126124         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126125         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126126         (read_filesystem_list): Set and use me_type_malloced.
126127         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126128         whatever the type happens to be), for brevity and consistency.
126129         Check for size calculation overflow on Alphas running OSF/1.
126131 2003-10-31  Jim Meyering  <jim@meyering.net>
126133         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126135         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126137 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126138             Bruno Haible  <bruno@clisp.org>
126140         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126141         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126143 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126145         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126146         netbsd*-gnu*.  Suggested by Robert Millan.
126148 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126150         * modules/group-member: Depend on stdbool.
126152 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126154         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126156 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126158         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126159         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126160         after the 'gnu' in these cases.  This fixes some bugs in the
126161         previous change, and is based on suggestions by Robert Millan.
126163 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126165         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126166         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126167         no longer needed.
126168         * lib/quotearg.c (quotearg_n_options): Use it.
126169         * lib/group-member.c: Include <stdbool.h>.
126170         (free_group_info): Arg is now const *; don't free arg.
126171         (get_group_info): Now returns bool and accepts struct group_info *,
126172         rather than returning a malloc'ed struct group_info *.
126173         All uses changed.  Check for overflow in internal size calculation.
126175         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126176         rather than xmalloc/xrealloc.
126177         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126178         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126179         conformance bug: the old code used a pointer after freeing the
126180         storage that it addressed.
126181         * lib/hash.c (hash_initialize): Simplify the code by using
126182         xalloc_oversized rather than doing it by hand.
126183         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126184         the buffer preserved.  Use free and xmalloc instead.
126185         * lib/quotearg.c (quotearg_n_options): Likewise.
126186         Use a simpler test for size overflow.  Don't use xalloc_oversized
126187         because unsigned int might be wider than size_t (!); this suggests
126188         that we should switch from unsigned int to size_t for slot numbers.
126190 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126192         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126193         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126194         NetBSD kernels.  Requested by Richard Stallman.
126196 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126198         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126199         to allocate the returned structure.  Do not allocate a subarray,
126200         as x2nrealloc will do that.
126201         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126202         instead of xnrealloc.
126203         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126205 2003-10-27  Bruno Haible  <bruno@clisp.org>
126207         * lib/stdbool_.h: Better support for BeOS.
126209 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126211         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126212         now uses inline.
126214 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126216         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126217         callers that want to do their own size-overflow checking.  Include
126218         <stdbool.h>, since xalloc_oversized returns bool.
126219         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126220         to use xalloc_oversized.
126222         Add two functions x2realloc, x2nrealloc, for programs that grow
126223         arrays dynamically by doubling their sizes.
126224         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126225         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126226         New functions.
126228         Port to C99 semantics for 'inline' of external functions.
126229         Bug reported by Bruno Haible.
126230         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126231         with the old contents of xnmalloc.
126232         (xnmalloc, xmalloc): Use it.
126233         (xnrealloc_inline): New static inline function,
126234         with the old contents of xnrealloc.
126235         (xnrealloc, xrealloc): Use it.
126237         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126238         that.
126240 2003-10-26  Karl Berry  <karl@gnu.org>
126242         * config/srclist.txt (COPYING.DOC): no longer available from
126243         /gd/gnuorg; don't know where the ultimate source is.
126245 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126247         Fix several address-calculation bugs in the hash modules,
126248         plus some minor code cleanup.
126250         * lib/hash.h: Include <stdbool.h>, for bool.
126251         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126252         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126253         hash_get_n_entries, hash_get_max_bucket_length,
126254         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126255         hash_rehash): Use size_t rather than unsigned.
126256         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126257         hash_get_n_buckets_used, hash_get_n_entries,
126258         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126259         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126260         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126261         Likewise.
126262         (SIZE_MAX): Define if not defined.
126263         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126264         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126265         hash_print):
126266         Use const * when possible.
126267         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126268         (check_tuning): Fix bug: if tuning parameters were very close to
126269         0 or 1, rounding errors could have caused subscript violations.
126270         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126271         (hash_initialize): Add 'fail:' label
126272         to free table and return NULL, and use it to simplify code.
126273         Use calloc rather than clearing the storage ourself.
126274         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126275         buffer size calculations.
126276         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126277         Include <stddef.h>, for size_t.
126278         * lib/hash-pjw.c (hash_pjw): Likewise.
126279         Switch to method described by Bruno Haible.
126280         Include <limits.h>, for CHAR_BIT.
126281         (SIZE_BITS): New macro.
126283 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126285         * m4/getline.m4 (AM_FUNC_GETLINE):
126286         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126287         hosts.  Problem reported by Derek Robert Price in
126288         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126289         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126290         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126292 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126294         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126295         ceiling the allocation at NMAX bytes rather than silently
126296         discarding input bytes before NMAX is reached.  This makes
126297         a difference only if NMAX exceeds SIZE_MAX / 2.
126299         * lib/obstack.c: Merge from glibc.
126300         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126301         Add libc_hidden_def (_obstack_newchunk).
126302         (_obstack_free) [! defined _LIBC]: Remove.
126303         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126304         a clone of the function body.
126305         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126306         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126308         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126309         glibc.
126310         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126311         arg to memcpy.
126313         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126314         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126315         Don't use lvalue casts, as GCC plans to remove support for them
126316         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126317         was also present in the non-GCC version, indicating that this
126318         code had always been buggy and had never been widely used.
126319         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126320         Use the fast variant of each macro, rather than copying the
126321         definiens of the fast variant; that way, we'll be more likely to
126322         catch future bugs in the fast variants.
126324 2003-10-20  Bruno Haible  <bruno@clisp.org>
126326         * modules/wait-process: New file.
126327         * MODULES.html.sh (func_all_modules): Add wait-process.
126329 2003-10-20  Bruno Haible  <bruno@clisp.org>
126331         * m4/wait-process.m4: New file.
126333 2003-10-20  Bruno Haible  <bruno@clisp.org>
126335         * lib/wait-process.h: New file, from GNU gettext.
126336         * lib/wait-process.c: New file, from GNU gettext.
126338 2003-10-19  Jim Meyering  <jim@meyering.net>
126340         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126341         HPUX 10.20.
126343 2003-10-18  Karl Berry  <karl@gnu.org>
126345         * config/config.guess: update from config.
126347 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126349         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126350         (getgroups): First arg is int, not size_t.
126351         Don't let 'free' mangle errno.
126353 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126355         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126357 2003-10-16  Karl Berry  <karl@gnu.org>
126359         * config/config.{guess,sub}: update from config.
126361 2003-10-16  Jim Meyering  <jim@meyering.net>
126363         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126364         memcpy.
126366 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126368         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126369         (SIZE_MAX): Remove.
126370         (new_exclude, add_exclude_file): Initial size no longer needs to
126371         be a power of 2.
126372         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126373         our own address arithmetic overflow checking.
126375         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126376         (fnmatch): Do not alloca more than 2000 wide characters;
126377         instead, use malloc for large buffers.
126378         Check for address arithmetic overflow, and return -1
126379         with errno set to ENOMEM in that case.
126380         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126381         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126382         instead, return -1.  Check for address arithmetic overflow.
126384 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126386         Handle invalid suffixes and overflow independently, so that
126387         callers can treat them independently as needed.  Fix some bugs in
126388         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126389         suffix for a human-readable blocksize.  The major caller-visible
126390         change is the addition of a new
126391         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126392         that both overflow and suffix chars were found.
126394         * lib/human.c (humblock): Don't check separately for invalid suffix
126395         char; that is xstrtoumax's job (now that its bug is fixed).
126396         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126397         INTMAX_MAX]: New macros.
126398         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126399         TYPE_MAXIMUM): New macros.
126400         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126401         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126402         if overflow occurs, as it's what __strtol does and it's more useful
126403         in practice.
126404         (__xstrtol): If __strtol reports some error other than ERANGE,
126405         reflect it to the caller as LONGINT_INVALID.  If it reports
126406         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126407         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126408         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126409         value.
126410         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126411         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126412         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126413         [defined UINTMAX_MAX]: New macros.
126415 2003-10-14  Bruno Haible  <bruno@clisp.org>
126417         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126419 2003-10-14  Bruno Haible  <bruno@clisp.org>
126421         * m4/sig_atomic_t: New file, from GNU gettext.
126422         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126424 2003-10-14  Bruno Haible  <bruno@clisp.org>
126426         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126427         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126428         Also use volatile where needed.
126430 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126432         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126433         Change maintainer from Bruno Haible to 'all'.
126435 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126437         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126439 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126441         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126442         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126443         and define in terms of the other primitives.
126444         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126445         (SIZE_MAX): Define if not already defined.
126446         (array_size_overflow): New function.
126447         (xalloc_die): Abort instead of exiting if 'error' returns.
126448         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126449         (xmalloc, xrealloc): Use them.
126450         (xcalloc): Check for address arithmetic overflow.
126451         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126452         a bit faster than strcpy.
126454 2003-10-10  Simon Josefsson  <jas@extundo.com>
126456         * modules/argp (Depends-on): Add restrict and strcase.
126458 2003-10-10  Simon Josefsson  <jas@extundo.com>
126460         * m4/argp.m4: Add AC_C_INLINE.
126462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126464         Merge getpass from libc, plus a few fixes.
126466         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126467         Include <stdbool.h>.
126468         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126469         __fsetlocking to empty.
126470         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126471         do include <bits/libc-lock.h>.
126472         Do not include <fcntl.h>; not needed.
126473         [_LIBC]: Include <wchar.h>.
126474         (NOTCANCEL_MODE): New macro.
126475         (flockfile, funlockfile) [_LIBC]: New macros.
126476         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126477         [!_LIBC]: New macros.
126478         (call_fclose): New function.
126479         (getpass): Use it.  Save tty stream separately; this simplifies the
126480         code and makes it more reliable if stdin happens to equal stdout.
126481         Invoke __fsetlocking on tty.
126482         Handle thread cancellation if needed.
126483         Namespace cleanup (use __tcgetattr, __getline).
126484         Use bool for Booleans.
126485         [USE_IN_LIBIO]: Handle wide streams.
126486         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126487         stream might go where.
126489         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126490         doesn't have to include <stdio.h> before us.
126491         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126492         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126493         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126494         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126495         if not declared, so that we can use getpass.c code from libc without
126496         rewriting it.
126497         (flockfile, ftrylockfile, funlockfile): New macros.
126499 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126501         * modules/getpass: Depend on stdbool.
126503 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126505         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126507 2003-10-07  Karl Berry  <karl@gnu.org>
126509         * config/config.{guess,sub}: update from config.
126511 2003-10-06  Jim Meyering  <jim@meyering.net>
126512             Bruno Haible  <bruno@clisp.org>
126514         This lets translators provide better translations for the
126515         "Written by ..." part of --version output.
126516         * lib/version-etc.h: Include stdarg.h.
126517         (version_etc_copyright): Declare as readonly.
126518         (version_etc): Make this function variadic with a NULL-terminated list
126519         of author name strings.
126520         (version_etc_va): New declaration.
126521         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126522         (version_etc_copyright): Declare as readonly.
126523         (version_etc_va): New function. Provide a different translatable string
126524         for each possible number of authors < 10. Abbreviate when there are 10
126525         authors or more.
126526         (version_etc): Make this function variadic. Call version_etc_va.
126527         Suggestion from Gary V. Vaughan.
126529         * lib/long-options.h (parse_long_options): Change prototype: the
126530         authors string is moved to the end and becomes variadic.
126531         * lib/long-options.c: Include stdarg.h.
126532         (parse_long_options): Make this function variadic, too.
126533         Call version_etc_va, not version_etc.
126535 2003-10-06  Bruno Haible  <bruno@clisp.org>
126537         * modules/version-etc-2: Remove file.
126538         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126540 2003-10-06  Bruno Haible  <bruno@clisp.org>
126542         * modules/fatal-signal: New file.
126543         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126545 2003-10-06  Bruno Haible  <bruno@clisp.org>
126547         * m4/fatal-signal.m4: New file.
126548         * m4/signalblocking.m4: New file, from GNU gettext.
126550 2003-10-06  Bruno Haible  <bruno@clisp.org>
126552         * lib/version-etc-2.h: Remove file.
126553         * lib/version-etc-2.c: Remove file.
126555 2003-10-06  Bruno Haible  <bruno@clisp.org>
126557         * lib/fatal-signal.h: New file, from GNU gettext.
126558         * lib/fatal-signal.c: New file, from GNU gettext.
126560 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126562         * README: Rework advice for preventing empty .o files.
126563         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126564         not <sys/types.h>.
126566 2003-10-04  Karl Berry  <karl@gnu.org>
126568         * lib/argp*: update from libc.
126570 2003-10-04  Karl Berry  <karl@gnu.org>
126572         * config/config.{guess,sub}: update from config.
126574 2003-10-02  Bruno Haible  <bruno@clisp.org>
126576         * modules/lchown (Include): Add lchown.h.
126577         * modules/time_r (Include): Use "..." syntax.
126578         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126580 2003-10-01  Simon Josefsson  <jas@extundo.com>
126582         * MODULES.html.sh (func_all_modules): Move gethostname from section
126583         'based on' to section 'lacking' POSIX:2001.
126585 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126587         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126588         to output mode on the same stream.
126590 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126592         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126593         Fix arg typo in previous patch.
126595 2003-09-28  Jim Meyering  <jim@meyering.net>
126597         * lib/error.c: Correct cpp indentation.
126599 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126601         * modules/free: New file.
126603 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126605         * m4/free.m4: New file.
126607 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126609         * lib/minmax.h (MIN, MAX)
126610         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126611         Omit the special code that used __typeof__, since we worry that
126612         it could be more trouble than it's worth.  See:
126613         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126614         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126616         * lib/free.c: New file.
126618 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126620         Trivial fixes to Makefile.am parts of module listings.
126621         * modules/strstr: Append strstr.h to lib_SOURCES.
126622         * modules/strcase: Likewise, for strcase.h.
126624 2003-09-27  Karl Berry  <karl@gnu.org>
126626         * config/mkinstalldirs: update from automake.
126628 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126630         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126631         (error_tail): Do not loop, reallocating temporary buffer, since
126632         the output cannot contain more wide characters than the input
126633         contains bytes, the size must be big enough already.  This avoids
126634         one potential size overflow calculation.  Check for size overflow
126635         when calculating temporary buffer size.  Free temporary buffer
126636         when done, if it was allocated with malloc; this plugs a memory
126637         leak.  Remove casts from void * to pointers, that are no longer
126638         needed now that we're assuming C89 or better.
126640         Merge error changes from glibc.
126642         * lib/error.c, error.h: Update copyright notice header to match glibc.
126643         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126644         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126645         Disable cancellation while printing error.
126646         * lib/error.h: Prepend __ to parameter names.
126648 2003-09-26  Jim Meyering  <jim@meyering.net>
126650         * lib/error.c (error_tail): Move some declarations
126651         into inner scope where the local variables are used.
126653 2003-09-26  Bruno Haible  <bruno@clisp.org>
126655         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126656         stpncpy().
126657         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126659 2003-09-26  Bruno Haible  <bruno@clisp.org>
126661         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126662         (stpncpy): Define as alias for gnu_stpncpy.
126663         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126665 2003-09-25  Simon Josefsson  <jas@extundo.com>
126667         * lib/xgetdomainname.h: New file.
126668         * lib/xgetdomainname.c: New file.
126670 2003-09-25  Simon Josefsson  <jas@extundo.com>
126671             Bruno Haible  <bruno@clisp.org>
126673         * modules/getdomainname: New file.
126674         * modules/xgetdomainname: New file.
126675         * MODULES.html.sh (func_all_modules): Add getdomainname,
126676         xgetdomainname.
126678 2003-09-25  Simon Josefsson  <jas@extundo.com>
126679             Bruno Haible  <bruno@clisp.org>
126681         * m4/getdomainname.m4: New file.
126683 2003-09-25  Simon Josefsson  <jas@extundo.com>
126684             Bruno Haible  <bruno@clisp.org>
126686         * lib/getdomainname.h: New file.
126687         * lib/getdomainname.c: New file.
126689 2003-09-25  Karl Berry  <karl@gnu.org>
126691         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126693 2003-09-25  Karl Berry  <karl@gnu.org>
126695         * config/install-sh: update from automake.
126697 2003-09-25  Bruno Haible  <bruno@clisp.org>
126699         * modules/version-etc-2: New file, from modules/version-etc with
126700         modifications.
126701         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126703 2003-09-25  Bruno Haible  <bruno@clisp.org>
126705         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126706         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126708 2003-09-24  Simon Josefsson  <jas@extundo.com>
126710         * modules/xgethostname: Add xgethostname.h.
126712 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126714         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126715         the buffer associated with the argument.  Bug reported by
126716         Simon Josefsson.
126718 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126720         * README: Document assumptions that 'int' is at least 32 bits
126721         wide, that integer arithmetic is 2's complement without overflow,
126722         that there are no holes in integer values, that adding sizes of
126723         two nonoverlapping objects can't overflow, and that all-bits-zero
126724         yields scalar zero.  Fix spelling and capitalization typos.
126726 2003-09-19  Karl Berry  <karl@gnu.org>
126728         * lib/argp.h: update from libc.
126730 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126733         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126734         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126736 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126738         * gnulib-tool: Use "test -h", not "test -L", for portability
126739         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126740         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126741         (sed_extract_prog): Issue s commands one-by-one, rather than
126742         using \| in one s command.
126744 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126746         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126747         input error, instead of returning NULL the next time we are called
126748         (and therefore losing track of errno).
126750 2003-09-16  Bruno Haible  <bruno@clisp.org>
126752         * gnulib-tool (func_create_testdir): Warn about duplicated
126753         dependencies.
126755 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126757         * modules/argmatch, modules/fatal, modules/obstack,
126758         modules/xalloc, modules/xgethostname: Sort dependencies by
126759         importance, not alphabetically.
126761 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126763         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126764         fails, so that the caller gets the proper errno.
126766         * lib/readutmp.c (read_utmp): Likewise.
126767         Check for fstat error.  Close stream and free storage
126768         when failing.
126770 2003-09-14  Karl Berry  <karl@gnu.org>
126772         * config/srclist.txt (strdup.c): disable for c89 changes.
126774 2003-09-14  Jim Meyering  <jim@meyering.net>
126776         * lib/getloadavg.c: Correct cpp indentation.
126777         * lib/strdup.c: Likewise.
126778         * lib/vasnprintf.c: Likewise.
126780 2003-09-14  Bruno Haible  <bruno@clisp.org>
126782         * modules/fwriteerror: New file.
126783         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126785 2003-09-14  Bruno Haible  <bruno@clisp.org>
126787         * lib/fwriteerror.h: New file.
126788         * lib/fwriteerror.c: New file.
126790 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126792         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126793         modules/xgethostname, modules/xalloc: Depend on exit.
126795 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126797         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126800         and AC_MINIX, too, so that their extensions are available.
126802         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126803         This macro has been superseded by gl_BACKUPFILE.
126805         More patches to assume C89 or better.
126807         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126809         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126810         unconditionally.
126811         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126812         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126813         Include <string.h>, <stdlib.h> unconditionally.
126814         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126815         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126816         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126817         headers or for string.h.
126818         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126819         or strtoul.
126821         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126822         headers.
126823         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126824         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126825         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126826         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126827         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126828         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126829         memcpy, memset.
126830         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126831         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126832         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126833         strtol.
126834         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126835         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126836         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126837         strtoul.
126839 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126841         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126842         * lib/obstack.c [!defined _LIBC]: Likewise.
126843         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126844         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126845         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126847         More changes to assume C89 or better.
126849         * lib/error.c (error_tail): Assume vprintf.
126851         * lib/argmatch.c (getenv): Remove decl.
126852         * lib/progreloc.c (get_full_program_name): Define via prototype.
126853         * lib/setenv.c (clearenv): Likewise.
126854         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126855         needed.
126856         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126857         (malloc, memcpy): Remove decls.
126858         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126859         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126860         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126861         (memcpy): Remove macro.
126862         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126863         (__P): Remove.  All uses removed.
126864         (PTR): Remove.  All uses changed to void *.
126865         (CHAR_BIT, NULL): Remove.
126866         (spaces, zeros, memset_space, memset_zero)
126867         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126868         Remove.
126869         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126870         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126871         Define with prototype.
126872         Remove now-unnecessary prototype decl.
126873         (extra_args_spec): Assume ANSI C.  All uses changed.
126874         (extra_args_spec_iso): Remove.
126875         (my_strftime, emacs_strftimeu): Define via prototype.
126876         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126877         unconditionally.
126878         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126879         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126880         (strtoul, strtol): Remove decls.
126881         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126882         LONG_MAX): Remove.
126883         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126884         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126885         (LOCALE_PARAM_PROTO): New macro.
126886         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126887         (INTERNAL (strtol), strtol): Define with a prototype.
126888         (PARAMS): Remove.  All uses removed.
126889         * lib/tempname.c: Include <string.h> unconditionally.
126890         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126891         * lib/xgethostname.c (main): Define with a prototype.
126892         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126893         Include <stdlib.h> unconditionally.
126894         (calloc, malloc, realloc, free): Remove decls.
126895         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126896         Include <stdlib.h> unconditionally.  Sort include file names.
126897         (strtod): Remove.
126898         (xstrtod): Define with a prototype.
126899         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126900         (strtol, strtoul): Remove decls.
126902 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126904         More patches to assume C89 or better.
126905         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126906         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126907         string.h, memchr, STDC_HEADERS.
126909 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126911         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126912         Include <stdlib.h>, <string.h> unconditionally.
126913         Remove now-unnecessary cast to char *.
126914         * lib/strnlen.c: Include <string.h> unconditionally.
126915         * lib/yesno.c (yesno): Define with a prototype.
126917 2003-09-11  Bruno Haible  <bruno@clisp.org>
126919         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126921 2003-09-10  Jim Meyering  <jim@meyering.net>
126923         * lib/error.c: Correct indentation of cpp directives.
126925 2003-09-10  Bruno Haible  <bruno@clisp.org>
126927         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126928         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126929         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126930         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126931         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126932         <stdlib.h> and <string.h> checks.
126933         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126934         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126936 2003-09-10  Bruno Haible  <bruno@clisp.org>
126938         * lib/strcspn.c: Include <string.h> unconditionally.
126939         * lib/strpbrk.c: Include <string.h> unconditionally.
126940         * lib/strstr.c: Include <string.h> unconditionally.
126941         * lib/unicodeio.c: Include <string.h> unconditionally.
126942         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126943         * lib/unsetenv.c: Likewise.
126944         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126945         * lib/yesno.c: Include <stdlib.h> unconditionally.
126946         (rpmatch): Add prototype.
126948 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126950         More patches to assume C89 or better.
126951         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126952         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126953         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126954         or for string.h.
126955         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126956         stdlib.h.
126957         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126958         C headers.
126959         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126960         string.h.
126961         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126962         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126963         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126964         or for string.h.
126965         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126966         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126967         C headers.
126968         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126969         memcpy.
126970         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126971         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126972         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126973         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126974         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126975         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126976         string.h, free.
126977         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126978         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126979         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126980         C headers, or for string.h.
126981         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126982         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126983         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126984         headers, memory.h, stdlib.h, string.h, strings.h.
126985         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126986         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126987         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126988         strchr.
126989         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126990         headers, memory.h, string.h.
126991         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126992         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126993         free.
126994         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126995         headers.
126996         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126997         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126998         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126999         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127000         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127002 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127004         More K&R removal.
127006         * lib/acosl.c (main): Use a prototype.
127007         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127008         tanl.c: Likewise.
127010         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127012         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127013         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127014         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127015         with a prototype.
127016         * lib/getopt.c (const): Remove macro.
127017         Include <string.h> unconditionally.
127018         (my_index): Remove; all uses changed to strchr.
127019         (strlen): Remove decl.
127020         (exchange): Remove forward decl; no longer needed.
127021         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127022         Define with prototype.
127023         * lib/getopt1.c (const): Remove macro.
127024         (getopt_long, getopt_long_only, main): Define with prototype.
127026         * lib/getugroups.c: Include <string.h> unconditionally.
127028         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127029         (getusershell, setusershell, endusershell, readname, main):
127030         Define with prototypes.
127032         * lib/group-member.c: Include group-member.h first.
127033         Include <stdlib.h> unconditionally.
127035         * lib/hard-locale.c: Include hard-locale.h first.
127036         Include <stdlib.h>, <string.h> unconditionally.
127038         * lib/hash.c (free, malloc): Remove decls.
127039         Include <stdlib.h> unconditionally.
127041         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127042         (getenv): Do not declare.
127044         * lib/idcache.c: Include <string.h> unconditionally.
127046         * lib/long-options.c: Include long-options.h first, to test interface.
127047         Include <stdlib.h> unconditionally.
127049         * lib/makepath.c: Include makepath.h first, to test interface.
127050         Include <stdlib.h> and <string.h> unconditionally.
127052         * lib/linebuffer.c: Include <stdlib.h>.
127053         (free): Remove decl.
127055         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127056         stddef.h. rpl_malloc returns void *, not char *.
127057         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127058         prototype.
127060         * lib/md5.h: Include <limits.h> unconditionally.
127061         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127062         (__P): Remove; all uses removed.
127063         * lib/md5.c: Include "md5.h" first.
127064         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127065         md5_buffer, md5_process_bytes, md5_process_block):
127066         Define with prototypes.
127067         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127068         * lib/sha.c: Include "sha.h" first.
127069         Include <stdlib.h>, <string.h> unconditionally.
127071         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127072         * lib/memcmp.c (__ptr_t): Likewise.
127073         * lib/memrchr.c (__ptr_t): Likewise.
127074         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127075         Include <string.h> unconditionally.
127076         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127077         * lib/memchr.c: Include <stdlib.h> unconditionally.
127078         * lib/memchr.c (LONG_MAX): Remove.
127079         * lib/memrchr.c (LONG_MAX): Likewise.
127080         * lib/memchr.c (__memchr): Define via a prototype.
127081         * lib/memrchr.c (__memrchr): Likewise.
127082         * lib/memcmp.c (__P): Remove, and remove all uses.
127083         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127084         Remove forward decls; no longer needed.
127085         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127086         Use types required by C89 in prototype.
127088         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127089         * lib/savedir.c: Likewise.
127090         * lib/mkdir.c (free): Remove decl.
127091         * lib/rmdir.c (rmdir): Define with a prototype.
127092         * lib/savedir.c: Include savedir.h first, to test interface.
127094         * lib/mktime.c (STDC_HEADERS): Remove.
127095         Include <stdlib.h>, <string.h> unconditionally.
127097         * lib/modechange.c: Include <stdlib.h> unconditionally.
127098         (malloc): Remove decl.
127100         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127101         (free): Remove decl.
127103         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127104         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127105         (This type really should be intptr_t, but that's a C99ism.)
127106         (_obstack_memcpy): Remove: all uses changed to memcpy.
127107         Include <string.h> unconditionally.
127108         (struct obstack): Assume __STDC__ for types of members
127109         chunkfun, freefun, extra_arg.
127110         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127111         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127112         obstack_begin, obstack_specify_allocation,
127113         obstack_specify_allocation_with_arg, obstack_chunkfun,
127114         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127115         Remove unprototyped decls and the macros that use them.
127116         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127117         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127118         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127119         (defined __STDC__ && __STDC__)]:
127120         Remove nonprototyped code.
127121         Include <stdlib.h> unconditionally.
127122         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127123         _obstack_allocated_p, _obstack_free, obstack_free,
127124         _obstack_memory_used, print_and_abort):
127125         Define using prototypes.
127126         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127127         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127128         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127129         obstack_next_free, obstack_object_size, obstack_room) [0]:
127130         Remove unused, unprototyped code.
127132         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127134         * lib/physmem.c (physmem_total, physmem_available, main): Define
127135         with prototypes.
127137         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127138         (main): Define with a prototype.
127140         * lib/posixver.c (getenv): Remove decl.
127142         * lib/putenv.c (malloc): Returns void *, not char *.
127143         Include <string.h> unconditionally.
127144         (strchr, memcpy, NULL): Do not define.
127146         * lib/readtokens.c: Include readtokens.h first, to test interface.
127147         Include <stdlib.h>, <string.h> unconditionally.
127148         (init_tokenbuffer): Define with a prototype.
127150         * lib/regex.c (PARAMS): Remove.  All uses removed.
127151         All uses of _RE_ARGS removed, too.
127152         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127153         unconditionally.
127154         (bzero): Assume memset exists.
127155         (memcmp, memcpy, NULL): Remove.
127156         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127157         char, or assignments to local vars of type signed char.
127158         (init_syntax_once, PREFIX(extract_number_and_incr),
127159         PREFIX(print_partial_compiled_pattern),
127160         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127161         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127162         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127163         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127164         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127165         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127166         wcs_compile_range, byte_compile_range, truncate_wchar,
127167         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127168         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127169         count_mbs_length, wcs_re_match_2_internal,
127170         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127171         PREFIX(alt_match_null_string_p),
127172         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127173         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127174         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127175         now-unnecessary declaration, if any.
127176         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127177         regcomp, regexec):
127178         Remove now-unnecessary casts among pointer types.
127179         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127181         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127182         (free): Remove decl.
127184         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127186         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127187         (free): Remove decl.
127189         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127190         * lib/xgetcwd.c: Likewise.
127192         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127193         (free): Remove decl.
127195         * lib/strchrnul.c (strchrnul): Define with a prototype.
127196         Fix bug: c_in was not converted to char before searching.
127198         The following changes are not K&R related:
127200         * lib/group-member.h: Include <sys/types.h>, so that this file is
127201         self-contained.
127202         * lib/makepath.h: Likewise.
127204         * lib/getusershell.c (readname, default_index, line_size, readname):
127205         Use size_t, not int, for sizes.
127206         (readname): If the size overflows, report an error instead of
127207         looping forever.
127209 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127211         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127212         libc.
127214 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127216         * README: New section: portability guidelines.
127218 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127220         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127221         C89 spec.
127223 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127225         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127227 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127229         Assume C89 or better; remove K&R cruft.
127230         A few of these changes were first proposed by Derek Robert Price
127231         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127233         * lib/addext.c: Include <string.h> unconditionally.
127234         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127235         Don't declare getenv or malloc.
127237         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127238         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127239         (NULL): Remove.
127240         (find_stack_direction, alloca): Use prototypes.
127242         * lib/atexit.c (atexit): Define using a prototype.
127244         * lib/basename.c, dirname.c, stripslash.c:
127245         Include <string.h> unconditionally.
127247         * lib/bcopy.c: Include <stddef.h>.
127248         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127250         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127252         * lib/error.h (error, error_at_line, error_print_progname)
127253         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127254         * lib/error.c: Include error.h first, to check interface.
127255         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127256         (VA_START): Remove; all uses changeed to va_start.
127257         (exit, strerror): Remove decls.
127258         (error_print_progname): Prototype uncondionally.
127259         Don't include <errno.h>; no longer needed.
127260         (private_strerror): Remove.
127261         (error_tail): Always define.
127262         (error, error_at_line): Assume C89 or better; always use prototypes.
127263         * lib/fatal.c: Include "fatal.h" first, to test interface.
127264         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127265         (VA_START): Remove; all uses changed to va_start.
127266         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127267         this case.
127268         (exit): Remove decl.
127269         (fatal): Prototype unconditionally.  Assume va_start works.
127270         Abort at end, to pacify gcc.
127272         * lib/euidaccess.c (main): Define with a prototype.
127274         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127276         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127278         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127279         prototypes.
127280         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127281         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127282         (getenv): Remove decl.
127283         (fnmatch): Define using a prototype.
127284         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127285         (FCT): Define using a prototype.
127287         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127289         * lib/gethostname.c: Include <stddef.h>.
127290         (gethostname): Define with prototype.  Length is size_t, not int.
127292 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127294         Assume C89 or better; remove K&R cruft.
127295         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127296         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127297         string.h, getenv, malloc.
127298         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127299         headers.
127300         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127301         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127302         do not check for strerror.
127303         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127304         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127305         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127306         do not check for doprnt or vprintf.
127307         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127308         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127310 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127312         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127313         getversion.c should have been removed then, but was accidentally
127314         preserved.
127316         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127317         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127319 2003-09-08  Karl Berry  <karl@gnu.org>
127321         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127322                 config, forget about prep.
127324         * config/depcomp, missing: update from automake.
127326 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127328         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127329         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127331 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127333         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127334         copy_tm_result.  Bug reported by Simon Josefsson in
127335         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127339         * m4/time_r.m4: New file.
127340         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127341         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127342         is. Check for timegm declaration.
127343         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127344         Do not check for gmtime_r.
127345         Replace mktime if __mktime_internal does not exist and if mktime
127346         hasn't been replaced already.
127348 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127350         * lib/time_r.c, lib/time_r.h: New files.
127352         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127353         __localtime_r.
127354         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127355         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127357         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127358         __gmtime_r.
127359         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127360         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127361         Include <time_r.h>.
127363         * lib/timegm.c: Switch to glibc implementation, with the following
127364         changes:
127365         [defined HAVE_CONFIG_H]: Include <config.h>.
127366         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127367         (__mktime_internal) [!defined _LIBC]: New decl.
127368         (__gmtime_r) [!defined _LIBC]: New macro and function.
127369         (timegm): Use a prototype, since gnulib assumes C89.
127370         Do not bother declaring tmp to be const, as it's not really usefu.
127371         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127372         (timegm): Declare only if HAVE_DECL_TIMEGM.
127374 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127376         * MODULES.html.sh (func_all_modules): Add time_r.
127377         * modules/time_r: New file.
127378         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127379         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127381 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127383         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127384         Bug reported by Lute Kamstra in
127385         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127387         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127388         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127389         course with correspondingly smaller numbers for tomorrow and
127390         yesterday.  From Tadayoshi Funaba.  Originally installed into
127391         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127392         coreutils merge?).
127394 2003-08-31  Simon Josefsson  <jas@extundo.com>
127396         * modules/timegm: New file.
127397         * MODULES.html.sh (func_all_modules): Add timegm.
127399 2003-08-31  Simon Josefsson  <jas@extundo.com>
127401         * m4/timegm.m4: New file.
127403 2003-08-31  Simon Josefsson  <jas@extundo.com>
127405         * lib/timegm.h: New file.
127406         * lib/timegm.c: New file.  Based on
127407         wget-1.8.2/src/http.c:mktime_from_utc.
127409 2003-08-31  Karl Berry  <karl@gnu.org>
127411         * lib/argp.h: update from libc.
127413 2003-08-28  Bruno Haible  <bruno@clisp.org>
127415         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127416         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127417         followed by '#define fnmatch fnmatch_posix' gives an error.
127419 2003-08-28  Bruno Haible  <bruno@clisp.org>
127421         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127422         warning on QNX, which defines O_BINARY to 000000.
127424 2003-08-27  Jim Meyering  <jim@meyering.net>
127426         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127427         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127428         would fail after 32.  Reported by Danny Levinson.  Details here:
127429         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127431 2003-08-24  Bruno Haible  <bruno@clisp.org>
127433         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127434         MSVC7 <stdio.h> is included later.
127436 2003-08-22  Simon Josefsson  <jas@extundo.com>
127438         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127440 2003-08-20  Karl Berry  <karl@gnu.org>
127442         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127444 2003-08-20  Bruno Haible  <bruno@clisp.org>
127446         * modules/progname: New file.
127447         * MODULES.html.sh (func_all_modules): Add progname.
127449 2003-08-20  Bruno Haible  <bruno@clisp.org>
127451         * lib/progname.h: New file, from GNU gettext.
127452         * lib/progname.c: New file, from GNU gettext.
127453         * lib/progreloc.c: New file, from GNU gettext.
127455 2003-08-19  Jim Meyering  <jim@meyering.net>
127457         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127458         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127460 2003-08-19  Bruno Haible  <bruno@clisp.org>
127462         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127463         more.
127465 2003-08-19  Bruno Haible  <bruno@clisp.org>
127467         * lib/xstrdup.c: Assume <string.h> exists.
127469 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127471         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127472         in makefile rules.
127474 2003-08-18  Jim Meyering  <jim@meyering.net>
127476         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127477         * m4/lib-ld.m4: Likewise.
127479 2003-08-18  Jim Meyering  <jim@meyering.net>
127481         * lib/setenv.h: Indent nested cpp directive.
127482         * lib/vasnprintf.c: Remove trailing blanks.
127484 2003-08-17  Simon Josefsson  <jas@extundo.com>
127486         * modules/xstrndup: New file.
127487         * MODULES.html.sh (func_all_modules): Add xstrndup.
127489 2003-08-17  Simon Josefsson  <jas@extundo.com>
127491         * modules/argp: Fix autoconf macro name. Add more dependencies.
127493 2003-08-17  Simon Josefsson  <jas@extundo.com>
127495         * m4/xstrndup.m4: New file.
127497 2003-08-17  Simon Josefsson  <jas@extundo.com>
127499         * m4/argp.m4: New file.
127501 2003-08-17  Simon Josefsson  <jas@extundo.com>
127502             Bruno Haible  <bruno@clisp.org>
127504         * lib/xstrndup.h: New file.
127505         * lib/xstrndup.c: New file.
127507 2003-08-17  Bruno Haible  <bruno@clisp.org>
127509         * modules/strndup (Files, Include): Add lib/strndup.h.
127511 2003-08-17  Bruno Haible  <bruno@clisp.org>
127513         * modules/euidaccess (Files): Add lib/euidaccess.h.
127515 2003-08-17  Bruno Haible  <bruno@clisp.org>
127517         * lib/strndup.h: New file.
127519 2003-08-17  Bruno Haible  <bruno@clisp.org>
127521         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127522         like AC_GNU_SOURCE.
127523         * modules/extensions (configure.ac): Comment out the invocation of
127524         gl_USE_SYSTEM_EXTENSIONS.
127526 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127528         Merges from coreutils, etc.
127529         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127530         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127531         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127532         fixing a typo.
127533         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127534         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127536 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127538         Document merge from coreutils.
127539         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127540         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127541         * modules/utime: Add m4/utimes-null.m4.
127543 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127545         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127546         space, undoing this 2003-08-12 change:
127547         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127549 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127551         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127552         strtoul.c from libc, undoing this 2003-08-12 change:
127553         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127555 2003-08-16  Jim Meyering  <jim@meyering.net>
127557         Merges from coreutils.
127558         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127559         prefix.  Adjust cache variables similarly.  Create 500 rather than
127560         just 300 files, to exercise bug on Darwin6.5, too.
127561         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127562         $missing_dir.
127563         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127564         AM_SYS_POSIX_TERMIOS.
127565         Reported by mkc@mathdogs.com.
127566         Also change use of $am_cv_sys_posix_termios
127567         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127568         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127569         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127570         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127571         in /proc/mounts until it finds one with matching device number.  This
127572         is unnecessary when the FILE argument *is* a mount point.  No stat call
127573         is necessary in that case.  So, disable the statvfs-testing code on
127574         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127575         as RedHat bug# 84846.
127576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127577         to 1MB, so as not to render systems with no stack size limit (e.g.,
127578         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127579         Include <unistd.h>.  On some systems,
127580         it is required for the definition of _SC_PAGESIZE.
127582 2003-08-16  Jim Meyering  <jim@meyering.net>
127584         Merge from coreutils.
127585         * lib/xstrtoimax.c: #else #if -> #elif.
127586         * lib/xstrtoumax.c: Likewise.
127588 2003-08-16  Jim Meyering  <jim@meyering.net>
127590         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127591         * m4/utimes.m4: Removed.
127592         * m4/utimes-null.m4: Renamed from utimes.m4.
127594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127595         to 1MB, so as not to render systems with no stack size limit (e.g.,
127596         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127597         Include <unistd.h>.  On some systems,
127598         it is required for the definition of _SC_PAGESIZE.
127600 2003-08-16  Jim Meyering  <jim@meyering.net>
127601         and Paul Eggert  <eggert@cs.ucla.edu>
127603         Merges from coreutils, etc.
127605         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127606         using the latest version from cvs.  This avoids problems with #line
127607         directives using a vendor (Sun) compiler.
127608         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127609         Don't set GETGROUPS_LIB here; now it's
127610         done via getgroups.m4's wrapper function.
127611         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127612         rather than just in sh-util/configure.in, so that the
127613         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127614         same.
127615         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127616         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127617         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127618         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127619         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127620         Remove code that is now done by the newly-required macros.
127621         Append $(EXEEXT) to DF_PROG.
127622         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127623         Do not invoke or require the following here,
127624         since prereq.m4 or some gnulib .m4 now does this for us:
127625         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127626         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127627         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127628         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127629         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127630         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127631         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127632         AC_FUNC_OBSTACK.
127633         Do not replace the following functions, as this is now the job
127634         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127635         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127636         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127637         atexit getpass, strdup, getpagesize.
127638         Replace 'raise'.
127639         Do not check for the following functions, as this is now the job
127640         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127641         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127642         setregid.
127643         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127644         Check for sys/sysctl.h.
127645         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127646         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127647         of checking for ssize_t ourselves.
127649         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127650         Require every macro that gnulib/modules/* suggests for us.
127651         (jm_PREREQ_ADDEXT): New macro.
127652         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127653         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127655         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127656         (gl_PHYSMEM): Use it.
127657         Also check for `table' function.
127658         Check for new headers and functions.
127659         Add check for sys/sysmp.h.
127660         With suggestions from Kaveh Ghazi.
127661         Ignore headers that are present but cannot be compiled.  This
127662         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127663         C 5.4.
127665 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127667         Document merge from coreutils.
127668         * modules/userspec: Depend on posixver.
127669         * modules/strftime: Depend on tzset.
127671 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127673         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127674         rather than tab, after '#' in shell-script copyright notices.
127675         Suggested by Bruno Haible.
127677 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127679         * config/srclist-update: Use three spaces, rather than tab, after '#'
127680         in shell-script copyright notices.  Suggested by Bruno Haible.
127681         Remove unnecessary parenthesization in regular expression.
127683 2003-08-15  Jim Meyering  <jim@meyering.net>
127685         Merge from coreutils.
127686         * lib/xgethostname.c: Include <stdlib.h>.
127687         (xghostname): Don't exit for anything other than memory-related
127688         failure; just return NULL.
127689         * lib/userspec.c: Include "posixver.h".
127690         (parse_user_spec): Accept `.' as a separator only
127691         in pre-POSIX-200112 mode.
127692         * lib/strtoimax.c: Use #elif rather than #else #if.
127693         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127694         Remove function, now that we can rely on a working tzset function.
127695         [!_LIBC]: Ensure that the required autoconf test has been run.
127696         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127697         Use underlying_strftime for %r.
127698         * lib/sha.c: Merge in some clean-up and optimization changes from
127699         glibc.
127700         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127701         Ensure that it is a multiple of 64.
127702         Rearrange loop exit tests so as to avoid performing an
127703         additional fread after encountering an error or EOF.
127704         * lib/realloc.c: Update copyright date.
127706 2003-08-15  Jim Meyering  <jim@meyering.net>
127707         and Paul Eggert  <eggert@twinsun.com>
127709         Merge from coreutils.
127710         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127711         member but strut utmpx does not.  Needed for AIX 4.3.3.
127712         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127714 2003-08-15  Jim Meyering  <jim@meyering.net>
127715         and Paul Eggert  <eggert@cs.ucla.edu>
127717         Merges from coreutils, etc.
127718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127719         Require gl_FUNC_TZSET_CLOBBER.
127720         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127721         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127722         members.
127724 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127726         Help the merge from coreutils.
127727         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127728         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127729         * m4/tzset.m4: Use it too.
127731 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127733         * modules/tzset: New file.
127735 2003-08-14  Jim Meyering  <jim@meyering.net>
127737         Merges from coreutils.
127738         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127739         variable names, rather than @FNMATCH_H@.
127740         * modules/alloca: Likewise for $(ALLOCA_H).
127742         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127743         the three copies of the literal target, `fnmatch.h'.
127744         * modules/alloca (alloca.h): Likewise.
127746 2003-08-14  Jim Meyering  <jim@meyering.net>
127748         Merge from coreutils.
127749         * m4/tzset.m4: New file.
127750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127751         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127752         otherwise, AIX 5.1 systems would end up using the latter.
127753         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127754         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127755         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127756         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127758 2003-08-14  Jim Meyering  <jim@meyering.net>
127760         Merge from coreutils.
127761         * lib/obstack.h: Whitespace changes.
127762         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127763         and xcalloc return values.
127764         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127765         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127766         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127767         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127768         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127769         error from mntctl.
127770         Use mntctl's return value to drive the entry-processing loop, since
127771         we can't rely on the value of the vmt_length member in the last
127772         entry.  On some systems doing so could result in exhausting
127773         virtual memory.  Based in part on a patch from Mike Jetzer.
127775 2003-08-14  Jim Meyering  <jim@meyering.net>
127776         and Paul Eggert  <eggert@twinsun.com>
127778         Merges from coreutils, plus other fixes.
127779         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127780         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127781         for credits and details.  Thanks to Kaveh Ghazi for helping
127782         to keep these files in sync.
127783         (ARRAY_SIZE): Define it.
127784         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127785         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127786         (memcasecmp): Don't assume size_t fits in unsigned int.
127787         Remove casts and duplicate code.
127788         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127789         (memcpy): Remove definition.
127790         Merge in some clean-up and optimization changes from glibc.
127791         [BLOCKSIZE]: Move definition to top of file.
127792         Ensure that it is a multiple of 64.
127793         Rearrange loop exit tests so as to avoid performing an
127794         additional fread after encountering an error or EOF.
127795         * lib/md5.h (md5_uintptr): Define.
127796         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127797         return to the initial working directory.  Preserve errno
127798         for caller.
127799         * lib/idcache.c: Include "xalloc.h".
127800         (xmalloc, xrealloc): Remove decls.
127801         (getuser): Remove casts no longer required in C89.
127802         * lib/human.c: Include stdio.h, for sprintf.
127803         * lib/group-member.c: Include "xalloc.h".
127804         (xmalloc, xrealloc): Remove decls.
127805         (get_group_info): Remove casts no longer required in C89.
127806         * lib/getusershell.c (readname): Remove casts no longer required in
127807         C89.
127808         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127809         * lib/getline.c: Whitespace fix, from coreutils.
127811 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127813         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127814         Check for isascii.
127816         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127817         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127818         Undo previous (whitespace-only) change.
127820 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127822         * lib/exclude.c: Include <ctype.h>
127823         (IN_CTYPE_DOMAIN): New macro.
127824         (is_space): New fn.
127825         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127826         and empty lines.
127828         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127829         Undo previous (whitespace-only) change.
127831 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127833         * config/srclist-update: Change update back to the old behavior,
127834         leaving whitespace alone.  Use one 'sed' command rather than a
127835         pipeline.
127836         (fixlicense): Now a variable, not a function.
127837         (remove_trailing_blanks): Remove.
127838         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127839         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127840         Undo previous (whitespace-only) change.
127842 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127844         Merge from coreutils.
127845         * modules/euidaccess: Add lib_SOURCES, include for new
127846         file euidaccess.h
127848 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127850         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127851         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127852         Normalize leading white space and remove trailing white space.
127854         Merge from coreutils
127855         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127857         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127858         0.12.1.  These files are now being upgraded automatically by
127859         ../config/srclist-update.
127861 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127863         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127864         Normalize leading white space and remove trailing white space.
127865         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127866         notice, as per ../config/srclist-update.
127868         Merge from coreutils.
127869         * lib/euidaccess.h: New file.
127870         * lib/euidaccess.c: Include it.
127871         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127872         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127873         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127875 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127877         * config/srclist-update: Add copyright notice.
127878         (remove_id_lines, remove_trailing_blanks): New constants.
127879         (fixfile): Use them to normalize spacing a bit in copied files.
127880         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127881         Normalize leading white space and remove trailing white space.
127883         * config/texinfo.tex: Sync with texinfo.
127885         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127886         strtoul.c from libc, to merge coreutils whitespace changes.
127888         * config/srclist.txt: Get the following m4 files from gettext:
127889         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127890         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127891         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127892         wint_t.m4.
127894 2003-08-12  Karl Berry  <karl@gnu.org>
127896         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127897         been made.
127899 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127901         * modules/gnu-source, m4/gnu-source.m4:
127902         Remove; we're assuming Autoconf 2.54 or later now.
127903         Suggested by Bruno Haible.
127904         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127906 2003-08-11  Bruno Haible  <bruno@clisp.org>
127908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127910 2003-08-11  Bruno Haible  <bruno@clisp.org>
127912         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127913         (vasnprintf): Use it instead of wcslen.
127915 2003-08-11  Bruno Haible  <bruno@clisp.org>
127917         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127918         value to ensure that _Bool promotes to int. Use #define for _Bool when
127919         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127921 2003-08-10  Karl Berry  <karl@gnu.org>
127923         * lib/regex.h: update from libc (whitespace fix).
127925 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127927         Merge some files from coreutils.  These changes were
127928         originally made by Jim Meyering.
127929         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127930         many older Unixes require this.
127931         * lib/alloca.c (alloca): Remove cast to argument of free;
127932         no longer needed in C89.
127933         * lib/alloca_.h, regex.h: Fix white space to match
127934         what GNU indent does.
127936 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127938         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127939         apparently Emacs's Unicode mode got confused before my 2003-08-05
127940         checkin.
127942 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127944         * m4/extensions.m4: New file.
127945         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127946         Require gl_USE_SYSTEM_EXTENSIONS.
127947         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127948         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127950 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127952         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127953         * modules/extensions, modules/gnu-source: New files.
127954         * modules/timespec, modules/unlocked-io: Depend on extensions.
127956 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127958         * modules/restrict: New file.
127959         * MODULES.html.sh (func_all_modules): Add restrict.
127960         * modules/regex: Depend on restrict.
127962 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127964         * m4/restrict.m4: New file.
127965         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127967 2003-08-07  Bruno Haible  <bruno@clisp.org>
127969         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127970         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127972 2003-08-07  Bruno Haible  <bruno@clisp.org>
127974         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127975         makes the module 'getndelim2' compatible with the module 'getline'.
127977 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127979         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127980         byte with "\201" to avoid glitches when editing that source file
127981         with multi-gnome-terminal.
127983 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127985         * lib/bumpalloc.h: Remove.
127987 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127989         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127990         * modules/bumpalloc: Remove.
127992 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127994         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127995         GNU coding style.
127997         Merge from coreutils.
127998         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127999         1. From glibc.
128000         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128001         from Karl Berry, implemented by Jim Meyering.
128002         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128003         from Dmitry V. Levin.
128004         Remove anachronistic cast of xrealloc.
128005         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128006         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128007         type. Otherwise, it wouldn't compile with at least /bin/cc on
128008         ymp-cray-unicos9.0.2.X.
128009         Combine two mostly-identical uses of alloca into one.
128010         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128012 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128014         [From Emacs.]
128016         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128017         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128018         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128019         obsolete NLIST_NAME_UNION.
128020         [__GNU__]: Undef BSD and FSCALE.
128021         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128023 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128025         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128026         an enum type, so that it's guaranteed to promote to int.  See:
128027         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128029 2003-08-03  Karl Berry  <karl@gnu.org>
128031         * config/depcomp: update from automake.
128033 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128035         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128036         (strerror): Don't assume that a printable int fits in 14 bytes.
128038 2003-07-31  Bruno Haible  <bruno@clisp.org>
128040         * modules/getpass-gnu: New file.
128041         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128043 2003-07-31  Bruno Haible  <bruno@clisp.org>
128045         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128047 2003-07-24  Karl Berry  <karl@gnu.org>
128049         * config/missing: update from automake.
128051 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128052             Bruno Haible  <bruno@clisp.org>
128054         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128055         * lib/getline.c (getline, getdelim): Likewise.
128056         Remove _GNU_SOURCE define; now it's defined in config.h through
128057         m4/getline.m4.
128059 2003-07-23  Karl Berry  <karl@gnu.org>
128061         * config/config.sub: update from prep.
128063 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128065         * modules/xalloc (Depends-on): Add exitfail.
128066         * modules/xmemcoll: Likewise.
128068 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128070         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128071         over-parenthesization in macros.
128073         Sync with coreutils.
128075         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128076         required by C99.
128078         Use `exit_failure' for xalloc and xmemcoll instead of their own
128079         private exit-failure variables.
128080         * lib/xalloc.h (xalloc_exit_failure): Remove.
128081         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128082         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128083         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128084         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128085         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128087 2003-07-20  Jim Meyering  <jim@meyering.net>
128089         * modules/closeout (Depends-on): Add exitfail.
128090         Suggestion from Bruno Haible.
128092 2003-07-19  Karl Berry  <karl@gnu.org>
128094         * config/config.sub: update from prep.
128096 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128098         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128099         Remove.
128100         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128101         to test that it can stand by itself.  Include "exitfail.h".
128102         Clients should set exit_failure instead.
128103         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128105 2003-07-18  Bruno Haible  <bruno@clisp.org>
128107         * modules/getndelim2: New file.
128108         * modules/getline: Share files with module getndelim2.
128109         * modules/getnline: Depend on getndelim2 instead of sharing files with
128110         it. Add getnline.c to lib_SOURCES.
128111         * MODULES.html.sh (func_all_modules): Add getndelim2.
128113 2003-07-18  Bruno Haible  <bruno@clisp.org>
128115         * m4/getndelim2.m4: New file.
128116         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128117         invoke gl_PREREQ_GETNDELIM2.
128118         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128119         gl_PREREQ_GETNDELIM2.
128120         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128121         gl_GETNDELIM2.
128123 2003-07-18  Bruno Haible  <bruno@clisp.org>
128125         * lib/getndelim2.h: New file.
128126         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128127         getndelim2.h.
128128         (getndelim2): Make non-static. Change return type to ssize_t.
128129         * lib/getline.h: Change argument names.
128130         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128131         * lib/getnline.c: Include getndelim2.h.
128133 2003-07-18  Andreas Schwab  <schwab@suse.de>
128135         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128137 2003-07-17  Karl Berry  <karl@gnu.org>
128139         * config/config.sub: update from prep.
128141 2003-07-17  Bruno Haible  <bruno@clisp.org>
128143         * modules/getnline: New file.
128144         * modules/getline: Add lib/getndelim2.c to source file list.
128145         * MODULES.html.sh (func_all_modules): Add getnline.
128147 2003-07-17  Bruno Haible  <bruno@clisp.org>
128149         * m4/getnline.m4: New file.
128151 2003-07-17  Bruno Haible  <bruno@clisp.org>
128153         * m4/Makefile.am.in: Remove file.
128154         * m4/Makefile.am: Remove file.
128155         * m4/Makefile.in: Remove file.
128157 2003-07-17  Bruno Haible  <bruno@clisp.org>
128159         * lib/getnline.h: New file.
128160         * lib/getnline.c: New file.
128161         * lib/getndelim2.c: New file, extracted from getline.c.
128162         (getndelim2): Renamed from getdelim2, with added nmax argument.
128163         * lib/getline.c: Include getndelim2.c.
128164         (getdelim2): Moved out to getndelim2.c.
128165         (getline, getdelim): Update.
128167 2003-07-17  Bruno Haible  <bruno@clisp.org>
128169         * lib/Makefile.am: Remove file.
128170         * lib/Makefile.in: Remove file.
128172 2003-07-17  Bruno Haible  <bruno@clisp.org>
128174         * configure.in: Remove file.
128175         * Makefile.in: Remove file.
128177 2003-07-17  Bruno Haible  <bruno@clisp.org>
128179         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128181 2003-07-16  Karl Berry  <karl@gnu.org>
128183         * config/srclist-update: was running fixlicense twice, which caused
128184                 texinfo.tex to be nullified for some reason.  Simplify,
128185                 $gplsrc is no longer needed as far as I can see?
128187 2003-07-16  Jim Meyering  <jim@meyering.net>
128189         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128191 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128193         * config/srclist.txt: Get the following files from gettext-runtime/intl
128194         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128195         ref-del.sin.  From Bruno Haible.
128196         * config/srclist-update (fixfile): Change grep pattern again, since the
128197         previous fix didn't work (there was another trailing $).  Use
128198         '[$]' to escape the $s.
128200 2003-07-15  Karl Berry  <karl@gnu.org>
128202         * lib/vasnprintf.c: update from gettext.
128204 2003-07-15  Karl Berry  <karl@gnu.org>
128206         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128207         gets expanded when surrounded by '$'.
128209 2003-07-15  Jim Meyering  <jim@meyering.net>
128211         * modules/save-cwd: Don't depend on error.  From Derek Price.
128213 2003-07-15  Jim Meyering  <jim@meyering.net>
128215         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128217 2003-07-14  Simon Josefsson  <jas@extundo.com>
128219         * modules/mempcpy: New file.
128220         * MODULES.html.sh (func_all_modules): Add mempcpy.
128222 2003-07-14  Simon Josefsson  <jas@extundo.com>
128224         * m4/mempcpy.m4: New file.
128226 2003-07-14  Simon Josefsson  <jas@extundo.com>
128228         * lib/mempcpy.h: New file.
128229         * lib/mempcpy.c: New file.
128231 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128233         * modules/getdate, modules/posixtm: Depend on mktime.
128235 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128237         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128238         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128239         unicodeio.c, unicodeio.h, unlocked-io.h:
128240         Switch from LGPL to GPL.
128242 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128244         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128245         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128246         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128247         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128248         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128249         updated automatically by ../config/srclist-update.  This changes
128250         their license from LPGL to GPL.
128252 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128254         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128255         assumed to refer to the root of the most recent stable gettext version.
128256         * config/srclistvars.sh: Add defaults for eggert.
128257         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128258         Match "This program" as well as "The program".  This is needed
128259         for gettext.
128261 2003-07-14  Jim Meyering  <jim@meyering.net>
128263         Don't emit diagnostics.  Let callers do that.
128264         * lib/save-cwd.c: Don't include "error.h".
128265         (save_cwd): Don't call error.  Ensure that errno is valid
128266         when returning nonzero.
128268         * lib/save-cwd.h (restore_cwd): Update prototype.
128269         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128270         Simplify.  Don't call error upon failure.  Let callers do that.
128271         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128272         when auditing is enabled.  But don't bother updating the #if.
128274 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128276         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128277         it breaks C++ compilation.
128278         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128280 2003-07-10  Simon Josefsson  <jas@extundo.com>
128282         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128284 2003-07-10  Jim Meyering  <jim@meyering.net>
128286         * m4/clock_time.m4: Remove trailing blank.
128287         * m4/intmax_t.m4: Likewise.
128289 2003-07-10  Jim Meyering  <jim@meyering.net>
128291         * lib/vasnprintf.c: Remove trailing blanks.
128292         Make cpp indentation consistent.
128294 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128296         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128297         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128298         Switch from LGPL to GPL.
128300 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128302         * config/srclist.txt: Sort sublists.  Add
128303         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128304         that differ from gnulib for one reason or another; we'd like this list
128305         to be smaller but for now let's document what we have.
128307 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128309         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128310         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128311         and sweeter "eval x=$x".
128312         * config/srclist.txt: Get lib/argp* from glibc.
128314 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128316         * lib/mktime.c: Fix some boundary cases and remove need for floating
128317         point.
128319         Issue a compile-time diagnostic if time_t is floating point, or if
128320         two's complement arithmetic is not in effect, or if arithmetic
128321         right shift does not propagate the sign.  These assumptions were
128322         all in the original code but they weren't checked.
128324         (TIME_T_MIDPOINT, verify): New macros.
128325         (__isleap): Remove; it has integer overflow problems.
128326         (leapyear): New function, without those problems.
128327         (ydhms_tm_diff): Remove; splitting into two parts.
128328         (ydhms_diff): New function, containing the arithmetic part of
128329         the old ydhms_tm_diff function.  Issue a compile-time
128330         diagnostic if we are not using C99 integer division.
128331         Avoid casts when possible.
128332         (guess_time_tm): New function, containing the checking part of
128333         the old ydhms_tm_diff function.  Return the new value, rather than
128334         the difference between it and the old.  Accept a new argument T
128335         so that *T specifies the old value.  Check for overflow in the result.
128337         (__mktime_internal): Use a time_t offset, not a long int offset.
128338         This undoes the 2003-06-04 change, which is no longer needed now
128339         that we have better overflow checking.
128340         (localtime_offset): Likewise.
128342         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128343         and long are 64-bit but int is only 32-bit.
128344         (ydhms_diff): Use long int to store year1 and yday1.
128345         Issue a compile-time diagnostic if long int is not wide enough.
128347         (__mktime_internal): Use long int to store adjusted year and yday.
128348         Use plain C rather than preprocessor commands, if that doesn't
128349         affect efficiency.
128350         Check for overflow (and try to repair) after each probe
128351         rather than checking only at the very end.  This avoids some bugs
128352         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128353         does not equal GMT offset at maximum time).
128354         Use integer to check for overflow rather than floating point; this
128355         is more portable to non-IEEE hosts, and is a tad faster.
128356         When we detect that we are oscillating between two values,
128357         don't check whether tm_isdst has the requested value, since
128358         we already know the answer.  When tm_isdst has the wrong value,
128359         use a different heuristic to find the right one, based on the
128360         extreme values actually observed in practice in tz2003a,
128361         rather than the (overly optimistic) "previous 3 calendar quarters".
128363         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128364         "T const" to accommodate glibc style.
128365         (check_result): Use less-confusing report format.  "long" -> "long int.
128366         (main): Likewise.
128367         Don't loop if the iteration overflows time_t.
128368         Allow a negative step in the iteration.
128370 2003-07-06  Karl Berry  <karl@gnu.org>
128372         * config/depcomp: update from automake.
128373         * config/config.sub: update from prep.
128375 2003-07-03  Karl Berry  <karl@gnu.org>
128377         * config/config.guess: update from prep.
128379 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128381         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128382         xreadlink.c now includes it unconditionally.
128384 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128386         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128387         having it depend on HAVE_SYS_TYPES_H.
128389 2003-07-01  Bruno Haible  <bruno@clisp.org>
128391         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128392         <sys/types.h> should be sufficient.
128393         Reported by Paul Eggert.
128395 2003-06-26  Karl Berry  <karl@gnu.org>
128397         * config/depcomp: update from automake.
128399 2003-06-26  Bruno Haible  <bruno@clisp.org>
128401         * modules/human: Depend on module stdbool.
128403 2003-06-25  Bruno Haible  <bruno@clisp.org>
128405         * modules/readlink: New file.
128406         * modules/xreadlink: Depend on it.
128407         * MODULES.html.sh (func_all_modules): Add readlink.
128409 2003-06-25  Bruno Haible  <bruno@clisp.org>
128411         * m4/readlink.m4: New file.
128413 2003-06-25  Bruno Haible  <bruno@clisp.org>
128415         * lib/readlink.c: New file.
128417 2003-06-22  Karl Berry  <karl@gnu.org>
128419         * config/srclist.txt: update mkinstalldirs from automake.
128420         * config/mkinstalldirs: update.
128422 2003-06-22  Bruno Haible  <bruno@clisp.org>
128424         Portability to mingw32.
128425         * m4/ssize_t.m4: New file, from GNU gettext.
128426         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128427         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128429 2003-06-22  Bruno Haible  <bruno@clisp.org>
128431         * modules/safe-read: Add m4/ssize_t.m4.
128432         * modules/xreadlink: Add m4/ssize_t.m4.
128434 2003-06-20  Bruno Haible  <bruno@clisp.org>
128436         Assume C89, so PARAMS isn't needed.
128437         * lib/unicodeio.h (PARAMS): Remove.
128438         * lib/unicodeio.c: Don't use PARAMS.
128440 2003-06-18  Karl Berry  <karl@gnu.org>
128442         * config/config.{guess,sub}: update from prep.
128444 2003-06-18  Jim Meyering  <jim@meyering.net>
128446         Merge changes from coreutils.
128447         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128448         Remove explicit declarations of xmalloc and realloc.
128449         Include xalloc.h.
128450         (read_utmp): Remove anachronistic cast of xmalloc.
128452 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128454         Assume C89, so PARAMS isn't needed.
128455         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128456         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128457         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128458         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128459         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128460         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128461         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128462         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128463         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128464         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128465         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128466         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128467         no longer needed. Anyway, config.h should always be included before any
128468         other file.
128470 2003-06-11  Simon Josefsson  <jas@extundo.com>
128472         * modules/sysexits: New file.
128473         * MODULES.html.sh (func_all_modules): Add sysexits.
128475 2003-06-11  Simon Josefsson  <jas@extundo.com>
128477         * lib/sysexit_.h: New file.
128479 2003-06-11  Derek Price  <derek@ximbiot.com>
128481         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128482         necessary.
128484 2003-06-11  Bruno Haible  <bruno@clisp.org>
128486         * m4/sysexits.m4: New file.
128488 2003-06-10  Simon Josefsson  <jas@extundo.com>
128490         * lib/argp.h: New file, from glibc.
128491         * lib/argp-ba.c: New file, from glibc.
128492         * lib/argp-eexst.c: New file, from glibc.
128493         * lib/argp-fmtstream.c: New file, from glibc.
128494         * lib/argp-fmtstream.h: New file, from glibc.
128495         * lib/argp-fs-xinl.c: New file, from glibc.
128496         * lib/argp-help.c: New file, from glibc.
128497         * lib/argp-namefrob.h: New file, from glibc.
128498         * lib/argp-parse.c: New file, from glibc.
128499         * lib/argp-pv.c: New file, from glibc.
128500         * lib/argp-pvh.c: New file, from glibc.
128501         * lib/argp-xinl.c: New file, from glibc.
128503 2003-06-10  Simon Josefsson  <jas@extundo.com>
128505         * modules/strchrnul: New file.
128507 2003-06-10  Simon Josefsson  <jas@extundo.com>
128509         * modules/argp: New file.
128511 2003-06-10  Simon Josefsson  <jas@extundo.com>
128513         * m4/strchrnul.m4: New file.
128515 2003-06-10  Simon Josefsson  <jas@extundo.com>
128517         * lib/strchrnul.h: New file.
128518         * lib/strchrnul.c: New file.
128520 2003-06-10  Bruno Haible  <bruno@clisp.org>
128522         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128524 2003-06-07  Karl Berry  <karl@gnu.org>
128526         * config/config.{guess,sub}: update from prep.
128528 2003-06-07  Jim Meyering  <jim@meyering.net>
128530         * modules/strtod: Use $(...) notation, not @...@ for
128531         AC_REPLACE'd variables.
128532         * modules/localcharset: Likewise.
128534 2003-06-07  Jim Meyering  <jim@meyering.net>
128536         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128537         in place of my name in the copyright comment.
128538         Remove definition and uses of __P.
128540         From coreutils.
128541         * lib/stat.c: Don't declare xmalloc explicitly.
128542         Instead, include "xalloc.h".
128543         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128544         xrealloc, and xcalloc return values.
128545         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128546         Improve comment.
128547         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128549 2003-06-07  Bruno Haible  <bruno@clisp.org>
128551         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128552         avoid AC_CONFIG_LINKS.
128553         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128554         fnmatch.h, to avoid AC_CONFIG_LINKS.
128555         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128557 2003-06-07  Bruno Haible  <bruno@clisp.org>
128559         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128560         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128561         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128562         directory.
128563         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128564         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128565         directory.
128567 2003-06-06  Jim Meyering  <jim@meyering.net>
128569         Merge from coreutils.
128570         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128571         Consolidate declarations and initializations of *_base* locals.
128573         Merge from coreutils.
128574         This avoids a core dump on systems without GNU putenv,
128575         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128576         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128577         (unsetenv): New static function, from GNU libc.
128578         (rpl_putenv): Use it.
128580         * lib/modechange.c: Remove trailing blanks.
128582         Merge from coreutils.
128583         * lib/fsusage.c: Remove declaration of statfs.
128584         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128586         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128588 2003-06-06  Jim Meyering  <jim@meyering.net>
128590         * lib/stdbool_.h: Renamed from stdbool.h.in.
128592 2003-06-06  Jim Meyering  <jim@meyering.net>
128593             Bruno Haible  <bruno@clisp.org>
128595         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128596         Adjust Makefile.am snippet not to redirect directly to target.
128597         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128599 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128601         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128602         mismatch, look in future quarters as well as past.  This fixes a
128603         bug when processing fall-backwards gaps immediately after a long
128604         period of daylight-saving time.
128606         * lib/mktime.c: Assume freestanding C89 or better.
128607         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128608         (__P): Remove; not used.
128609         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128610         (mktime, not_equal_tm, print_tm, check_result,
128611         main): Use prototypes.  Use const * where appropriate.
128612         (main): Fix typo in testing code that uncovered by above changes.
128613         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128615 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128617         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128618         locale.h, localeconv.  This merges changes from coreutils.
128620         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128621         It can be removed after the next Autoconf is released.
128622         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128623         needed.
128625 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128627         * lib/mktime.c: Fix Debian bug 177940
128628         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128629         (localtime_offset): Now long int, not time_t, because we want it
128630         to be guaranteed to be signed.  All uses changed.
128631         (__mktime_internal): If overflow would occur when adding offset,
128632         don't add it.
128634         Merge 'human' changes from coreutils.  Rewrite to support
128635         locale-specific notations like thousands separators.
128636         * lib/human.c: Simplify authorship notice.
128637         Include human.h immediately after config.h.
128638         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128639         <limits.h>: Do not include, since human.h does.
128640         (SIZE_MAX, UINTMAX_MAX): New macros.
128641         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128642         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128643         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128644         (power_letter): Renamed from suffixes.
128645         (generate_suffix_backwards): Remove.
128646         (adjust_value): Now takes int style (because of human.h changes)
128647         and long double value (for greater precision on some platforms).
128648         (group_number): New function.
128649         (human_readable): Use it.  Use integer options, not enum.
128650         Put the options before the sizes in the arg list.
128651         Support all the new options.
128652         The old human_readable function has been removed;
128653         use inttostr.h instead.
128654         (human_readable, default_block_size, humblock):
128655         Use uintmax_t, not int, for block sizes.
128656         (human_readable_inexact, block_size_types): Remove.
128657         (block_size_opts): New constant.
128658         (human_options): Renamed from human_block_size, with new signature
128659         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128660         * lib/human.h: Add copyright and authorship notice.
128661         Include <limits.h> and <stdbool.h> unconditionally.
128662         (PARAMS): Remove.  All uses removed.
128663         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128664         (enum human_inexact_style): Remove tag; now a nameless enum.
128665         (human_floor, human_ceiling, human_round_to_even): Now have
128666         values 2, 0, 1 rather than -1, 1, 0.
128667         (human_group_digits, human_suppress_point_zero, human_autoscale,
128668         human_base_1024, human_SI, human_B): New constants.
128669         (human_readable_inexact, human_block_size): Remove.
128670         (human_readable): Size args are now uintmax_t, not int.
128671         (human_options): New decl.
128673         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128674         unnecessary now that we assume C89 or better.  This change
128675         imported from coreutils.
128677         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128678         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128679         in the 2003-05-30 sync from glibc.
128681         .h files should stand alone, but we shouldn't include <sys/types.h>
128682         if we can get away with just <stddef.h>.
128684         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128685         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128686         rather than <sys/types.h>, as we merely need size_t.
128687         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128688         to get size_t.
128689         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128690         Include <stdio.h>, to get FILE.
128691         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128692         memcasecmp.h has included <stddef.h> and all we need is size_t.
128693         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128694         our interface, instead of including <sys/types.h>
128696 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128698         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128699         now, as glibc mktime is buggy on non-glibc systems.
128701 2003-06-03  Karl Berry  <karl@gnu.org>
128703         * config/config.sub: update from prep.
128705 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128707         [from coreutils]
128708         Fix some minor time-related bugs with POSIX time arguments.
128709         Some valid time stamps were being rejected (notably -1, and
128710         time stamps before 1900 on 64-bit hosts).  And some invalid
128711         time stamps were being accepted, e.g. September 31.
128713         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128714         that we can return (time_t) -1 successfully.
128715         * lib/posixtm.c: Likewise.
128716         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128717         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128718         (t): Remove static var.
128719         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128720         of static var.  All uses changed.
128721         (year): Do not reject years before 1900; they can occur with
128722         64-bit time_t.
128723         (posix_time_parse): Do not check for out-of-range components;
128724         that is now the caller's responsibility, since our checks were
128725         only approximations.
128726         (posixtime): Use mktime to check for out-of-range components,
128727         since it knows them exactly.
128728         If mktime returns (time_t) -1, check whether an error actually occurred
128729         by invoking localtime on -1.
128730         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128731         posixtime failures better.
128732         Improve the test data (in comments only).
128734 2003-06-02  Karl Berry  <karl@gnu.org>
128736         * config/mkinstalldirs (version): new variable.
128737         (--version): new option.
128738         (usage): improve message.
128740 2003-05-30  Karl Berry  <karl@gnu.org>
128742         * lib/mktime.c: update from libc.
128744 2003-05-30  Bruno Haible  <bruno@clisp.org>
128746         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128747         * config/config.rpath: Upgrade to gettext-0.12.1.
128749 2003-05-30  Bruno Haible  <bruno@clisp.org>
128751         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128752         * m4/nls.m4: New file, from gettext-0.12.1.
128753         * m4/po.m4: New file, from gettext-0.12.1.
128754         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128756 2003-05-30  Bruno Haible  <bruno@clisp.org>
128758         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128759         * lib/localcharset.h: Likewise.
128760         * lib/localcharset.c: Likewise.
128762 2003-05-29  Karl Berry  <karl@gnu.org>
128764         * config/config.rpath: update from gettext.
128766 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128768         Assume the headers required for C89 freestanding compilers.
128769         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128770         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128771         * m4/human.m4 (gl_HUMAN): Likewise.
128772         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128773         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128774         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128775         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128777         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128779 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128781         Assume the headers required for C89 freestanding compilers.
128782         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128783         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128784         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128785         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128786         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128787         define, since <limits.h> is guaranteed to do that.
128788         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128789         * lib/exclude.c: Include <stdbool.h> unconditionally.
128790         * lib/tempname.c: Include <stddef.h> unconditionally.
128791         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128792         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128793         <stddef.h> does that.
128794         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128795         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128796         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128797         needed.
128798         * lib/xstrtol.c: Likewise.
128799         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128800         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128802         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128803         warnings on some platforms.
128805         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128806         arbitrarily.
128808 2003-05-26  Jim Meyering  <jim@meyering.net>
128810         Merge in a change from coreutils:
128811         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128812         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128813         that condition, rather than `-1' which is slightly misleading.
128814         Change the name of the cache variable to have the gl_ prefix.
128815         Prompted by a patch from Richard Dawe for DJGPP.
128817 2003-05-24  Karl Berry  <karl@gnu.org>
128819         * config/config.guess: update from prep.
128821 2003-05-22  Karl Berry  <karl@gnu.org>
128823         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128825 2003-05-20  Karl Berry  <karl@gnu.org>
128827         * config/config.guess: update from prep.
128829 2003-05-18  Karl Berry  <karl@gnu.org>
128831         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128832         might actually be set by the user.
128834         * config/depcomp, install-sh, mdate-sh: update from automake.
128836 2003-05-17  Bruno Haible  <bruno@clisp.org>
128838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128839         invalid expansion for AC_EGREP_CPP.
128840         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128841         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128842         Suggested by Akim Demaille <akim@epita.fr> in
128843         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128845 2003-05-12  Jim Meyering  <jim@meyering.net>
128847         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128848         the space-padded-by-default conversion specifiers, %e, %k, %l.
128850 2003-05-12  Bruno Haible  <bruno@clisp.org>
128852         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128853         the string is longer than 4 KB.
128855 2003-05-11  Karl Berry  <karl@gnu.org>
128857         * config/config.{guess,sub}: update from prep.
128859 2003-05-09  Bruno Haible  <bruno@clisp.org>
128861         * modules/error: Add m4/strerror_r.m4 to file list.
128863 2003-05-03  Bruno Haible  <bruno@clisp.org>
128865         Upgrade to Unicode-4.0.
128866         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128867         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128868         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128869         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128870         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128871         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128872         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128873         Change width of U+E0100..U+E01EF from 1 to 0.
128875 2003-04-25  Jim Meyering  <jim@meyering.net>
128877         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128878         of type size_t, not int.
128880 2003-04-25  Bruno Haible  <bruno@clisp.org>
128882         * lib/copy-file.c: Include <stddef.h>, for size_t.
128884 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128886         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128887         code which expansion is under static control.  Patch imported from
128888         Akim Demaille's patch to Bison; see
128889         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128891 2003-04-14  Bruno Haible  <bruno@clisp.org>
128893         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128895 2003-04-11  Jim Meyering  <jim@meyering.net>
128897         Merge changes from Coreutils.
128899         2003-03-22  Jim Meyering  <jim@meyering.net>
128901         * lib/strftime.c (widen): Cast alloca return value to proper type.
128903         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128905         From GNU libc.
128906         * lib/strftime.c (my_strftime): Handle very large width
128907         specifications for numeric values correctly.  Improve checks for
128908         overflow.
128910         2003-01-19  Jim Meyering  <jim@meyering.net>
128912         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128913         definitions.
128914         (nl_get_alt_digit) [! defined my_strftime]: Define.
128915         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128916         _nl_get_alt_digit and _nl_get_walt_digit.
128918         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128919         libc. These changes have no effect outside of _LIBC.
128921 2003-04-10  Bruno Haible  <bruno@clisp.org>
128923         * modules/findprog: New file.
128924         * MODULES.html.sh (func_all_modules): Add it.
128926 2003-04-10  Bruno Haible  <bruno@clisp.org>
128928         * m4/findprog.m4: New file.
128929         * m4/eaccess.m4: New file.
128931 2003-04-10  Bruno Haible  <bruno@clisp.org>
128933         * lib/findprog.h: New file, from GNU gettext.
128934         * lib/findprog.c: New file, from GNU gettext.
128936 2003-04-05  Jim Meyering  <jim@meyering.net>
128938         Merge changes from Coreutils.
128940         * lib/exclude.h (PARAMS): Remove definition and uses.
128941         * lib/exclude.c: Remove uses of `PARAMS'.
128943         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128944         Add test-cases for DOS filenames. Declare program_name.
128945         (main): Set up program_name.  Patch by Rich Dawe.
128947         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128948         error from mntctl.
128949         Use mntctl's return value to drive the entry-processing loop, since
128950         we can't rely on the value of the vmt_length member in the last
128951         entry.  On some systems doing so could result in exhausting
128952         virtual memory.  Based in part on a patch from Mike Jetzer.
128954 2003-04-04  Bruno Haible  <bruno@clisp.org>
128956         * modules/linebreak: New file.
128957         * MODULES.html.sh (func_all_modules): Add it.
128959 2003-04-04  Bruno Haible  <bruno@clisp.org>
128961         * m4/linebreak.m4: New file.
128963 2003-04-04  Bruno Haible  <bruno@clisp.org>
128965         * lib/linebreak.h: New file, from GNU gettext.
128966         * lib/linebreak.c: New file, from GNU gettext with slight
128967         modifications.
128968         * lib/lbrkprop.h: New file, from GNU gettext.
128970 2003-04-03  Bruno Haible  <bruno@clisp.org>
128972         * modules/utf8-ucs4: New file.
128973         * modules/utf16-ucs4: New file.
128974         * modules/ucs4-utf8: New file.
128975         * modules/ucs4-utf16: New file.
128976         * MODULES.html.sh (func_all_modules): Add them.
128978 2003-04-03  Bruno Haible  <bruno@clisp.org>
128980         * m4/utf-ucs4.m4: New file.
128981         * m4/ucs4-utf.m4: New file.
128983 2003-04-03  Bruno Haible  <bruno@clisp.org>
128985         * lib/utf8-ucs4.h: New file, from GNU gettext.
128986         * lib/utf16-ucs4.h: New file, from GNU gettext.
128987         * lib/ucs4-utf8.h: New file, from GNU gettext.
128988         * lib/ucs4-utf16.h: New file, from GNU gettext.
128990 2003-04-02  Bruno Haible  <bruno@clisp.org>
128992         * modules/binary-io: New file.
128993         * MODULES.html.sh (func_all_modules): Add it.
128995 2003-04-02  Bruno Haible  <bruno@clisp.org>
128997         * lib/binary-io.h: New file, from GNU gettext.
128999 2003-04-01  Bruno Haible  <bruno@clisp.org>
129001         * modules/pathname: New file.
129002         * MODULES.html.sh (func_all_modules): Add it.
129004 2003-04-01  Bruno Haible  <bruno@clisp.org>
129006         * lib/pathname.h: New file, from GNU gettext.
129007         * lib/concatpath.c: New file, from GNU gettext.
129009 2003-03-30  Bruno Haible  <bruno@clisp.org>
129011         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129013 2003-03-30  Bruno Haible  <bruno@clisp.org>
129015         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129016         function chown() doesn't exist.
129018 2003-03-28  Bruno Haible  <bruno@clisp.org>
129020         * modules/copy-file: New file.
129021         * MODULES.html.sh (func_all_modules): Add it.
129023 2003-03-28  Bruno Haible  <bruno@clisp.org>
129025         * m4/copy-file.m4: New file.
129027 2003-03-28  Bruno Haible  <bruno@clisp.org>
129029         * lib/copy-file.h: New file, from GNU gettext.
129030         * lib/copy-file.c: New file, from GNU gettext.
129032 2003-03-18  Jim Meyering  <jim@meyering.net>
129034         * lib/quote.c (quote_n): Fix typo in comment.
129036 2003-03-18  Bruno Haible  <bruno@clisp.org>
129038         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129039         checking.
129040         * m4/onceonly_2_57.m4: Likewise.
129042 2003-03-17  Bruno Haible  <bruno@clisp.org>
129044         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129045         (m4_quote): Remove macro.
129046         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129048 2003-03-14  Jim Meyering  <jim@meyering.net>
129050         Merge changes from Coreutils.
129051         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129052         to be const, in order to avoid warnings.
129053         (obstack_room): Likewise.
129054         (obstack_empty_p): Likewise.
129056 2003-03-14  Bruno Haible  <bruno@clisp.org>
129058         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129059         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129061 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129063         Merge changes from Bison.
129064         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129065         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129066         when compiling Bison 1.875's `bitset bset = obstack_alloc
129067         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129068         * lib/hash.c: Include <stdbool.h> unconditionally.
129070 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129072         * m4/onceonly.m4 (m4_quote): New macro.
129073         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129074         Quote AC_FOREACH variable-expansions properly.
129076 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129078         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129080 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129082         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129083         Reported by Bruce Becker; see:
129084         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129086 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129087             Bruno Haible  <bruno@clisp.org>
129089         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129090         Reported by John Hughes, see
129091         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129093 2003-02-20  Bruno Haible  <bruno@clisp.org>
129095         * MODULES.html.sh (func_all_modules): Add poll.
129097 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129099         * modules/poll: New file.
129101 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129103         * lib/poll_.h: New file.
129104         * lib/poll.c: New file.
129106 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129108         * m4/poll.m4: New file.
129110 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129112         * modules/mathl: New file.
129114 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129116         * lib/mathl.h: New file.
129117         * lib/acosl.c: New file.
129118         * lib/asinl.c: New file.
129119         * lib/atanl.c: New file.
129120         * lib/ceill.c: New file.
129121         * lib/cosl.c: New file.
129122         * lib/expl.c: New file.
129123         * lib/floorl.c: New file.
129124         * lib/frexpl.c: New file.
129125         * lib/ldexpl.c: New file.
129126         * lib/logl.c: New file.
129127         * lib/sincosl.c: New file.
129128         * lib/sinl.c: New file.
129129         * lib/sqrtl.c: New file.
129130         * lib/tanl.c: New file.
129131         * lib/trigl.c: New file.
129132         * lib/trigl.h: New file.
129134 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129136         * m4/mathl.m4: New file.
129138 2003-02-18  Bruno Haible  <bruno@clisp.org>
129140         * MODULES.html.sh (func_all_modules): Add mathl.
129142 2003-02-17  Bruno Haible  <bruno@clisp.org>
129144         * modules/mkdtemp: New module.
129145         * MODULES.html.sh (func_all_modules): Add it.
129147 2003-02-17  Bruno Haible  <bruno@clisp.org>
129149         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129151 2003-02-17  Bruno Haible  <bruno@clisp.org>
129153         * lib/mkdtemp.h: New file, from GNU gettext.
129154         * lib/mkdtemp.c: New file, from GNU gettext.
129156 2003-02-02  Jim Meyering  <jim@meyering.net>
129158         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129159         e.g. glibc-2.2.93.
129161 2003-01-31  Bruno Haible  <bruno@clisp.org>
129163         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129164         'rpl_rename'.
129165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129166         'rpl_strnlen'.
129167         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129168         'rpl_strtod'.
129169         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129170         'rpl_utime'.
129172 2003-01-31  Bruno Haible  <bruno@clisp.org>
129174         * lib/rename.c: #undef rename before defining rpl_rename.
129175         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129177 2003-01-30  Bruno Haible  <bruno@clisp.org>
129179         * modules/vasnprintf, modules/vasprintf: New modules.
129180         * MODULES.html.sh (func_all_modules): Add them.
129182 2003-01-30  Bruno Haible  <bruno@clisp.org>
129184         * m4/signed.m4: New file, from GNU gettext.
129185         * m4/longdouble.m4: New file, from GNU gettext.
129186         * m4/wchar_t.m4: New file, from GNU gettext.
129187         * m4/wint_t.m4: New file, from GNU gettext.
129188         * m4/vasnprintf.m4: New file.
129189         * m4/vasprintf.m4: New file.
129191 2003-01-30  Bruno Haible  <bruno@clisp.org>
129193         * lib/printf-args.h: New file, from GNU gettext.
129194         * lib/printf-args.c: New file, from GNU gettext.
129195         * lib/printf-parse.h: New file, from GNU gettext.
129196         * lib/printf-parse.c: New file, from GNU gettext.
129197         * lib/vasnprintf.h: New file, from GNU gettext.
129198         * lib/vasnprintf.c: New file, from GNU gettext.
129199         * lib/asnprintf.c: New file, from GNU gettext.
129200         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129201         * lib/vasprintf.c: New file, from GNU gettext.
129202         * lib/asprintf.c: New file, from GNU gettext.
129204 2003-01-29  Bruno Haible  <bruno@clisp.org>
129206         * modules/stpncpy: New module.
129207         * MODULES.html.sh (func_all_modules): Add it.
129209 2003-01-29  Bruno Haible  <bruno@clisp.org>
129211         * m4/stpncpy.m4: New file.
129213 2003-01-29  Bruno Haible  <bruno@clisp.org>
129215         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129216         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129218 2003-01-28  Bruno Haible  <bruno@clisp.org>
129220         * modules/c-ctype: New module.
129221         * MODULES.html.sh (func_all_modules): Add it.
129223 2003-01-28  Bruno Haible  <bruno@clisp.org>
129225         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129226         Paul Eggert.
129227         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129228         Paul Eggert.
129230 2003-01-27  Bruno Haible  <bruno@clisp.org>
129232         * modules/xsetenv: New module.
129233         * MODULES.html.sh (func_all_modules): Add it.
129235 2003-01-27  Bruno Haible  <bruno@clisp.org>
129237         * lib/xsetenv.h: New file, from GNU gettext.
129238         * lib/xsetenv.c: New file, from GNU gettext.
129240 2003-01-23  Jim Meyering  <jim@meyering.net>
129242         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129243         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129245 2003-01-23  Bruno Haible  <bruno@clisp.org>
129247         * modules/minmax: New module.
129248         * MODULES.html.sh (func_all_modules): Add it.
129250 2003-01-23  Bruno Haible  <bruno@clisp.org>
129252         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129253         Eggert.
129255 2003-01-22  Bruno Haible  <bruno@clisp.org>
129257         * modules/exit: New module.
129258         * MODULES.html.sh (func_all_modules): Add it.
129260 2003-01-22  Bruno Haible  <bruno@clisp.org>
129262         * lib/exit.h: New file, from GNU gettext.
129264 2003-01-19  Bruno Haible  <bruno@clisp.org>
129266         * gnulib-tool: Recognize option --extract-maintainer.
129267         (func_get_maintainer): New function.
129268         * modules/*: Add Maintainer entry.
129270 2003-01-16  Jim Meyering  <jim@meyering.net>
129272         * m4/regex.m4: The `regex' struct is both input and output.
129273         Initialize it before each use.  Patch by Tim Waugh.
129275 2003-01-16  Bruno Haible  <bruno@clisp.org>
129277         * MODULES.html.sh: Add a table of contents. Add the module name as
129278         leftmost column. Add hyperlinks.
129280 2003-01-15  Bruno Haible  <bruno@clisp.org>
129282         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129284 2003-01-15  Bruno Haible  <bruno@clisp.org>
129286         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129287         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129288         suffix.
129290 2003-01-15  Bruno Haible  <bruno@clisp.org>
129292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129294 2003-01-15  Bruno Haible  <bruno@clisp.org>
129296         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129297         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129299 2003-01-14  Jim Meyering  <jim@meyering.net>
129301         * lib/same.c (same_name): Tweak a comment.
129303 2003-01-14  Bruno Haible  <bruno@clisp.org>
129305         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129306         when a string comparison is sufficient.
129308 2003-01-14  Bruno Haible  <bruno@clisp.org>
129310         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129311         'unsigned int'.
129313 2003-01-14  Bruno Haible  <bruno@clisp.org>
129315         * lib/hash-pjw.c: Add comment about low quality of this function.
129317 2003-01-13  Bruno Haible  <bruno@clisp.org>
129319         * modules/stpcpy: Distribute lib/stpcpy.h.
129320         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129322 2003-01-13  Bruno Haible  <bruno@clisp.org>
129324         * modules/*: Add a description.
129325         * modules/strpbrk: Fix Makefile.am snippet.
129326         * modules/strtoimax: Fix dependencies.
129327         * modules/strtoumax: Likewise.
129329 2003-01-13  Bruno Haible  <bruno@clisp.org>
129331         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129332         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129333         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129335 2003-01-13  Bruno Haible  <bruno@clisp.org>
129337         * gnulib-tool (func_create_testdir): Store config/* files in the main
129338         directory.
129339         * config.rpath: Move to ...
129340         * config/config.rpath: ... here.
129341         * modules/gettext: Contains config/config.rpath, not config.rpath.
129342         * modules/iconv: Likewise.
129344 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129346         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129347         to avoid collisions with libcurses and libreadline.
129349         * m4/getstr.m4: Remove.
129350         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129352 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129354         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129355         to avoid collisions with libcurses and libreadline.
129357         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129358         * lib/getstr.h, getstr.c: Remove.
129359         * lib/getline.c: Include "getline.h", to check interface.
129360         Move body of old getstr.c here: this defines MIN_CHUNK and
129361         declares getdelim2, which is renamed from getstr.
129362         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129364         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129365         All uses changed.
129366         * lib/linebuffer.h: Likewise.
129367         (readline): Remove backward-compatibility macro.
129369 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129371         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129372         to avoid collisions with libcurses and libreadline.
129373         * getstr: Remove.
129374         * MODULES.html.sh: Remove getstr.
129375         * modules/getline: Depend on unlocked-io, not getstr.
129377 2003-01-12  Jim Meyering  <jim@meyering.net>
129379         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129381 2003-01-10  Bruno Haible  <bruno@clisp.org>
129383         * modules/alloca: Change Makefile.am requirements. Simplify Include
129384         requirements. Add lib/alloca_.h to file list.
129386 2003-01-10  Bruno Haible  <bruno@clisp.org>
129388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129390 2003-01-10  Bruno Haible  <bruno@clisp.org>
129392         * lib/alloca_.h: New file.
129393         * lib/getdate.y: Unconditionally include alloca.h.
129394         * lib/makepath.c: Likewise.
129395         * lib/setenv.c: Likewise.
129396         * lib/userspec.c: Likewise.
129398 2003-01-09  Karl Berry  <karl@gnu.org>
129400         * MODULES.html.sh: include `dirname $0` in PATH, to find
129401         gnulib-tool.
129403 2003-01-09  Bruno Haible  <bruno@clisp.org>
129405         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129406         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129408 2003-01-09  Bruno Haible  <bruno@clisp.org>
129410         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129412 2003-01-09  Bruno Haible  <bruno@clisp.org>
129414         * lib/stdbool.h.in: New file.
129416 2003-01-09  Bruno Haible  <bruno@clisp.org>
129418         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129419         * MODULES.html.sh: Likewise.
129421 2003-01-08  Jim Meyering  <jim@meyering.net>
129423         * lib/full-write.c: Undefine and define-away `const' after inclusion
129424         of errno.h, not before.  Suggestion from Bruno Haible.
129426 2003-01-08  Bruno Haible  <bruno@clisp.org>
129428         * modules/full-read: Depend on full-write.
129430 2003-01-08  Bruno Haible  <bruno@clisp.org>
129432         * lib/safe-read.c: Include specification header first, to ensure its
129433         selfcontainedness.
129434         * lib/full-write.c: Likewise.
129436 2003-01-07  Jim Meyering  <jim@meyering.net>
129438         * lib/full-write.c: Rework so that it may serve to define full_read,
129439         too.
129440         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129442 2003-01-07  Bruno Haible  <bruno@clisp.org>
129444         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129445         <inttypes.h>.
129446         * lib/xstrtol.h: Likewise.
129447         * lib/xstrtoimax.c: Likewise.
129448         * lib/xstrtoumax.c: Likewise.
129449         * lib/human.h: Likewise.
129451         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129452         on systems that have <inttypes.h> but not <stdint.h>.
129454 2003-01-07  Bruno Haible  <bruno@clisp.org>
129456         * MODULES.html.sh: Add copyright notice.
129457         (missed_files): Omit CVS directory entries.
129458         (func_module): Make it work with sed-3.02.
129459         * MODULES.txt: Remove file.
129461 2003-01-06  Jim Meyering  <jim@meyering.net>
129463         * lib/version-etc.c: Update year in translatable copyright string.
129465 2003-01-03  Karl Berry  <karl@gnu.org>
129467         * config/config.{guess,sub}: update from prep.
129469 2003-01-02  Karl Berry  <karl@gnu.org>
129471         * doc/COPYING.DOC: belatedly updated to 1.2.
129473 2003-01-01  Karl Berry  <karl@gnu.org>
129475         * gnulib-tool (func_verify_module): report module name $module in
129476         error message, not $1.
129477         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129478         be created, only if it doesn't exist.
129479         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129481 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129483         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129485 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129487         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129488         memcmp if strcoll doesn't work.
129490 2002-12-31  Bruno Haible  <bruno@clisp.org>
129492         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129493         nonempty.
129495 2002-12-31  Bruno Haible  <bruno@clisp.org>
129497         * lib/memcoll.c (STRCOLL): New macro.
129498         (memcoll): Use it.
129500 2002-12-31  Bruno Haible  <bruno@clisp.org>
129502         * lib/localcharset.h: New file.
129503         * lib/localcharset.c: Include it.
129504         * lib/unicodeio.c: Likewise.
129506 2002-12-31  Bruno Haible  <bruno@clisp.org>
129508         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129509         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129511 2002-12-31  Bruno Haible  <bruno@clisp.org>
129513         * lib/getline.h: Include <stddef.h>, for size_t.
129515         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129516         * lib/unicodeio.c: Don't include <stddef.h>.
129518 2002-12-31  Bruno Haible  <bruno@clisp.org>
129520         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129521         HAVE_TM_ZONE.
129523 2002-12-24  Karl Berry  <karl@gnu.org>
129525         * config/config.guess: update from prep.
129527 2002-12-24  Bruno Haible  <bruno@clisp.org>
129529         General infrasructure.
129530         * m4/README: Rewritten.
129531         * m4/onceonly.m4: New file.
129532         * m4/onceonly_2_57.m4: New file.
129534         Module atexit.
129535         * m4/atexit.m4: New file.
129537         Module strtod.
129538         * m4/strtod.m4: New file.
129540         Module strtol.
129541         * m4/strtol.m4: New file.
129543         Module strtoul.
129544         * m4/strtoul.m4: New file.
129546         Module memchr.
129547         * m4/memchr.m4: New file.
129549         Module memcmp.
129550         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129551         (jm_FUNC_MEMCMP): Invoke it.
129553         Module memcpy.
129554         * m4/memcpy.m4: New file.
129556         Module memmove.
129557         * m4/memmove.m4: New file.
129559         Module memset.
129560         * m4/memset.m4: New file.
129562         Module strcspn.
129563         * m4/strcspn.m4: New file.
129565         Module strpbrk.
129566         * m4/strpbrk.m4: New file.
129568         Module strstr.
129569         * m4/strstr.m4: New file.
129571         Module strerror.
129572         * m4/strerror.m4: New file.
129574         Module mktime.
129575         * m4/mktime.m4: Renamed from jm-mktime.m4.
129576         (gl_PREREQ_MKTIME): New macro.
129577         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129579         Module malloc.
129580         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129581         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129582         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129584         Module realloc.
129585         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129586         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129587         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129589         Module strftime.
129590         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129591         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129592         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129593         gl_TM_GMTOFF.
129594         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129596         Module xalloc.
129597         * m4/xalloc.m4: New file.
129599         Module alloca.
129600         * m4/alloca.m4: New file.
129602         Module putenv.
129603         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129604         (jm_FUNC_PUTENV): Invoke it.
129606         Module setenv.
129607         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129608         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129609         when invoked twice.
129610         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129611         gt_FUNC_SETENV.
129613         Module memrchr.
129614         * m4/memrchr.m4: New file.
129616         Module stpcpy.
129617         * m4/stpcpy.m4: New file.
129619         Module strcase.
129620         * m4/strcase.m4: New file.
129622         Module strdup.
129623         * m4/strdup.m4: New file.
129625         Module strnlen.
129626         * m4/strnlen.m4: New file.
129628         Module strndup.
129629         * m4/strndup.m4: New file.
129631         Module xstrtod.
129632         * m4/xstrtod.m4: New file.
129634         Module xstrtol.
129635         * m4/xstrtol.m4: New file.
129637         Module getdate.
129638         * m4/getdate.m4: New file.
129640         Module unlocked-io.
129641         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129642         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129643         * m4/jm-glibc-io.m4n: Remove file.
129645         Module long-options.
129646         * m4/long-options.m4: New file.
129648         Module md5.
129649         * m4/md5.m4: New file.
129651         Module sha.
129652         * m4/sha.m4: New file.
129654         Module getstr.
129655         * m4/getstr.m4: New file.
129657         Module getline.
129658         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129659         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129660         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129661         simply getline. Infoke gl_PREREQ_GETLINE.
129663         Module obstack.
129664         * m4/obstack.m4: New file.
129666         Module hash.
129667         * m4/hash.m4: New file.
129669         Module readtokens.
129670         * m4/readtokens.m4: New file.
129672         Module strverscmp.
129673         * m4/strverscmp.m4: New file.
129675         Module stdbool.
129676         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129677         OSF/1.
129679         Module strtoll.
129680         * m4/strtoll.m4: New file.
129682         Module strtoull.
129683         * m4/strtoull.m4: New file.
129685         Module strtoimax.
129686         * m4/strtoimax.m4: New file.
129688         Module strtoumax.
129689         * m4/strtoumax.m4: New file.
129691         Module xstrtoimax.
129692         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129693         jm_AC_PREREQ_XSTRTOIMAX.
129694         Moved the strtol prerequisites to strtol.m4.
129695         Moved the strtoll prerequisites to strtoll.m4.
129696         Moved the strtoimax prerequisites to strtoimax.m4.
129698         Module xstrtoumax.
129699         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129700         jm_AC_PREREQ_XSTRTOUMAX.
129701         Moved the strtoul prerequisites to strtoul.m4.
129702         Moved the strtoull prerequisites to strtoull.m4.
129703         Moved the strtoumax prerequisites to strtoumax.m4.
129705         Module chown.
129706         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129707         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129709         Module dup2.
129710         * m4/dup2.m4: New file.
129712         Module ftruncate.
129713         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129714         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129716         Module getgroups.
129717         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129718         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129720         Module gettimeofday.
129721         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129722         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129723         gl_PREREQ_GETTIMEOFDAY.
129725         Module mkdir.
129726         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129727         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129729         Module mkstemp.
129730         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129731         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129732         jm_AC_TYPE_UINTMAX_T.
129733         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129735         Module stat.
129736         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129737         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129739         Module lstat.
129740         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129741         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129743         Module timespec.
129744         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129745         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129746         * m4/st_mtim.m4: Indentation.
129748         Module nanosleep.
129749         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129750         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129751         gl_PREREQ_NANOSLEEP.
129753         Module regex.
129754         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129755         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129756         (gl_REGEX): New macro.
129758         Module rename.
129759         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129760         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129762         Module rmdir.
129763         * m4/rmdir.m4: New file.
129765         Module utime.
129766         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129767         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129768         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129770         Module dirname.
129771         * m4/dirname.m4: New file.
129773         Module getopt.
129774         * m4/getopt.m4: New file.
129776         Module unistd-safer.
129777         * m4/unistd-safer.m4: New file.
129779         Module fnmatch.
129780         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129781         declaration.
129782         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129783         (gl_FUNC_FNMATCH_POSIX): New macro.
129784         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129785         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129786         simply fnmatch.
129788         Module exclude.
129789         * m4/exclude.m4: New file.
129791         Module human.
129792         * m4/human.m4: New file.
129794         Module acl.
129795         * m4/acl.m4: Nop.
129797         Module backupfile.
129798         * m4/backupfile.m4: New file.
129799         * m4/d-ino.m4: Indentation.
129801         Module fsusage.
129802         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129803         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129804         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129806         Module dirfd.
129807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129808         requirements.
129810         Module euidaccess.
129811         * m4/euidaccess.m4: New file.
129813         Module file-type.
129814         * m4/file-type.m4: New file.
129816         Module fileblocks.
129817         * m4/fileblocks.m4: New file.
129819         Module filemode.
129820         * m4/filemode.m4: New file.
129822         Module isdir.
129823         * m4/isdir.m4: New file.
129825         Module lchown.
129826         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129827         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129829         Module makepath.
129830         * m4/makepath.m4: New file.
129832         Module modechange.
129833         * m4/modechange.m4: New file.
129835         Module mountlist.
129836         * m4/mountlist.m4: New file.
129837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129838         Indentation.
129840         Module path-concat.
129841         * m4/path-concat.m4: New file.
129843         Module pathmax.
129844         * m4/pathmax.m4: New file.
129846         Module same.
129847         * m4/same.m4: New file.
129849         Module save-cwd.
129850         * m4/save-cwd.m4: New file.
129852         Module savedir.
129853         * m4/savedir.m4: New file.
129855         Module xgetcwd.
129856         * m4/xgetcwd.m4: New file.
129857         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129859         Module xreadlink.
129860         * m4/xreadlink.m4: New file.
129862         Module safe-read.
129863         * m4/safe-read.m4: New file.
129865         Module safe-write.
129866         * m4/safe-write.m4: New file.
129868         Module closeout.
129869         * m4/closeout.m4: New file.
129871         Module stdio-safer.
129872         * m4/stdio-safer.m4: New file.
129874         Module getpass.
129875         * m4/getpass.m4: New file.
129877         Module getugroups.
129878         * m4/getugroups.m4: New file.
129880         Module group-member.
129881         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129882         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129884         Module idcache.
129885         * m4/idcache.m4: New file.
129887         Module userspec.
129888         * m4/userspec.m4: New file.
129890         Module gettime.
129891         * m4/clock_time.m4: New file.
129892         * m4/gettime.m4: New file.
129894         Module settime.
129895         * m4/settime.m4: New file.
129897         Module posixtm.
129898         * m4/posixtm.m4: New file.
129900         Module gethostname.
129901         * m4/gethostname.m4: New file.
129903         Module canon-host.
129904         * m4/canon-host.m4: New file.
129906         Module gettext.
129907         * m4/codeset.m4: New file, from gettext-0.11.5.
129908         * m4/gettext.m4: New file, from gettext-0.11.5.
129909         * m4/glibc21.m4: New file, from gettext-0.11.5.
129910         * m4/iconv.m4: New file, from gettext-0.11.5.
129911         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129912         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129913         * m4/inttypes.m4: New file, from gettext-0.11.5.
129914         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129915         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129916         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129917         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129918         * m4/lib-link.m4: New file, from gettext-0.11.5.
129919         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129920         * m4/progtest.m4: New file, from gettext-0.11.5.
129921         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129922         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129923         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129925         Module localcharset.
129926         * m4/localcharset.m4: New file.
129928         Module hard-locale.
129929         * m4/hard-locale.m4: New file.
129931         Module mbswidth.
129932         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129933         onceonly macros.
129934         * m4/mbrtowc.m4: Add comment.
129936         Module memcasecmp.
129937         * m4/memcasecmp.m4: New file.
129939         Module memcoll.
129940         * m4/memcoll.m4: New file.
129942         Module unicodeio.
129943         * m4/unicodeio.m4: New file.
129945         Module rpmatch.
129946         * m4/rpmatch.m4: New file.
129948         Module yesno.
129949         * m4/yesno.m4: New file.
129951         Module exitfail.
129952         * m4/exitfail.m4: New file.
129954         Module c-stack.
129955         * m4/c-stack.m4 (gl_C_STACK): New macro.
129956         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129958         Module error.
129959         * m4/error.m4 (gl_ERROR): New macro.
129960         (jm_PREREQ_ERROR): Use onceonly macros.
129962         Module fatal.
129963         * m4/fatal.m4: New file.
129965         Module getloadavg.
129966         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129967         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129969         Module getpagesize.
129970         * m4/getpagesize.m4: New file.
129972         Module getusershell.
129973         * m4/getusershell.m4: New file.
129975         Module physmem.
129976         * m4/physmem.m4: New file.
129978         Module posixver.
129979         * m4/posixver.m4: New file.
129981         Module quotearg.
129982         * m4/quotearg.m4: New file.
129984         Module quote.
129985         * m4/quote.m4: New file.
129987         Module readutmp.
129988         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129990         Module sig2str.
129991         * m4/sig2str.m4: New file.
129993         Other.
129994         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129995         ulonglong.m4.
129996         * m4/intmax_t.m4: New file.
129997         * m4/d-type.m4: Indentation.
129998         * m4/jm-macros.m4: Update.
129999         * m4/prereq.m4 (jm_PREREQ): Update.
130000         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130001         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130002         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130003         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130004         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130005         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130006         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130007         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130008         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130009         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130010         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130011         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130012         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130013         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130014         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130015         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130016         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130017         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130018         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130020 2002-12-24  Bruno Haible  <bruno@clisp.org>
130022         * MODULES.txt: Update according to m4/ changes.
130024         Module gettext.
130025         * config.rpath: New file, from gettext-0.11.5.
130027         * modules/*: New module descriptions.
130028         * gnulib-tool: New file.
130029         * MODULES.html.sh: New file.
130031 2002-12-21  Karl Berry  <karl@gnu.org>
130033         * doc/fdl.texi: update to version 1.2.
130035 2002-12-19  Karl Berry  <karl@gnu.org>
130037         * config/config.guess: update from prep.
130039 2002-12-18  Bruno Haible  <bruno@clisp.org>
130041         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130042         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130044 2002-12-17  Bruno Haible  <bruno@clisp.org>
130046         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130047         stdlib.h, string.h.
130049 2002-12-17  Bruno Haible  <bruno@clisp.org>
130051         * lib/canon-host.c (strdup): Remove unused declaration.
130053         * lib/fsusage.c: Include full_read.h.
130054         (get_fs_usage): Use full_read instead of safe_read.
130056         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130058 2002-12-12  Karl Berry  <karl@gnu.org>
130060         * config/config.guess: update from prep.
130062 2002-12-11  Bruno Haible  <bruno@clisp.org>
130064         * m4/setenv.m4: New file, from gettext-0.11.5.
130066 2002-12-11  Bruno Haible  <bruno@clisp.org>
130068         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130069         not unsetenv().
130070         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130071         modifications:
130073         2002-12-11  Bruno Haible  <bruno@clisp.org>
130075                 * setenv.c (alloca): Fall back to malloc.
130076                 (freea): New macro.
130077                 (setenv): Use freea() to free memory allocated with alloca().
130079         2002-11-13  Bruno Haible  <bruno@clisp.org>
130081                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130082                 function declarations.
130083                 * unsetenv.c (unsetenv): Likewise.
130085         2002-03-04  Bruno Haible  <bruno@clisp.org>
130087                 Portability to AIX 4.3.3.
130088                 * unsetenv.c: New file, extracted from setenv.c.
130089                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130091         2001-12-20  Bruno Haible  <bruno@clisp.org>
130093                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130094                 use malloc instead. For SunOS 4.
130096         2001-12-11  Bruno Haible  <bruno@clisp.org>
130098                 * setenv.c: Declare alloca.
130099                 (compar_fn_t): New typedef.
130100                 (KNOWN_VALUE, STORE_VALUE): Use it.
130102         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130103         setenv.h.
130105 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130107         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130108         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130109         Choose values that are less likely to collide with system fnmatch
130110         options.
130111         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130112         defined (e.g., a pure POSIX system).
130113         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130114         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130116 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130118         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130119         a pain in practice to deal with generated m4 files.  This change
130120         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130122         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130123         and jm-glibc-io.m4, as they are no longer a special case.
130124         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130125         kludge and the auto-generation stuff.  Check only whether the
130126         functions are declared, not whether they exist, since older hosts
130127         that don't declare the functions can't use the optimization anyway.
130129 2002-12-06  Jim Meyering  <jim@meyering.net>
130131         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130133         Merge in changes from libc's misc/error.c, in preparation
130134         for the merge of gnulib's changes back into libc.
130136         * lib/error.c (_): Define only if not already defined.
130137         Move definition to follow all #include directives.
130138         Include unlocked-io.h only if !_LIBC.
130139         [_LIBC]: Include <libio/libioP.h>.
130140         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130141         (fflush): Tweak definition to use INTUSE.
130142         (putc): Define.
130144 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130146         * lib/alloca.c [defined emacs]: Include "lisp.h".
130147         (xalloc_die) [defined emacs]: New macro.
130148         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130149         [! defined emacs]: Include <xalloc.h>.
130150         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130151         (pointer): Typedef to POINTER_TYPE *.
130152         (malloc): Remove decl; we now always use xmalloc.
130153         (alloca): Use old-style definition, since Emacs needs this.
130154         Check for arithmetic overflow when computing combined size.
130156 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130158         Do not generate unlocked-io.h automatically, since it's easier to
130159         maintain it by hand.
130161         * lib/unlocked-io.h: New file, from GNU diffutils,
130162         but with proper copyright notice and attribution.
130163         * lib/gen-uio: Remove.
130164         * lib/Makefile.am: Add copyright notice.
130165         (libfetish_a_SOURCES): Add unlocked-io.h.
130166         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130167         (DISTCLEANFILES, io_functions): Remove macros.
130168         (EXTRA_DIST): Remove gen_uio.
130169         (unlocked-io.h): Remove rule.
130171 2002-12-04  Jim Meyering  <jim@meyering.net>
130173         Reflect the fact that stat.c and lstat.c are no longer generated.
130174         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130175         (DISTCLEANFILES): Likewise.
130176         (EXTRA_DIST): Likewise.
130177         (all_local): Don't depend on stat.c or lstat.c.
130178         (stat.c, lstat.c): Remove rules.
130179         (EXTRA_DIST): Remove xstat.in.
130181         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130182         * lib/stat.c: New file.  Contents mostly from xstat.in.
130183         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130184         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130186         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130187         too.
130188         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130190 2002-12-03  Jim Meyering  <jim@meyering.net>
130192         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130193         but not semantics, to minimize the differences between these two files.
130194         (safe_read): Change comment to mention SAFE_READ_ERROR.
130196         * lib/safe-read.c (IS_EINTR): Define.
130197         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130199 2002-12-02  Jim Meyering  <jim@meyering.net>
130201         * lib/safe-read.c (EINTR): Define.
130202         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130203         (INT_MAX): Provide fallback.
130204         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130206         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130208 2002-12-02  Bruno Haible  <bruno@clisp.org>
130210         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130211         Define, taken from safe-read.c.
130212         (INT_MAX): Provide fallback.
130213         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130214         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130216         * lib/safe-read.c (EINTR): Remove definition.
130217         (safe_read): Don't use EINTR if it is absent.
130219 2002-12-01  Jim Meyering  <jim@meyering.net>
130221         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130222         zero.
130223         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130225 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130227         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130228         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130229         with `if (! (value < limit)) abort ();', for readability.
130231 2002-11-26  Karl Berry  <karl@gnu.org>
130233         * lib/strdup.c: copy from libc again, with jim's ok.
130234         * lib/.cppi-disable: re-add strdup.c
130236 2002-11-25  Karl Berry  <karl@gnu.org>
130238         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130239         instead of "strtol.c".
130241 2002-11-25  Karl Berry  <karl@gnu.org>
130243         * config/install-sh: update from automake for variable quoting, $0 in
130244         error msgs, etc.
130246         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130247         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130248         entry.
130250 2002-11-25  Jim Meyering  <jim@meyering.net>
130252         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130254 2002-11-24  Karl Berry  <karl@gnu.org>
130256         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130257         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130259 2002-11-24  Jim Meyering  <jim@meyering.net>
130261         Update from coreutils:
130263         * lib/mktime.c: Merge in changes from libc.
130265         Avoid a link-time failure on some Linux systems.
130266         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130267         (otherwise).
130268         (__mon_yday): Declare with the STATIC attribute.
130269         (__mktime_internal): Likewise.
130270         Based on a report from Greg Schafer.
130272 2002-11-23  Jim Meyering  <jim@meyering.net>
130274         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130275         Use `unsigned', not `int', as type of index.
130277         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130279         * lib/fsusage.c: Remove unneeded parentheses around operands of
130280         `defined'.
130282 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130284         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130285         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130286         so that we can be included first.
130287         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130288         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130289         No need to include stddef.h or sys/types.h any more.
130290         Surround local include files with "", not "<>".
130291         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130292         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130293         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130294         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130295         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130296         (ISPRINT): Remove; no longer needed now that we assume C89.
130298         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130299         Preserve errno.
130301         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130302         quotearg_char): Use SIZE_MAX rather than
130303         (size_t) -1 when we are talking about "infinity".
130305         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130307 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130309         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130310         hint that one should use `if (! x) abort ();' rather than `assert
130311         (x);', and anyway it's one less thing to worry about configuring.
130312         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130313         hash_rehash, hash_insert): Use abort rather than assert.
130315 2002-11-22  Bruno Haible  <bruno@clisp.org>
130317         * lib/safe-read.h: Assume C89. Add comments.
130318         (safe_read): Change return type to size_t.
130319         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130320         byte counts > SSIZE_MAX correctly.
130321         * lib/safe-write.h: New file.
130322         * lib/safe-write.c: New file.
130323         * lib/full-read.h: New file.
130324         * lib/full-read.c: New file.
130325         * lib/full-write.h: Assume C89. Add comments.
130326         * lib/full-write.c: Include safe-write.h.
130327         (full_write): Rewritten to use safe_write.
130328         Suggested by Jim Meyering and Paul Eggert.
130330 2002-11-21  Jim Meyering  <jim@meyering.net>
130332         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130334         Merge in changes from the coreutils.
130336         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130337         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130338         <stdint.h>.
130339         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130340         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130341         int.  Work more efficiently if X is the same width as uintmax_t.
130342         Do not compare X to -1, to avoid bogus compiler warning.
130343         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130344         Don't assume that f_frsize and f_bsize are the same type.
130346         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130347         warning on FreeBSD.
130349         * lib/makepath.c (make_path): Restore umask *before* creating the final
130350         component.
130351         (make_path): Minor reformatting.
130353         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130354         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130355         HAVE_MALLOC/HAVE_REALLOC.
130357         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130358         dummy ones.  At least on GNU/Linux systems, `auto' means something
130359         else.
130360         From Michael Stone.
130362 2002-11-21  Bruno Haible  <bruno@clisp.org>
130364         Remove case insensitive option matching.
130365         * lib/argmatch.h (argcasematch): Remove declaration.
130366         (ARGCASEMATCH): Remove macro.
130367         (__xargmatch_internal): Remove case_sensitive argument.
130368         (XARGMATCH): Update.
130369         (XARGCASEMATCH): Remove macro.
130370         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130371         case_sensitive argument.
130372         (argcasematch): Remove function.
130373         (__xargmatch_internal): Remove case_sensitive argument.
130374         (main): Use XARGMATCH instead of XARGCASEMATCH.
130376         * lib/xmalloc.c: Change compile-time error message. Add comment about
130377         required autoconf version.
130379 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130381         Merge argmatch cleanups from Bison.  Assume C89.
130383         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130384         Include stdlib.h, for EXIT_FAILURE.
130385         Always include <string.h>, since we assume C89.
130386         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130387         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130388         Include <stddef.h> instead, since it's all we need for size_t.
130389         (PARAMS): Remove.  All uses removed.
130390         (ARRAY_CARDINALITY): Do not bother to #undef.
130391         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130392         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130393         Remove unnecessary parentheses.
130394         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130395         Insert necessary parentheses.
130396         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130397         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130399 2002-11-19  Bruno Haible  <bruno@clisp.org>
130401         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130402         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130404         * lib/mbswidth.h (PARAMS): Remove macro.
130405         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130406         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130408         * lib/gcd.h (PARAMS): Remove macro.
130409         (gcd): Use ANSI C function declarations.
130410         * lib/gcd.c (gcd): Likewise.
130412 2002-11-15  Bruno Haible  <bruno@clisp.org>
130414         * lib/strcspn.c: Include <stddef.h>.
130415         (strcspn): Use ANSI C function declaration. Change return type to
130416         size_t. Use NULL.
130417         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130418         (strpbrk): Use NULL.
130419         * lib/strpbrk.h (PARAMS): Remove macro.
130420         (strpbrk): Use ANSI C function declaration.
130421         * lib/strstr.c: Don't include <sys/types.h>.
130422         * lib/strstr.h (PARAMS): Remove macro.
130423         (strstr): Use ANSI C function declarations.
130425 2002-11-14  Karl Berry  <karl@gnu.org>
130427         * config/mkinstalldirs: `do' on separate line, instead of
130428         `for var; do'.
130430 2002-11-06  Bruno Haible  <bruno@clisp.org>
130432         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130433         * lib/gcd.c (gcd): Likewise.
130435 2002-11-05  Bruno Haible  <bruno@clisp.org>
130437         * lib/gcd.h: New file, from gettext-0.11.5.
130438         * lib/gcd.c: New file, from gettext-0.11.5.
130440 2002-11-05  Bruno Haible  <bruno@clisp.org>
130442         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130443         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130444         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130445         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130447         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130448         <libintl.h>.
130449         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130450         <libintl.h>.
130452         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130453         * lib/human.c: Include gettext.h instead of <libintl.h>.
130454         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130455         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130456         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130457         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130458         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130459         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130460         (textdomain): Remove definition.
130461         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130463         * lib/long-options.c: Remove include of <libintl.h> and definition of
130464         _.
130465         * lib/same.c: Remove include of <libintl.h> and definition of _.
130467 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130469         * lib/config.charset: A few additions for Solaris.
130471 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130473         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130474         * lib/localcharset.c (locale_charset): Declare as extern "C".
130476 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130478         * lib/config.charset: msdos in uk_UA uses CP1125.
130480 2002-11-04  Bruno Haible  <bruno@clisp.org>
130482         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130483         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130484         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130485         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130486         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130488 2002-11-04  Bruno Haible  <bruno@clisp.org>
130490         * lib/localcharset.c (locale_charset): Don't return an empty string.
130492 2002-11-04  Bruno Haible  <bruno@clisp.org>
130494         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130495         aliases.
130497 2002-11-04  Bruno Haible  <bruno@clisp.org>
130499         * lib/config.charset: Update for newest glibc. Add canonical names
130500         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130502 2002-11-04  Bruno Haible  <bruno@clisp.org>
130504         * lib/config.charset: Add support for NetBSD.
130506 2002-11-04  Bruno Haible  <bruno@clisp.org>
130508         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130510 2002-11-01  Bruno Haible  <bruno@clisp.org>
130512         * configure.in: Add AC_CONFIG_AUX_DIR call.
130513         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130514         test/Makefile.
130515         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130517 2002-09-28  Karl Berry  <karl@gnu.org>
130519         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130520         installed automake until the next release, since changes have been
130521         made.
130523 2002-09-25  Karl Berry  <karl@gnu.org>
130525         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130526         * lib/getopt*: copy from libc/posix.
130527         * lib/gettext.h: copy from gettext.
130528         * lib/.cppi-disable: add strdup.c, gettext.h.
130530 2002-09-25  Karl Berry  <karl@gnu.org>
130532         * config/srclist.txt: enable gettext.h check.
130533         * config/config.{guess,sub}: update from prep.
130534         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130535                 from automake 1.6.3.
130536         See srclist*.
130538 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130540         * regex.c (PATFETCH): Remove the translating fetch.
130541         (PATFETCH_RAW): Rename to PATFETCH.
130542         (set_image_of_range): New fun.
130543         (SET_RANGE_TABLE_WORK_AREA): Use it.
130544         (regex_compile): Don't translate the pattern chars so eagerly.
130545         Only do it when inserting an `exactn' bytecode or when handling
130546         a char-range.
130547         (mutually_exclusive_p): Avoid empty statement.
130549 2002-07-06  Jim Meyering  <meyering@lucent.com>
130551         * m4/README: Don't mention Makefile.am.in.
130552         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130554 2002-07-01  Jim Meyering  <meyering@lucent.com>
130556         * lib/c-stack.c: Include sys/time.h.
130557         From Volker Borchert.
130559 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130561         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130563 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130565         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130566         New macro.  Use it uniformly instead of
130567         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130568         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130569         reported by Vin Shelton.
130571 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130573         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130574         Do not assume SA_SIGINFO behavior.
130575         Bug reported by Jim Meyering on NetBSD 1.5.2.
130577 2002-06-22  Jim Meyering  <meyering@lucent.com>
130579         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130580         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130583         now that configure.ac uses AC_GNU_SOURCE.
130584         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130585         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130587         Update to latest tools.  Suggestions from Paul Eggert.
130588         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130589         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130590         * m4/fnmatch.m4: Likewise.
130591         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130592         to AC_HEADER_STDBOOL
130594 2002-06-22  Jim Meyering  <meyering@lucent.com>
130596         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130597         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130599 2002-06-22  Jim Meyering  <meyering@lucent.com>
130601         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130603         * lib/exitfail.c, exitfail.h: Likewise.
130604         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130606         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130607         of fnmatch.h.
130608         (EXTRA_DIST): Add fnmatch_loop.c.
130609         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130611         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130612         * lib/fnmatch.c: Update from diffutils-2.8.2.
130613         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130614         * lib/fnmatch.h: Remove file.
130616 2002-06-21  Jim Meyering  <meyering@lucent.com>
130618         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130619         * m4/mbrtowc.m4: Likewise.
130621         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130622         * m4/mbswidth.m4: Reflect name change:
130623         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130626         * m4/lib-link.m4: Update from gettext-0.11.2.
130627         * m4/gettext.m4: Likewise.
130629         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130630         From Alfred M. Szmidt.
130632 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130634         * lib/file-type.h: Report an error if neither S_ISREG nor
130635         S_IFREG is defined, instead of using a test specific to glibc
130636         2.2.  This should be safe, since POSIX requires S_ISREG and
130637         Unix Version 7 had S_IFREG.  We don't need to check for
130638         <sys/types.h> since we don't use any symbols that it defines.
130640 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130642         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130643         $@-t, so that each temporary file name is unique and valid in the first
130644         8 characters, for operation under DOS.
130646 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130650 2002-06-15  Jim Meyering  <meyering@lucent.com>
130652         Work even with DJGPP 2.03, which lacks support for symlinks.
130653         From Richard Dawe.
130654         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130655         is defined.
130656         * lib/lchown.c (S_ISLNK): Likewise.
130658 2002-06-15  Jim Meyering  <meyering@lucent.com>
130660         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130661         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130662         have been included before this file.
130664 2002-06-14  Jim Meyering  <meyering@lucent.com>
130666         * lib/file-type.h: Use the version from diffutils-2.8.2.
130667         * lib/file-type.c: Likewise.
130669 2002-06-07  Jim Meyering  <meyering@lucent.com>
130671         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130672         They're needed at least for NetBSD 1.5.2.
130673         ($statxfs_includes): Include those same headers.
130674         ($statxfs_includes): Include sys/vfs.h if available.
130675         ($statxfs_includes): Likewise for sys/statvfs.h.
130676         Check for the following members in both structs statfs and statvfs:
130677         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130679 2002-06-01  Jim Meyering  <meyering@lucent.com>
130681         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130682         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130684 2002-05-28  Jim Meyering  <meyering@lucent.com>
130686         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130687         Reported by Volker Borchert.
130689 2002-05-27  Jim Meyering  <meyering@lucent.com>
130691         Fix a problem seen only on nonconforming systems whereby ls.c's
130692         use of localtime, and then of gettimeofday would cause trouble:
130693         the localtime call used to initialize rpl_gettimeofday's save
130694         mechanism would clobber ls's current local time information so
130695         that in any long listing the first file would always be listed
130696         with date 1970-01-01.  Analysis by Volker Borchert.
130698         * lib/gettimeofday.c (localtime): Undefine.
130699         (rpl_localtime): New function.
130701 2002-05-27  Jim Meyering  <meyering@lucent.com>
130703         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130704         localtime.
130706         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130707         use the replacement function; it wouldn't resolve at link time.
130708         Reported by Volker Borchert.
130710 2002-05-22  Jim Meyering  <meyering@lucent.com>
130712         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130713         file-type.h.
130714         * lib/file-type.h: New file.
130715         * lib/file-type.c (file_type): New file/function.  Extracted from
130716         diffutils.
130718 2002-04-30  Jim Meyering  <meyering@lucent.com>
130720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130722 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130724         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130726 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130728         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130729         Do not check for alloca.h (no longer used) or stdbool.h (was never
130730         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130732 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130734         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130736 2002-04-29  Jim Meyering  <meyering@lucent.com>
130738         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130739         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130740         Use AC_FUNC_STRNLEN here instead.
130742         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130743         With autoconf-2.53a, it's part of AC_PROG_CC.
130745 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130747         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130748         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130750 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130752         * lib/sig2str.h, lib/sig2str.c: New files.
130753         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130755 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130757         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130758         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130759         of 127, since 64 is the largest conceivable number for ancient
130760         nonstandard hosts.
130761         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130763 2002-04-28  Jim Meyering  <meyering@lucent.com>
130765         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130767 2002-04-24  Jim Meyering  <meyering@lucent.com>
130769         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130770         (jm_PREREQ): Use it.
130772         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130773         mach/mach.h fcntl.h.
130774         Check for this function: setlocale.
130776 2002-04-24  Jim Meyering  <meyering@lucent.com>
130778         * lib/gettext.h: New file, from Gettext.
130779         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130780         (libfetish_a_SOURCES): Add gettext.h.
130782 2002-04-16  Jim Meyering  <meyering@lucent.com>
130784         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130785         ut_pid, ut_id, ut_exit.
130787 2002-04-16  Jim Meyering  <meyering@lucent.com>
130789         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130790         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130791         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130793 2002-04-12  Jim Meyering  <meyering@lucent.com>
130795         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130796         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130797         existence of the getmntinfo function.  Needed for Darwin 5.3.
130799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130800         This is necessary at least on Darwin 5.3.
130802         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130803         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130804         strnlen.o in the library, and that makes some versions of ranlib
130805         object.
130807 2002-04-12  Jim Meyering  <meyering@lucent.com>
130809         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130811 2002-04-09  Jim Meyering  <meyering@lucent.com>
130813         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130814         to be more precise.  Rather than saying we're checking whether the
130815         function `works', say what we're testing.
130816         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130817         Reported by Bruno Haible.
130819 2002-03-10  Jim Meyering  <meyering@lucent.com>
130821         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130822         Suggestion from Santiago Vila.
130824 2002-03-08  Jim Meyering  <meyering@lucent.com>
130826         * lib/rename.c: Mention that this wrapper is needed also on
130827         mips-dec-ultrix4.4 systems.
130829 2002-03-02  Jim Meyering  <meyering@lucent.com>
130831         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130832         not HAVE_CLOCK_SETTIME.
130834 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130836         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130837         Check for clock_settime.
130839 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130841         * lib/nanosleep.h: Rename to....
130842         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130844         * lib/gettime.c: New file.
130845         * lib/settime.c: New file.
130846         * lib/stime.c: Remove.
130848         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130849         timespec.h.  Remove nanosleep.h.
130851 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130853         * m4/acl.m4: New file.
130854         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130855         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130857 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130859         * lib/acl.c, lib/acl.h: New files.
130860         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130862 2002-02-24  Jim Meyering  <meyering@lucent.com>
130864         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130865         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130866         cause trouble.  Reported by Nelson Beebe.
130868 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130870         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130871         compilers that don't know that xalloc_die never returns.
130873 2002-02-20  Jim Meyering  <meyering@lucent.com>
130875         * lib/getdate.c: Regenerate using bison-1.33.
130877 2002-02-17  Jim Meyering  <meyering@lucent.com>
130879         * config/config.guess (main): Don't use `head -1'; it's no longer
130880         portable. Use `sed 1q' instead.
130882 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130884         * m4/codeset.m4: Upgrade to gettext-0.11.
130885         * m4/gettext.m4: Upgrade to gettext-0.11.
130886         * m4/glibc21.m4: Upgrade to gettext-0.11.
130887         * m4/iconv.m4: Upgrade to gettext-0.11.
130888         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130889         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130890         * m4/lib-ld.m4: New file, from gettext-0.11.
130891         * m4/lib-link.m4: New file, from gettext-0.11.
130892         * m4/lib-prefix.m4: New file, from gettext-0.11.
130893         * m4/progtest.m4: Upgrade to gettext-0.11.
130895 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130897         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130898         (jm_PREREQ): Use it.
130900 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130902         * lib/posixver.c, lib/posixver.h: New files.
130903         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130905 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130906             Bruno Haible  <bruno@clisp.org>
130908         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130909         (fwrite_success_callback): New declaration.
130910         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130911         print_unicode_char. Call failure callback instead of error.
130912         (fwrite_success_callback): New function.
130913         (exit_failure_callback): New function.
130914         (fallback_failure_callback): New function.
130915         (print_unicode_char): Call unicode_to_mb.
130917 2002-01-26  Jim Meyering  <meyering@lucent.com>
130919         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130920         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130922 2002-01-26  Jim Meyering  <meyering@lucent.com>
130924         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130926 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130928         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130930 2002-01-22  Jim Meyering  <meyering@lucent.com>
130932         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130933         Otherwise, some versions of automake would omit the rule that makes
130934         Makefile from Makefile.in.
130936 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130938         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130939         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130940         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130941         (memcoll): Set errno to zero if there is no error.
130943         * lib/quotearg.c (quotearg_buffer_restyled):
130944         Fix bug with quoting buffers containing NUL when backslashing escapes.
130945         This bug was exposed by the other changes in this patch.
130946         (quotearg_n_options): New arg ARGSIZE.
130947         All callers changed.
130948         (quoting_options_from_style): New function.
130949         (quotearg_n_style): Use it.
130950         (quotearg_n_style_mem): New function.
130952         * lib/quotearg.h (quotearg_n_style_mem): New function.
130954 2002-01-19  Jim Meyering  <meyering@lucent.com>
130956         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130957         Remove useless quotes: DF_PROG="df".
130958         * m4/strnlen.m4: New file.
130960 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130962         * lib/backupfile.c (ISDIGIT): Comment fix.
130963         * lib/getdate.y (ISDIGIT): Likewise.
130964         * lib/posixtm.c (ISDIGIT, year): Likewise.
130965         * lib/strverscmp.c (ISDIGIT): Likewise.
130966         * lib/userspec.c (ISDIGIT): Likewise.
130968 2002-01-16  Jim Meyering  <meyering@lucent.com>
130970         * lib/getdate.y: Add three semicolons, each just before a closing
130971         brace. Bison (as of version 1.31) no longer papers over that mistake.
130973 2002-01-05  Jim Meyering  <meyering@lucent.com>
130975         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130977 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130979         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130980         not silently exit merely because the output buffer happens to
130981         have nothing pending.
130983 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130985         See the big note in ../ChangeLog.
130986         * lib/human.c (suffixes): Prefer K to k for 1024.
130987         (generate_suffix_backwards): New function.
130988         (human_readable_inexact): Use it.
130989         * lib/xstrtol.c (__xstrtol): If there is no number but there
130990         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130991         Accept 'K' as well as 'k'.
130993 2001-12-15  Jim Meyering  <meyering@lucent.com>
130995         * lib/regex.h (__restrict_arr): Update from libc.
130997         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130998         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130999         (STREQ): Define.
131001 2001-12-14  Jim Meyering  <meyering@lucent.com>
131003         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131004         Suggestion from Bruno Haible.
131006 2001-12-10  Jim Meyering  <meyering@lucent.com>
131008         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131009         xrealloc, Instead, include "xalloc.h".
131010         (initbuffer): Don't cast xmalloc return value to char*.
131011         (readline): Reword comment.
131012         Don't cast xrealloc return value to char*
131013         Return NULL, not 0.
131015 2001-12-09  Jim Meyering  <meyering@lucent.com>
131017         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131018         about `signed and unsigned type in conditional expression'.
131019         * lib/posixtm.c (posix_time_parse): Likewise.
131021         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131023         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131024         to avoid a pedantic warning.
131026         * lib/getstr.c: Don't include assert.h.
131027         (getstr): Remove warning-evoking assertions.
131028         Return -1 if offset parameter is out of bounds.
131029         Change the type of a local from int to size_t.
131031         * lib/strftime.c (my_strftime_localtime_r): Include this function
131032         definition in the `#if ! HAVE_TM_GMTOFF' block.
131034         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131035         Include xalloc.h instead.
131037 2001-12-02  Jim Meyering  <meyering@lucent.com>
131039         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131040         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131041         included.
131043         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131044         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131046 2001-11-30  Akim Demaille  <akim@epita.fr>
131048         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131049         before being defined.
131051 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131053         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131054         First arg is int, not unsigned.
131055         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131056         (SIZE_MAX, UINT_MAX): New macros.
131057         (quotearg_n_options): Abort if N is negative.
131058         Avoid overflow check on hosts where size_t is 64 bits and int
131059         is 32 bits, as overflow is impossible there.
131060         Fix off-by-one typo that caused unnecessary reallocation.
131062 2001-11-27  Jim Meyering  <meyering@lucent.com>
131064         * lib/tempname.c: Merge with version from libc.
131065         * lib/regex.c: Likewise.
131067         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131068         systems for which STDC_HEADERS is 0, it was not included, resulting in
131069         a warning about an integer-to-pointer conversion problem with getenv.
131070         Reported by Volker Borchert.
131072 2001-11-26  Jim Meyering  <meyering@lucent.com>
131074         * lib/gtod.h: Remove file.
131075         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131076         * lib/gettimeofday.c: Don't include gtod.h.
131077         (GTOD_init): Remove function.
131078         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131079         Suggestion from Volker Borchert.
131081 2001-11-23  Jim Meyering  <meyering@lucent.com>
131083         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131084         it.
131085         * lib/hash.c (struct hash_table): Define it here instead.
131087 2001-11-22  Jim Meyering  <meyering@lucent.com>
131089         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131091 2001-11-20  Jim Meyering  <meyering@lucent.com>
131093         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131094         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131096 2001-11-19  Jim Meyering  <meyering@lucent.com>
131098         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131099         directory.  Use "conftestXXXXXX" as the template.
131100         Suggestion from Paul Eggert.
131102         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131103         immediately, so the test doesn't mistakenly hit the max-open-files
131104         limit.
131106 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131108         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131109         (TEMPORARIES): New macro.
131110         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131111         removes an artificial limitation (e.g. HP-UX 10.20, where
131112         TMP_MAX is 17576).
131114 2001-11-18  Jim Meyering  <meyering@lucent.com>
131116         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131118 2001-11-18  Jim Meyering  <meyering@lucent.com>
131120         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131121         on SunOS 4.
131123         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131124         files will be created before anything else.
131126 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131128         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131129         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131131 2001-11-17  Jim Meyering  <meyering@lucent.com>
131133         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131134         Prompted by a report from Bob Proulx.
131136         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131137         Instead, require UTILS_FUNC_MKSTEMP.
131139 2001-11-17  Jim Meyering  <meyering@lucent.com>
131141         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131142         Now, that's done as part of AC_FUNC_STRTOD.
131144 2001-11-17  Jim Meyering  <meyering@lucent.com>
131146         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131147         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131148         rather than group writable.  Patch by Juan F. Codagnone.
131150         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131151         xrealloc, Instead, include "xalloc.h".
131153         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131154         Remove explicit declarations of xmalloc, xrealloc,
131155         and xstrdup.  Instead, include "xalloc.h".
131157         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131158         unlocked-io.h.
131159         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131160         Likewise.
131161         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131163         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131164         Reported by Padraig Brady.
131166         * lib/mkstemp.c: #undef mkstemp.
131167         Include config.h.
131168         (rpl_mkstemp): Rename from mkstemp.
131169         Protoize.
131171 2001-11-16  Jim Meyering  <meyering@lucent.com>
131173         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131174         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131175         determine the amount of total physical memory, use pstat_getstatic.
131176         HPUX-11 doesn't define _SC_PHYS_PAGES.
131177         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131178         If sysconf couldn't be used to determine the amount of available
131179         physical memory, use both pstat_getstatic and pstat_getdynamic.
131180         Based on a patch from Bob Proulx.
131182 2001-11-10  Jim Meyering  <meyering@lucent.com>
131184         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131185         (jm_PREREQ): Use it.
131187 2001-11-09  Jim Meyering  <meyering@lucent.com>
131189         * m4/jm-macros.m4: Require autoconf-2.52f.
131190         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131191         Use these AC_-prefixed names, not the AM_-prefixed ones.
131193         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131195 2001-11-05  Jim Meyering  <meyering@lucent.com>
131197         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131199 2001-11-04  Jim Meyering  <meyering@lucent.com>
131201         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131202         $DEFS.
131204 2001-11-03  Jim Meyering  <meyering@lucent.com>
131206         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131207         of AC_DEFUN.
131209         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131210         know the name of the variable in the macro definition.
131212 2001-11-03  Jim Meyering  <meyering@lucent.com>
131214         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131215         in argmatch_to_argument call.
131217         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131218         argument.
131220         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131221         e.g., a fault due to an attempt to free a NULL pointer.
131223 2001-11-01  Jim Meyering  <meyering@lucent.com>
131225         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131226         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131228 2001-11-01  Jim Meyering  <meyering@lucent.com>
131230         * lib/dirfd.c, lib/dirfd.h: New files.
131231         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131233         * lib/hash.c (hash_print) [TESTING]: Clean up.
131235 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131237         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131238         to avoid a warning if -Wall.
131240 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131242         * README: New file
131243         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131244         (per RMS's instructions, this is now the canonical source)
131245         * lgpl/, gpl/: New directories.
131247 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131249         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131251 2001-10-21  Jim Meyering  <meyering@lucent.com>
131253         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131254         this code would end up calling gettext even in packages built
131255         with --disable-nls.
131256         * lib/getopt.c (_): Likewise.
131257         * lib/regex.c (_): Likewise.
131259 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131261         * m4/error.m4 (jm_PREREQ_ERROR):
131262         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131263         AC_FUNC_STRERROR_R does that.
131264         Check for strerror declaration.
131266         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131267         are supposed to have them these days.
131268         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131269         Merge changes from latest Autoconf CVS.
131270         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131271         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131272         POSIX decided to standardize on the int flavor of strerror_r.
131274 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131276         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131277         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131278         Use strerror_r that is only a macro, even if it is not a function.
131279         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131280         (private_strerror): Use prototypes, not old-style function definition.
131281         (print_errno_message): New function.
131282         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131283         char*-flavored one.
131284         (error_tail, error, error_at_line): Use it.
131286 2001-10-11  Jim Meyering  <meyering@lucent.com>
131288         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131289         and quote_n (1, ... to avoid clobbering a buffer.
131291 2001-10-05  Jim Meyering  <meyering@lucent.com>
131293         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131294         hash-pjw.h.
131295         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131296         * lib/hash-pjw.h: New file.
131298 2001-09-30  Jim Meyering  <meyering@lucent.com>
131300         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131301         `struct fsstat' has the `f_fstypename' member.
131302         Use that to define FS_TYPE, which is now used to make
131303         the getfsstat link test tighter.
131305 2001-09-30  Jim Meyering  <meyering@lucent.com>
131307         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131308         Include <sys/ucred.h>, for Apple Darwin.
131309         Include sys/mount.h and sys/fs_types.h only if available.
131310         (FS_TYPE): Define.
131311         (read_filesystem_list): Use FS_TYPE.
131313 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131315         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131316         a boolean context.
131318 2001-09-29  Jim Meyering  <meyering@lucent.com>
131320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131321         [one-argument getmntent function]): Include stdio.h before mntent.h.
131322         SunOS 4.1.x needs it for the declaration of `FILE'.
131323         Patch by Volker Borchert.
131325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131326         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131327         sys/fs_types.h, and make the link-test for getfsstat guard #include
131328         directives with appropriate #if HAVE_*_H tests so that we can
131329         detect getfsstat on Apple Darwin1.3.7 systems.
131330         Reported by Nelson Beebe.
131331         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131333 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131335         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131336         #defines strtoimax.  Also treat the other strto* functions
131337         like strtoimax.
131339         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131340         Check for strtoul and strtoumax,
131341         as those declarations are made even in the signed case.
131342         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131343         Likewise, for strtol and strtoimax.
131345 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131347         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131348         #defines strtoimax.  Also treat the other strto* functions
131349         like strtoimax.
131351         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131352         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131353         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131355 2001-09-26  Jim Meyering  <meyering@lucent.com>
131357         Most macros in unlocked-io.h had the wrong number of arguments.
131358         * lib/gen-uio: New script.
131359         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131360         * lib/unlocked-io.hin: Remove file.
131361         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131362         rather than trying to embed it here.
131363         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131364         Reported by Padraig Brady.
131366 2001-09-25  Volker Borchert  <bt@teknon.de>
131368         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131369         `result'.
131371 2001-09-24  Jim Meyering  <meyering@lucent.com>
131373         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131375 2001-09-23  Jim Meyering  <meyering@lucent.com>
131377         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131378         instead of the mere test for existence of mntent.h.  The latter
131379         would get a false-positive on AIX 3.4 systems.
131380         In the outer getmntent if-block, don't die if neither of the getmntent
131381         tests succeeds.  Instead, just fall through and continue with the
131382         remaining tests.
131384 2001-09-23  Jim Meyering  <meyering@lucent.com>
131386         * lib/mountlist.c: Remove useless parentheses in #if directives.
131387         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131388         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131390 2001-09-22  Jim Meyering  <meyering@lucent.com>
131392         * m4/gettext.m4: New file.  From gettext.
131393         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131394         * m4/progtest.m4: Likewise
131395         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131396         * m4/glibc21.m4: Likewise.
131398         * m4/libintl.m4: Remove.  No longer used.
131400 2001-09-22  Jim Meyering  <meyering@lucent.com>
131402         * lib/localcharset.c: Update from latest gettext.
131403         * lib/config.charset: Likewise.
131405 2001-09-20  Jim Meyering  <meyering@lucent.com>
131407         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131408         strtoimax.
131409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131410         strtoumax.
131412 2001-09-20  Jim Meyering  <meyering@lucent.com>
131414         * lib/xstrtol.c (strtoimax): Guard declaration with
131415         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131416         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131417         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131418         (strtoumax): Likewise, for completeness (it wasn't necessary).
131420 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131422         * lib/strtoimax.c (HAVE_LONG_LONG):
131423         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131424         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131425         to work around bug in IBM C compiler.
131427 2001-09-17  Jim Meyering  <meyering@lucent.com>
131429         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131430         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131431         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131432         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131433         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131434         whenever the right hand side need not be expanded by the shell.
131436 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131438         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131439         library.  It's not correct, as some older glibcs are buggy.
131440         fnmatch wasn't fixed until glibc 2.2.
131442         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131443         special shell magic here.
131445 2001-09-16  Jim Meyering  <meyering@lucent.com>
131447         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131448         * m4/jm-macros.m4: Require it.
131450 2001-09-16  Jim Meyering  <meyering@lucent.com>
131452         * lib/mkdir.c: New file.
131454 2001-09-15  Jim Meyering  <meyering@lucent.com>
131456         * m4/jm-macros.m4: Check for help2man.
131458 2001-09-11  Jim Meyering  <meyering@lucent.com>
131460         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131461         The body, by Paul Eggert, was moved here from configure.in.
131462         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131464 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131466         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131467         (jm_PREREQ): Use it.
131469 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131471         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131472         Use ssize_t, not int, to store result of readlink.
131473         Check for ssize_t overflow as well as size_t overflow,
131474         as POSIX says the result of readlink is implementation-defined
131475         when ssize_t overflows.
131476         Remove unnecessary cast to char*.
131477         Use free+malloc instead of realloc, as the storage doesn't need
131478         to be preserved and it's clearer and can be more efficient that way.
131479         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131480         * lib/xreadlink.h (xreadlink): Update prototype.
131482 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131484         * lib/xgetcwd.c: Revert some of the previous change; intead,
131485         fix the HAVE_GETCWD_NULL code to behave more like the
131486         !HAVE_GETCWD_NULL code used to.
131488         Include "xalloc.h".
131489         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131490         invoke xalloc_die.
131492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131494         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131495         sys/param.h, as pathmax.h includes them.
131497 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131499         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131500         (jm_PREREQ_XGETCWD): New macro.
131502         * m4/getcwd.m4: New file.
131504 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131506         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131507         like the HAVE_GETCWD_NULL code.
131508         Include pathmax.h if not HAVE_GETCWD.
131509         Do not include xalloc.h.
131510         (INITIAL_BUFFER_SIZE): New symbol.
131511         Do not use xmalloc / xrealloc, since the caller is responsible for
131512         handling errors.  Preserve errno around `free' during failure.
131513         Do not overrun buffer when using getwd.
131515 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131517         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131518         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131519         getcwd (NULL, 0).
131521 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131523         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131524         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131525         spotted by Jim Meyering.
131527 2001-09-03  Jim Meyering  <meyering@lucent.com>
131529         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131530         failure.
131532 2001-09-02  Jim Meyering  <meyering@lucent.com>
131534         * lib/error.c: Update from GNU libc.
131536 2001-09-01  Jim Meyering  <meyering@lucent.com>
131538         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131539         Used by df.
131541 2001-09-01  Jim Meyering  <meyering@lucent.com>
131543         * lib/xreadlink.c: New file.
131544         * lib/xreadlink.h: New file.
131545         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131546         xreadlink.h.
131548         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131549         doesn't conflict with sparc Solaris 7's definition in
131550         /usr/include/sys/int_types.h.
131552         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131553         files.
131554         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131555         and strncasecmp as r-values.  Unixware didn't have declarations.
131557 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131559         * lib/xstrtol.h: Add copyright notice.
131560         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131561         LONGINT_INVALID_SUFFIX_CHAR.
131563 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131565         * lib/xstrtol.c (strtoimax): New decl.
131567 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131569         * lib/xgetcwd.c: Don't include pathmax.h.
131570         Include stdlib.h and unistd.h if available.
131571         Include xalloc.h.
131572         (xmalloc, xstrdup, free): Remove decls.
131573         (xgetcwd): Don't assume sizes fit in unsigned.
131574         Check for overflow when computing sizes.
131575         Simplify reallocation code.
131577 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131579         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131580         a directory's st_size can have an arbitrary value, so the old
131581         usage could waste an arbitrary amount of memory.  All uses
131582         changed.
131583         * lib/savedir.h: Update prototype.
131585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131587         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131589         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131590         old strtoimax.c.
131592         Also, make the following further changes to make this file's
131593         configuration more similar to that of strtol.c:
131594         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131595         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131596         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131597         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131598         changed to signed values.
131600         And make the following changes as well:
131601         Fix copyright notice, as 1999 was missing.
131602         (verify): New macro.
131603         (strtoimax): Check sizes at compile-time, not run-time.
131604         Prefer strtol to strtoll if both work.
131605         (main): Remove; it was not that useful and was a pain to maintain.
131607         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131609 2001-08-31  Jim Meyering  <meyering@lucent.com>
131611         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131612         Use an initial, malloc'd, buffer of length 128 rather than
131613         a statically allocated one of length 1024.
131615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131617         Simplify code, partly by assuming autoconf 2.52 semantics.
131619         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131621         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131622         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131623         All uses removed.
131624         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131625         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131626         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131627         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131628         jm_AC_HEADER_INTTYPES_H.
131629         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131631         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131633         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131634         Quote first arg of AC_DEFUN.
131635         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131636         since they are needed to parse the include file even if we need
131637         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131639         but with opposite signedness.
131641 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131643         Merge 'exclude' changes from tar 1.13.22.
131644         This fixes one or two unlikely storage allocation overflow bugs,
131645         but doesn't change user-visible behavior otherwise.
131647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131650         (jm_PREREQ_EXCLUDE): New macro.
131652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131654         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131655         tm to be declared.
131657 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131659         * lib/hash.c: Remove '2001' from copyright notice.
131661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131663         * lib/full-write.h: New file.
131664         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131665         * lib/full-write.c: Correct credits, as cccp.c no longer
131666         exists and anyway it was so heavily changed from the old cccp
131667         code as to be unrecognizable.  Include full-write.h.
131668         (full_write): Return size_t, with short writes meaning failure.
131669         All callers changed.  This fixes a bug with large buffers
131670         on 64-bit hosts.
131671         * lib/utime.c: Include full-write.h.
131673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131675         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131676         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131677         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131678         Include if available.
131679         (<xalloc.h>): Include
131680         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131681         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131682         collide with FNM macros.
131683         (struct patopts): New struct.
131684         (struct exclude): Use it, as exclude patterns now come with options.
131685         (new_exclude): Support above changes.
131686         (new_exclude, add_exclude_file):
131687         Initial size must now be a power of two to simplify overflow checking.
131688         (free_exclude, fnmatch_no_wildcards): New function.
131689         (excluded_filename): No longer requires options arg, as the options
131690         are determined by add_exclude.  Now returns bool, not int.
131691         (excluded_filename, add_exclude):
131692         Add support for the fancy new exclusion options.
131693         (add_exclude, add_exclude_file): Now takes int options arg.
131694         Check for arithmetic overflow when computing sizes.
131695         (add_exclude_file): xrealloc might modify errno, so don't
131696         realloc until after errno might be used.
131698         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131699         New macros.
131700         (free_exclude): New decl.
131701         (add_exclude, add_exclude_file): Now takes int options arg.
131702         (excluded_filename): No longer requires options arg, as the options
131703         are determined by add_exclude.  Now returns bool, not int.
131705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131707         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131709 2001-08-27  Jim Meyering  <meyering@lucent.com>
131711         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131713         * lib/version-etc.c (N_): Remove definition.
131714         Revert most of last change.
131715         Instead, simply don't mark the `Copyright...' string for translation.
131716         Based on advice from Paul Eggert.
131718         * lib/strtoxmax.c: Tweak comment.
131720 2001-08-26  Jim Meyering  <meyering@lucent.com>
131722         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131724         * m4/xstrtoimax.m4: New file.
131725         * m4/xstrtoumax.m4: Add comments explaining why we
131726         AC_REPLACE_FUNCS(strtol).
131728 2001-08-26  Jim Meyering  <meyering@lucent.com>
131730         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131731         of copyright with `%s' so translators don't get an untranslated
131732         message in 2002.
131733         (COPYRIGHT_YEAR): Define.
131734         (version_etc): Use fprintf rather than fputs.
131735         Suggestion from Ulrich Drepper.
131737         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131739         * lib/strtoll.c: New file, from GNU libc.
131740         * lib/xstrtoimax.c: New file.
131742         * lib/xstrtol.h: Add xstrtoimax.
131743         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131744         * lib/strtoimax.c: New file.  Likewise, but first define
131745         STRTOUXMAX_SIGNED.
131747         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131748         ...
131749         * lib/strtoxmax.c: ... then renamed to this.
131751 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131753         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131754         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131755         (jm_AC_TYPE_INTMAX_T): New macro.
131756         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131758         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131760         * m4/longlong.m4: Renamed from ulonglong.m4.
131761         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131762         * m4/uintmax_t.m4: Removed.
131764 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131766         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131767         Port to Solaris 8, where 'sed' requires a space after the 'r'
131768         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131769         Redirect output to $tmp just once.
131771 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131773         * lib/addext.c (<errno.h>): Include.
131774         (errno): Declare if not defined.
131775         (addext): Work correctly when pathconf returns -1 and leaves
131776         errno alone because there is no limit.  Also, work even if
131777         pathconf returns a value greater than SIZE_MAX.
131779 2001-08-12  Jim Meyering  <meyering@lucent.com>
131781         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131782         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131783         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131784         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131785         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131786         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131787         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131788         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131789         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131790         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131791         utime.m4, utimes.m4, xstrtoumax.m4:
131792         Quote the first argument in each use of AC_DEFUN.
131794 2001-08-12  Jim Meyering  <meyering@lucent.com>
131796         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131797         Simply `return getcwd (NULL, 0);'.
131798         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131799         Use 1300 as initial value for length, not PATH_MAX.
131801         * lib/pathmax.h: Clean up cpp syntax.
131803 2001-08-12  Jim Meyering  <meyering@lucent.com>
131805         * lib/gettimeofday.c: New file.
131806         * lib/gtod.h: New file.
131807         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131809 2001-08-05  Jim Meyering  <meyering@lucent.com>
131811         * m4/jm-macros.m4: Require autoconf-2.52.
131813 2001-08-04  Jim Meyering  <meyering@lucent.com>
131815         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131816         stmt, to get in sync with glibc.
131818 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131820         The following changes are from gettext 0.10.39 as maintained by
131821         Bruno Haible.
131823         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131824         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131825         with inverted sense.  All uses changed.
131827         * lib/mbswidth.c: Don't include <limits.h>.
131828         Include <stdlib.h> and <string.h> unconditionally.
131829         (iswcntrl, mbsinit, ISCNTRL): New macros.
131830         (mbsnwidth): Use K&R style function declarations.
131831         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131832         can optimize it when MB_CUR_MAX == 1.
131833         The width of control characters is zero, not 1.
131835 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131837         The following changes are from gettext 0.10.39 as maintained by
131838         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131840         * m4/codeset.m4: Upgrade to serial AM1.
131841         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131842         all uses changed.  Quote first arg of AC_DEFUN.
131843         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131845         * m4/iconv.m4: Upgrade to serial AM2.
131846         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131847         Add --with-libconv-prefix.
131848         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131849         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131850         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131851         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131852         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131854         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131855         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131856         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131857         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131858         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131859         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131860         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131861         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131864         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131865         string.h any more.
131867         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131868         not the default value.
131870         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131871         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131872         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131873         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131874         Also check for iswcntrl, used for wcwidth fallback.
131875         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131876         to Autoconf 2.13.
131878 2001-08-03  Jim Meyering  <meyering@lucent.com>
131880         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131881         as it was in the original.  Reported by Paul Eggert.
131883 2001-07-16  Jim Meyering  <meyering@lucent.com>
131885         * m4/gettimeofday.m4: New file.
131886         Prompted by a report from Bernhard Baehr.
131888 2001-07-15  Jim Meyering  <meyering@lucent.com>
131890         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131891         stuff. Now it's in ../Makefile.cfg.
131893 2001-07-15  Jim Meyering  <meyering@lucent.com>
131895         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131896         (BUILT_SOURCES): Add unlocked-io.h.
131897         (io_functions): Define.
131898         (unlocked-io.h): New rule.
131899         (DISTCLEANFILES): Add unlocked-io.h.
131900         (all-local): Depend on unlocked-io.h, to ensure it is created.
131902         * lib/unlocked-io.hin: New file
131904         * lib/regex.c: Update from glibc.
131906 2001-07-05  Jim Meyering  <meyering@lucent.com>
131908         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131909         recommendation.
131910         (libfetish_a_SOURCES): Put all .h files here instead.
131911         Remove a thus-exposed (better checks in automake) duplicate and
131912         two unnecessary .h files.
131914 2001-07-04  Jim Meyering  <meyering@lucent.com>
131916         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131917         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131918         distcheck failure.
131920 2001-07-02  Jim Meyering  <meyering@lucent.com>
131922         The following changes were prompted by suggestions from Bruno Haible.
131924         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131925         is now generated.
131926         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131927         definition of EXTRA_DIST.
131928         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131929         ensure that the generated file is created/updated whenever the list
131930         of $(unlocked_functions) is changed.
131931         (jm-glibc-io.m4): New rule.
131932         (unlocked-io.h): New rule -- currently unused.
131934 2001-06-24  Jim Meyering  <meyering@lucent.com>
131936         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131937         unmatched right bracket, rather than kludging it with an extra,
131938         falsely-matching quote in a comment.  Patch by Akim Demaille.
131940 2001-06-11  Jim Meyering  <meyering@lucent.com>
131942         * lib/regex.c: Update from GNU libc.
131944 2001-05-27  Jim Meyering  <meyering@lucent.com>
131946         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131947         Check for ut_type in struct utmp.
131949 2001-05-27  Jim Meyering  <meyering@lucent.com>
131951         * lib/readutmp.h (UT_TYPE): Define.
131953 2001-05-24  Jim Meyering  <meyering@lucent.com>
131955         * lib/argmatch.c: Include "quote.h".
131956         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131957         quote function.  Reported by Göran Uddeborg.
131959 2001-05-22  Jim Meyering  <meyering@lucent.com>
131961         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131962         now that we use the package-supplied version unconditionally.
131963         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131965 2001-05-21  Jim Meyering  <meyering@lucent.com>
131967         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131968         shell syntax errors.
131970 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131972         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131974 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131976         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131977         Don't bother to check library strftime, since
131978         we'll be using our own my_strftime function anyway.
131979         Define my_strftime instead of strftime.
131981 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131983         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131984         which is not yet declared.
131986 2001-05-15  Jim Meyering  <meyering@lucent.com>
131988         * m4/regex.m4: Use proper quoting so brackets appear in the test
131989         program.
131990         Reported by, and with help from, Bruno Haible.
131992 2001-05-13  Jim Meyering  <meyering@lucent.com>
131994         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131995         undefined.
131997 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131999         dirname code cleanup.  base_name now behaves more compatibly
132000         with POSIX basename when given file names that have trailing
132001         slashes, and similarly for dir_name.  Add new primitives
132002         base_len and dir_len.  Put the directory-name-related decls
132003         into dirname.h.
132005         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132006         * lib/backupfile.c (base_name): Likewise.
132007         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132008         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132009         * lib/makepath.c (strip_trailing_slashes): Likewise.
132010         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132011         ISSLASH): Likewise.
132012         * lib/rename.c (strip_trailing_slashes): Likewise.
132013         * lib/same.c (base_name): Likewise.
132014         * lib/stripslash.c (ISSLASH): Likewise.
132016         * lib/addext.c: Include <dirname.h> after size_t is defined.
132017         * lib/backupfile.c: Likewise.
132019         * lib/addext.c (addext): Use base_len to trim redundant
132020         trailing slashes instead of doing it ourselves.
132021         But do not trim the last slash if it is not redundant.
132023         * lib/backupfile.c (find_backup_file_name,
132024         max_backup_version): Use base_len instead of rolling it ourselves.
132025         Handle the case of "" and (on DOS) "C:" correctly.
132027         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132028         needed. Include <string.h>, <dirname.h>.
132029         (base_name): Allow file names ending in slashes, other than names
132030         that are all slashes.  In this case, return the basename followed
132031         by the slashes.  This is more general, and can be used in places
132032         where the original base_name purposely had an assertion failure.
132033         (base_len): New function.
132035         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132036         Do not include <assert.h>; no longer needed.
132037         Include xalloc.h.
132038         (memrchr): Remove decl.
132039         (dir_name_r): Remove.
132040         (dir_len): Renamed from dirlen.  All callers changed.
132041         Rewrite in terms of base_name, for simplicity and consistency.
132042         (dir_name): Never return NULL.  All callers changed.
132043         Do not include <stdlib.h> in test program; no longer needed.
132044         return 0; is fine for test program.
132046         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132047         New macros.
132048         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132050         * lib/path-concat.c (path_concat): Use base_len to compute
132051         base length, not strlen; this means we cannot rely on memcpy
132052         to null-terminate.
132054         * lib/same.c (STREQ): Remove.
132055         (same_name): Handle the case where the basename ends in trailing '/'.
132057         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132058         a slash was stripped.  Do not strip the last slash after a
132059         file system prefix.
132061 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132063         * lib/Makefile.am (libfetish_a_SOURCES):
132064         Add strftime.c, since we now compile it on all hosts.
132066         * lib/strftime.c (my_strftime):
132067         Define to nstrftime if emacs, but only if my_strftime is not defined.
132068         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132069         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132070         Add one more extra argument: a nanoseconds value.
132071         All uses changed.
132072         (ns): New macro.
132073         (my_strftime function): Add %N format.
132074         (emacs_strftimeu): Renamed from emacs_strftime,
132075         with extra ut argument.
132077 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132079         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132081 2001-04-21  Jim Meyering  <meyering@lucent.com>
132083         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132084         doesn't interfere.
132086 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132088         * m4/ftruncate.m4: Check for chsize.
132089         Link with ftruncate.o unconditionally if ftruncate is missing.
132090         This was required when cross-compiling to i586-mingw32msvc.
132092 2001-04-08  Jim Meyering  <meyering@lucent.com>
132094         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132095         recomputed; that's necessary when the offset spans a DST transition.
132096         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132098 2001-04-02  Jim Meyering  <meyering@lucent.com>
132100         * lib/regex.h, regex.c: Update from GNU libc.
132102 2001-03-24  Jim Meyering  <meyering@lucent.com>
132104         * m4/jm-macros.m4: Require autoconf-2.49d.
132106 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132108         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132110 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132112         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132114 2001-03-17  Jim Meyering  <meyering@lucent.com>
132116         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132117         now that the version in autoconf is equivalent.
132118         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132120         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132121         Suggestion from Akim Demaille.
132123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132124         (jm_PREREQ_TEMPNAME): New function.
132126 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132128         * lib/tempname.c (uint64_t): Define to uintmax_t if
132129         not defined, and if UINT64_MAX is not defined.
132130         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132131         Reported by John David Anglin.
132133 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132135         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132136         resolve alias if codeset is empty.
132137         * lib/config.charset (BeOS): Use wildcard syntax.
132139 2001-03-13  Jim Meyering  <meyering@lucent.com>
132141         * lib/path-concat.c (path_concat)
132142         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132143         concatenating e.g., `C:' and `foo'.
132144         From Bruno Haible.
132146 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132148         * lib/localcharset.c (locale_charset): Don't use
132149         setlocale(LC_CTYPE,NULL). Don't return NULL.
132150         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132152 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132154         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132155         support for DOS/DJGPP.
132157 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132159         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132160         lacks mkstemp.  Compile our own tempname.c if we compile our own
132161         mkstemp.c, as mkstemp relies on tempname.
132163 2001-03-01  Jim Meyering  <meyering@lucent.com>
132165         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132166         AH_VERBATIM really does output its argument verbatim.
132168 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132170         * lib/Makefile.am (libfetish_a_SOURCES):
132171         Add dup-safer.c, fopen-safer.c.
132172         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132174         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132175         * lib/unistd-safer.h: New files.
132177 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132179         The mkstemp replacement is taken from glibc 2.2.2, with some
132180         portability fixes for use outside glibc, as follows:
132182         * lib/tempname.c (struct_stat64): New macro.
132183         (direxists, __gen_tempname): Use it.
132184         This avoids a portability problem with Solaris 8.
132186         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132187         (<stddef.h>, <stdint.h>, <string.h>):
132188         Include only if STDC_HEADERS || _LIBC.
132189         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132190         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132191         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132192         (__set_errno): Define this macro if <errno.h> doesn't.
132193         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132194         Define these macros if <stdio.h> doesn't.
132195         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132196         Define these macros if <sys/stat.h>
132197         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132198         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132199         __xstat64): Define if not _LIBC.
132200         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132201         (__gen_tempname): Invoke gettimeofday only if
132202         HAVE_GETTIMEOFDAY || _LIBC;
132203         otherwise, fall back on plain "time".
132204         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132206         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132208         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132210 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132212         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132214 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132216         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132217         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132218         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132219         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132221 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132223         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132224         Remove workaround macros for hosts that have mbrtowc but not
132225         mbstate_t, as we now insist on proper declarations for both
132226         before using mbrtowc.
132228 2001-02-17  Jim Meyering  <meyering@lucent.com>
132230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132231         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132232         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132233         UnixWare 7.1.1.
132235         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132236         rather than AC_CACHE_VAL.
132238 2001-02-17  Jim Meyering  <meyering@lucent.com>
132240         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132241         around included file name.
132243         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132245         * lib/strftime.c: Update from GNU libc (the only changes were to
132246         comments).
132248 2001-02-17  Jim Meyering  <meyering@lucent.com>
132250         * lib/regex.c: Update from libc.
132252 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132254         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132255         clash.
132257 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132259         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132260         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132261         Reported by Mark Hounschell via Paul Eggert.
132263 2001-02-07  Jim Meyering  <meyering@lucent.com>
132265         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132267 2001-02-05  Jim Meyering  <meyering@lucent.com>
132269         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132270         it includes the patch required for `large file' support with at least
132271         HP-UX's 10.20 /bin/cc.
132273 2001-02-03  Jim Meyering  <meyering@lucent.com>
132275         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132276         AS_IF, now that it works once again (mysteriously).
132277         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132279 2001-01-30  Jim Meyering  <meyering@lucent.com>
132281         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132282         * m4/chown.m4: Rename conftestchown to conftest.chown.
132283         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132284         s/conftestdir2/conftest.d2/.
132285         * m4/utimes.m4: s/conftestdata/conftest.data/
132286         Inspired by Pavel Roskin's change in autoconf.
132288 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132290         * lib/config.charset: Update for FreeBSD 4.2.
132292 2001-01-27  Jim Meyering  <meyering@lucent.com>
132294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132295         a use of AS_IF.
132296         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132298 2001-01-26  Jim Meyering  <meyering@lucent.com>
132300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132301         quotearg.c includes it.
132303 2001-01-26  Jim Meyering  <meyering@lucent.com>
132305         * lib/quotearg.c: Include stddef.h.
132306         * lib/quote.c: Include stddef.h.
132307         Reported by Axel Kittenberger.
132309         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132310         line in double quotes so that it evokes a better diagnostic.
132311         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132312         Reported by Axel Kittenberger.
132314 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132316         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132317         as if it was a `charset'.
132319 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132321         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132322         has const.
132324 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132326         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132327         to avoid a warning.  Add back 'const' to inptr.
132329 2001-01-20  Jim Meyering  <meyering@lucent.com>
132331         Be sure that headers are checked before used in code compiled
132332         for the type checks.
132333         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132334         In place of that, invoke jm_CHECK_ALL_TYPES.
132335         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132336         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132337         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132338         The check for ssize_t was mistakenly run before the test for unistd.h.
132340         The configure-time check for stdbool.h was missing.
132341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132342         (jm_PREREQ_HASH): New function.
132344 2001-01-17  Jim Meyering  <meyering@lucent.com>
132346         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132347         for autoconf-2.49c.
132348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132350 2001-01-16  Jim Meyering  <meyering@lucent.com>
132352         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132353         From Bruno Haible.
132355 2001-01-14  Jim Meyering  <meyering@lucent.com>
132357         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132358         foo and bar.  Create conftestdir/ in the script, not in the C code.
132359         Remove directories in the script, not in the C code.
132360         Remove conftestdir{,2} before trying to create the directory.
132361         Make the entire configure script fail if the mkdir fails.
132363 2001-01-14  Jim Meyering  <meyering@lucent.com>
132365         * lib/rename.c: New file.  From Volker Borchert.
132366         Include stdlib.h, string.h or strings.h, and xalloc.h.
132367         Use strip_trailing_slashes rather than open-coding it.
132369 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132371         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132373 2001-01-03  Jim Meyering  <meyering@lucent.com>
132375         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132376         of local `inptr' to avoid warning with some system declarations of
132377         iconv.
132379 2001-01-02  Volker Borchert  <bt@teknon.de>
132381         * m4/rename.m4: New file.
132382         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132384 2001-01-01  Jim Meyering  <meyering@lucent.com>
132386         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132387         even on systems with utmpx.h.  It's necessary for the declaration of
132388         utmp's ut_user member.  Reported by Andreas Jaeger.
132390         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132391         available. They are required for the declarations of getgrgid and
132392         getpwuid resp.
132393         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132394         Reported by Andreas Jaeger.
132396 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132398         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132399         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132400         so `make install' also works in VPATH builds.
132402 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132404         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132405         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132406         can be used in subdirectories.
132408 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132410         * lib/modechange.c: Do not assume that mode_t uses the
132411         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132412         the other-execute bit of FOO even if S_IXOTH != 1.
132414         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132415         WOTH, XOTH, ALLM): New macros.
132416         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132417          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132418         Use them.
132419         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132420         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132421         (mode_compile):
132422         No need to use uintmax_t; unsigned long is long enough.
132423         Don't bother to get suffix since we don't use it.
132425 2000-12-26  Jim Meyering  <meyering@lucent.com>
132427         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132428         better with autoheader.
132430 2000-12-24  Jim Meyering  <meyering@lucent.com>
132432         * lib/hash.c (is_prime): Return explicit boolean values.
132433         (hash_get_first): Return NULL to appease Irix5.6's 89.
132434         Reported by Nelson Beebe.
132436 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132438         * lib/localcharset.c (locale_charset): Add support for Win32.
132440 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132442         * lib/physmem.h, lib/physmem.c: New files.
132444         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132445         (noinst_HEADERS): Add physmem.h.
132447         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132448         't' for compatibility with Solaris 8 sort.
132450 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132452         * lib/config.charset: Add support for BeOS.
132454 2000-12-17  Jim Meyering  <meyering@lucent.com>
132456         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132457         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132459 2000-12-16  Jim Meyering  <meyering@lucent.com>
132461         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132462         N and M) would have treated it like `chown N:N FILE'.
132464         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132466 2000-12-16  Jim Meyering  <meyering@lucent.com>
132468         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132469         SHELLS_FILE to a file name that's useful on djgpp systems.
132470         Include stdlib.h.
132471         (ADDITIONAL_DEFAULT_SHELLS): Define.
132472         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132473         Based mostly on a patch from Prashant TR.
132475 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132477         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132478         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132479         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132481 2000-12-08  Andreas Schwab  <schwab@suse.de>
132483         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132484         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132486 2000-12-07  Jim Meyering  <meyering@lucent.com>
132488         * lib/stripslash.c (ISSLASH): Define.
132489         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132490         `/'.
132491         From Prashant TR.
132493         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132494         (dir_name_r): Declare this function as static.
132495         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132496         manifest itself on a name containing a mix of slashes and
132497         backslashes.
132498         Make this function work with names starting with a DOS-style
132499         drive letter and colon prefix.
132500         (dir_name): Append `.' if necessary.
132501         Based mostly on patches from Prashant TR and Eli Zaretskii.
132503         * lib/dirname.h (dir_name_r): Remove prototype.
132505 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132507         * m4/off_t-format.m4: Remove this file.
132508         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132510 2000-12-06  Jim Meyering  <meyering@lucent.com>
132512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132513         replacement strtoull, we may well need the replacement strtoul, too.
132514         Check for declarations of strtoul and strtoull.
132515         Check for strtol.  Mainly as a cue to cause automake to include
132516         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132517         Check for limits.h -- strtol.c needs it.
132519 2000-12-05  Jim Meyering  <meyering@lucent.com>
132521         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132523 2000-12-04  Jim Meyering  <meyering@lucent.com>
132525         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132526         Also include memory.h, stdlib.h, unistd.h if appropriate.
132527         Reported by Andreas Jaeger (conflicting declaration of malloc).
132529 2000-12-02  Jim Meyering  <meyering@lucent.com>
132531         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132532         * m4/jm-macros.m4 (jm_MACROS): require it.
132534 2000-12-02  Jim Meyering  <meyering@lucent.com>
132536         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132538 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132540         * lib/memrchr.c: Include <config.h> before any system include file.
132542 2000-11-30  Jim Meyering  <meyering@lucent.com>
132544         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132546 2000-11-30  Jim Meyering  <meyering@lucent.com>
132548         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132550 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132552         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132554 2000-11-26  Jim Meyering  <meyering@lucent.com>
132556         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132558 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132560         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132561         size of (size_t) -1; it's not portable.
132563 2000-11-17  Jim Meyering  <meyering@lucent.com>
132565         * lib/strstr.c: Update from GNU libc.
132567 2000-11-17  Akim Demaille  <akim@epita.fr>
132569         * lib/obstack.h: Formatting changes.
132570         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132571         prevent type checking.
132572         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132573         cast the value to (void *): assigning a `foo *' to a `void *'
132574         variable is valid.
132575         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132577 2000-11-16  Jim Meyering  <meyering@lucent.com>
132579         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132581 2000-11-11  Jim Meyering  <meyering@lucent.com>
132583         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132585 2000-11-10  Jim Meyering  <meyering@lucent.com>
132587         * lib/obstack.h: Update from GNU libc.
132588         * lib/obstack.c: Likewise.
132590 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132592         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132594 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132596         * lib/getusershell.c (setusershell): Use rewind rather than
132597         fseek/fseeko, to avoid configuration hassles with fseeko.
132598         Don't bother opening SHELLS_FILE if shellstream is NULL;
132599         it's not necessary.
132601 2000-11-05  Jim Meyering  <meyering@lucent.com>
132603         * lib/makepath.h (make_dir): Declare.
132604         * lib/makepath.c (make_dir): Remove `static' attribute.
132605         Tweak a comment.
132607 2000-11-04  Jim Meyering  <meyering@lucent.com>
132609         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132611 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132613         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132614         last one in a bucket, advance to the next bucket.
132616 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132618         * lib/fnmatch.c: Do not comment out all the code if we are using
132619         the GNU C library, because in some cases we are replacing buggy
132620         code in the GNU C library itself.
132622 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132624         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132625         (regex_compile): Catch bogus \(\1\).
132627 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132629         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132630         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132631         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132633 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132635         * lib/error.h, getline.h, modechange.h:
132636         Remove "2000" from Copyright line, as the file hasn't been
132637         changed this year other than in the copyright notice.
132639         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132640         was changed this year.
132642 2000-10-29  Jim Meyering  <meyering@lucent.com>
132644         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132645         renaming.
132646         * m4/ls-mntd-fs.m4: Likewise
132648 2000-10-29  Jim Meyering  <meyering@lucent.com>
132650         * lib/xstat.in: Fix grammar in comment.
132652 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132654         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132655         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132656         doesn't define __restrict_arr.
132658 2000-10-28  Jim Meyering  <meyering@lucent.com>
132660         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132661         (jm_PREREQ_MEMCHR): New function.
132663 2000-10-28  Jim Meyering  <meyering@lucent.com>
132665         * lib/memchr.c: Update from libc.
132666         Adjust for portability:
132667         [HAVE_STDLIB_H]: Include stdlib.h.
132668         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132669         Undef __memchr, too.
132670         [!weak_alias]: Define __memchr to memchr.
132672         * lib/regex.c: Update from libc.
132673         * lib/regex.h: Likewise.
132674         * lib/getopt1.c: Likewise.
132675         * lib/memcmp.c: Likewise.
132677         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132678         Avoid using fseek, when possible -- it's broken by design.
132679         Patch by Ulrich Drepper.
132681 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132683         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132684         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132685         Giving in to popular pressure to shut up the compiler with casts.
132687 2000-10-26  Jim Meyering  <meyering@lucent.com>
132689         * lib/strftime.c: Update from libc.
132691 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132693         * regex.c: More `unsigned char' -> `re_char' changes.
132694         Also change several `int' into `re_wchar_t'.
132695         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132696         (PUSH_FAILURE_POINTER): Don't cast any more.
132697         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132698         We want GCC to complain, since this piece of code makes
132699         re_match non-reentrant, which *should* be fixed.
132700         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132701         (EXTEND_BUFFER): Use RETALLOC.
132702         (SET_LIST_BIT): Don't cast.
132703         (re_wchar_t): New type.
132704         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132705         that those two functions will always properly return.
132706         (IMMEDIATE_QUIT_CHECK): Cast to void.
132707         (analyse_first): Use recursion rather than an explicit stack.
132708         (re_compile_fastmap): Can't fail anymore.
132709         (re_search_2): Don't check re_compile_fastmap for failure.
132710         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132711         Now also sets the new value (passed in a new argument).
132712         (re_match_2_internal): Use it.
132713         Also, use a new var `reg' of type size_t when looping through regs
132714         rather than reuse the inappropriate `mcnt'.
132716 2000-10-25  Jim Meyering  <meyering@lucent.com>
132718         * lib/obstack.c: Update from libc.
132720 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132722         * regex.c (regex_compile): Change the way of handling a range from
132723         a char less than 256 to a char not less than 256.
132725 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132727         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132728         NT-Emacs only.
132729         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132730         so that re_search functions only quit when callers expect them to.
132732 2000-10-23  Jim Meyering  <meyering@lucent.com>
132734         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132735         wrong.  That set_locale call must not have any side effects.
132736         From Paul Eggert.
132738 2000-10-22  Jim Meyering  <meyering@lucent.com>
132740         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132741         [CYCLIC]: Remove now-unused definition.
132743         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132744         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132745         Suggestion from Ulrich Drepper.
132747 2000-10-21  Jim Meyering  <meyering@lucent.com>
132749         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132750         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132751         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132753 2000-10-21  Jim Meyering  <meyering@lucent.com>
132755         * lib/dirname.c (memrchr): Declare if necessary.
132756         (dir_name): Remove the restriction that there be no
132757         trailing slashes.  Now, this code skips past them, effectively
132758         ignoring them.
132759         [TEST_DIRNAME] (main): New unit tests.
132761         * lib/memrchr.c: New file from GNU libc.
132762         Undef __memrchr, too.
132763         [!weak_alias]: Define __memrchr to memrchr.
132764         Guard weak_alias use with `#ifdef weak_alias'.
132766 2000-10-21  Jim Meyering  <meyering@lucent.com>
132768         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132769         (dir_name): Use dir_name_r.
132770         * lib/dirname.h (dir_name_r): Declare it.
132772 2000-10-17  Jim Meyering  <meyering@lucent.com>
132774         * lib/quote.h (PARAMS): Define and use.
132775         Reported by Akim Demaille.
132777         * lib/getopt.c: Update from libc.
132779 2000-10-16  Jim Meyering  <meyering@lucent.com>
132781         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132782         setlocale.
132783         From Jan Fedak.
132785 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132787         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132789 2000-09-25  Jim Meyering  <meyering@lucent.com>
132791         * lib/md5.h (rol): Define (from GnuPG).
132793         * lib/sha.c: Give credit (GnuPG) where due.
132794         (M): Use rol rather than open-coding it.
132795         Add a FIXME comment.
132797 2000-09-21  Jim Meyering  <meyering@lucent.com>
132799         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132800         Reported by Michael Stone.
132802 2000-09-20  Jim Meyering  <meyering@lucent.com>
132804         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132805         (noinst_HEADERS): Add sha.h.
132806         Based on code from Scott G. Miller and from GnuPG.
132808 2000-09-18  Jim Meyering  <meyering@lucent.com>
132810         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132811         LIBS. Otherwise, everyone ends up linking with -lelf for some
132812         configurations.
132813         Reported by Mike Stone.
132815 2000-09-15  Jim Meyering  <meyering@lucent.com>
132817         * lib/regex.c: Update from libc.
132819 2000-09-10  Jim Meyering  <meyering@lucent.com>
132821         * lib/getopt.c (_getopt_internal): Update from glibc.
132823 2000-09-09  Jim Meyering  <meyering@lucent.com>
132825         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132826         think it should be used as a general replacement for isascii.
132827         * lib/fnmatch.c: Likewise.
132828         * lib/mbswidth.c: Likewise
132829         * lib/regex.c: Likewise.
132831         Don't use atoi.
132832         * lib/userspec.c: Include sys/param.h and limits.h.
132833         Include xstrtol.h.
132834         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132835         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132836         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132837         UID, GID.  Check range.
132839 2000-09-06  Jim Meyering  <meyering@lucent.com>
132841         * lib/getopt.c (_getopt_internal): Update from glibc.
132843 2000-08-30  Jim Meyering  <meyering@lucent.com>
132845         * lib/strftime.c: Merge in changes from GNU libc.
132847 2000-08-26  Jim Meyering  <meyering@lucent.com>
132849         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132850         * m4/fpending.m4: New file.
132852 2000-08-26  Jim Meyering  <meyering@lucent.com>
132854         * lib/closeout.c: Include "__fpending.h".
132855         (close_stdout_status): Return right away if there's nothing to flush.
132857         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132858         * lib/__fpending.c: New file.
132859         * lib/__fpending.h: New file.
132861 2000-08-20  Jim Meyering  <meyering@lucent.com>
132863         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132864         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132865         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132867 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132869         Improve fileutils installation on systems where running
132870         programs (like install) can't be unlinked.
132871         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132872         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132874 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132876         Standardize on "memory exhausted" instead of "Memory exhausted"
132877         or "virtual memory exhausted".
132878         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132879         "virtual memory exhausted".
132880         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132881         our own message.
132882         * lib/userspec.c (parse_user_spec): Likewise.
132883         * lib/bumpalloc.h: comment fix
132884         * lib/same.c, userspec.c: Include xalloc.h.
132886         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132887         not char *const and pointing to a constant array.
132888         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132889         (xrealloc): Comment fix.
132891         * lib/userspec.c (parse_user_spec):
132892         Don't translate a message until just before returning,
132893         to avoid unnecessary translation.
132895 2000-08-07  Jim Meyering  <meyering@lucent.com>
132897         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132898         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132899         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132900         getgroups.c, gethostname.c, getopt.h, group-member.c,
132901         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132902         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132903         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132904         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132905         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132906         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132907         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132908         yesno.c: Back out Copyright date changes for each file with no change
132909         this year.  This eases coordination with other programs using the same
132910         source code modules.  From Paul Eggert.
132912 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132914         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132915         not char, for compatibility with glibc 2.1.3 strftime.c.
132917 2000-08-03  Greg McGary  <greg@mcgary.org>
132919         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132920         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132921         (EXTEND_BUFFER): Use them.
132923 2000-08-01  Jim Meyering  <meyering@lucent.com>
132925         * lib/dirname.c (ISSLASH): Define.
132926         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132927         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132928         both `\' and `/' may be use as path separators.
132929         Based on a patch from Prashant TR.
132931 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132933         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132934         slot vector a constant, since it might get modified.
132936 2000-07-31  Jim Meyering  <meyering@lucent.com>
132938         * lib/xmalloc.c: Use `virtual memory exhausted', not
132939         `Memory exhausted'.
132940         * lib/obstack.c (print_and_abort): Likewise.
132942 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132944         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132945         buffer, so that the caller can always quote one small
132946         component of a "memory exhausted" message in slot 0.
132947         From a suggestion by Jim Meyering.
132949 2000-07-30  Jim Meyering  <meyering@lucent.com>
132951         * lib/makepath.c (make_path): Quote the other instance, too.
132953         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132954         (STATIC_BUF_SIZE): Define.
132955         (quotearg_n_options): Use only statically allocated storage when
132956         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132957         than STATIC_BUF_SIZE.
132959 2000-07-29  Jim Meyering  <meyering@lucent.com>
132961         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132962         * lib/dirname.c (dir_name): Likewise.
132964         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132965         `/'.
132967         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132968         (dir_name): Assert that there are no trailing slashes.
132970 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132972         * lib/mbswidth.h (mbswidth): Add a flags argument.
132973         (mbswidth): New declaration.
132974         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132975         * lib/mbswidth.c (mbswidth): Add a flags argument.
132976         (mbsnwidth): New function.
132978 2000-07-24  Jim Meyering  <meyering@lucent.com>
132980         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132984         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132986 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132988         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132989         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132990         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132991         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132992         invoke multibyte primitives.
132994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132996         * lib/quotearg.c:
132997         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132998         so that mbstate_t is always defined.
133000         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133001         be 1 in at least one GCC installation, and this configuration
133002         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133003         performance on hosts that have mbrtowc but have only unibyte
133004         locales, but I assume these hosts are rare.
133006 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133008         * lib/mbswidth.c (_XOPEN_SOURCE):
133009         Don't define; this causes problems on Solaris 7.
133010         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133012 2000-07-23  Jim Meyering  <meyering@lucent.com>
133014         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133015         too: getgrgid, getpwuid, getuid.
133017 2000-07-23  Jim Meyering  <meyering@lucent.com>
133019         * lib/basename.c (base_name): Add an assertion.
133021 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133023         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133024         shadow its mbsinit function.
133026 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133028         * lib/mbswidth.h: New file.
133029         * lib/mbswidth.c: New file.
133030         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133031         (noinst_HEADERS): Add mbswidth.h.
133033 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133035         * lib/config.charset: Add support for FreeBSD. Improve support for
133036         HP-UX and IRIX 6.
133038 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133040         * m4/mbswidth.m4: New file.
133041         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133043 2000-07-15  Jim Meyering  <meyering@lucent.com>
133045         * lib/makepath.c: Include quote.h.
133046         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133047         corresponding argument in a `quote (...)' call.
133048         Give better diagnostics.
133050         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133051         (noinst_HEADERS): Add quote.h.
133053         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133054         from tar's src/misc.c.
133055         * lib/quote.h: New file.  Prototypes for same.
133057 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133059         From a suggestion by Bruno Haible.
133060         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133061         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133062         to decide whether to define the BeOS workaround macro;
133063         this adjusts to the change to AC_MBSTATE_T.
133065 2000-07-14  Jim Meyering  <meyering@lucent.com>
133067         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133068         jm_AC_TYPE_UINTMAX_T.
133070 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133072         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133074         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133075         quotearg_buffer_restyled): Add support for
133076         clocale_quoting_style.  Undo previous change to
133077         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133078         and "{RIGHT QUOTATION MARK}" msgids.
133080 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133082         From a suggestion by Bruno Haible.
133083         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133084         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133085         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133086         and mbstate_t, to a single-part test that simply defines mbstate_t.
133087         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133088         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133090 2000-07-10  Jim Meyering  <meyering@lucent.com>
133092         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133094         * m4/gnu-source.m4: Output to confdefs.h directly.
133095         Suggestion from Akim Demaille.
133097 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133099         The old behavior of quoting `like this' doesn't look good with
133100         newer, ISO-style fonts.  See:
133101         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133103         Instead, quote "like this" by default.  Let the translator
133104         tailor the locale-specific quoting behavior by providing
133105         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133107         * lib/quotearg.c (N_): New macro.
133108         (gettext_default): New function.
133109         (quotearg_buffer_restyled): Use
133110         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133111         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133113 2000-07-09  Jim Meyering  <meyering@lucent.com>
133115         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133116         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133118         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133121 2000-07-09  Jim Meyering  <meyering@lucent.com>
133123         * lib/Most files: Update copyright dates to include 2000.
133125 2000-07-08  Jim Meyering  <meyering@lucent.com>
133127         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133128         if not defined.
133129         (xgethostname): Remove now-unnecessary #ifdef.
133130         Move declaration of `err' into loop where it's used.
133132 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133133         and Bruno Haible  <haible@clisp.cons.org>
133135         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133136         only if the test for an object-type mbstate_t fails.  This
133137         prevents us from mistakenly reporting that mbstate_t is a
133138         system object type after we "#define mbstate_t int" to work
133139         around its lack.
133141 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133142         and Bruno Haible  <haible@clisp.cons.org>
133144         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133146 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133148         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133149         to strerror_r.
133150         Include <ctype.h> for use of isalpha.
133152 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133154         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133155         by allocating a larger buffer. Test the gethostname return value for
133156         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133157         returns an error and ENAMETOOLONG isn't defined.
133159 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133161         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133162         dimension.
133164 2000-07-04  Jim Meyering  <meyering@lucent.com>
133166         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133167         of the deprecated AC_CHECKING.
133169 2000-07-04  Jim Meyering  <meyering@lucent.com>
133171         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133172         Reported by Bruno Haible.
133174 2000-07-04  Jim Meyering  <meyering@lucent.com>
133176         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133177         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133178         lacks mbrtowc.
133180 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133182         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133183         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133185 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133186         and Bruno Haible  <haible@clisp.cons.org>
133188         * lib/quotearg.c (mbrtowc):
133189         Assign to *pwc, and return 1 only if result is nonzero.
133190         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133192 2000-07-03  Jim Meyering  <meyering@lucent.com>
133194         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133196 2000-07-03  Jim Meyering  <meyering@lucent.com>
133198         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133199         This is necessary to get a definition of e.g., UTMP_FILE on
133200         HP-UX 10.20.
133201         From Bob Proulx.
133203 2000-07-02  Jim Meyering  <meyering@lucent.com>
133205         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133207         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133208         AC_LIBOBJ(function_name).
133209         * m4/chown.m4: Likewise.
133210         * m4/fnmatch.m4: Likewise.
133211         * m4/ftruncate.m4: Likewise.
133212         * m4/getgroups.m4: Likewise.
133213         * m4/getline.m4: Likewise.
133214         * m4/group-member.m4: Likewise.
133215         * m4/jm-macros.m4: Likewise.
133216         * m4/lstat.m4: Likewise.
133217         * m4/malloc.m4: Likewise.
133218         * m4/memcmp.m4: Likewise.
133219         * m4/nanosleep.m4: Likewise.
133220         * m4/putenv.m4: Likewise.
133221         * m4/realloc.m4: Likewise.
133222         * m4/regex.m4: Likewise.
133223         * m4/stat.m4: Likewise.
133224         * m4/strftime.m4: Likewise.
133226 2000-07-02  Jim Meyering  <meyering@lucent.com>
133228         * lib/quotearg.c (mbstate_t): Don't define here.
133230 2000-07-02  Jim Meyering  <meyering@lucent.com>
133232         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133234 2000-07-01  Jim Meyering  <meyering@lucent.com>
133236         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133238 2000-07-01  Jim Meyering  <meyering@lucent.com>
133240         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133241         problem.
133243 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133246         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133248 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133250         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133251         per change in ../m4/ls-mntd-fs.m4.
133252         (read_filesystem_list): Ignore symbolic links.
133254 2000-06-29  Jim Meyering  <meyering@lucent.com>
133256         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133257         for declaration of strcmp.
133259         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133261         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133262         Avoid warning by casting result to `char *' to remove `const'.
133264 2000-06-28  Jim Meyering  <meyering@lucent.com>
133266         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133267         included by quotearg.c, for which we perform this test.  From
133268         Bruno Haible.
133270 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133272         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133273         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133274         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133276 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133278         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133280 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133282         savedir now sets errno on failure and invokes xmalloc to get memory.
133283         Fix a couple of other minor bugs while we're at it.
133285         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133286         (NAMLEN): Remove macro.
133287         (malloc, realloc): Remove decls.
133288         (stpcpy): Likewise.
133289         ("xalloc.h"): Include.
133290         (NAME_SIZE_DEFAULT): New macro.
133291         (savedir): Use xmalloc / xrealloc to allocate memory.
133292         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133293         Skip "" directory entries.
133294         Use strlen to calculate directory entry length, since the old method
133295         is rarely used these days and isn't worth supporting.
133296         Don't use a pointer after freeing it.
133297         Check for integer overflow when calculating allocation size.
133298         Use memcpy to copy entries, instead of stpcpy.
133299         Set errno properly when returning NULL.
133300         Check for readdir error.
133302 2000-06-26  Jim Meyering  <meyering@lucent.com>
133304         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133306 2000-06-25  Jim Meyering  <meyering@lucent.com>
133308         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133309         Linux header bug when _XOPEN_SOURCE is defined to 500.
133311 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133313         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133314         deficiency.
133316 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133318         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133319         Include xalloc.h.
133320         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133322 2000-06-24  Jim Meyering  <meyering@lucent.com>
133324         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133325         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133326         for which strerror does return char*, but which lacks a conveniently
133327         accessible declaration of the function.  If the compile-test says
133328         strerror_r doesn't work, then resort to a `run'-test that works on
133329         BeOS and segfaults on DEC Unix.
133331 2000-06-24  Jim Meyering  <meyering@lucent.com>
133333         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133335 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133337         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133338         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133340 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133342         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133343         (mbrtowc, mbstate_t): Define substitutes if
133344         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133345         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133346         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133348 2000-06-23  Jim Meyering  <meyering@lucent.com>
133350         * m4/afs.m4: Add missing AC_MSG_RESULT.
133351         Reported by Bruno Haible.
133353         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133354         Suggestion from Bruno Haible.
133356 2000-06-23  Jim Meyering  <meyering@lucent.com>
133358         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133360 2000-06-21  Jim Meyering  <meyering@lucent.com>
133362         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133364 2000-06-21  Jim Meyering  <meyering@lucent.com>
133366         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133367         (noinst_HEADERS): Add getstr.h.
133369         * lib/getline.c (getstr): Move into a separate file.
133370         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133371         the following changes: new parameter, delim2; both delim[12]
133372         parameters have type `int', not `char'.  The latter would lose
133373         with 8-bit delimiters.
133374         * lib/getstr.h: New file.
133376 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133378         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133379         than 1024, return a memory chunk of least possible size, instead
133380         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133381         Use free/xmalloc instead of xrealloc to avoid copying for very long
133382         paths.
133384 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133386         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133387         the empty string.
133389 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133391         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133392         address, not strdup.  Include <stdlib.h> and don't declare free().
133394 2000-06-19  Jim Meyering  <meyering@lucent.com>
133396         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133398 2000-06-18  Jim Meyering  <meyering@lucent.com>
133400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133402         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133403         `checking whether...' message to be consistent with that of the
133404         lstat test.
133406 2000-06-18  Jim Meyering  <meyering@lucent.com>
133408         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133409         Besides, these days every porting target provides a mkdir function.
133411         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133412         needed. (this snippet comes from src/system.h).
133414 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133416         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133418 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133420         * lib/human.c (adjust_value): New function.
133421         (human_readable_inexact): Apply rounding style even when
133422         printing approximate values.
133424 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133426         * lib/human.c (human_readable_inexact): Allow an input block
133427         size that is not a multiple of the output block size, and vice versa.
133428         Reported by Piergiorgio Sartor.
133430 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133432         * lib/getdate.y (get_date): Apply relative times after time
133433         zone indicator, not before.  Reported by Todd A. Jacobs.
133435 2000-06-13  Jim Meyering  <meyering@lucent.com>
133437         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133439         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133441 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133443         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133445 2000-06-12  Jim Meyering  <meyering@lucent.com>
133447         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133448         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133449         optional argument.
133450         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133451         the optional argument, `lib'.
133453 2000-06-08  Jim Meyering  <meyering@lucent.com>
133455         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133457 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133459         Rewrite largefile configuration so that we don't need to run
133460         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133461         AC_CANONICAL_HOST in configure.in -- jmm]
133463         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133464         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133465         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133466         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133467         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133468         All uses changed.
133469         Instead of inspecting the output of getconf, try to compile the
133470         test program without and with the macro definition.
133471         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133472         for getconf.  Instead, check for the needed flags by compiling
133473         test programs.
133475 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133477         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133479 2000-06-04  Jim Meyering  <meyering@lucent.com>
133481         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133482         SunOS 4.1.4 for which gid_t is an unsigned type.
133484 2000-06-03  Jim Meyering  <meyering@lucent.com>
133486         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133487         now that autoconf requires that.
133489         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133490         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133491         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133493 2000-06-03  Jim Meyering  <meyering@lucent.com>
133495         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133497 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133499         * m4/glibc21.m4: New file.
133500         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133502 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133504         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133505         newer, don't install charset.alias.
133506         * lib/config.charset: Change the Linux/glibc rules so they become empty
133507         on glibc-2.1 or newer.
133509 2000-06-02  Jim Meyering  <meyering@lucent.com>
133511         * lib/mountlist.c: Back out last change.  Instead, do this...
133512         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133513         me_dummy member using the same `ignore'-testing code.
133514         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133515         fs_type strings.
133516         From Mark D. Roth.
133518 2000-05-29  Jim Meyering  <meyering@lucent.com>
133520         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133521         mounts with the `ignore' attribute.  Based on a patch from
133522         Mark D. Roth.
133524 2000-05-28  Jim Meyering  <meyering@lucent.com>
133526         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133527         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133528         * m4/stat.m4: Likewise.
133529         * m4/lstat.m4: Likewise.
133530         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133532         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133533         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133535 2000-05-26  Jim Meyering  <meyering@lucent.com>
133537         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133539 2000-05-24  Jim Meyering  <meyering@lucent.com>
133541         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133542         autoconf requires that.
133543         * m4/lib-check.m4: Likewise.
133544         * m4/jm-macros.m4: Likewise.
133545         * m4/strftime.m4: Likewise.
133547         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133548         AC_CHECK_DECLS, now that autoconf requires that.
133550 2000-05-22  Jim Meyering  <meyering@lucent.com>
133552         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133553         * m4/lstat.m4: Likewise.
133555 2000-05-22  Jim Meyering  <meyering@lucent.com>
133557         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133559 2000-05-20  Jim Meyering  <meyering@lucent.com>
133561         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133562         (jm_PREREQ): Use it.
133564 2000-05-18  Jim Meyering  <meyering@lucent.com>
133566         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133567         back, too, since it may have been modified by allocate_entry.
133568         (hash_delete): Rewrite to use neither the assignment operator
133569         nor the comma operator in an if-expression.
133571 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133573         * lib/closeout.c:
133574         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133575         Remove; no longer needed.
133576         "quotearg.h": Add include.
133577         (file_name): Do not bother to explicitly initialize to NULL; it's less
133578         efficient on some hosts.
133579         (close_stdout_status): Remove test as to whether stdout was already
133580         closed; it breaks for the case "echo x | sort >&-".
133581         Quote file name colons.
133582         Do not assume that _("write error") lacks format strings.
133584 2000-05-15  Jim Meyering  <meyering@lucent.com>
133586         * lib/version-etc.c (version_etc_copyright): Update the copyright
133587         string used in all --version output.
133589 2000-05-14  Jim Meyering  <meyering@lucent.com>
133591         * lib/closeout.c (close_stdout_set_file_name): New function.
133592         (close_stdout_status): Use new file-scoped global.
133593         Return right away if fstat says the stdout file descriptor is invalid.
133594         * lib/closeout.h (close_stdout_set_file_name): Declare.
133596 2000-05-10  Jim Meyering  <meyering@lucent.com>
133598         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133599         (close_stdout_set_status): New function.
133600         * lib/closeout.h (close_stdout_set_status): Declare.
133602 2000-05-09  Jim Meyering  <meyering@lucent.com>
133604         * m4/gettext.m4: Rename this...
133605         * m4/libintl.m4: ...to this.
133607 2000-05-08  Jim Meyering  <meyering@lucent.com>
133609         * lib/long-options.c: Don't include closeout.h.
133610         (parse_long_options): Don't call close_stdout for --version.
133612 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133614         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133615         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133616         2.1.3 bug.  This avoids a clash when files like regex.c define
133617         _GNU_SOURCE.
133619 2000-05-06  Jim Meyering  <meyering@lucent.com>
133621         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133622         (AC_REPLACE_FUNCS): Add strnlen.
133624         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133625         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133627         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133628         AC_SEARCH_LIBS call for nanosleep.
133629         (LIB_NANOSLEEP): Set and AC_SUBST.
133631 2000-05-06  Jim Meyering  <meyering@lucent.com>
133633         * lib/strnlen.c: Undefine __strnlen and strnlen.
133634         [!weak_alias]: Define __strnlen to strnlen.
133636         * lib/atexit.c: New file, from libiberty.
133638 2000-05-06  Jim Meyering  <meyering@lucent.com>
133640         * lib/closeout.c (close_stdout_status): Also check for errors on the
133641         stderr stream.
133643 2000-05-05  Jim Meyering  <meyering@lucent.com>
133645         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133646         AC_SEARCH_LIBS call for clock_gettime.
133647         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133649         * m4/search-libs.m4: Update from autoconf.
133651         su doesn't work on Solaris 2.6.
133652         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133653         <shadow.h>.  Reported by Dragos Harabor.
133655 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133657         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133658         memcpy instead of xmalloc, xrealloc, path_concat.
133659         (locale_charset): Treat empty environment variables as absent.
133660         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133662 2000-05-04  Jim Meyering  <meyering@lucent.com>
133664         * lib/getopt.c: Update from glibc.
133665         * lib/obstack.c: Likewise.
133666         * lib/obstack.h: Likewise.
133667         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133668         file
133670         * lib/regex.h: Likewise.
133671         * lib/strndup.c: Likewise.
133672         * lib/strnlen.c: New file, from glibc.
133674 2000-05-03  Jim Meyering  <meyering@lucent.com>
133676         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133678 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133681         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133682         compile-time test, rather than inspecting host and OS, to
133683         decide whether to define _LARGEFILE_SOURCE.
133685 2000-05-01  Jim Meyering  <meyering@lucent.com>
133687         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133690         Based on a patch from Bruno Haible.
133692 2000-05-01  Jim Meyering  <meyering@lucent.com>
133694         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133696 2000-04-29  Jim Meyering  <meyering@lucent.com>
133698         * lib/path-concat.c: Declare strdup only if it's not defined.
133699         * lib/canon-host.c: Likewise.
133701 2000-04-28  Jim Meyering  <meyering@lucent.com>
133703         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133704         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133705         is included first, then limits.h is included by locale.h by libintl.h.
133706         From John David Anglin.
133708 2000-04-25  Jim Meyering  <meyering@lucent.com>
133710         * lib/makepath.c (S_IRWXUGO): Define.
133711         (make_path): Always perform explicit chmod if MODE specifies any
133712         of the `special' permission bits.  Prompted by a bug report against
133713         install from Mate Wierdl and Joost van Baal.
133715 2000-04-18  Jim Meyering  <meyering@lucent.com>
133717         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133718         (jm_PREREQ): Use it.
133720 2000-04-18  Jim Meyering  <meyering@lucent.com>
133722         * lib/README: New file.
133724         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133725         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133727 2000-04-17  Jim Meyering  <meyering@lucent.com>
133729         Get it right :-)
133730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133731         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133732         Suggestion from Akim Demaille.
133734 2000-04-17  Jim Meyering  <meyering@lucent.com>
133736         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133737         the definition of it to rpl_strftime also defined-away the system's
133738         declaration.
133740 2000-04-15  Jim Meyering  <meyering@lucent.com>
133742         Use `C' to denote so-called `contiguous' files, the same way
133743         that tar does.
133744         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133745         (ftypelet): Use S_ISCTG.
133746         From Michael Deutschmann.
133748 2000-04-14  Jim Meyering  <meyering@lucent.com>
133750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133751         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133752         clobbered.
133754 2000-04-14  Jim Meyering  <meyering@lucent.com>
133756         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133758 2000-04-13  Jim Meyering  <meyering@lucent.com>
133760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133761         AH_VERBATIM to insert required #ifndef into config.h.in.
133762         Suggestion from Akim Demaille.
133764 2000-04-12  Jim Meyering  <meyering@lucent.com>
133766         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133767         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133768         Christian Krackowizer.
133770         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133771         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133772         (AC_SYS_LARGEFILE): Require.
133773         (AM_C_PROTOTYPES): Require.
133775 2000-04-08  Jim Meyering  <meyering@lucent.com>
133777         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133778         names don't conflict.  Reported by Eli Zaretskii.
133780 2000-04-07  Jim Meyering  <meyering@lucent.com>
133782         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133783         sys/types.h, to work around system header problems on AIX 3.2.5.
133784         From Bruno Haible.
133786 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133788         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133789         bug.  Deal with the different error behavior of Irix iconv.
133791 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133793         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133794         IRIX if the installer said otherwise.
133796 2000-04-05  Jim Meyering  <meyering@lucent.com>
133798         Portability tweaks required for ultrix4.3.
133799         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133800         (jm_CHECK_DECLS): Add getutent to the list of functions.
133801         (_jm_DECL_HEADERS): Add utmpx.h.
133802         From John David Anglin.
133804         * m4/strftime.m4: Back out the 2000-04-02 change.
133805         Instead of that change, simply undefine putenv in the test program.
133807 2000-04-05  Jim Meyering  <meyering@lucent.com>
133809         Portability tweaks required for ultrix4.3.
133810         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133811         getutent.
133812         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133813         * lib/canon-host.c: Declare strdup.
133814         * lib/path-concat.c: Likewise.
133815         From John David Anglin.
133817 2000-04-04  Jim Meyering  <meyering@lucent.com>
133819         Be more DOS 8.3-friendly.
133820         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133821         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133822         * lib/Makefile.am: Reflect renaming.
133823         Reported by Eli Zaretskii.
133825         Use a temporary file name that won't clash with `charset.alias'
133826         in the DOS 8.3 name space.
133827         * lib/Makefile.am (charset_tmp): Define.
133828         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133829         (uninstall-local): Likewise.
133830         Reported by Eli Zaretskii.
133832 2000-04-03  Jim Meyering  <meyering@lucent.com>
133834         * m4/gettext.m4: Fix typo in comment.
133836         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133837         textutils/configure.in).  Suggestion from Paul Eggert.
133838         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133840 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133842         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133843         variable in the shell rather than using putenv, which isn't
133844         portable.  This avoids the configure-time inter-test dependency
133845         on the potentially-renamed putenv function.
133847 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133850         before checking struct stat.st_blksize, so that
133851         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133853 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133855         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133856         since strftime.c uses HAVE_STRFTIME to decide whether to use
133857         the underlying strftime.
133859 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133861         * lib/time/strftime.c (my_strftime): Make sure we call the system
133862         strftime, not ourselves, when invoking the underlying strftime.
133864 2000-03-24  Jim Meyering  <meyering@lucent.com>
133866         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133867         (charset_alias): Define.
133868         (install-exec-local): Factor out common code.
133869         (uninstall-local): Split lines longer than 80.
133870         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133871         (SUFFIXES): Define.
133872         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133873         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133875 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133877         * lib/config.charset: Output a line containing "Packages using this
133878         file".
133879         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133880         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133881         ref-del.sed): New rules.
133883 2000-03-17  Jim Meyering  <meyering@lucent.com>
133885         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133886         Otherwise, include <strings.h>
133888 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133890         * lib/unicodeio.c (utf8_wctomb): New function.
133891         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133892         format instead of in UCS-4 with platform dependent endianness.
133894 2000-03-10  Jim Meyering  <meyering@lucent.com>
133896         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133897         From Marco Franzen.
133899 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133901         * lib/savedir.c (savedir): Work even if directory size is
133902         negative; this can happen with some screwy NFS configurations.
133904 2000-03-06  Jim Meyering  <meyering@lucent.com>
133906         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133907         if it's NULL (because we ran out of memory).  From Bruno Haible.
133909 2000-03-05  Jim Meyering  <meyering@lucent.com>
133911         * lib/localcharset.c ("path-concat.h"): Include.
133912         (get_charset_aliases): Use path_concat instead of ANSI string
133913         concatenation.
133915         * lib/unicodeio.h (PARAMS): Define.
133916         Use it to guard prototype.
133918 2000-03-04  Jim Meyering  <meyering@lucent.com>
133920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133921         for lib/localcharset.c.
133923 2000-03-04  Jim Meyering  <meyering@lucent.com>
133925         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133926         installing into it.
133927         (uninstall-local): Uncomment this rule so `make distcheck' works
133928         once again.
133930         * lib/unicodeio.c (<errno.h>): Include it.
133931         (errno): Declare if not defined.
133933         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133935         * lib/config.charset: New version, incorporating remarks from a linux
133936         i18n mailing list.  From Bruno Haible.
133938 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133940         * m4/codeset.m4: New file.
133941         * m4/iconv.m4: New file.
133942         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133944 2000-03-03  Jim Meyering  <meyering@lucent.com>
133946         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133948 2000-03-02  Jim Meyering  <meyering@lucent.com>
133950         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133951         the messages come out on separate lines.
133953         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133954         rather than jm_CHECK_DECLARATIONS.
133955         * m4/decl.m4: Remove now-unused file.
133957         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133958         geteuid.
133960 2000-03-02  Jim Meyering  <meyering@lucent.com>
133962         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133964 2000-03-01  Jim Meyering  <meyering@lucent.com>
133966         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133967         * lib/unicodeio.c: Likewise.
133969 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133971         * lib/config.charset: New file.
133972         * lib/localcharset.c: New file.
133973         * lib/unicodeio.h, lib/unicodeio.c: New files.
133974         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133975         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133976         (noinst_HEADERS): Add unicodeio.h.
133977         (all-local, install-exec-local, charset.alias): New targets.
133979 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133981         * lib/quotearg.c (ALERT_CHAR): New macro.
133982         (quotearg_buffer_restyled): Use it.
133984 2000-02-27  Jim Meyering  <meyering@lucent.com>
133986         * m4/check-decl.m4: Add getenv to the list.
133988 2000-02-27  Jim Meyering  <meyering@lucent.com>
133990         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133991         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133993         * lib/backupfile.c: Guard inclusion of stdlib.h with
133994         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133995         Declare malloc if needed.
133997         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133998         `#ifndef HAVE_DECL..'
133999         now that autoconf always defines the HAVE_DECL_ symbols.
134000         * lib/human.c: Likewise.
134001         * lib/same.c: Likewise.
134002         * lib/strtoumax.c: Likewise.
134004         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134005         declaration check was not run.
134006         * lib/hash.c: Likewise.
134007         * lib/human.c: Likewise.
134008         * lib/same.c: Likewise.
134009         * lib/strtoumax.c: Likewise.
134011         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134012         `.', then first look up the entire `.'-containing string as a login
134013         name.
134015 2000-02-23  Jim Meyering  <meyering@lucent.com>
134017         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134018         in place of my hack.
134020 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134022         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134023         (textint): New typedef.
134024         (parser_control): Member year changed from int to textint.
134025         All uses changed.
134026         (YYSTYPE): Removed; replaced by %union with int and textint members.
134027         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134028         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134029         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134030         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134031         (date, number, to_year): Use width of number in digits, not its value,
134032         to determine whether it's a 2-digit year, or a 2-digit time.
134033         (yylex): Store number of digits of numeric tokens.
134034         Reported by John Kendall.
134036         (parser_control): Changed from struct parser_control to typedef (for
134037         consistency).  All uses changed.
134039         (tID): Removed; not used.
134040         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134042 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134044         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134045         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134047 2000-02-12  Jim Meyering  <meyering@lucent.com>
134049         * lib/userspec.c (ISDIGIT): Define it.
134050         (isdigit): Remove definition.
134051         (is_number): Use ISDIGIT, not isdigit.
134052         <libintl.h>: Include.
134053         (_ and N_): Define.
134054         (parse_user_spec): Mark translatable strings.
134056 2000-02-10  Jim Meyering  <meyering@lucent.com>
134058         With these changes, nanosleep.[ch] are finally enough like the other
134059         lib/* replacement files to compile on a few more losing systems.
134061         * lib/nanosleep.h: Don't include config.h.
134062         Remove prototype from declaration of nanosleep.
134063         (PARAMS): Remove now-unneeded definition.
134064         * lib/nanosleep.c: #undef nanosleep.
134065         (rpl_nanosleep): Rename from nanosleep.
134067 2000-02-10  Jim Meyering  <meyering@lucent.com>
134069         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134070         gnu_nanosleep to rpl_nanosleep.
134072 2000-02-09  Jim Meyering  <meyering@lucent.com>
134074         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134075         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134077 2000-02-08  Akim Demaille  <akim@epita.fr>
134079         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134080         `[' and `]' and remove uses of `changequote'.
134081         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134082         (AC_SYS_LARGEFILE): Likewise.
134083         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134084         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134085         of changequote.
134086         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134087         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134088         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134089         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134091 2000-02-05  Jim Meyering  <meyering@lucent.com>
134093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134094         Remove explicit use of AC_HEADER_TIME.  It is required by
134095         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134096         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134097         in autoconf whereby the expansion of the latter ended up preceding
134098         the expansion of its prerequisite, AC_HEADER_TIME.
134099         Reported by Volker Borchert.
134101 2000-02-03  Jim Meyering  <meyering@lucent.com>
134103         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134105 2000-02-03  Jim Meyering  <meyering@lucent.com>
134107         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134108         rather than with `#if HAVE_UTMPNAME'.
134110 2000-02-02  Jim Meyering  <meyering@lucent.com>
134112         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134113         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134114         Reported by Eli Zaretskii.
134116 2000-02-01  Jim Meyering  <meyering@lucent.com>
134118         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134120 2000-01-31  Jim Meyering  <meyering@lucent.com>
134122         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134123         functions.  Add the time.h and sys/time.h headers along with the
134124         AC_REQUIRE'ment of AC_HEADER_TIME.
134126 2000-01-31  Jim Meyering  <meyering@lucent.com>
134128         * lib/nanosleep.h (nanosleep): Guard declaration with
134129         `#if ! HAVE_DECL_NANOSLEEP'.
134130         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134131         the declaration in that vendor's sys/timers.h.
134132         Reported by Christian Krackowizer.
134134         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134135         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134136         (ISPRINT): Likewise.
134137         Reported by Tom Tromey.
134139 2000-01-30  Jim Meyering  <meyering@lucent.com>
134141         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134143         * m4/prereq.m4 (utmp_includes): Define.
134144         Check for ut_user and ut_name members in both struct utmpx
134145         and struct utmp.
134147 2000-01-30  Jim Meyering  <meyering@lucent.com>
134149         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134150         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134151         header files where only utmpx.ut_user is declared.
134153         * lib/readutmp.h (UT_USER): Define.
134155 2000-01-29  Jim Meyering  <meyering@lucent.com>
134157         * m4/lib-check.m4: New file containing library-related checks from
134158         fileutils and sh-utils (textutils had none).
134160 2000-01-28  Jim Meyering  <meyering@lucent.com>
134162         * m4/perl.m4: Change format of warning message to look more like that
134163         from the missing script.  Suggestion from François Pinard.
134165 2000-01-25  Jim Meyering  <meyering@lucent.com>
134167         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134168         well as time.h in the compile check.
134169         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134170         Fix typo in cross-compiling case: s/yes/no/.
134172 2000-01-23  Jim Meyering  <meyering@lucent.com>
134174         * m4/jm-macros.m4: Move df-related tests here from
134175         fileutils/configure.in
134177         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134178         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134180         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134181         s/space/ac_fsusage_space/.
134182         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134184         * m4/ftruncate.m4: New file (derived from part of
134185         fileutils/configure.in).
134186         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134187         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134189         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134190         AC_SUBST these here, rather than just in sh-util/configure.in, so
134191         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134192         all the same.
134193         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134194         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134195         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134196         (AC_SUBST(POW_LIBM)): Likewise.
134197         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134199 2000-01-23  Jim Meyering  <meyering@lucent.com>
134201         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134202         obstack.c.
134204 2000-01-22  Jim Meyering  <meyering@lucent.com>
134206         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134208         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134210         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134211         configure.in
134212         (AC_CHECK_HEADERS): Likewise for sh-utils.
134213         (AC_CHECK_HEADERS): Likewise for textutils.
134214         Merge the three lists of headers.
134216         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134217         from fileutils' configure.in.
134219         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134220         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134221         check-decl.m4.
134223         * m4/check-decl.m4: Use #if rather than #ifdef.
134224         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134225         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134226         (_jm_DECL_HEADERS): Define new function.
134227         (jm_CHECK_DECLARATIONS): Require it.
134229 2000-01-22  Jim Meyering  <meyering@lucent.com>
134231         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134232         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134233         Required for some AIX systems.  Reported by Christian Krackowizer.
134234         [TESTING] (main): New function.
134236         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134237         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134238         letters.
134240         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134241         iswprint.
134243         * lib/strverscmp.c (ISDIGIT): Define.
134244         (strverscmp): Use ISDIGIT, not isdigit.
134246 2000-01-19  Jim Meyering  <meyering@lucent.com>
134248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134249         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134250         defines `struct timespec' in <sys/time.h>
134252         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134253         Thanks to Akim for explaining.
134255 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134257         * lib/nanosleep.c (nanosleep):
134258         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134259         POSIX.1 doesn't require SA_INTERRUPT and some systems
134260         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134261         it's been part of POSIX.1 since day 1 (in 1988).
134263 2000-01-17  Jim Meyering  <meyering@lucent.com>
134265         * lib/interlock: Remove unused file.  Reported by François Pinard.
134267 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134269         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134270         alert, backslash, formfeed, and vertical tab unnecessarily in
134271         shell quoting style.
134273 2000-01-16  Jim Meyering  <meyering@lucent.com>
134275         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134276         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134277         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134278         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134280 2000-01-16  Jim Meyering  <meyering@lucent.com>
134282         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134283         because the latter didn't work.
134285 2000-01-15  Jim Meyering  <meyering@lucent.com>
134287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134288         (AC_REPLACE_FUNCS): Add memcpy and memset.
134289         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134290         Add strpbrk.
134291         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134293 2000-01-12  Jim Meyering  <meyering@lucent.com>
134295         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134296         (jm_PREREQ): Use it.
134297         (jm_PREREQ_READUTMP): New macro.
134298         (jm_PREREQ): Use it.
134300 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134302         Quote multibyte characters correctly.
134303         * m4/c-bs-a.m4: New file.
134304         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134305         (jm_PREREQ): Use it.
134307 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134309         * m4/uintmax_t.m4: Port to autoconf 2.13.
134311 2000-01-08  Jim Meyering  <meyering@ascend.com>
134313         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134314         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134316 2000-01-04  Jim Meyering  <meyering@ascend.com>
134318         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134319         jm_STRUCT_DIRENT_D_TYPE.
134320         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134321         jm_STRUCT_DIRENT_D_INO.
134322         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134323         jm_STRUCT_UTIMBUF.
134324         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134325         renamings.
134326         * m4/utime.m4: Likewise.
134328         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134329         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134331 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134333         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134334         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134336 2000-01-02  Jim Meyering  <meyering@ascend.com>
134338         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134339         remember if this is necessary.
134341 1999-12-26  Jim Meyering  <meyering@ascend.com>
134343         * m4/jm-macros.m4: Use it here.
134344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134346 1999-12-23  Jim Meyering  <meyering@ascend.com>
134348         * m4/jm-macros.m4: Check for clock_gettime (moved from
134349         fileutils/configure.in)
134350         Check for gettimeofday.
134352 1999-12-20  Jim Meyering  <meyering@ascend.com>
134354         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134355         autoconf-2.14a-1999-12-20.
134357 1999-12-19  Jim Meyering  <meyering@ascend.com>
134359         * m4/lstat-slash.m4: New file.
134360         * m4/jm-macros.m4: Use the new macro:
134361         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134363 1999-12-07  Jim Meyering  <meyering@ascend.com>
134365         * m4/perl.m4: Require that File::Compare be available, too.
134366         Too many systems seem to lack it.
134368         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134369         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134371 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134373         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134374         problem with the QNX 4.25 shell, which doesn't propagate exit
134375         status of failed commands inside shell assignments.
134377 1999-11-17  Jim Meyering  <meyering@ascend.com>
134379         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134381 1999-11-07  Jim Meyering  <meyering@ascend.com>
134383         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134385 1999-11-06  Jim Meyering  <meyering@ascend.com>
134387         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134388         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134390 1999-11-05  Jim Meyering  <meyering@ascend.com>
134392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134393         configure.in of textutils, fileutils, and sh-utils into this one
134394         (shared between those packages) file.
134395         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134396         AC_STRUCT_ST_BLKSIZE.
134398 1999-11-03  Jim Meyering  <meyering@ascend.com>
134400         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134401         of AC_CHECK_TYPE checks includes unistd.h.
134402         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134403         Suggestion from Akim Demaille.
134405 1999-10-30  Jim Meyering  <meyering@ascend.com>
134407         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134408         m4-quoted string.
134409         * m4/ls-mntd-fs.m4: Likewise.
134410         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134411         * m4/jm-winsz1.m4: Likewise.
134413         * m4/const.m4: Remove file, since the fix made it into the experimental
134414         version of autoconf.
134415         * m4/mktime.m4: Likewise.
134417         * m4/check-type.m4: Remove file, now that the latest version of
134418         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134420         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134421         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134422         AC_CHECK_TYPE.
134424 1999-10-04  Jim Meyering  <meyering@ascend.com>
134426         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134428 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134430         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134431         2.95.1 bug with HP-UX 10.20.
134433 1999-09-17  Jim Meyering  <meyering@ascend.com>
134435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134436         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134437         due to missing strdup (against sh-utils-2.0).
134439 1999-08-29  Jim Meyering  <meyering@ascend.com>
134441         * m4/jm-macros.m4: Require jm_BISON.
134442         * m4/bison.m4: New file.
134444 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134446         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134447         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134449 1999-08-05  Jim Meyering  <meyering@ascend.com>
134451         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134452         to avoid conflicts with `conftest' on 8+3 filesystems.
134453         Suggestion from Eli Zaretskii.
134455 1999-08-04  Jim Meyering  <meyering@ascend.com>
134457         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134458         fileutils and sh-utils (textutils's getline test was inadequate).
134459         (AM_FUNC_GETLINE): Run this test.
134460         (AC_CHECK_FUNCS): Check for getdelim.
134461         Reported by Bob Proulx.
134463 1999-08-02  Jim Meyering  <meyering@ascend.com>
134465         * m4/jm-macros.m4: Add a comment.
134467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134469         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134470         <inttypes.h> defines strtoumax as a macro (and not as a
134471         function).
134473 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134475         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134476         that we can shift, multiply and divide unsigned long long
134477         values; Ultrix cc can't do it.
134479 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134481         * m4/mktime.m4: New file, which is a preview of what should appear
134482         in the next public autoconf release.
134484 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134486         * m4/lfs.m4: Remove this file.
134487         * m4/largefile.m4: New file.  It contains the old contents of
134488         lfs.m4, except that all names with prefix AC_LFS have been
134489         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134490         compatible with future autoconf versions.  Also, some minor m4
134491         quoting problems have been fixed.
134493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134495         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134496         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134497         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134498         and simplify the shell code.
134500 1999-08-01  Jim Meyering  <meyering@ascend.com>
134502         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134503         m4.
134505 1999-07-20  Jim Meyering  <meyering@ascend.com>
134507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134509 1999-07-15  Jim Meyering  <meyering@ascend.com>
134511         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134513 1999-05-22  Jim Meyering  <meyering@ascend.com>
134515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134517 1999-05-20  Jim Meyering  <meyering@ascend.com>
134519         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134520         Add a colon after each `then' in case $4 is empty.
134522 1999-05-16  Jim Meyering  <meyering@ascend.com>
134524         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134526 1999-05-10  Jim Meyering  <meyering@ascend.com>
134528         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134530         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134531         AC_FUNC_MKTIME.
134533 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134535         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134537 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134539         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134540         not CPPFLAGS, so that linking works correctly in IRIX.
134542 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134546 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134548         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134549         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134551         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134552         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134554         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134556 1999-04-20  Jim Meyering  <meyering@ascend.com>
134558         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134559         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134560         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134562 1999-04-18  Jim Meyering  <meyering@ascend.com>
134564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134565         * m4/jm-macros.m4: Use it.
134567 1999-04-06  Jim Meyering  <meyering@ascend.com>
134569         * m4/strftime.m4: Remove test for %f.
134571 1999-03-29  Jim Meyering  <meyering@ascend.com>
134573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134574         superset of the AC_TYPE_* checks in the textutils, fileutils,
134575         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134576         AC_TYPE_PID_T.
134578 1999-03-28  Jim Meyering  <meyering@ascend.com>
134580         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134581         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134582         replaced e.g., in the *.sh files of the sh-utils.
134584 1999-03-20  Jim Meyering  <meyering@ascend.com>
134586         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134587         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134588         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134590 1999-03-19  Jim Meyering  <meyering@ascend.com>
134592         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134594 1999-03-12  Jim Meyering  <meyering@ascend.com>
134596         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134598 1999-03-07  Jim Meyering  <meyering@ascend.com>
134600         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134601         declared.
134603 1999-02-17  Jim Meyering  <meyering@ascend.com>
134605         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134606         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134608 1999-02-07  Jim Meyering  <meyering@ascend.com>
134610         * m4/group-member.m4: New file -- extracted from sh-utils'
134611         configure.in.
134613         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134614         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134616 1999-02-06  Jim Meyering  <meyering@ascend.com>
134618         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134619         * m4/fnmatch.m4: Likewise.
134620         * m4/getgroups.m4: Likewise.
134621         * m4/lstat.m4: Likewise.
134622         * m4/malloc.m4: Likewise.
134623         * m4/putenv.m4: Likewise.
134624         * m4/realloc.m4: Likewise.
134625         * m4/regex.m4: Likewise.
134626         * m4/stat.m4: Likewise.
134627         * m4/strftime.m4: Likewise.
134628         Suggestion from Alain Magloire.
134630         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134631         * m4/fnmatch.m4: Likewise.
134632         * m4/getgroups.m4: Likewise.
134633         * m4/getline.m4: Likewise.
134634         * m4/lstat.m4: Likewise.
134635         * m4/malloc.m4: Likewise.
134636         * m4/memcmp.m4: Likewise.
134637         * m4/putenv.m4: Likewise.
134638         * m4/realloc.m4: Likewise.
134639         * m4/regex.m4: Likewise.
134640         * m4/stat.m4: Likewise.
134641         * m4/strftime.m4: Likewise.
134642         Suggestion from Alain Magloire.
134644         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134645         an argument.
134647         * m4/regex.m4: Add a run-time Test for proper operation of
134648         re_compile_pattern.
134650 1999-01-31  Jim Meyering  <meyering@ascend.com>
134652         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134654 1999-01-30  Jim Meyering  <meyering@ascend.com>
134656         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134658         * m4/jm-mktime.m4: Make this a wrapper around the official
134659         AM_FUNC_MKTIME rather than my private copy, now that the official one
134660         is up to date.
134661         * m4/mktime.m4: Remove file.
134663         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134664         * m4/uptime.m4: Likewise.
134665         * m4/uintmax_t.m4: Likewise.
134667 1999-01-28  Jim Meyering  <meyering@ascend.com>
134669         * m4/jm-macros.m4: Use jm_AFS.
134670         * m4/afs.m4: New file (from fileutils' configure.in).
134672         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134673         * m4/chown.m4: Likewise.
134674         * m4/d-ino.m4: Likewise.
134675         * m4/d-type.m4: Likewise.
134676         * m4/fnmatch.m4: Likewise.
134677         * m4/getgroups.m4: Likewise.
134678         * m4/gettext.m4: Likewise.
134679         * m4/jm-mktime.m4: Likewise.
134680         * m4/jm-winsz2.m4: Likewise.
134681         * m4/lcmessage.m4: Likewise.
134682         * m4/ls-mntd-fs.m4: Likewise.
134683         * m4/malloc.m4: Likewise.
134684         * m4/memcmp.m4: Likewise.
134685         * m4/putenv.m4: Likewise.
134686         * m4/realloc.m4: Likewise.
134687         * m4/st_mtim.m4: Likewise.
134688         * m4/strftime.m4: Likewise.
134690 1999-01-16  Jim Meyering  <meyering@ascend.com>
134692         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134693         (ARGMATCH_DIE_DECL): Define.
134695 1999-01-12  Jim Meyering  <meyering@ascend.com>
134697         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134698         Reported by Lars Hecking.
134700 1999-01-10  Jim Meyering  <meyering@ascend.com>
134702         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134703         gross kludge.
134704         * m4/inttypes_h.m4: Likewise.
134705         * m4/lstat.m4: Likewise.
134706         * m4/malloc.m4: Likewise.
134707         * m4/readdir.m4: Likewise.
134708         * m4/realloc.m4: Likewise.
134709         * m4/st_dm_mode.m4: Likewise.
134710         * m4/stat.m4: Likewise.
134711         * m4/utimbuf.m4: Likewise.
134712         * m4/utimes.m4: Likewise.
134714         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134715         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134716         comments in config.h.in are meaningful.
134718         * m4/jm-macros.m4: Require autoconf-2.13 here.
134720         * m4/regex.m4: By default, don't use the included regex.c on systems
134721         with glibc 2.  Suggestion from Uli Drepper.
134723 1999-01-02  Jim Meyering  <meyering@ascend.com>
134725         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134727 1998-12-18  Jim Meyering  <meyering@ascend.com>
134729         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134730         Based on a suggestion from Lars Hecking.
134732 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134734         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134736 1998-11-16  Jim Meyering  <meyering@ascend.com>
134738         * m4/lfs.m4: Double-quote the `uname...` expression.
134740 1998-11-14  Jim Meyering  <meyering@ascend.com>
134742         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134743         * m4/stat.m4: Likewise.
134745 1998-11-03  Jim Meyering  <meyering@ascend.com>
134747         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134748         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134750 1998-10-18  Jim Meyering  <meyering@ascend.com>
134752         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134754 1998-10-17  Jim Meyering  <meyering@ascend.com>
134756         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134757         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134758         calls for those previously hard-coded headers.  Instead, take a new
134759         parameter.
134760         (jm_CHECK_DECLARATIONS): Reflect interface change.
134761         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134762         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134764         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134766 1998-10-14  Jim Meyering  <meyering@ascend.com>
134768         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134769         instead of "TZ=America/Vancouver".  From Paul Eggert.
134771 1998-10-11  Jim Meyering  <meyering@ascend.com>
134773         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134774         This adds a test for a recently added compatibility fix for mktime.c.
134775         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134777 1998-09-27  Jim Meyering  <meyering@ascend.com>
134779         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134781         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134782         ../configure.in, including a change from Gordon Matzigkeit to allow
134783         cross-compiling for the Hurd.
134785         * m4/glibc.m4: New file/macro to test for the GNU C Library
134786         versions 1 and 2.  From Gordon Matzigkeit.
134787         Indent.
134789 1998-09-21  Jim Meyering  <meyering@ascend.com>
134791         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134793 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134795         Port nanosecond-resolution times to UnixWare 2.1.2 and
134796         pedantic Solaris 2.6.
134798         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134799         AC_STRUCT_ST_MTIM.
134800         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134801         Generate name of ns member, instead of just 1 or undef.
134802         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134804 1998-08-15  Jim Meyering  <meyering@ascend.com>
134806         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134807         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134808         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134809         instead of jm_TYPE_SSIZE_T.
134811 1998-08-12  Jim Meyering  <meyering@ascend.com>
134813         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134815 1998-08-02  Jim Meyering  <meyering@ascend.com>
134817         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134818         in acconfig.h manually.
134820 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134822         * m4/st_mtim.m4: New file.
134824 1998-07-28  Jim Meyering  <meyering@ascend.com>
134826         * m4/utimes.m4: Undef stat.
134828 1998-07-25  Jim Meyering  <meyering@ascend.com>
134830         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134831         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134833 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134835         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134836         uid and gid actually remain unchanged.
134838 1998-07-07  Jim Meyering  <meyering@ascend.com>
134840         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134842 1998-07-04  Jim Meyering  <meyering@ascend.com>
134844         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134845         to prove that this macro can be used in packages without regex.c.
134847 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134849         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134850         is to be used.
134852 1998-07-03  Jim Meyering  <meyering@ascend.com>
134854         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134856         * m4/gettext.m4: New file -- from gettext-0.10.35.
134857         * m4/lcmessage.m4: Likewise.
134858         * m4/progtest.m4: Likewise.
134860         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134861         * m4/jm-macros.m4: Require the new macro.
134863 1998-06-29  Jim Meyering  <meyering@ascend.com>
134865         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134866         for the definition of NGROUPS (used in a system header included
134867         by sys/mount.h).
134869 1998-06-28  Jim Meyering  <meyering@ascend.com>
134871         * m4/ls-mntd-fs.m4: New file.
134872         * m4/fstypename.m4: New file.
134874         * m4/jm-macros.m4: Require the new macro.
134875         * m4/jm-glibc-io.m4: New file.
134877 1998-05-19  Jim Meyering  <meyering@ascend.com>
134879         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134880         * m4/lchown.m4: New file.
134882         * m4/Makefile.am.in: New file.
134883         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134885 1998-05-14  Jim Meyering  <meyering@ascend.com>
134887         * m4/Makefile.am (EXTRA_DIST): Add them.
134888         * m4/jm-macros.m4: New file.
134889         * m4/utimbuf.m4: New file.
134891 1998-05-12  Jim Meyering  <meyering@ascend.com>
134893         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134895 1998-05-11  Jim Meyering  <meyering@ascend.com>
134897         * m4/isc-posix.m4: New file.
134899 1998-05-10  Jim Meyering  <meyering@ascend.com>
134901         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134903 1998-05-09  Jim Meyering  <meyering@ascend.com>
134905         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134906         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134907         with automake.
134909         * m4/ssize_t.m4: New file.
134910         * m4/mktime.m4: Remove file -- the new automake has this now.
134912 1998-04-26  Jim Meyering  <meyering@ascend.com>
134914         * m4/assert.m4: New file.
134915         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134917 1998-04-05  Jim Meyering  <meyering@ascend.com>
134919         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134920         (jm_PREREQ): Use it here.
134922 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134924         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134925         in acconfig.h.
134927 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134929         * m4/prereq.m4: New file.
134930         * m4/error.m4: New file.
134931         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134933 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134935         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134936         cache-check for the same variable -- that defeated the purpose of
134937         the test; the test program was never run.  This was a problem only
134938         on systems with losing getline functions -- HP-UX 10.20 is one.
134939         Reported by Bjorn Helgaas.
134941 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134943         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134945 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134947         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134949         * m4/const.m4: New file.  Use an initializer in this declaration
134950         typedef int charset[2]; const charset x;
134951         Reported by Bob Glickstein.
134953 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134955         * m4/chown.m4: Fix reversed types on -1 args to chown.
134956         From Kaveh Ghazi.
134958 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134960         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134961         Add lseek and memchr.
134963         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134964         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134965         have a 20-character limit on names.
134967 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134969         * m4/inttypes_h.m4: New file.
134970         * m4/uintmax_t.m4: New file.
134971         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134974         -----
134976         Local Variables:
134977         coding: utf-8
134978         End:
134980         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134982         Copying and distribution of this file, with or without
134983         modification, are permitted provided the copyright notice
134984         and this notice are preserved.